Executive summary
souz4s/ts-clean-api scores 39 out of 100, but it is rated At risk while a critical security finding is open; the score itself is unchanged.
The weakest lens counts most in the score, and here that is Security and Compliance, which scores 29 and is rated Weak. Its Dependency Vulnerabilities dimension scores 0 out of 10, and until that reaches 4, Security and Compliance can't be rated higher than Adequate. The first actions are to resolve the 2 Leaked secret finding(s) in Secret Scanning and to encrypt sensitive data at rest (AES-256-GCM through node:crypto createCipheriv, or a column-encryption layer such as typeorm-encrypted / prisma-field-encryption / MongoDB CSFLE) and manage keys in a vault (AWS KMS, Azure Key Vault, GCP KMS, HashiCorp Vault), and if Security and Compliance rose to 70, the score would rise from 39 to about 48.
24 findings are critical: 21 in Dependency Vulnerabilities, two in Secret Scanning and one in Circular Imports.
Watchdog couldn't measure 4 dimensions in this code, among them Internal API Consistency, Cancellation propagation and Structured logging, so they are left out of the score. The product code is 389 lines.
If Security and Compliance rose from 29 to 70, the lowest score rated Strong, the score would rise from 39 to about 48.
New since the last survey: 13 findings
- Dependency Hygiene · Deprecated: @faker-js/faker package.json
- Dependency Hygiene · Deprecated: eslint package.json
- Secret Scanning · REDACTED
- Secret Scanning · REDACTED
- Bus Factor · bus factor 1 — one contributor carries this repository
- Dependency Vulnerabilities · REDACTED
- Dependency Vulnerabilities · REDACTED
- Dependency Vulnerabilities · REDACTED
- Dependency Vulnerabilities · REDACTED
- Dependency Vulnerabilities · REDACTED
- Dependency Vulnerabilities · REDACTED
- Dependency Vulnerabilities · REDACTED
- Incompleteness & stubs · Both branches are identical — the condition decides nothing src/infrastructure/db/repositories/musical-genre-repository.ts
Fixed since the last survey: 7 findings
- Dependency Vulnerabilities · High CVE: REDACTED REDACTED
- Dependency Vulnerabilities · High CVE: REDACTED REDACTED
- Dependency Vulnerabilities · High CVE: REDACTED REDACTED
- Dependency Vulnerabilities · High CVE: REDACTED REDACTED
- Dependency Vulnerabilities · High CVE: REDACTED REDACTED
- Dependency Vulnerabilities · Medium CVE: REDACTED REDACTED
- Dependency Vulnerabilities · Medium CVE: REDACTED REDACTED
Rebuild cost: about €330 · Estimate
| Cost to rebuild | €110 to €550, for 2 to 6 hours of work, about 0.1 person-years for one engineer |
|---|---|
| Difficulty of the problem | Standard, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write. |
| Quality factor | ×0.7 at a score of 39. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it. |
| Size | Very small: 389 lines of product code |
Top priorities
Diagnosis: what the measurements show together
Architecture: which parts of the code depend on which
| uses → | 1 src.data.protocols.db.create-user-repository | 2 src.data.protocols.db.get-user-by-email-repository | 3 src.data.protocols.db.update-musical-genre-score-repository | 4 src.domain.use-cases.create-user | 5 src.domain.use-cases.get-user-by-email | 6 src.domain.use-cases.update-musical-genre-score | 7 src.main | 8 src.main.config | 9 src.main.factories.controller | 10 src.presentation.errors.internal-server-error | 11 src.presentation.errors.missing-parameters-error | 12 src.presentation.helpers.http-helper | 13 src.presentation.protocols.controller | 14 tests.domain.mocks | 15 src.data.use-cases.db-create-user | 16 src.data.use-cases.db-get-user-by-email | 17 src.data.use-cases.db-update-musical-genre-score | 18 src.infrastructure.db.repositories.musical-genre-repository | 19 src.infrastructure.db.repositories.user-repository | 20 src.main.adapters | 21 src.presentation.controllers.create-user-controller | 22 src.presentation.controllers.get-user-by-email-controller | 23 src.presentation.controllers.update-musical-genre-score-controller | 24 tests.data.mocks.mock-db-musical-genre | 25 tests.data.mocks.mock-db-user | 26 tests.presentation.mocks.mock-musical-genre | 27 tests.presentation.mocks.mock-user | 28 src.main.factories.use-cases.db |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 src.data.protocols.db.create-user-repository | ||||||||||||||||||||||||||||
| 2 src.data.protocols.db.get-user-by-email-repository | ||||||||||||||||||||||||||||
| 3 src.data.protocols.db.update-musical-genre-score-repository | ||||||||||||||||||||||||||||
| 4 src.domain.use-cases.create-user | ||||||||||||||||||||||||||||
| 5 src.domain.use-cases.get-user-by-email | ||||||||||||||||||||||||||||
| 6 src.domain.use-cases.update-musical-genre-score | ||||||||||||||||||||||||||||
| 7 src.main | ||||||||||||||||||||||||||||
| 8 src.main.config | ||||||||||||||||||||||||||||
| 9 src.main.factories.controller | ||||||||||||||||||||||||||||
| 10 src.presentation.errors.internal-server-error | ||||||||||||||||||||||||||||
| 11 src.presentation.errors.missing-parameters-error | ||||||||||||||||||||||||||||
| 12 src.presentation.helpers.http-helper | ||||||||||||||||||||||||||||
| 13 src.presentation.protocols.controller | ||||||||||||||||||||||||||||
| 14 tests.domain.mocks | ||||||||||||||||||||||||||||
| 15 src.data.use-cases.db-create-user | 1 | 1 | ||||||||||||||||||||||||||
| 16 src.data.use-cases.db-get-user-by-email | 1 | 1 | ||||||||||||||||||||||||||
| 17 src.data.use-cases.db-update-musical-genre-score | 1 | 1 | ||||||||||||||||||||||||||
| 18 src.infrastructure.db.repositories.musical-genre-repository | 1 | |||||||||||||||||||||||||||
| 19 src.infrastructure.db.repositories.user-repository | 1 | 1 | ||||||||||||||||||||||||||
| 20 src.main.adapters | 1 | |||||||||||||||||||||||||||
| 21 src.presentation.controllers.create-user-controller | 1 | 1 | ||||||||||||||||||||||||||
| 22 src.presentation.controllers.get-user-by-email-controller | 1 | 1 | ||||||||||||||||||||||||||
| 23 src.presentation.controllers.update-musical-genre-score-controller | 1 | 1 | ||||||||||||||||||||||||||
| 24 tests.data.mocks.mock-db-musical-genre | 1 | |||||||||||||||||||||||||||
| 25 tests.data.mocks.mock-db-user | 1 | 1 | ||||||||||||||||||||||||||
| 26 tests.presentation.mocks.mock-musical-genre | 1 | |||||||||||||||||||||||||||
| 27 tests.presentation.mocks.mock-user | 1 | 1 | ||||||||||||||||||||||||||
| 28 src.main.factories.use-cases.db | 1 | 1 | 1 |
15→1 src.data.use-cases.db-create-user uses src.data.protocols.db.create-user-repository✕
- Connections
- 1 pair of types, where a type in src.data.use-cases.db-create-user uses a type in src.data.protocols.db.create-user-repository.
- The types involved
src.data.use-cases.db-create-user.DbCreateUser→src.data.protocols.db.create-user-repository.CreateUserRepository
- Direction
- src.data.use-cases.db-create-user uses src.data.protocols.db.create-user-repository, so a change to src.data.protocols.db.create-user-repository can break src.data.use-cases.db-create-user, while a change to src.data.use-cases.db-create-user can't break src.data.protocols.db.create-user-repository.
- Position
- Below the diagonal: src.data.use-cases.db-create-user uses a module listed above it, which is the healthy direction.
15→4 src.data.use-cases.db-create-user uses src.domain.use-cases.create-user✕
- Connections
- 1 pair of types, where a type in src.data.use-cases.db-create-user uses a type in src.domain.use-cases.create-user.
- The types involved
src.data.use-cases.db-create-user.DbCreateUser→src.domain.use-cases.create-user.CreateUser
- Direction
- src.data.use-cases.db-create-user uses src.domain.use-cases.create-user, so a change to src.domain.use-cases.create-user can break src.data.use-cases.db-create-user, while a change to src.data.use-cases.db-create-user can't break src.domain.use-cases.create-user.
- Position
- Below the diagonal: src.data.use-cases.db-create-user uses a module listed above it, which is the healthy direction.
16→2 src.data.use-cases.db-get-user-by-email uses src.data.protocols.db.get-user-by-email-repository✕
- Connections
- 1 pair of types, where a type in src.data.use-cases.db-get-user-by-email uses a type in src.data.protocols.db.get-user-by-email-repository.
- The types involved
src.data.use-cases.db-get-user-by-email.DbGetUserByEmail→src.data.protocols.db.get-user-by-email-repository.GetUserByEmailRepository
- Direction
- src.data.use-cases.db-get-user-by-email uses src.data.protocols.db.get-user-by-email-repository, so a change to src.data.protocols.db.get-user-by-email-repository can break src.data.use-cases.db-get-user-by-email, while a change to src.data.use-cases.db-get-user-by-email can't break src.data.protocols.db.get-user-by-email-repository.
- Position
- Below the diagonal: src.data.use-cases.db-get-user-by-email uses a module listed above it, which is the healthy direction.
16→5 src.data.use-cases.db-get-user-by-email uses src.domain.use-cases.get-user-by-email✕
- Connections
- 1 pair of types, where a type in src.data.use-cases.db-get-user-by-email uses a type in src.domain.use-cases.get-user-by-email.
- The types involved
src.data.use-cases.db-get-user-by-email.DbGetUserByEmail→src.domain.use-cases.get-user-by-email.GetUserByEmail
- Direction
- src.data.use-cases.db-get-user-by-email uses src.domain.use-cases.get-user-by-email, so a change to src.domain.use-cases.get-user-by-email can break src.data.use-cases.db-get-user-by-email, while a change to src.data.use-cases.db-get-user-by-email can't break src.domain.use-cases.get-user-by-email.
- Position
- Below the diagonal: src.data.use-cases.db-get-user-by-email uses a module listed above it, which is the healthy direction.
17→3 src.data.use-cases.db-update-musical-genre-score uses src.data.protocols.db.update-musical-genre-score-repository✕
- Connections
- 1 pair of types, where a type in src.data.use-cases.db-update-musical-genre-score uses a type in src.data.protocols.db.update-musical-genre-score-repository.
- The types involved
src.data.use-cases.db-update-musical-genre-score.DbUpdateMusicalGenreScore→src.data.protocols.db.update-musical-genre-score-repository.UpdateMusicalGenreScoreRepository
- Direction
- src.data.use-cases.db-update-musical-genre-score uses src.data.protocols.db.update-musical-genre-score-repository, so a change to src.data.protocols.db.update-musical-genre-score-repository can break src.data.use-cases.db-update-musical-genre-score, while a change to src.data.use-cases.db-update-musical-genre-score can't break src.data.protocols.db.update-musical-genre-score-repository.
- Position
- Below the diagonal: src.data.use-cases.db-update-musical-genre-score uses a module listed above it, which is the healthy direction.
17→6 src.data.use-cases.db-update-musical-genre-score uses src.domain.use-cases.update-musical-genre-score✕
- Connections
- 1 pair of types, where a type in src.data.use-cases.db-update-musical-genre-score uses a type in src.domain.use-cases.update-musical-genre-score.
- The types involved
src.data.use-cases.db-update-musical-genre-score.DbUpdateMusicalGenreScore→src.domain.use-cases.update-musical-genre-score.UpdateMusicalGenreScore
- Direction
- src.data.use-cases.db-update-musical-genre-score uses src.domain.use-cases.update-musical-genre-score, so a change to src.domain.use-cases.update-musical-genre-score can break src.data.use-cases.db-update-musical-genre-score, while a change to src.data.use-cases.db-update-musical-genre-score can't break src.domain.use-cases.update-musical-genre-score.
- Position
- Below the diagonal: src.data.use-cases.db-update-musical-genre-score uses a module listed above it, which is the healthy direction.
18→3 src.infrastructure.db.repositories.musical-genre-repository uses src.data.protocols.db.update-musical-genre-score-repository✕
- Connections
- 1 pair of types, where a type in src.infrastructure.db.repositories.musical-genre-repository uses a type in src.data.protocols.db.update-musical-genre-score-repository.
- The types involved
src.infrastructure.db.repositories.musical-genre-repository.MusicalGenreRepository→src.data.protocols.db.update-musical-genre-score-repository.UpdateMusicalGenreScoreRepository
- Direction
- src.infrastructure.db.repositories.musical-genre-repository uses src.data.protocols.db.update-musical-genre-score-repository, so a change to src.data.protocols.db.update-musical-genre-score-repository can break src.infrastructure.db.repositories.musical-genre-repository, while a change to src.infrastructure.db.repositories.musical-genre-repository can't break src.data.protocols.db.update-musical-genre-score-repository.
- Position
- Below the diagonal: src.infrastructure.db.repositories.musical-genre-repository uses a module listed above it, which is the healthy direction.
19→1 src.infrastructure.db.repositories.user-repository uses src.data.protocols.db.create-user-repository✕
- Connections
- 1 pair of types, where a type in src.infrastructure.db.repositories.user-repository uses a type in src.data.protocols.db.create-user-repository.
- The types involved
src.infrastructure.db.repositories.user-repository.UserRepository→src.data.protocols.db.create-user-repository.CreateUserRepository
- Direction
- src.infrastructure.db.repositories.user-repository uses src.data.protocols.db.create-user-repository, so a change to src.data.protocols.db.create-user-repository can break src.infrastructure.db.repositories.user-repository, while a change to src.infrastructure.db.repositories.user-repository can't break src.data.protocols.db.create-user-repository.
- Position
- Below the diagonal: src.infrastructure.db.repositories.user-repository uses a module listed above it, which is the healthy direction.
19→2 src.infrastructure.db.repositories.user-repository uses src.data.protocols.db.get-user-by-email-repository✕
- Connections
- 1 pair of types, where a type in src.infrastructure.db.repositories.user-repository uses a type in src.data.protocols.db.get-user-by-email-repository.
- The types involved
src.infrastructure.db.repositories.user-repository.UserRepository→src.data.protocols.db.get-user-by-email-repository.GetUserByEmailRepository
- Direction
- src.infrastructure.db.repositories.user-repository uses src.data.protocols.db.get-user-by-email-repository, so a change to src.data.protocols.db.get-user-by-email-repository can break src.infrastructure.db.repositories.user-repository, while a change to src.infrastructure.db.repositories.user-repository can't break src.data.protocols.db.get-user-by-email-repository.
- Position
- Below the diagonal: src.infrastructure.db.repositories.user-repository uses a module listed above it, which is the healthy direction.
20→13 src.main.adapters uses src.presentation.protocols.controller✕
- Connections
- 1 pair of types, where a type in src.main.adapters uses a type in src.presentation.protocols.controller.
- The types involved
src.main.adapters.express-router-adapter→src.presentation.protocols.controller.Controller
- Direction
- src.main.adapters uses src.presentation.protocols.controller, so a change to src.presentation.protocols.controller can break src.main.adapters, while a change to src.main.adapters can't break src.presentation.protocols.controller.
- Position
- Below the diagonal: src.main.adapters uses a module listed above it, which is the healthy direction.
21→4 src.presentation.controllers.create-user-controller uses src.domain.use-cases.create-user✕
- Connections
- 1 pair of types, where a type in src.presentation.controllers.create-user-controller uses a type in src.domain.use-cases.create-user.
- The types involved
src.presentation.controllers.create-user-controller.CreateUserController→src.domain.use-cases.create-user.CreateUser
- Direction
- src.presentation.controllers.create-user-controller uses src.domain.use-cases.create-user, so a change to src.domain.use-cases.create-user can break src.presentation.controllers.create-user-controller, while a change to src.presentation.controllers.create-user-controller can't break src.domain.use-cases.create-user.
- Position
- Below the diagonal: src.presentation.controllers.create-user-controller uses a module listed above it, which is the healthy direction.
21→13 src.presentation.controllers.create-user-controller uses src.presentation.protocols.controller✕
- Connections
- 1 pair of types, where a type in src.presentation.controllers.create-user-controller uses a type in src.presentation.protocols.controller.
- The types involved
src.presentation.controllers.create-user-controller.CreateUserController→src.presentation.protocols.controller.Controller
- Direction
- src.presentation.controllers.create-user-controller uses src.presentation.protocols.controller, so a change to src.presentation.protocols.controller can break src.presentation.controllers.create-user-controller, while a change to src.presentation.controllers.create-user-controller can't break src.presentation.protocols.controller.
- Position
- Below the diagonal: src.presentation.controllers.create-user-controller uses a module listed above it, which is the healthy direction.
22→5 src.presentation.controllers.get-user-by-email-controller uses src.domain.use-cases.get-user-by-email✕
- Connections
- 1 pair of types, where a type in src.presentation.controllers.get-user-by-email-controller uses a type in src.domain.use-cases.get-user-by-email.
- The types involved
src.presentation.controllers.get-user-by-email-controller.GetUserByEmailController→src.domain.use-cases.get-user-by-email.GetUserByEmail
- Direction
- src.presentation.controllers.get-user-by-email-controller uses src.domain.use-cases.get-user-by-email, so a change to src.domain.use-cases.get-user-by-email can break src.presentation.controllers.get-user-by-email-controller, while a change to src.presentation.controllers.get-user-by-email-controller can't break src.domain.use-cases.get-user-by-email.
- Position
- Below the diagonal: src.presentation.controllers.get-user-by-email-controller uses a module listed above it, which is the healthy direction.
22→13 src.presentation.controllers.get-user-by-email-controller uses src.presentation.protocols.controller✕
- Connections
- 1 pair of types, where a type in src.presentation.controllers.get-user-by-email-controller uses a type in src.presentation.protocols.controller.
- The types involved
src.presentation.controllers.get-user-by-email-controller.GetUserByEmailController→src.presentation.protocols.controller.Controller
- Direction
- src.presentation.controllers.get-user-by-email-controller uses src.presentation.protocols.controller, so a change to src.presentation.protocols.controller can break src.presentation.controllers.get-user-by-email-controller, while a change to src.presentation.controllers.get-user-by-email-controller can't break src.presentation.protocols.controller.
- Position
- Below the diagonal: src.presentation.controllers.get-user-by-email-controller uses a module listed above it, which is the healthy direction.
23→6 src.presentation.controllers.update-musical-genre-score-controller uses src.domain.use-cases.update-musical-genre-score✕
- Connections
- 1 pair of types, where a type in src.presentation.controllers.update-musical-genre-score-controller uses a type in src.domain.use-cases.update-musical-genre-score.
- The types involved
src.presentation.controllers.update-musical-genre-score-controller.UpdateMusicalGenreScoreController→src.domain.use-cases.update-musical-genre-score.UpdateMusicalGenreScore
- Direction
- src.presentation.controllers.update-musical-genre-score-controller uses src.domain.use-cases.update-musical-genre-score, so a change to src.domain.use-cases.update-musical-genre-score can break src.presentation.controllers.update-musical-genre-score-controller, while a change to src.presentation.controllers.update-musical-genre-score-controller can't break src.domain.use-cases.update-musical-genre-score.
- Position
- Below the diagonal: src.presentation.controllers.update-musical-genre-score-controller uses a module listed above it, which is the healthy direction.
23→13 src.presentation.controllers.update-musical-genre-score-controller uses src.presentation.protocols.controller✕
- Connections
- 1 pair of types, where a type in src.presentation.controllers.update-musical-genre-score-controller uses a type in src.presentation.protocols.controller.
- The types involved
src.presentation.controllers.update-musical-genre-score-controller.UpdateMusicalGenreScoreController→src.presentation.protocols.controller.Controller
- Direction
- src.presentation.controllers.update-musical-genre-score-controller uses src.presentation.protocols.controller, so a change to src.presentation.protocols.controller can break src.presentation.controllers.update-musical-genre-score-controller, while a change to src.presentation.controllers.update-musical-genre-score-controller can't break src.presentation.protocols.controller.
- Position
- Below the diagonal: src.presentation.controllers.update-musical-genre-score-controller uses a module listed above it, which is the healthy direction.
24→3 tests.data.mocks.mock-db-musical-genre uses src.data.protocols.db.update-musical-genre-score-repository✕
- Connections
- 1 pair of types, where a type in tests.data.mocks.mock-db-musical-genre uses a type in src.data.protocols.db.update-musical-genre-score-repository.
- The types involved
tests.data.mocks.mock-db-musical-genre.UpdateMusicalGenreScoreRepositorySpy→src.data.protocols.db.update-musical-genre-score-repository.UpdateMusicalGenreScoreRepository
- Direction
- tests.data.mocks.mock-db-musical-genre uses src.data.protocols.db.update-musical-genre-score-repository, so a change to src.data.protocols.db.update-musical-genre-score-repository can break tests.data.mocks.mock-db-musical-genre, while a change to tests.data.mocks.mock-db-musical-genre can't break src.data.protocols.db.update-musical-genre-score-repository.
- Position
- Below the diagonal: tests.data.mocks.mock-db-musical-genre uses a module listed above it, which is the healthy direction.
25→1 tests.data.mocks.mock-db-user uses src.data.protocols.db.create-user-repository✕
- Connections
- 1 pair of types, where a type in tests.data.mocks.mock-db-user uses a type in src.data.protocols.db.create-user-repository.
- The types involved
tests.data.mocks.mock-db-user.CreateUserRepositorySpy→src.data.protocols.db.create-user-repository.CreateUserRepository
- Direction
- tests.data.mocks.mock-db-user uses src.data.protocols.db.create-user-repository, so a change to src.data.protocols.db.create-user-repository can break tests.data.mocks.mock-db-user, while a change to tests.data.mocks.mock-db-user can't break src.data.protocols.db.create-user-repository.
- Position
- Below the diagonal: tests.data.mocks.mock-db-user uses a module listed above it, which is the healthy direction.
25→2 tests.data.mocks.mock-db-user uses src.data.protocols.db.get-user-by-email-repository✕
- Connections
- 1 pair of types, where a type in tests.data.mocks.mock-db-user uses a type in src.data.protocols.db.get-user-by-email-repository.
- The types involved
tests.data.mocks.mock-db-user.GetUserByEmailRepositorySpy→src.data.protocols.db.get-user-by-email-repository.GetUserByEmailRepository
- Direction
- tests.data.mocks.mock-db-user uses src.data.protocols.db.get-user-by-email-repository, so a change to src.data.protocols.db.get-user-by-email-repository can break tests.data.mocks.mock-db-user, while a change to tests.data.mocks.mock-db-user can't break src.data.protocols.db.get-user-by-email-repository.
- Position
- Below the diagonal: tests.data.mocks.mock-db-user uses a module listed above it, which is the healthy direction.
26→6 tests.presentation.mocks.mock-musical-genre uses src.domain.use-cases.update-musical-genre-score✕
- Connections
- 1 pair of types, where a type in tests.presentation.mocks.mock-musical-genre uses a type in src.domain.use-cases.update-musical-genre-score.
- The types involved
tests.presentation.mocks.mock-musical-genre.UpdateMusicalGenreScoreSpy→src.domain.use-cases.update-musical-genre-score.UpdateMusicalGenreScore
- Direction
- tests.presentation.mocks.mock-musical-genre uses src.domain.use-cases.update-musical-genre-score, so a change to src.domain.use-cases.update-musical-genre-score can break tests.presentation.mocks.mock-musical-genre, while a change to tests.presentation.mocks.mock-musical-genre can't break src.domain.use-cases.update-musical-genre-score.
- Position
- Below the diagonal: tests.presentation.mocks.mock-musical-genre uses a module listed above it, which is the healthy direction.
27→4 tests.presentation.mocks.mock-user uses src.domain.use-cases.create-user✕
- Connections
- 1 pair of types, where a type in tests.presentation.mocks.mock-user uses a type in src.domain.use-cases.create-user.
- The types involved
tests.presentation.mocks.mock-user.CreateUserSpy→src.domain.use-cases.create-user.CreateUser
- Direction
- tests.presentation.mocks.mock-user uses src.domain.use-cases.create-user, so a change to src.domain.use-cases.create-user can break tests.presentation.mocks.mock-user, while a change to tests.presentation.mocks.mock-user can't break src.domain.use-cases.create-user.
- Position
- Below the diagonal: tests.presentation.mocks.mock-user uses a module listed above it, which is the healthy direction.
27→5 tests.presentation.mocks.mock-user uses src.domain.use-cases.get-user-by-email✕
- Connections
- 1 pair of types, where a type in tests.presentation.mocks.mock-user uses a type in src.domain.use-cases.get-user-by-email.
- The types involved
tests.presentation.mocks.mock-user.GetUserByEmailSpy→src.domain.use-cases.get-user-by-email.GetUserByEmail
- Direction
- tests.presentation.mocks.mock-user uses src.domain.use-cases.get-user-by-email, so a change to src.domain.use-cases.get-user-by-email can break tests.presentation.mocks.mock-user, while a change to tests.presentation.mocks.mock-user can't break src.domain.use-cases.get-user-by-email.
- Position
- Below the diagonal: tests.presentation.mocks.mock-user uses a module listed above it, which is the healthy direction.
28→15 src.main.factories.use-cases.db uses src.data.use-cases.db-create-user✕
- Connections
- 1 pair of types, where a type in src.main.factories.use-cases.db uses a type in src.data.use-cases.db-create-user.
- The types involved
src.main.factories.use-cases.db.db-create-user→src.data.use-cases.db-create-user.DbCreateUser
- Direction
- src.main.factories.use-cases.db uses src.data.use-cases.db-create-user, so a change to src.data.use-cases.db-create-user can break src.main.factories.use-cases.db, while a change to src.main.factories.use-cases.db can't break src.data.use-cases.db-create-user.
- Position
- Below the diagonal: src.main.factories.use-cases.db uses a module listed above it, which is the healthy direction.
28→16 src.main.factories.use-cases.db uses src.data.use-cases.db-get-user-by-email✕
- Connections
- 1 pair of types, where a type in src.main.factories.use-cases.db uses a type in src.data.use-cases.db-get-user-by-email.
- The types involved
src.main.factories.use-cases.db.db-get-user-by-email→src.data.use-cases.db-get-user-by-email.DbGetUserByEmail
- Direction
- src.main.factories.use-cases.db uses src.data.use-cases.db-get-user-by-email, so a change to src.data.use-cases.db-get-user-by-email can break src.main.factories.use-cases.db, while a change to src.main.factories.use-cases.db can't break src.data.use-cases.db-get-user-by-email.
- Position
- Below the diagonal: src.main.factories.use-cases.db uses a module listed above it, which is the healthy direction.
28→17 src.main.factories.use-cases.db uses src.data.use-cases.db-update-musical-genre-score✕
- Connections
- 1 pair of types, where a type in src.main.factories.use-cases.db uses a type in src.data.use-cases.db-update-musical-genre-score.
- The types involved
src.main.factories.use-cases.db.db-update-musical-genre-score→src.data.use-cases.db-update-musical-genre-score.DbUpdateMusicalGenreScore
- Direction
- src.main.factories.use-cases.db uses src.data.use-cases.db-update-musical-genre-score, so a change to src.data.use-cases.db-update-musical-genre-score can break src.main.factories.use-cases.db, while a change to src.main.factories.use-cases.db can't break src.data.use-cases.db-update-musical-genre-score.
- Position
- Below the diagonal: src.main.factories.use-cases.db 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 — Performance
Security & Compliance — OWASP Top-10 mapping
| OWASP category | Findings | Severity |
|---|---|---|
| A03:2025 — Software Supply Chain Failures | 35 | High / Critical |
| A07:2025 — Authentication Failures | 2 | High / Critical |
Roadmap
Immediately resolve the 21 critical security findings by fixing leaked secrets in REDACTED and patching 19 high-severity dependency vulnerabilities. Simultaneously, enforce strict access controls by implementing a global authentication guard with explicit public opt-outs and named role permissions. Finally, secure sensitive data at rest using strong encryption standards and a dedicated key vault, while documenting key architectural decisions in a centralized ADR folder to ensure long-term maintainability.
| Do this | Helps | Effort | Dimension |
|---|---|---|---|
| Resolve the 2 Leaked secret finding(s) in Secret Scanning — start with REDACTED (2). | +6.3 pts | Low | Secret Scanning |
| Encrypt sensitive data at rest (AES-256-GCM through node:crypto createCipheriv, or a column-encryption layer such as typeorm-encrypted / prisma-field-encryption / MongoDB CSFLE) and manage keys in a vault (AWS KMS, Azure Key Vault, GCP KMS, HashiCorp Vault). Skip if delegated to infra (Postgres TDE, KMS, etc.). | +6.7 pts | Medium | Data Protection |
| Protect endpoints by default-deny: a global authentication guard or middleware with explicit public opt-outs, or a guard on every route, plus named role/permission rules for what an authenticated caller may do. | +6.7 pts | Medium | Access Controls |
| Resolve the 1 No ADRs found finding(s) in ADR Quality. | +3.0 pts | Low | ADR Quality |
| Resolve the 2 Deprecated finding(s) in Dependency Hygiene — start with package.json (2). | +2.0 pts | Low | Dependency Hygiene |
| Resolve the 9 Medium CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (9). | +1.6 pts | Low | Dependency Vulnerabilities |
| Resolve the 19 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (19). | +3.0 pts | Medium | Dependency Vulnerabilities |
| Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them. | +3.0 pts | Medium | Architecture documentation |
File quality
| File | Score | Band | Worst signal |
|---|---|---|---|
| REDACTED | 0.0 | Slop | Secret Scanning: Leaked secret: REDACTED |
| package.json | 7.3 | Mixed | Dependency Hygiene: Deprecated: @faker-js/faker |
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. 69 of 72 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 3 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.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 — 72 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, 61 of 71 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 | Secrets in history, SAST, CVEs, IaC & container, PII / GDPR | 1.86.0 · 0.69.3 | ✓ 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
- 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: it declares a published package (package.json), but 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.
- D34 Knowledge Freshness — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. All 53 production source file(s) in this repository were read, and every one is under the ~2,400-byte (~100-line) size floor this dimension measures over (or declares itself generated), so there is no significant file to judge and knowledge freshness is not applicable. This is the size of the repository's files, not a file the engine failed to read.
- 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 DevServer (start). the dev server did not expose a crawlable HTTP endpoint in time — no runtime evidence.
- P5 DR & Backup — 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. No backup/snapshot/replication config, RTO/RPO or restore-procedure documentation was found — and none applies: this repository publishes a library and deploys nothing (no container, IaC or deployment manifest), so it holds no runtime state of its own. Any data-access dependency it declares is the store it is a CLIENT for, not one it operates. The DR control belongs to whoever runs that data.
- X2 Cancellation propagation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Go, PHP, Dart, Kotlin, Ruby, Scala, Java, Python and Rust source only, and no C# was loaded, and no named async function in this repository's JavaScript/TypeScript, nor any Go, PHP or Dart function or Kotlin suspend function, makes a request that can be cancelled (fetch, axios, ky, ofetch; net/http, net.Dial; amphp; Dio; Ktor, OkHttp), so there is nothing to judge, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X4 Structured logging — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, Kotlin, Python, PHP, Dart, Ruby, Scala and Rust source only, and no C# was loaded, and this repository's JavaScript/TypeScript, Python and PHP make no call through a named logger, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
Limitations & what we did not check
Watchdog assesses the repository exactly as committed, and only the repository. By design it does not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.
Per-dimension blind spots
- D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
- D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
- D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
- D8 Code Coverage: Coverage is measured by building and running the test suite inside Watchdog's isolated image — the target repo is never modified, and nothing on your systems runs. So coverage exists only when the suite builds and runs within the inline time budget; one that needs external services, can't build, or exceeds the budget yields no coverage (D8 then degrades to not-measured, not a low score). Line coverage also says nothing about assertion quality.
- D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
- D10 Test Quality: Assertion density is structural — it cannot tell a meaningful behavioural assertion from a trivial one, only that an assertion is present.
- D11 Test Reliability: Flakiness is inferred from history/markers — Watchdog runs the suite once (for coverage), not the repeated runs under varied conditions that reveal nondeterminism, so a flaky test never recorded as failing is invisible here.
- D12 Dependency Hygiene: Dependency health reads manifests and lockfiles — a vulnerability in a vendored/copied dependency, or risk from how a dependency is actually used, is outside this view.
- D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
- D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
- D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
- D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
- D19 Documentation Quality: Documentation quality is judged by an LLM over a bounded sample of docs — it reads what is written, not whether the docs match the running system, and it is advisory, not a measurement. Its critique rows are drawn from a closed category vocabulary and each row means the same thing in every run, so two scans can be compared row by row; the SET that fires is still a sample, and does not repeat exactly. Measured on one frozen input, six scans at one engine SHA: 2-5 critique rows per scan, 8 distinct rows across the six, 3 of those 8 seen in only one scan. So a D19 row is evidence about the documentation, but a COUNT of D19 rows is not a quantity — never read a change in it as an improvement or a regression.
- D20 ADR Quality: ADR quality is an LLM read of the decision records present — it cannot know about decisions made and never recorded, and its verdict is sampled and advisory.
- D21 Naming Consistency: Naming quality is an LLM judgement over a bounded sample — it assesses clarity/consistency of the names it sees, not domain-correctness, and is advisory.
- D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
- D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
- D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
- D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
- D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
- D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
- D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a Dockerfile (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
- AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
- 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.
The LLM boundary
Dimensions
D1 · Cyclomatic Complexity
0 method(s) exceeded the cyclomatic complexity threshold of 15.
D2 · Cognitive Complexity
0 method(s) exceeded the cognitive complexity threshold of 15.
D3 · God Classes
0 god class(es) detected.
D8 · Code Coverage
Line coverage 100.0%. Measured from the JavaScript/TypeScript suite (jest via `npm ci --ignore-scripts` in the repository root).
D9 · Test Distribution
16 test methods: 16 unit, 0 integration, 0 BDD, 0 e2e. The JavaScript/TypeScript suite contributes 16 `it`/`test` case(s) across 6 test file(s) declaring at least one; its tier split is read from package names and paths only.
D10 · Test Quality
0 skipped, 0 zero-assertion, no mocking-framework packages referenced (hand-written doubles or no mocking) across 16 tests.
D11 · Test Reliability
0 flaky across 1 measured tier(s). JavaScript/TypeScript (jest via `npm ci --ignore-scripts` in the repository root (16 tests)): measured (0 flaky).
D12 · Dependency Hygiene
3 outdated direct production npm dependency(ies) of 3 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. 2 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 2 Deprecated finding(s) in Dependency Hygiene — start with package.json (2). — One of this dimension's main actionable groups (2 warning-level).
- Resolve the 1 Outdated (npm) finding(s) in Dependency Hygiene — start with package.json. — One of this dimension's main actionable groups (1 recommendation-level).
- Stand up a CI pipeline, then gate Dependency Hygiene in it to reach Verified (currently Documented). — This repository has no CI pipeline, so there is nothing to add a gate to yet — the pipeline comes first. Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
D13 · Secret Scanning
1 secret(s) detected.
What to do
- Resolve the 2 Leaked secret finding(s) in Secret Scanning — start with REDACTED (2). — One of this dimension's main actionable groups (2 issue-level).
- Stand up a CI pipeline, then gate Secret Scanning in it to reach Verified (currently Documented). — This repository has no CI pipeline, so there is nothing to add a gate to yet — the pipeline comes first. Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D14 · License Compliance
0 of 3 shipped npm package(s) use a banned license. Licences were resolved from registry.npmjs.org over the 3 production dependency(ies) this repository's committed lockfile resolves, across 1 product package.json manifest(s). Its 20 `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 ISC, which is its own choice and is not judged here.
D15 · Churn × Complexity Hotspots
No churn × complexity hotspots in the window.
D17 · Explicit Debt
0 deducted task-comment markers across 389 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 gives a strong overview of what it is (a clean and organized TypeScript/Node.js API built with Express) plus features, prerequisites, test/run commands, linter info, built-with links to major technologies, contributing guidance, and a license. It is clear and complete for the repository as a whole.
What to do
- Improve Documentation Quality — currently 7.0/10. — The repository's root README gives a strong overview of what it is (a clean and organized TypeScript/Node.js API built with Express) plus features, prerequisites, test/run commands, linter info, built-with links to major technologies, contributing guidance, and a license. It is clear and complete for the repository as a whole.
D20 · ADR Quality
No architecture decision records were found.
What to do
- Resolve the 1 No ADRs found finding(s) in ADR Quality. — One of this dimension's main actionable groups (1 recommendation-level).
D21 · Naming Consistency
0 naming inconsistencies across 0 sampled symbols.
D26 · Project Cohesion
0 of 1 build units (npm) flagged as possibly oversized/incoherent.
D28 · Secrets (history)
gitleaks scanned the full history AND the current working tree and found no secrets.
D29 · Static Analysis (SAST)
semgrep found no security issues.
D30 · Dependency Vulnerabilities
35 finding(s): 2 critical, 19 high, 9 medium, 5 low.
What to do
- Resolve the 19 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (19). — One of this dimension's main actionable groups (19 issue-level).
- Resolve the 9 Medium CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (9). — One of this dimension's main actionable groups (9 warning-level).
- Resolve the 2 Critical CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (2). — One of this dimension's main actionable groups (2 issue-level).
D35 · Change Coupling
No strong hidden change-coupling between production files.
D43 · Malicious Dependencies
No dependency in any ecosystem this repository declares is published as malicious.
D44 · Platform End-of-Life
0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 0 platform declaration(s) and 3 dependency declaration(s). This dimension reads what the repository says about ITSELF — a pinned target framework, a version file, a capped requires-python, a Rust toolchain pin, a framework major a constraint cannot move off. A FLOOR is deliberately never charged: `requires-python = ">=3.8"` states what the package SUPPORTS, not what it runs on, and a well-maintained library declares exactly that while running its own CI on a current release. The end-of-life facts are FROZEN and dated, so this dimension needs no network and answers identically inside a closed scan fence; as the table ages it loses recall and never precision, because a statement about support that ended in the past cannot become false. The OS layer of a container image is D31's question and the toolchain a CI workflow installs is D29's; this row is neither.
Frontend & cross-cutting dimensions
AX10 · Code composition
What to do
- The domain core is a small share of production code, but most of the rest matched no layer vocabulary at all — so this is not yet an anemic-domain finding. The namespace/path convention could not place that code, which makes the composition above a statement about the naming, not about the design. Name the layers (or check that the repository's conventions differ from the ones this check knows) before reading a thin domain into it.
AX3 · Project dependency cycles
AX4 · Dependency direction
AX6 · Interface segregation
C1 · Data Protection
- No encryption usage (node:crypto createCipheriv, Web Crypto subtle.encrypt, crypto-js AES, tweetnacl/libsodium secretbox, a column-encryption layer such as typeorm-encrypted, prisma-field-encryption or mongoose-field-encryption, or MongoDB client-side field-level encryption) was found, and this repository persists personal data in the model cited here — sensitive data at rest may be unprotected. If TDE/KMS/vault is delegated to infrastructure, ignore. — prisma/schema.prisma:12
What to do
- Encrypt sensitive data at rest (AES-256-GCM through node:crypto createCipheriv, or a column-encryption layer such as typeorm-encrypted / prisma-field-encryption / MongoDB CSFLE) and manage keys in a vault (AWS KMS, Azure Key Vault, GCP KMS, HashiCorp Vault). Skip if delegated to infra (Postgres TDE, KMS, etc.).
- Enforce HTTPS (serve through https.createServer / NestJS httpsOptions, or redirect plain HTTP with express-sslify behind your TLS terminator) so data in transit is always encrypted.
C2 · Access Controls
- This repository serves requests — express() (src/main/config/app.ts:7) — and no route guard, auth-gate middleware, global guard or imperative check that refuses a caller (401/403, an Unauthorized/Forbidden error) was found: its endpoints may be unprotected. — src/main/config/app.ts:7
What to do
- Protect endpoints by default-deny: a global authentication guard or middleware with explicit public opt-outs, or a guard on every route, plus named role/permission rules for what an authenticated caller may do.
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. — src/infrastructure/db/repositories/musical-genre-repository.ts:13
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
- Add a build/run (quick start) section to the root README — the first thing a newcomer needs.
- Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
M2 · Architecture documentation
- No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
- No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named `architecture` or `design` in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape — no `## Architecture` heading, no "architecture overview"/"high-level design" phrasing, no "the architecture is …" introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document — not evidence that nobody wrote the shape down.
What to do
- Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
- Add a C4 context/container diagram (Structurizr, PlantUML or Mermaid) or an architecture.md overview.
M3 · Folder & project structure
M4 · Documentation accuracy
P1 · CI/CD gates
- No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, …) — changes aren't gated by an automated build/test.
What to do
- Add a CI workflow that builds and runs the test suite on every push/PR.
P10 · Library API & versioning
P2 · Observability
- No logging call was found in the 51 JavaScript/TypeScript production file(s) this check read across 1 module(s). Each was searched for its ecosystem's logging libraries (JavaScript/TypeScript: pino, winston, bunyan, log4js, loglevel, consola, the NestJS Logger) and for a call on a receiver named `log`/`logger` (or ending in `Logger`/`_logger`) with a level verb. It cannot see logging through a repo-local wrapper named otherwise, or in source it did not read — this is 'no logging found by this walk', not a verdict that nothing here logs. If it is right, production issues will be hard to diagnose.
What to do
- Adopt pino (or winston) and log at meaningful points in the services you run.
- Consider OpenTelemetry tracing/metrics (@opentelemetry/sdk-node) and a health-check endpoint (@godaddy/terminus or a /health route) for operability.
P3 · Security & performance tooling
- No static application security testing detected. For this repository's stack, add CodeQL's javascript-typescript pack, `semgrep --config=p/typescript`, or eslint-plugin-security — this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.
What to do
- Run what this repository's stack ships: CodeQL's javascript-typescript pack, `semgrep --config=p/typescript`, or eslint-plugin-security — locally for now, since there is no CI pipeline here yet, and as a step of the first workflow you add so a security regression fails the build instead of landing.
- Enable Dependabot/Renovate or a dependency-review gate.
- Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P8 · Schema migrations
P9 · Domain vs controller coverage
PF3 · Async & latency hygiene
R1 · Type Safety
R10 · Code Duplication
R11 · Import Boundaries
R2 · Cyclomatic Complexity
R3 · Large Files
R4 · Test Coverage
- No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one. (×15) — src/main/adapters/express-router-adapter.ts:1, src/infrastructure/db/repositories/musical-genre-repository.ts:1, src/infrastructure/db/repositories/user-repository.ts: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
- Nothing ultimately consumes this binding: its only referrer is the re-export in src/domain/models/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/domain/models/index.ts in the same commit, or the barrel will import a name that no longer exists. — src/domain/models/musical-genre.ts:1
R8 · Dependency Hygiene
R9 · Circular Imports
- src/main/config/app.ts → src/main/config/index.ts → src/main/config/app.ts — src/main/config/app.ts:4
What to do
- Break each cycle by extracting the shared piece into a module both sides can import.
S1 · Web-Security Posture
- `app.listen(…)` serves plain HTTP on a network address, and nothing in its package enforces HTTPS: no TLS served (`https.createServer`, Fastify `https`, Nest `httpsOptions`), no redirect of plain requests to `https://`, no `Strict-Transport-Security` (helmet sends it by default), and no TLS-terminating proxy configuration committed beside it — so a browser may talk to it in clear text. (−2.0 on this card.) — src/main/server.ts:9
What to do
- Enforce HTTPS on each listed server: serve TLS itself, or redirect plain requests to `https://` and send `Strict-Transport-Security` (`helmet()` does by default) behind the TLS-terminating proxy — and commit that proxy's configuration beside the service. A server only this machine reaches should bind `127.0.0.1`.
X1 · Async correctness
X12 · Unreachable branch
X13 · Undrained process stream
X14 · Bypassable address classification
X15 · Unvalidated length from an untrusted reader
X16 · Unfloored truncation loop
X17 · Uncapped recursion over a caller-supplied document
X18 · Disposal-pattern correctness
X19 · Unrestored process-global state
X21 · Side-effecting pattern guard
X22 · Contradicted release guard
X23 · Unguarded diagnostic materialisation
X24 · Document value interpolated into markup unescaped
X25 · Inert configuration knob
X28 · Index access outside its own emptiness guard
X29 · Per-element action decided by a fixed element
X3 · Exception handling
X30 · Support guard that admits what it rejects
X5 · Nullable reference types
- 0/1 of this repository's type-checking configuration(s) turn on strict null checking (`"strict": true`, or `"strictNullChecks": true`). A configuration that states neither is counted as OFF, because off is tsc's own default; a solution-style one whose `"files"` is empty and whose `"references"` point at other projects is in neither number, because it checks no source itself. Where it is off, `string` admits `null` and `undefined`: passing a value that is null compiles silently and throws on the first property access.
What to do
- The findings name the configuration each number was taken from and, for the assertions, the files that hold them. Turn null checking on where it is off — `"strict": true` in the base tsconfig that the others extend switches `strictNullChecks` on with the rest of the family — and then resolve the assertions rather than adding to them. A `!` on a value the checker could show to be null is a promise the author cannot check from where they are standing, and each one is a `TypeError: Cannot read properties of null` waiting for the path that makes it true; where the value genuinely cannot be null, say something the checker can see instead (narrow it with a test, make the property required, drop the `?`).
Reference — by lens
| Lens | Score | Rating | Impact |
|---|---|---|---|
| Code Health | 74% | Adequate — gated by X5 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Architecture | 69% | Adequate | Acceptable, with room to improve. |
| Maturity | 54% | Adequate — gated by M2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Readiness | 30% | Weak — gated by R4, P1, P2, P3 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Security | 29% | Weak — gated by D30, C1, C2 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Performance | 100% | Exemplary | Strongest area. |
Not evidenced — 6 control(s) we could not find positive evidence for
- C3 Audit Trail — Repo shows no audit-logging mechanism (an audit-log table or model, an ORM write hook that records changes — a TypeORM/MikroORM subscriber, a Sequelize or Mongoose hook, Prisma middleware — or a change-history plugin such as mongoose-history or sequelize-paper-trail) for sensitive changes — absence of evidence is not evidence of a working control. Record an audit trail in code (or document where it lives) so this dimension can be scored.
- C4 Data Retention — Repo shows no data-retention / TTL / cleanup mechanism for personal data — absence of evidence is not evidence of a working control. Define retention periods and a purge/cleanup job (or TTL) in code, or document where retention is enforced, so this dimension can be scored.
- C5 Data-Subject Rights — Repo shows no corroborated data-subject-rights mechanism (erasure / export-portability / consent) tied to a subject id or GDPR vocabulary — absence of evidence is not evidence of a working control. Implement erasure, data export/portability and consent tracking over the subject's records.
- P4 Deployment & Rollback — not evidenced — no deploy/rollback/approval signal in the repo; absence of evidence is not evidence of a manual release
- P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
- P6 Release Hygiene — not evidenced — no changelog, version stamp or semver release tag in the repo
Not included — 54 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: this repository's TypeScript imports no dependency-injection container and defines no container of its own — nothing that both registers and resolves bindings, and nothing that names two lifetimes — so nothing holds one lifetime's instance while handing out another's.
- 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).
- AX5 Architecture & structure — not assessed — architecture style/structure is computed from a project graph (projects, types, module namespaces) that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- 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 — the dev server did not expose a crawlable HTTP endpoint in time — no runtime evidence 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 — bus factor 1 — one contributor carries this repository
- D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
- D22 Internal API Consistency — The exposed public-API surface could not be collected — no C#/VB projects loaded.
- D23 Boundary Type-Coupling — No bounded-context organisation was detected either — neither a context-shaped layout, nor 2+ sibling source directories each declaring an aggregate root, nor 2+ projects each declaring an entity of their own. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
- D24 Comment Value — No inline comments to assess — comment value is not applicable here.
- D25 ADR Conformance — no ADRs to check
- D27 Navigability — symbol resolution incomplete — too few calls resolved to assess navigability
- D31 IaC & Container Security — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
- D32 Data Compliance (PII/GDPR) — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that.
- D34 Knowledge Freshness — every production source file is under the ~100-line size floor — too little code for knowledge freshness to be judged
- D36 Supply-chain Provenance & Signing — No CI/build pipeline found (.github/.forgejo/.gitea workflows, .circleci, .buildkite, .woodpecker, .teamcity, .gitlab-ci.yml, .travis.yml, bitbucket-pipelines.yml, .drone.yml, .cirrus.yml, .woodpecker.yml, appveyor.yml, azure-pipelines*.yml, .pipelines/, .vsts-ci/, .azuredevops/, Jenkinsfile); there is no build to attest provenance for.
- D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
- D39 IL Efficiency — D39 measures the IL emitted by a .NET build; this repository has no .NET solution or project files, so the dimension does not apply.
- D4 Code Duplication — This repository's production source (.ts) is not read by D4's token comparison, which compares .NET source: duplication in it is measured by R10 Code Duplication, the frontend lens's card running the same clone algorithm over the JS/TS token stream. Not scored here — read the R10 card for this repository's duplication.
- D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
- D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
- D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
- D5 Coupling — Not applicable — this npm build ships 1 production module(s), so there is no coupling BETWEEN modules to measure. (Its test and non-production modules are not part of the shipped graph.)
- D6 Cohesion (LCOM4) — Cohesion (LCOM4) was not measured: of the 17 type(s) found, none both holds instance state and has two or more methods whose shared use of it could be read (15 with fewer than two methods, 2 stateless), so LCOM4 is undefined for every type in this repository. Not scored — the metric does not apply here, and this is not a finding about this repository.
- D7 Architectural Integrity — no checkable ADRs, and no project-reference graph for the cycle pass to read — so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
- DM1 Domain Modelling — not scored — this repository shows only 1 of the 3 signals this lens looks for (a Domain/Aggregates/ValueObjects layer)
- 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
- P12 CI test-gate honesty — no CI workflow found
- P7 Outbound HTTP resilience — no outbound HTTP usage detected — no HTTP client call or construction in the JavaScript/TypeScript source (service entry point: src/main/config/app.ts:7 (express()))
- 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.
- SC1 Supply-chain hygiene — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- X10 Duplicated predicate — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- X2 Cancellation propagation — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X20 Mistyped argument guard — This check asks whether an argument guard reports an EMPTY value as a NULL one, which needs a language that throws a null-specific argument exception — .NET's ArgumentNullException, the JVM's NullPointerException, Dart's ArgumentError.notNull. This repository contains none of those languages: the ones it is written in have a single exception for a bad argument, so there is no pair of exceptions to confuse and nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
- X26 Unsynchronised callback handoff — Not applicable: this check looks for a collection written by a callback on one thread while the body waiting on it touches it on another, and in this repository's languages no collection is reachable from two threads at once. TypeScript/JavaScript runs every callback on the one thread that owns its objects: a callback runs only when the body waiting on it has yielded, never alongside it, and a worker thread receives a COPY of what it is sent. A SharedArrayBuffer carries raw bytes, never an Array, Map or Set, so no collection is reachable from two threads at once. Not a gap in the analyzer and not a finding about your code.
- X27 Collection changed while being enumerated — Not applicable: this check looks for a loop whose body adds to or removes from the very collection the loop is walking, invalidating the enumerator it holds, and in this repository's languages that cannot happen. JavaScript and TypeScript have no iterator that a change can invalidate: an `Array` is walked by index against its live length, and a `Map` or `Set` by the ECMAScript specification's live entry list, so a body that adds to, removes from or empties what it walks raises nothing — every loop form (`for…of`, `for…in`, `forEach`, `map`, `filter`, `reduce`, `entries()`) on every built-in collection (`Array`, `Map`, `Set`, plain objects, `URLSearchParams`, `Headers`, `FormData`) runs to completion. Such a loop can still skip an element or never end, which is a different defect and not the one this check asks about. Not a gap in the analyzer and not a finding about your code.
- X32 Type resolved by simple name across every loaded assembly — This check is about how a .NET program searches the assemblies loaded into its process for a type, and this repository contains no .NET source, so there is nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
- X4 Structured logging — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X6 Hand-rolled structured-format parsing — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- X7 Silent fallback defaults — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
Appendix A — Findings (grouped)
Critical — 24 finding(s)
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Import cycle (2 files) src/main/config/app.ts:4
Serious — 32 finding(s)
- No test reaches this file src/main/adapters/express-router-adapter.ts:1
- No test reaches this file src/infrastructure/db/repositories/musical-genre-repository.ts:1
- No test reaches this file src/infrastructure/db/repositories/user-repository.ts:1
- No test reaches this file src/infrastructure/db/prisma-client.ts:1
- No test reaches this file src/main/config/app.ts:1
- No test reaches this file src/main/routes/user-routes.ts:1
- No test reaches this file src/main/config/router.ts:1
- No test reaches this file src/main/routes/musical-genre-routes.ts:1
- No test reaches this file src/main/server.ts:1
- No test reaches this file src/main/factories/controller/create-user-controller.ts:1
- No test reaches this file src/main/factories/controller/get-user-by-mail-controller.ts:1
- No test reaches this file src/main/factories/controller/update-musical-genre-score.ts:1
- No test reaches this file src/main/factories/use-cases/db/db-create-user.ts:1
- No test reaches this file src/main/factories/use-cases/db/db-get-user-by-email.ts:1
- No test reaches this file src/main/factories/use-cases/db/db-update-musical-genre-score.ts:1
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Deprecated: @faker-js/faker package.json:43
- Deprecated: eslint package.json:52
- No data-protection/encryption prisma/schema.prisma:12
- No authorization src/main/config/app.ts:7
- bus factor 1 — one contributor carries this repository
- Both branches are identical — the condition decides nothing src/infrastructure/db/repositories/musical-genre-repository.ts:13
- No CI pipeline
- No structured logging
Minor — 13 finding(s)
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Outdated (npm): @prisma/client package.json:63
- No ADRs found
- No ADRs
- No architecture diagram/doc
- No SAST
- Unused export 'MusicalGenreModel' src/domain/models/musical-genre.ts:1
- No app-layer HTTPS enforcement detected src/main/server.ts:9
- Strict null checking is not enabled everywhere the repository type-checks
Minor — 2 finding(s)
- Outdated (npm): cors
- Outdated (npm): express
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-5a8d830d1a20456193ec054028e4ff97/history.json --exit-code 0 --source . | 0 | artifacts/raw/gitleaks-history.json |
| D28 · Secrets (history) | gitleaks | — | gitleaks detect --no-git --no-banner --config /opt/gitleaks-rules/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-5a8d830d1a20456193ec054028e4ff97/tree.json --exit-code 0 --source . | 0 | artifacts/raw/gitleaks-tree.json |
| D29 · Static Analysis (SAST) | semgrep | — | semgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --config /opt/semgrep-rules/watchdog-sast.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off . | 0 | artifacts/raw/semgrep.json |
| D30 · Dependency Vulnerabilities | trivy | — | trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** . --skip-db-update | 35 | artifacts/raw/trivy-fs.json |
| D31 · IaC & Container Security | trivy | — | trivy: not applicable — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan. | 0 | — |
| D32 · Data Compliance (PII/GDPR) | semgrep | — | semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that. | 0 | — |
| D36 · Supply-chain Provenance & Signing | provenance | — | provenance: not applicable — No CI/build pipeline found (.github/.forgejo/.gitea workflows, .circleci, .buildkite, .woodpecker, .teamcity, .gitlab-ci.yml, .travis.yml, bitbucket-pipelines.yml, .drone.yml, .cirrus.yml, .woodpecker.yml, appveyor.yml, azure-pipelines*.yml, .pipelines/, .vsts-ci/, .azuredevops/, Jenkinsfile); there is no build to attest provenance for. | 0 | — |
| D37 · Vulnerability-disclosure Policy | disclosure | — | disclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed. | 0 | — |
| D40 · Network Egress Confinement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here. | 0 | — |
| D41 · Kernel & Syscall Confinement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here. | 0 | — |
| D42 · Runtime Threat Enforcement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here. | 0 | — |
| D43 · Malicious Dependencies | trivy | — | trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** . --skip-db-update | 0 | artifacts/raw/trivy-fs.json |