{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC7","name":"A11y enforcement","shortDescription":{"text":"A11y enforcement"},"helpUri":"https://codehealth.canine.dev/dimensions/AC7"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX2","name":"Stateful singletons","shortDescription":{"text":"Stateful singletons"},"helpUri":"https://codehealth.canine.dev/dimensions/AX2"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX5","name":"Architecture \u0026 structure","shortDescription":{"text":"Architecture \u0026 structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AX5"},{"id":"AX7","name":"Slice cohesion","shortDescription":{"text":"Slice cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/AX7"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"DM1","name":"Aggregate boundaries","shortDescription":{"text":"Aggregate boundaries"},"helpUri":"https://codehealth.canine.dev/dimensions/DM1"},{"id":"DM10","name":"One transaction, one aggregate","shortDescription":{"text":"One transaction, one aggregate"},"helpUri":"https://codehealth.canine.dev/dimensions/DM10"},{"id":"DM11","name":"Constructible invalid state","shortDescription":{"text":"Constructible invalid state"},"helpUri":"https://codehealth.canine.dev/dimensions/DM11"},{"id":"DM12","name":"Ambient inputs in the domain","shortDescription":{"text":"Ambient inputs in the domain"},"helpUri":"https://codehealth.canine.dev/dimensions/DM12"},{"id":"DM2","name":"Strongly-typed ids","shortDescription":{"text":"Strongly-typed ids"},"helpUri":"https://codehealth.canine.dev/dimensions/DM2"},{"id":"DM4","name":"Rich vs anemic model","shortDescription":{"text":"Rich vs anemic model"},"helpUri":"https://codehealth.canine.dev/dimensions/DM4"},{"id":"DM5","name":"Encapsulated state","shortDescription":{"text":"Encapsulated state"},"helpUri":"https://codehealth.canine.dev/dimensions/DM5"},{"id":"DM6","name":"Domain \u2194 infrastructure boundary","shortDescription":{"text":"Domain \u2194 infrastructure boundary"},"helpUri":"https://codehealth.canine.dev/dimensions/DM6"},{"id":"DM7","name":"Repository granularity","shortDescription":{"text":"Repository granularity"},"helpUri":"https://codehealth.canine.dev/dimensions/DM7"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"aclInteractor.UpdateUser (cyclomatic 24): aclInteractor.UpdateUser has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/usecases/acl/update_user.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3695574663cf3ed593bd147c7f6a0b67c0c8aca1d40fc6ca873ef3a235a2063"}},{"ruleId":"D2","level":"warning","message":{"text":"aclInteractor.UpdateUser (cognitive 47): aclInteractor.UpdateUser has cognitive complexity 47 (threshold 15). Drivers by points: if/else 21 (39 pts), loops 4 (8 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/usecases/acl/update_user.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdea907c94a0a6fb0869babf7e3dd411e384d4d1bd09051422174e01b11b3786"}},{"ruleId":"D2","level":"warning","message":{"text":"aclInteractor.UpdatePermissionByRole (cognitive 24): aclInteractor.UpdatePermissionByRole has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (20 pts), loops 2 (4 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/usecases/acl/update_permission_by_role.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"e99804768a50d501271d1ab26e834d728c97ce40ec2528e833a80da5911f1559"}},{"ruleId":"D2","level":"warning","message":{"text":"notificationInteractor.SendPushJobs (cognitive 20): notificationInteractor.SendPushJobs has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (18 pts), loops 1 (2 pts) (nesting depth added 8). Most of this is not in the body itself: 5 of the 20 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 60, 80, 45). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/notification/internal/usecases/notification/send_push_jobs.go"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"1997eb0201da9323e7526ef1044d841899af7938d95821c27b6c53ebc97a5588"}},{"ruleId":"D2","level":"warning","message":{"text":"authInteractor.CreateOrUpdate (cognitive 18): authInteractor.CreateOrUpdate has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (18 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/usecases/auth/create_or_update.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"3933a04e63b1f1938d1e11e8fe1b6a9cc1fb89e00c1583540ecc7b2fd97517de"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (38 shared lines): services/auth/internal/usecases/acl/update_permission_by_role.go:13-93 | services/auth/internal/usecases/acl/update_user.go:13-158 \u2014 These two members are variants of one another: 38 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/usecases/acl/update_permission_by_role.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"9085e5e0b10c7dc7dcd5498a67d29e212f2c736966c1698347efe1106ccfc22e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (16 members, 50\u002B identical tokens): services/auth/internal/delivery/http/delivery/acl/update_permission_by_role.go:17-52 | services/auth/internal/delivery/http/delivery/acl/update_user.go:17-53 | services/auth/internal/delivery/http/delivery/auth/login.go:16-49 | services/auth/internal/delivery/http/delivery/auth/password_email.go:14-37 | services/auth/internal/delivery/http/delivery/auth/password_reset.go:15-43 | services/auth/internal/delivery/http/delivery/auth/register.go:15-46 | services/auth/internal/delivery/http/delivery/auth/send_email_verified.go:14-37 | services/auth/internal/delivery/http/delivery/permission/create.go:15-45 | services/auth/internal/delivery/http/delivery/permission/update.go:18-52 | services/auth/internal/delivery/http/delivery/role/create.go:15-45 | services/auth/internal/delivery/http/delivery/role/update.go:18-53 | services/notification/internal/delivery/http/delivery/device_token/create.go:16-51 | services/notification/internal/delivery/http/delivery/template/create.go:16-50 | services/user/internal/delivery/http/delivery/profile/update.go:17-58 | services/user/internal/delivery/http/delivery/user/create.go:16-48 | services/user/internal/delivery/http/delivery/user/update.go:18-57 \u2014 These 16 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 16 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 16 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/delivery/http/delivery/acl/update_permission_by_role.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc21449e878abc587a9542aab4fa2c88256776aa24c7fbf9b3dc4fb15fda88f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): services/auth/internal/config/database.go:14-43 | services/notification/internal/config/database.go:14-43 | services/storage/internal/config/database.go:14-43 | services/user/internal/config/database.go:14-43 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/config/database.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7da02aebc282244c39636f872b4684a1391d926a6c316d364cc1a91757c63a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): services/auth/internal/delivery/http/delivery/acl/get_all_permission_by_role.go:14-33 | services/auth/internal/delivery/http/delivery/permission/find.go:14-33 | services/auth/internal/delivery/http/delivery/role/find.go:14-33 | services/user/internal/delivery/http/delivery/user/find.go:14-33 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/delivery/http/delivery/acl/get_all_permission_by_role.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"63d823e9d1a55b324660d0f1f850f7f1a270d989315018591576417020cf6338"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): services/auth/internal/repositories/mongo/permission_repository.go:75-103 | services/auth/internal/repositories/mongo/role_repository.go:75-103 | services/notification/internal/repositories/mongo/notification_repository.go:34-65 | services/user/internal/repositories/mongo/user_repository.go:60-88 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/repositories/mongo/permission_repository.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bbdd377de3d70cde7fd0cc08ff4014187a53cd17906afbbc986e22e303771a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): services/storage/internal/delivery/grpc_server/delete_cloud_approve.go:14-29 | services/storage/internal/delivery/grpc_server/update_cloud_approve.go:14-29 | services/storage/internal/delivery/rabbitmq_server/consumer/cloud.go:15-37 | services/storage/internal/delivery/rabbitmq_server/consumer/cloud.go:39-61 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/storage/internal/delivery/grpc_server/delete_cloud_approve.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a7212cdeac8ab9c5d8fb2eb757c81ae66e834e9fd0a2269baaaeea5803419bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): services/auth/internal/factories/init.go:31-68 | services/user/internal/factories/init.go:31-68 \u2014 before extracting anything, compare \u0060services/auth/internal/factories/init.go\u0060 and \u0060services/user/internal/factories/init.go\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060services/auth/internal/factories/init.go:31\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Check import visibility before settling on that home: \u0060services/auth/internal/factories/init.go\u0060, \u0060services/user/internal/factories/init.go\u0060 sit under a restricted \u0060internal\u0060 directory, which only code inside its own subtree is permitted to import from \u2014 so it is reachable from some of these sites and not from others, and being able to see the copies is not the same as being allowed to share them. The home has to be somewhere every one of these sites is permitted to import from; if there is no such place, that restriction may be exactly why the copies are separate."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/factories/init.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f39d2aad5f944fc419b36414c8f66c832a5e0b2798139e26e948dba211315dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 4): services/auth/internal/config/database.go:15-43 | services/notification/internal/config/database.go:15-43 | services/storage/internal/config/database.go:15-43 | services/user/internal/config/database.go:15-43 \u2014 before extracting anything, compare \u0060services/auth/internal/config/database.go\u0060 and \u0060services/notification/internal/config/database.go\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Check import visibility before settling on that home: \u0060services/auth/internal/config/database.go\u0060, \u0060services/notification/internal/config/database.go\u0060, \u0060services/storage/internal/config/database.go\u0060 sit under a restricted \u0060internal\u0060 directory, which only code inside its own subtree is permitted to import from \u2014 so it is reachable from some of these sites and not from others, and being able to see the copies is not the same as being allowed to share them. The home has to be somewhere every one of these sites is permitted to import from; if there is no such place, that restriction may be exactly why the copies are separate."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/config/database.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"c67ef627baa8d30eaa1af36df2f090aa942079a5e71672843904414c54dad0ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): services/auth/internal/usecases/acl/access_user_login.go:13-33 | services/auth/internal/usecases/acl/get_all_user.go:13-33 \u2014 before extracting anything, compare \u0060services/auth/internal/usecases/acl/access_user_login.go\u0060 and \u0060services/auth/internal/usecases/acl/get_all_user.go\u0060 as WHOLE FILES: 94% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/usecases/acl/access_user_login.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"14bafe8d0617468fae775064851527a782e034b7e5f509b3d630fac3f36206e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): services/user/internal/usecases/user/create.go:14-34 | services/user/internal/usecases/user/create_auth.go:15-35 \u2014 before extracting anything, compare \u0060services/user/internal/usecases/user/create.go\u0060 and \u0060services/user/internal/usecases/user/create_auth.go\u0060 as WHOLE FILES: 93% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/user/internal/usecases/user/create.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b2236e5d7192adb48f7478c7620b713f5e46b5e7a2a8a6bd5f60a26ab1988d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): services/user/internal/usecases/user/create.go:28-48 | services/user/internal/usecases/user/update.go:25-45 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/user/internal/usecases/user/create.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"86ee7600526d2a6b0ca465c875b3353967578414ebcb49ca2dbe3ea512b382be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): services/auth/internal/delivery/http/delivery/acl/update_permission_by_role.go:18-36 | services/auth/internal/delivery/http/delivery/acl/update_user.go:18-36 \u2014 before extracting anything, compare \u0060services/auth/internal/delivery/http/delivery/acl/update_permission_by_role.go\u0060 and \u0060services/auth/internal/delivery/http/delivery/acl/update_user.go\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060services/auth/internal/delivery/http/delivery/acl/update_permission_by_role.go:18\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/delivery/http/delivery/acl/update_permission_by_role.go"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5edce1829b41688d78ed519e1b24445fd20ce45a0c595661ad778103e27dd54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): services/user/internal/usecases/profile/update.go:13-31 | services/user/internal/usecases/user/update.go:13-31 \u2014 \u0060services/user/internal/usecases/profile/update.go\u0060 and \u0060services/user/internal/usecases/user/update.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 2 separate duplicated blocks between them, totalling at least 32 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/user/internal/usecases/profile/update.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"80d05d6f74177497a549452ed0b8befc726677c2bbfeff9757343f65f63adf9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): services/auth/internal/repositories/mongo/permission_repository.go:76-93 | services/auth/internal/repositories/mongo/role_repository.go:76-93 | services/user/internal/repositories/mongo/user_repository.go:61-78 \u2014 before extracting anything, compare \u0060services/auth/internal/repositories/mongo/permission_repository.go\u0060 and \u0060services/auth/internal/repositories/mongo/role_repository.go\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. Check import visibility before settling on that home: \u0060services/auth/internal/repositories/mongo/permission_repository.go\u0060, \u0060services/auth/internal/repositories/mongo/role_repository.go\u0060, \u0060services/user/internal/repositories/mongo/user_repository.go\u0060 sit under a restricted \u0060internal\u0060 directory, which only code inside its own subtree is permitted to import from \u2014 so it is reachable from some of these sites and not from others, and being able to see the copies is not the same as being allowed to share them. The home has to be somewhere every one of these sites is permitted to import from; if there is no such place, that restriction may be exactly why the copies are separate."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/repositories/mongo/permission_repository.go"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"78f6708a6ad0fdfd869dadeadbc755600dce3c8a3d1cd5477839002d24b25551"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): services/auth/domain/entities/permission.go:41-58 | services/auth/domain/entities/role.go:41-58 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060services/auth/domain/entities/permission.go:41\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/domain/entities/permission.go"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"abbc58189f8ef4466c35b5038a9ac19383c97d9a701443dff5134806bd912aab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): services/auth/internal/usecases/acl/update_permission_by_role.go:29-46 | services/auth/internal/usecases/acl/update_user.go:39-56 \u2014 before extracting anything, compare \u0060services/auth/internal/usecases/acl/update_permission_by_role.go\u0060 and \u0060services/auth/internal/usecases/acl/update_user.go\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060services/auth/internal/usecases/acl/update_permission_by_role.go:29\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/usecases/acl/update_permission_by_role.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"a27c5df4a0869a94fcbbed9433bd4c60a7336aeada41201d95618e9ad20e5e4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): services/auth/internal/usecases/auth/create_or_update.go:47-64 | services/auth/internal/usecases/auth/register.go:68-85 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060services/auth/internal/usecases/auth/create_or_update.go:47\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/usecases/auth/create_or_update.go"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"37c7523e126135e3466eb113e450b6b596e45be3b5deba0932ba73710528465f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): services/notification/internal/services/firebase_google.go:38-54 | services/notification/internal/services/firebase_google.go:91-107 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060services/notification/internal/services/firebase_google.go:38\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/notification/internal/services/firebase_google.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc76a815bd1b383b48c0692929a0935c5e8a12608d31d960258b94e087d2c201"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): services/auth/internal/usecases/acl/access_user_login.go:36-51 | services/auth/internal/usecases/acl/get_all_user.go:36-51 \u2014 before extracting anything, compare \u0060services/auth/internal/usecases/acl/access_user_login.go\u0060 and \u0060services/auth/internal/usecases/acl/get_all_user.go\u0060 as WHOLE FILES: 94% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060services/auth/internal/usecases/acl/access_user_login.go:36\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/usecases/acl/access_user_login.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"e69be74d7dd4fd0b332673628b66731da2eb97f7cfe70a71ddce7b540f005ce7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): services/auth/internal/delivery/http/delivery/auth/password_email.go:15-29 | services/auth/internal/delivery/http/delivery/auth/send_email_verified.go:15-29 \u2014 before extracting anything, compare \u0060services/auth/internal/delivery/http/delivery/auth/password_email.go\u0060 and \u0060services/auth/internal/delivery/http/delivery/auth/send_email_verified.go\u0060 as WHOLE FILES: 91% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/delivery/http/delivery/auth/password_email.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"a74cf76dc26eae31c428815dfdc9a7539387879e51fff3d8fb0ef1f2e050e8e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): services/auth/internal/repositories/mongo/permission_repository.go:132-146 | services/auth/internal/repositories/mongo/permission_repository.go:162-174 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060services/auth/internal/repositories/mongo/permission_repository.go:132\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/repositories/mongo/permission_repository.go"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e00167a860b60882bab6203e372604efae713c62a8b2debbf66e99ff120a2aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): services/notification/domain/entities/notification.go:64-78 | services/notification/domain/entities/template.go:61-75 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060services/notification/domain/entities/notification.go:64\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/notification/domain/entities/notification.go"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"94fd78a5f0c27598acbf4df4d0d5d593b86572c0b5854cbbbe8da0c1bbcc9cc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): services/user/internal/delivery/http/delivery/profile/update.go:34-48 | services/user/internal/delivery/http/delivery/user/update.go:30-44 \u2014 \u0060services/user/internal/delivery/http/delivery/profile/update.go\u0060 and \u0060services/user/internal/delivery/http/delivery/user/update.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 54 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060services/user/internal/delivery/http/delivery/profile/update.go:34\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/user/internal/delivery/http/delivery/profile/update.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"f79fe2e9904b18b3e0f1b78bda22e6485ff85914998a6a59feed12c5b0402a79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): services/auth/internal/delivery/grpc_client/handler.go:11-23 | services/notification/internal/delivery/grpc_client/handler.go:11-23 \u2014 before extracting anything, compare \u0060services/auth/internal/delivery/grpc_client/handler.go\u0060 and \u0060services/notification/internal/delivery/grpc_client/handler.go\u0060 as WHOLE FILES: 87% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Check import visibility before settling on that home: \u0060services/auth/internal/delivery/grpc_client/handler.go\u0060, \u0060services/notification/internal/delivery/grpc_client/handler.go\u0060 sit under a restricted \u0060internal\u0060 directory, which only code inside its own subtree is permitted to import from \u2014 so it is reachable from some of these sites and not from others, and being able to see the copies is not the same as being allowed to share them. The home has to be somewhere every one of these sites is permitted to import from; if there is no such place, that restriction may be exactly why the copies are separate."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/delivery/grpc_client/handler.go"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"953d8c1128ea5f33a22d02f527e7bacef8a043bee6125fcab10dbde08f8b53bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): services/user/internal/usecases/profile/find.go:13-25 | services/user/internal/usecases/user/find.go:13-25 \u2014 \u0060services/user/internal/usecases/profile/find.go\u0060 and \u0060services/user/internal/usecases/user/find.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 1 separate duplicated blocks between them, totalling at least 13 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/user/internal/usecases/profile/find.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f9eef55d3ff8e5cab377700ef8d276d2fa48d6e28711b6aea5969ae79a8c41e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): services/user/internal/usecases/profile/update.go:29-41 | services/user/internal/usecases/user/update.go:43-55 \u2014 \u0060services/user/internal/usecases/profile/update.go\u0060 and \u0060services/user/internal/usecases/user/update.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 2 separate duplicated blocks between them, totalling at least 32 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060services/user/internal/usecases/profile/update.go:29\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/user/internal/usecases/profile/update.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a8fc8ea9714921210c6c9970dbfc5097fdfaaf353892496b7cd7c8a6fed0ab9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): services/auth/internal/factories/init.go:31-42 | services/notification/internal/factories/init.go:31-42 | services/user/internal/factories/init.go:31-42 \u2014 before extracting anything, compare \u0060services/auth/internal/factories/init.go\u0060 and \u0060services/user/internal/factories/init.go\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060services/auth/internal/factories/init.go:31\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Check import visibility before settling on that home: \u0060services/auth/internal/factories/init.go\u0060, \u0060services/notification/internal/factories/init.go\u0060, \u0060services/user/internal/factories/init.go\u0060 sit under a restricted \u0060internal\u0060 directory, which only code inside its own subtree is permitted to import from \u2014 so it is reachable from some of these sites and not from others, and being able to see the copies is not the same as being allowed to share them. The home has to be somewhere every one of these sites is permitted to import from; if there is no such place, that restriction may be exactly why the copies are separate."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/factories/init.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"28c497db9194052865f34441f75c7180179b6a44e9f69de31c41ecf3d4566bc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): services/auth/internal/usecases/auth/password_email.go:39-50 | services/auth/internal/usecases/auth/send_email_verified.go:49-60 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060services/auth/internal/usecases/auth/password_email.go:39\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/usecases/auth/password_email.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae0659d62f16ba57ed17f43d06bc46ff10b93b82fcd50728436883648fa66b31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): services/auth/internal/repositories/mongo/permission_repository.go:83-93 | services/auth/internal/repositories/mongo/role_repository.go:83-93 | services/notification/internal/repositories/mongo/notification_repository.go:45-55 | services/user/internal/repositories/mongo/user_repository.go:68-78 \u2014 before extracting anything, compare \u0060services/auth/internal/repositories/mongo/permission_repository.go\u0060 and \u0060services/auth/internal/repositories/mongo/role_repository.go\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. Check import visibility before settling on that home: \u0060services/auth/internal/repositories/mongo/permission_repository.go\u0060, \u0060services/auth/internal/repositories/mongo/role_repository.go\u0060, \u0060services/notification/internal/repositories/mongo/notification_repository.go\u0060 sit under a restricted \u0060internal\u0060 directory, which only code inside its own subtree is permitted to import from \u2014 so it is reachable from some of these sites and not from others, and being able to see the copies is not the same as being allowed to share them. The home has to be somewhere every one of these sites is permitted to import from; if there is no such place, that restriction may be exactly why the copies are separate."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/repositories/mongo/permission_repository.go"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3d763e63dc08c6110d0aee27f0116f319c8001dce80cc97365f14c99de4ea63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 3): services/auth/internal/delivery/http/delivery/role/update.go:24-34 | services/user/internal/delivery/http/delivery/profile/update.go:30-38 | services/user/internal/delivery/http/delivery/user/update.go:24-34 \u2014 \u0060services/user/internal/delivery/http/delivery/profile/update.go\u0060 and \u0060services/user/internal/delivery/http/delivery/user/update.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 54 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060services/auth/internal/delivery/http/delivery/role/update.go:24\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Check import visibility before settling on that home: \u0060services/auth/internal/delivery/http/delivery/role/update.go\u0060, \u0060services/user/internal/delivery/http/delivery/profile/update.go\u0060, \u0060services/user/internal/delivery/http/delivery/user/update.go\u0060 sit under a restricted \u0060internal\u0060 directory, which only code inside its own subtree is permitted to import from \u2014 so it is reachable from some of these sites and not from others, and being able to see the copies is not the same as being allowed to share them. The home has to be somewhere every one of these sites is permitted to import from; if there is no such place, that restriction may be exactly why the copies are separate."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/delivery/http/delivery/role/update.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b3343890f981b8464c91040a7ffc8ddc0241e8ec9a4660a4e3c5b085f98be2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): services/notification/internal/services/firebase_google.go:57-67 | services/notification/internal/services/firebase_google.go:114-124 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060services/notification/internal/services/firebase_google.go:57\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/notification/internal/services/firebase_google.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d5f2cd033f9c05388c3a6b617fbed500f31afbe05a338caf3ebbeb95c5b60a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): services/storage/internal/delivery/rabbitmq_server/consumer/cloud.go:20-30 | services/storage/internal/delivery/rabbitmq_server/consumer/cloud.go:44-54 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060services/storage/internal/delivery/rabbitmq_server/consumer/cloud.go:20\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/storage/internal/delivery/rabbitmq_server/consumer/cloud.go"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"446f1b792e613673f157d8771b771fc186d7107a287ba3859ea6524cdaf5632b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 12): services/auth/internal/delivery/http/delivery/acl/update_permission_by_role.go:30-39 | services/auth/internal/delivery/http/delivery/acl/update_user.go:30-39 | services/auth/internal/delivery/http/delivery/auth/login.go:22-31 | services/auth/internal/delivery/http/delivery/auth/password_email.go:20-29 | services/auth/internal/delivery/http/delivery/auth/password_reset.go:21-30 | services/auth/internal/delivery/http/delivery/auth/register.go:21-30 | services/auth/internal/delivery/http/delivery/auth/send_email_verified.go:20-29 | services/auth/internal/delivery/http/delivery/permission/create.go:21-30 | services/auth/internal/delivery/http/delivery/role/create.go:21-30 | services/auth/internal/delivery/http/delivery/role/update.go:28-37 | services/user/internal/delivery/http/delivery/profile/update.go:32-41 | services/user/internal/delivery/http/delivery/user/update.go:28-37 \u2014 before extracting anything, compare \u0060services/auth/internal/delivery/http/delivery/acl/update_permission_by_role.go\u0060 and \u0060services/auth/internal/delivery/http/delivery/acl/update_user.go\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Check import visibility before settling on that home: \u0060services/auth/internal/delivery/http/delivery/acl/update_permission_by_role.go\u0060, \u0060services/auth/internal/delivery/http/delivery/acl/update_user.go\u0060, \u0060services/auth/internal/delivery/http/delivery/auth/login.go\u0060 sit under a restricted \u0060internal\u0060 directory, which only code inside its own subtree is permitted to import from \u2014 so it is reachable from some of these sites and not from others, and being able to see the copies is not the same as being allowed to share them. The home has to be somewhere every one of these sites is permitted to import from; if there is no such place, that restriction may be exactly why the copies are separate. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060services/user/internal/delivery/http/delivery/profile/update.go:29\u0060 calls \u0060StringToID\u0060 and \u0060services/auth/internal/delivery/http/delivery/acl/update_permission_by_role.go:28\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/delivery/http/delivery/acl/update_permission_by_role.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"966f5a361bcdac81bb16fff129467fec1530463d2cc6b1a766a51b10103ce243"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): services/auth/internal/delivery/http/delivery/acl/get_all_permission_by_role.go:15-24 | services/auth/internal/delivery/http/delivery/permission/find.go:15-24 | services/auth/internal/delivery/http/delivery/role/find.go:15-24 | services/user/internal/delivery/http/delivery/user/find.go:15-24 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Check import visibility before settling on that home: \u0060services/auth/internal/delivery/http/delivery/acl/get_all_permission_by_role.go\u0060, \u0060services/auth/internal/delivery/http/delivery/permission/find.go\u0060, \u0060services/auth/internal/delivery/http/delivery/role/find.go\u0060 sit under a restricted \u0060internal\u0060 directory, which only code inside its own subtree is permitted to import from \u2014 so it is reachable from some of these sites and not from others, and being able to see the copies is not the same as being allowed to share them. The home has to be somewhere every one of these sites is permitted to import from; if there is no such place, that restriction may be exactly why the copies are separate."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/delivery/http/delivery/acl/get_all_permission_by_role.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"03b48ff46f315353a5f9360079454458ac88c94f4dacad4872f7406ddfdcbd47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): services/user/internal/delivery/http/delivery/profile/update.go:34-43 | services/user/internal/delivery/http/delivery/user/create.go:23-32 | services/user/internal/delivery/http/delivery/user/update.go:30-39 \u2014 \u0060services/user/internal/delivery/http/delivery/profile/update.go\u0060 and \u0060services/user/internal/delivery/http/delivery/user/update.go\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 54 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060services/user/internal/delivery/http/delivery/profile/update.go:34\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/user/internal/delivery/http/delivery/profile/update.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"592d5d58a73b6a7f94f867d0411d70f326d0e57ca062fa8fb774d4b2b081a3fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): services/auth/cmd/main.go:52-61 | services/notification/cmd/main.go:47-56 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060services/auth/cmd/main.go:52\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/cmd/main.go"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"72e625c2bf19cfaeadf73a907a4e3b0e35bb6ca841a16d5255e326144af54255"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): services/auth/internal/delivery/http/delivery/permission/create.go:23-32 | services/auth/internal/delivery/http/delivery/permission/update.go:29-38 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060services/auth/internal/delivery/http/delivery/permission/create.go:23\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/delivery/http/delivery/permission/create.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"00dcd2337749f25e1f53bcdc564c95971830b51c4fb51516c9c311e15da1b0e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): services/storage/internal/delivery/grpc_server/delete_cloud_approve.go:15-24 | services/storage/internal/delivery/rabbitmq_server/consumer/cloud.go:23-32 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060services/storage/internal/delivery/grpc_server/delete_cloud_approve.go:15\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/storage/internal/delivery/grpc_server/delete_cloud_approve.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfeff88b1f169efc7a442f8f3f7a6539fa10ba54e076e706164fb8b0e4f50007"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): services/storage/internal/delivery/grpc_server/update_cloud_approve.go:15-24 | services/storage/internal/delivery/rabbitmq_server/consumer/cloud.go:47-56 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060services/storage/internal/delivery/grpc_server/update_cloud_approve.go:15\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/storage/internal/delivery/grpc_server/update_cloud_approve.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"c439a2842657303e18cb3524ec783488769d4c8063eec0c04094181b8e639885"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): services/auth/internal/delivery/http/delivery/permission/update.go:28-36 | services/notification/internal/delivery/http/delivery/device_token/create.go:28-36 | services/notification/internal/delivery/http/delivery/template/create.go:22-30 | services/user/internal/delivery/http/delivery/user/create.go:22-30 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Check import visibility before settling on that home: \u0060services/auth/internal/delivery/http/delivery/permission/update.go\u0060, \u0060services/notification/internal/delivery/http/delivery/device_token/create.go\u0060, \u0060services/notification/internal/delivery/http/delivery/template/create.go\u0060 sit under a restricted \u0060internal\u0060 directory, which only code inside its own subtree is permitted to import from \u2014 so it is reachable from some of these sites and not from others, and being able to see the copies is not the same as being allowed to share them. The home has to be somewhere every one of these sites is permitted to import from; if there is no such place, that restriction may be exactly why the copies are separate."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/delivery/http/delivery/permission/update.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"314d84737aff556b5426b650491b7a2e809e5c252593117ca43a444abb12acc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): services/auth/internal/usecases/permission/update.go:16-24 | services/auth/internal/usecases/role/update.go:16-24 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060services/auth/internal/usecases/permission/update.go:16\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/usecases/permission/update.go"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"b032e77d6b832d6dced03898b0511479efd7acc193f33592327324f19583f1a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 13): services/auth/internal/delivery/http/delivery/acl/update_permission_by_role.go:32-39 | services/auth/internal/delivery/http/delivery/acl/update_user.go:32-39 | services/auth/internal/delivery/http/delivery/auth/login.go:24-31 | services/auth/internal/delivery/http/delivery/auth/password_reset.go:23-30 | services/auth/internal/delivery/http/delivery/auth/register.go:23-30 | services/auth/internal/delivery/http/delivery/permission/create.go:23-30 | services/auth/internal/delivery/http/delivery/permission/update.go:29-36 | services/auth/internal/delivery/http/delivery/role/create.go:23-30 | services/auth/internal/delivery/http/delivery/role/update.go:30-37 | services/notification/internal/delivery/http/delivery/device_token/create.go:29-36 | services/user/internal/delivery/http/delivery/profile/update.go:34-41 | services/user/internal/delivery/http/delivery/user/create.go:23-30 | services/user/internal/delivery/http/delivery/user/update.go:30-37 \u2014 before extracting anything, compare \u0060services/auth/internal/delivery/http/delivery/acl/update_permission_by_role.go\u0060 and \u0060services/auth/internal/delivery/http/delivery/acl/update_user.go\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060services/auth/internal/delivery/http/delivery/acl/update_permission_by_role.go:32\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Check import visibility before settling on that home: \u0060services/auth/internal/delivery/http/delivery/acl/update_permission_by_role.go\u0060, \u0060services/auth/internal/delivery/http/delivery/acl/update_user.go\u0060, \u0060services/auth/internal/delivery/http/delivery/auth/login.go\u0060 sit under a restricted \u0060internal\u0060 directory, which only code inside its own subtree is permitted to import from \u2014 so it is reachable from some of these sites and not from others, and being able to see the copies is not the same as being allowed to share them. The home has to be somewhere every one of these sites is permitted to import from; if there is no such place, that restriction may be exactly why the copies are separate."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/delivery/http/delivery/acl/update_permission_by_role.go"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f46802975e20ec396c5a4e3388a11f40d1fc985f21928c0a7516dcae6d0424a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 3): services/auth/internal/delivery/http/delivery/permission/get_all.go:14-42 | services/auth/internal/delivery/http/delivery/role/get_all.go:14-42 | services/user/internal/delivery/http/delivery/user/get_all.go:14-42 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Check import visibility before settling on that home: \u0060services/auth/internal/delivery/http/delivery/permission/get_all.go\u0060, \u0060services/auth/internal/delivery/http/delivery/role/get_all.go\u0060, \u0060services/user/internal/delivery/http/delivery/user/get_all.go\u0060 sit under a restricted \u0060internal\u0060 directory, which only code inside its own subtree is permitted to import from \u2014 so it is reachable from some of these sites and not from others, and being able to see the copies is not the same as being allowed to share them. The home has to be somewhere every one of these sites is permitted to import from; if there is no such place, that restriction may be exactly why the copies are separate."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/delivery/http/delivery/permission/get_all.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff1120040cab74802c518bd45ef441aac29ce1ba0924f874c747cc7118f4d6d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 3): services/auth/internal/usecases/permission/create.go:12-42 | services/auth/internal/usecases/role/create.go:12-42 | services/notification/internal/usecases/template/create.go:12-42 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Check import visibility before settling on that home: \u0060services/auth/internal/usecases/permission/create.go\u0060, \u0060services/auth/internal/usecases/role/create.go\u0060, \u0060services/notification/internal/usecases/template/create.go\u0060 sit under a restricted \u0060internal\u0060 directory, which only code inside its own subtree is permitted to import from \u2014 so it is reachable from some of these sites and not from others, and being able to see the copies is not the same as being allowed to share them. The home has to be somewhere every one of these sites is permitted to import from; if there is no such place, that restriction may be exactly why the copies are separate."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/usecases/permission/create.go"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f5aebd800253db77986f6f88adb88ee799184303040a4d6e70927e4905b051b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): services/auth/cmd/main.go:83-90 | services/notification/cmd/main.go:71-78 | services/storage/cmd/main.go:71-78 \u2014 before extracting anything, compare \u0060services/notification/cmd/main.go\u0060 and \u0060services/storage/cmd/main.go\u0060 as WHOLE FILES: 82% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/cmd/main.go"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead52287f5fdaab63cb5eaf7f5f5b15ea9a39dba05ce937dd4f0adc32f0c35fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): services/auth/domain/entities/permission.go:60-69 | services/auth/domain/entities/role.go:60-69 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/domain/entities/permission.go"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae4f68a461fec6910707c284f258f7f8b10738f3074dd9bfc46e4123c3ef977"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): services/auth/internal/factories/init.go:77-87 | services/storage/internal/factories/init.go:72-82 | services/user/internal/factories/init.go:77-87 \u2014 before extracting anything, compare \u0060services/auth/internal/factories/init.go\u0060 and \u0060services/user/internal/factories/init.go\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Check import visibility before settling on that home: \u0060services/auth/internal/factories/init.go\u0060, \u0060services/storage/internal/factories/init.go\u0060, \u0060services/user/internal/factories/init.go\u0060 sit under a restricted \u0060internal\u0060 directory, which only code inside its own subtree is permitted to import from \u2014 so it is reachable from some of these sites and not from others, and being able to see the copies is not the same as being allowed to share them. The home has to be somewhere every one of these sites is permitted to import from; if there is no such place, that restriction may be exactly why the copies are separate."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/factories/init.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a569aa0d18844b945c47c6c0177f8fa155b4046878cf5363c07e6934a848174"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): services/auth/domain/entities/permission_role.go:21-32 | services/auth/domain/entities/permission_user.go:21-32 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/domain/entities/permission_role.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"17eb95ee4018ced208de13c40274070e610a3cd344cff531d068ef757b6bc687"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): services/auth/internal/delivery/http/response/permission.go:19-28 | services/auth/internal/delivery/http/response/role.go:19-28 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/delivery/http/response/permission.go"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2928793cf2c6811a593c6384b54b66abf8b7bf8c727bec6cc31f663c7c5750e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 8): services/auth/internal/repositories/mongo/auth_repository.go:26-34 | services/auth/internal/repositories/mongo/permission_repository.go:26-34 | services/auth/internal/repositories/mongo/role_repository.go:26-34 | services/notification/internal/repositories/mongo/device_token_repository.go:24-32 | services/notification/internal/repositories/mongo/notification_repository.go:24-32 | services/notification/internal/repositories/mongo/template_repository.go:25-33 | services/storage/internal/repositories/mongo/cloud_repository.go:27-35 | services/user/internal/repositories/mongo/user_repository.go:26-34 \u2014 before extracting anything, compare \u0060services/auth/internal/repositories/mongo/permission_repository.go\u0060 and \u0060services/auth/internal/repositories/mongo/role_repository.go\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Check import visibility before settling on that home: \u0060services/auth/internal/repositories/mongo/auth_repository.go\u0060, \u0060services/auth/internal/repositories/mongo/permission_repository.go\u0060, \u0060services/auth/internal/repositories/mongo/role_repository.go\u0060 sit under a restricted \u0060internal\u0060 directory, which only code inside its own subtree is permitted to import from \u2014 so it is reachable from some of these sites and not from others, and being able to see the copies is not the same as being allowed to share them. The home has to be somewhere every one of these sites is permitted to import from; if there is no such place, that restriction may be exactly why the copies are separate."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/repositories/mongo/auth_repository.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"390e9ef97af98e1b065b4b933b558bff4b5f93fa1fe480b0cb44475b5ea8752c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): services/auth/internal/repositories/mongo/auth_repository.go:72-82 | services/auth/internal/repositories/mongo/permission_repository.go:176-186 | services/auth/internal/repositories/mongo/role_repository.go:131-141 | services/notification/internal/repositories/mongo/template_repository.go:59-69 | services/storage/internal/repositories/mongo/cloud_repository.go:98-108 | services/user/internal/repositories/mongo/user_repository.go:90-100 \u2014 before extracting anything, compare \u0060services/auth/internal/repositories/mongo/permission_repository.go\u0060 and \u0060services/auth/internal/repositories/mongo/role_repository.go\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Check import visibility before settling on that home: \u0060services/auth/internal/repositories/mongo/auth_repository.go\u0060, \u0060services/auth/internal/repositories/mongo/permission_repository.go\u0060, \u0060services/auth/internal/repositories/mongo/role_repository.go\u0060 sit under a restricted \u0060internal\u0060 directory, which only code inside its own subtree is permitted to import from \u2014 so it is reachable from some of these sites and not from others, and being able to see the copies is not the same as being allowed to share them. The home has to be somewhere every one of these sites is permitted to import from; if there is no such place, that restriction may be exactly why the copies are separate."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/repositories/mongo/auth_repository.go"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"51470fcd7317dfd80bf1a9e0e864b28e0d24f0edbed2bfbf0233725a2f8349c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 11): services/auth/internal/repositories/mongo/mappers/auth.go:34-40 | services/auth/internal/repositories/mongo/mappers/permission.go:32-38 | services/auth/internal/repositories/mongo/mappers/permission_role.go:30-36 | services/auth/internal/repositories/mongo/mappers/permission_user.go:30-36 | services/auth/internal/repositories/mongo/mappers/role.go:32-38 | services/auth/internal/repositories/mongo/mappers/role_user.go:30-36 | services/notification/internal/repositories/mongo/mappers/device_token.go:32-38 | services/notification/internal/repositories/mongo/mappers/notification.go:32-38 | services/notification/internal/repositories/mongo/mappers/template.go:30-36 | services/storage/internal/repositories/mongo/mappers/cloud.go:34-40 | services/user/internal/repositories/mongo/mappers/user.go:36-42 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 11 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 11 times. Check import visibility before settling on that home: \u0060services/auth/internal/repositories/mongo/mappers/auth.go\u0060, \u0060services/auth/internal/repositories/mongo/mappers/permission.go\u0060, \u0060services/auth/internal/repositories/mongo/mappers/permission_role.go\u0060 sit under a restricted \u0060internal\u0060 directory, which only code inside its own subtree is permitted to import from \u2014 so it is reachable from some of these sites and not from others, and being able to see the copies is not the same as being allowed to share them. The home has to be somewhere every one of these sites is permitted to import from; if there is no such place, that restriction may be exactly why the copies are separate."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/repositories/mongo/mappers/auth.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3121f45897c3d98a84988fc779dbc594a70f6551e2614e0ef945d6c5a355f11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): services/auth/internal/repositories/mongo/mappers/permission.go:9-18 | services/auth/internal/repositories/mongo/mappers/role.go:9-18 | services/notification/internal/repositories/mongo/mappers/device_token.go:9-18 | services/notification/internal/repositories/mongo/mappers/notification.go:9-18 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Check import visibility before settling on that home: \u0060services/auth/internal/repositories/mongo/mappers/permission.go\u0060, \u0060services/auth/internal/repositories/mongo/mappers/role.go\u0060, \u0060services/notification/internal/repositories/mongo/mappers/device_token.go\u0060 sit under a restricted \u0060internal\u0060 directory, which only code inside its own subtree is permitted to import from \u2014 so it is reachable from some of these sites and not from others, and being able to see the copies is not the same as being allowed to share them. The home has to be somewhere every one of these sites is permitted to import from; if there is no such place, that restriction may be exactly why the copies are separate."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/repositories/mongo/mappers/permission.go"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"2651c38d525e7f930e6f6ee351ff9ede6a32f1aefe18ff49b9d3f46991b6a18c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): services/auth/internal/repositories/mongo/mappers/permission.go:20-30 | services/auth/internal/repositories/mongo/mappers/role.go:20-30 | services/notification/internal/repositories/mongo/mappers/device_token.go:20-30 | services/notification/internal/repositories/mongo/mappers/notification.go:20-30 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Check import visibility before settling on that home: \u0060services/auth/internal/repositories/mongo/mappers/permission.go\u0060, \u0060services/auth/internal/repositories/mongo/mappers/role.go\u0060, \u0060services/notification/internal/repositories/mongo/mappers/device_token.go\u0060 sit under a restricted \u0060internal\u0060 directory, which only code inside its own subtree is permitted to import from \u2014 so it is reachable from some of these sites and not from others, and being able to see the copies is not the same as being allowed to share them. The home has to be somewhere every one of these sites is permitted to import from; if there is no such place, that restriction may be exactly why the copies are separate."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/repositories/mongo/mappers/permission.go"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"3faf1c6181a0b3cc7ca421902273980214cf8aaf24e2cedddd73dfdc3aa998e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): services/auth/internal/repositories/mongo/mappers/permission_role.go:15-21 | services/auth/internal/repositories/mongo/mappers/permission_user.go:15-21 | services/auth/internal/repositories/mongo/mappers/role_user.go:15-21 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/repositories/mongo/mappers/permission_role.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c77536c7357509146c744a60f8ae5387374bbc06aa66cb2b376265ce1dc281"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): services/auth/internal/delivery/rabbitmq_server/handler.go:49-60 | services/storage/internal/delivery/rabbitmq_server/handler.go:49-60 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060services/auth/internal/delivery/rabbitmq_server/handler.go:49\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Check import visibility before settling on that home: \u0060services/auth/internal/delivery/rabbitmq_server/handler.go\u0060, \u0060services/storage/internal/delivery/rabbitmq_server/handler.go\u0060 sit under a restricted \u0060internal\u0060 directory, which only code inside its own subtree is permitted to import from \u2014 so it is reachable from some of these sites and not from others, and being able to see the copies is not the same as being allowed to share them. The home has to be somewhere every one of these sites is permitted to import from; if there is no such place, that restriction may be exactly why the copies are separate."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/delivery/rabbitmq_server/handler.go"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"acb45cecb674a838f59bbc96d33a0e01d73d013fe25d7efafb172d2710d28a56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): services/auth/internal/repositories/mongo/permission_repository.go:132-143 | services/auth/internal/repositories/mongo/permission_repository.go:162-171 | services/auth/internal/repositories/mongo/role_repository.go:115-126 \u2014 before extracting anything, compare \u0060services/auth/internal/repositories/mongo/permission_repository.go\u0060 and \u0060services/auth/internal/repositories/mongo/role_repository.go\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060services/auth/internal/repositories/mongo/permission_repository.go:132\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/repositories/mongo/permission_repository.go"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4ce5670049341ed9899252eb49064a9420eb9a910967f9bf59f904b42e38a01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): services/auth/internal/usecases/acl/update_permission_by_role.go:70-79 | services/auth/internal/usecases/acl/update_user.go:80-89 | services/auth/internal/usecases/acl/update_user.go:135-144 \u2014 before extracting anything, compare \u0060services/auth/internal/usecases/acl/update_permission_by_role.go\u0060 and \u0060services/auth/internal/usecases/acl/update_user.go\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060services/auth/internal/usecases/acl/update_permission_by_role.go:70\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/usecases/acl/update_permission_by_role.go"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"120f39caf0164ffd5f483329b25d4d9e227967d4296a6805f040870a42fd29fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): services/auth/internal/usecases/acl/update_permission_by_role.go:59-68 | services/auth/internal/usecases/acl/update_user.go:69-78 | services/auth/internal/usecases/acl/update_user.go:124-133 \u2014 before extracting anything, compare \u0060services/auth/internal/usecases/acl/update_permission_by_role.go\u0060 and \u0060services/auth/internal/usecases/acl/update_user.go\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060services/auth/internal/usecases/acl/update_permission_by_role.go:59\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/usecases/acl/update_permission_by_role.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c83d507010e59f43b0ee0cd1511beeb2098083ddea68d80dcd931857aac1e63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): services/auth/internal/usecases/auth/email_verified.go:25-34 | services/auth/internal/usecases/auth/password_reset.go:24-33 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060services/auth/internal/usecases/auth/email_verified.go:25\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/usecases/auth/email_verified.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c7c7c434e82e6e0dae8f27b6173dc08d155b29b2b63a8a9e4f5517c22471092"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): services/auth/internal/config/server.go:47-56 | services/storage/internal/config/server.go:49-58 | services/user/internal/config/server.go:39-48 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060services/auth/internal/config/server.go:47\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Check import visibility before settling on that home: \u0060services/auth/internal/config/server.go\u0060, \u0060services/storage/internal/config/server.go\u0060, \u0060services/user/internal/config/server.go\u0060 sit under a restricted \u0060internal\u0060 directory, which only code inside its own subtree is permitted to import from \u2014 so it is reachable from some of these sites and not from others, and being able to see the copies is not the same as being allowed to share them. The home has to be somewhere every one of these sites is permitted to import from; if there is no such place, that restriction may be exactly why the copies are separate."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/config/server.go"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a989132395cf50269178792e6edaca8254a34193f882e70ead3aa3c3c9b0ed4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): services/auth/internal/usecases/auth/password_email.go:24-32 | services/auth/internal/usecases/auth/send_email_verified.go:24-32 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/usecases/auth/password_email.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"4129f1d383c34ce3421c57c41a75c09371ed3f6d1258c4e6bc2e4fa57901fadd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): services/auth/cmd/main.go:53-61 | services/notification/cmd/main.go:48-56 | services/storage/cmd/main.go:50-58 \u2014 before extracting anything, compare \u0060services/notification/cmd/main.go\u0060 and \u0060services/storage/cmd/main.go\u0060 as WHOLE FILES: 82% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060services/auth/cmd/main.go:53\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/cmd/main.go"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c7b0fb085bdd3d7ef1f15e198c3f1a4ea0003ddfc06b7be0275024011e23f5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): services/auth/internal/usecases/auth/email_verified.go:35-42 | services/auth/internal/usecases/auth/password_reset.go:34-41 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/internal/usecases/auth/email_verified.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f704426db2e4ff6f03e7c6869440571140a76e25dc49a3ecf58301af8b128f7"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MongoQueryBuilder (LCOM4 4): MongoQueryBuilder\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pkg/mongoqb/mongoqb.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d98024297930cfde76ecf13b6a3e75f0dc70e44791d516cc641f56ec66d8481"}},{"ruleId":"D12","level":"warning","message":{"text":"Deprecated module: go.mongodb.org/mongo-driver: \u0060go.mongodb.org/mongo-driver\u0060 is required at v1.10.2 in go.mod, and its author has DEPRECATED the module: \u0022Use go.mongodb.org/mongo-driver/v2 instead.\u0022 A deprecation is declared by the author in the module\u0027s own go.mod and applies to the whole module, not to one release, so moving to a newer version of it does not clear this. Follow the replacement the notice names."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d7dce89f5bfec479ca54c2f027dfb711194f94cbce70a590a1fbbd55b99bad46"}},{"ruleId":"D12","level":"warning","message":{"text":"Dependency pinned to a stale untagged commit: github.com/kmacute/golvalidator: Direct dependency \u0060github.com/kmacute/golvalidator\u0060 is required at \u0060v0.0.0-20210528052904-5a0248be89be\u0060 in go.mod \u2014 a pseudo-version, which pins an UNTAGGED commit from 2021-05-28, 5.4 years ago. The pin itself is exact, so this is not a reproducibility defect, and it is not a claim that the module is unmaintained. What it says is that this repository tracks no RELEASE of \u0060github.com/kmacute/golvalidator\u0060 and has not moved this requirement in 5.4 years: every fix the module has published since that commit \u2014 including any security fix \u2014 is absent from this build, whether the module went quiet or moved on without you. Check whether \u0060github.com/kmacute/golvalidator\u0060 now publishes tagged releases and move the requirement to one; if it publishes none, re-pin to a current commit."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"99325f726b07e781026f265e76af1ed18e5793dd79db78f439c8223656cccfc7"}},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"be0bfe47b2874c62e43a6b92e35daedb9933150ee7d9f63adb4ce2ea296cae09"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e890a993975f287f4d6386a29ac419c07c61d2b3782461767ef59963b2ca6b64"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d2bea044ff79d7d275f5a91a6e2f548586178eaf480274c33960ad020c854631"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 1 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is \u0060(repository root)\u0060 (9466 LoC, 281 module-visible types across 97 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D27","level":"note","message":{"text":"Scattered collaborators: 92 % of calls cross a namespace and only 25 % of collaborators are co-located \u2014 group each feature\u0027s code into a vertical slice so a call\u0027s collaborators sit together."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5aad4a4530bac3928d3a065a664be89d023ecfc865f9bf79ac05754b3bffe322"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bc6fd5df71e093e12cf01712240e3aa072514764059517a2e0e2a01691886800"},"properties":{"commitSha":"35b6d9be76d15bdc143629bb716468d24d35d19f"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6bf3d5bc62b6c54e59190736b9ecf20164ca279584c12dc054e969fabda8ad8f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"97d558ac0777f7caa5811673b5d4afa4a58e345b6bb3dc5d0f1d34d8100b24de"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c3693553dae33089c9899afe8c3cfddc9b43d8f0211f2757a352bea5d9a9c873"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1329","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ad675173ab74cd380b8a4ca511f21f094fd2e449276914fb28130d3bc9b34410"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1352","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-7","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e19701c4b278316f28c9cb1050df3089eb915b8dd93c33e5588a00a058875b1c"},"taxa":[{"id":"CWE-400","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8c5f7a93a952b2882e67e7928066c016d29bd06b952d59971fd7183f4f777518"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8568539eeb68eb43c3410b06fcb2e70c56924e8d59841ef81eb55346d87ac375"},"taxa":[{"id":"CWE-400","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8bdadd2a6ea31b497d809c1d03b90f482a35bc1bee8f7c0cb493229798f39393"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b37a32b7e42e07e022b35a656611038f423b4a93780619510228557bcba39cff"},"taxa":[{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-704","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"43f04fe94f5613f840b6e884ec6f0edaa4073dfbcd12983d96c29e7e64ba157c"},"taxa":[{"id":"CWE-400","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6c9f3095fe93f99361ec08db9fce4ad840aa155e3c2c9814fd80ce0284a872dd"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4a473e766684aff39bd981aa4158ecd3d998d675904e6a84bedd4cc6e6059d36"},"taxa":[{"id":"CWE-252","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-391","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"643107462a185cd5ce3f07c1d794bcb6089cbe3fa10e0a4704c3b2dfe3232387"},"taxa":[{"id":"CWE-252","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-391","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"95cad1d5135972ff9ac256be144525769dc9ad05185b6eb210bc47504f152bda"},"taxa":[{"id":"CWE-400","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c1363a97b7381739af6f508df4da92760104a28d93b249fb6763e28d8fd22c3d"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bf9fa1eaf66042e7d3b0c64cd948df1762e36d2e17392dfa992544da14f511ef"},"taxa":[{"id":"CWE-300","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4cd80077da13014feecf771e03102e0fc4a8eeaf8e2e05204f18423b46ebe245"},"taxa":[{"id":"CWE-300","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"be7472ce384a333e366b0cc354432a23ee360c5e1ae2577c860c57fa4c9f35d5"},"taxa":[{"id":"CWE-300","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"aedde9327e4c25522170e668578aafab81d5e4c4d05d1cccab5a5e9ed25c819d"},"taxa":[{"id":"CWE-300","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cd69cb94fd802b376a42a10bb3d01c08624c7815a9a56522d9207ec4db4d9b8b"},"taxa":[{"id":"CWE-300","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8a8900757442f0261118da3c90bcd8611ed5047d9c4709e9495d8ca27f8a04c1"},"taxa":[{"id":"CWE-300","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"805c7ce080539d0a55a26176f7b94a754c0dc4f42c5d3d1fcbebdd3a45bdcabf"},"taxa":[{"id":"CWE-300","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b6c32abdb6782903ee9aee9beb6f014d1d06814c0c24e5cc5ea7d7260d174ab9"},"taxa":[{"id":"CWE-300","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2ce3076efea98add874956df853acd254e616761dd5c7097b12f4b50ea708220"},"taxa":[{"id":"CWE-300","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9cbecf02039209db9068a6ae0b237b36d5c425556ef82555887597293046d911"},"properties":{"dependency":{"package":"github.com/rabbitmq/amqp091-go","version":"1.10.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","GO-2026-6372","GO-2026-6491","GO-2026-6492","GO-2026-6493","GO-2026-6494","GO-2026-6496","GO-2026-6498","GO-2026-6500","GO-2026-6502","GO-2026-6503","GO-2026-6700"],"reachability":{"kind":"production","file":"pkg/rabbitmq/mock_rabbitmq.go","line":4}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"58520b7977a5873bc333ffd7e5f56dc442b6df40404b9a2bc0254d7376d652c7"},"properties":{"dependency":{"package":"golang.org/x/crypto","version":"0.27.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","GO-2024-3321","GO-2025-3487","GO-2025-4116","GO-2025-4134","GO-2025-4135","GO-2026-5005","GO-2026-5006","GO-2026-5013","GO-2026-5014","GO-2026-5015","GO-2026-5016","GO-2026-5017","GO-2026-5018","GO-2026-5019","GO-2026-5020","GO-2026-5021","GO-2026-5023","GO-2026-5033","GO-2026-5932","GO-2026-6303","GO-2026-6354","GO-2026-6355"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b9c7de190231d3b97dc0f1a0317bc61d7e63d7af55c350df48ddbea24eb5d370"},"properties":{"dependency":{"package":"google.golang.org/grpc","version":"1.68.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","GO-2026-4762","GO-2026-6061","GO-2026-6348","GO-2026-6441","GO-2026-6443"],"reachability":{"kind":"production","file":"services/auth/cmd/main.go","line":21}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"09d83cf1d0f97fb21e6cc781377d3d61bfc43d363dc125d15eb4381d49f261a1"},"properties":{"dependency":{"package":"github.com/klauspost/compress","version":"1.13.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]","GO-2026-5841","GO-2026-6865"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cc6b3da8d45599285558ee050cce4f4c8d65a08973bcc06156137b1e3a250822"},"properties":{"dependency":{"package":"golang.org/x/oauth2","version":"0.23.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","GO-2025-3488"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0bdf6e35fb4ce52ab3acda8c9d66343766f932e0b638e368be42c0e8b4377b74"},"properties":{"dependency":{"package":"golang.org/x/net","version":"0.29.0","advisory":"[GHSA redacted]","aliases":["BIT-golang-2026-33814","BIT-golang-2026-46600","BIT-golang-2026-78659","BIT-golang-2026-78660","BIT-golang-2026-78663","BIT-golang-2026-78669","BIT-golang-2026-97032","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","GO-2024-3333","GO-2025-3503","GO-2025-3595","GO-2026-4440","GO-2026-4441","GO-2026-4918","GO-2026-5025","GO-2026-5026","GO-2026-5027","GO-2026-5028","GO-2026-5029","GO-2026-5030","GO-2026-5942","GO-2026-6603","GO-2026-6610","GO-2026-6611","GO-2026-6612","GO-2026-6617","GO-2026-6860","GO-2026-6866"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"967cf41823dd962de9b7dc832456cd73682cb1c1a1ee99b38212d5bd166f6d4d"},"properties":{"dependency":{"package":"go.mongodb.org/mongo-driver","version":"1.10.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","GO-2026-5327"],"reachability":{"kind":"production","file":"pkg/mongoqb/mongoqb.go","line":6}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"072482002a33e1aef6ac65c8b9a35edd8b91f0dc45421a089f043d271df2963f"},"properties":{"dependency":{"package":"github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream","version":"1.5.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","GO-2026-5764"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"551da4c3ad4dfa1b54ec2f5711978ddf114b94bf5ed6381add72863104a90a09"},"properties":{"dependency":{"package":"github.com/aws/aws-sdk-go-v2/service/s3","version":"1.47.7","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","GO-2026-5764"],"reachability":{"kind":"production","file":"services/storage/domain/services/aws.go","line":6}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"362d19fbc20680c130f6d3f829465778e97203407075f4ceb76a4cf0cc41a027"},"properties":{"dependency":{"package":"golang.org/x/sys","version":"0.25.0","advisory":"GO-2026-5024","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"49f4e962c2f7c7710fd660403a9e977e0f6cc5b6a90b2a991bd76bd155c11da4"},"properties":{"dependency":{"package":"stdlib","version":"1.26.5","advisory":"GO-2026-5026","aliases":["BIT-golang-2026-111943","BIT-golang-2026-33818","BIT-golang-2026-46600","BIT-golang-2026-56853","BIT-golang-2026-56857","BIT-golang-2026-56858","BIT-golang-2026-56859","BIT-golang-2026-56860","BIT-golang-2026-56862","BIT-golang-2026-56866","BIT-golang-2026-78659","BIT-golang-2026-78660","BIT-golang-2026-78663","BIT-golang-2026-78667","BIT-golang-2026-78669","BIT-golang-2026-94439","BIT-golang-2026-94440","BIT-golang-2026-94448","BIT-golang-2026-97030","BIT-golang-2026-97031","BIT-golang-2026-97032","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","GO-2026-5942","GO-2026-5972","GO-2026-6088","GO-2026-6089","GO-2026-6090","GO-2026-6091","GO-2026-6218","GO-2026-6599","GO-2026-6600","GO-2026-6603","GO-2026-6604","GO-2026-6605","GO-2026-6607","GO-2026-6608","GO-2026-6609","GO-2026-6610","GO-2026-6611","GO-2026-6612","GO-2026-6613","GO-2026-6617","GO-2026-6809","RUSTSEC-2026-0381","RUSTSEC-2026-0382","RUSTSEC-2026-0383"],"reachability":{"kind":"production","file":"services/auth/cmd/main.go","line":78,"symbol":"http.ListenAndServe"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"76d999f7f0da1c7805a61d7a77ca6e9d78cdf7e7d953cafe7b73d81759ae1a99"},"properties":{"dependency":{"package":"golang.org/x/text","version":"0.18.0","advisory":"GO-2026-5970","aliases":["[CVE redacted]","[CVE redacted]","GO-2026-6629"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c8f1f16fbdbcfe7c5eea0e95c41882ccaa889a3f20e9f2ef4dbe1e2d13feeb17"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a7fc5073ecf784655ebea62fe22bce69cf067cd5482432c233e2e5b6a6e41288"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e807a29f4a03e795fd3e070b878c53cb0102a84d702c43106c48efd169f5006a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c5ef70568fc87175615b83f1647757297c20bb8d453da84de9cac4557ea02a06"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ce48bbe159519fbd9333a6f07c1a4e9e4636d5bf6e551f1bfc8efcf2b725744a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bae1158777980641cec0869fefd394701c40a142d6c4a98cbcf9439b838d8af8"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c8b6aa1ddad4cf2e58be5d8cf2ed1d2e2a32cd545e5bbb394b186480b0225176"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c7cf276ca5b605dca8049dc73bc9b8029fea9df6e9011b8c205d3090ab5f123a"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c91c208cc02a252db05413d06e8039512d83bf9bb3e68215178fcfb30d794fef"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"98fa8224b7d51e6b2e59f79ce7171e6a031f86e6b95b1e9e003559246a7089d7"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a247ec7e3e36053b330e6083ab7794e8796bb9811f73dfeba4109fd3b6bea566"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"567edf63c1df59cd596a261cf81a43f295557c9b5ec7ea971f089b5f03090041"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"60b670c7a3c72240fca3cfbd67747da40975c1ca8209e8249f754b2eb91644e7"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b0f743f23665a1d142e670a29f5264926ec97366d82c7702deab1b8905cbc519"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0f1caac8b65d40bffaf82d64a38d07c482fcb64067b37674e7c61a7c00f3a12e"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9f3a7273c65f2b1f3a8e0712ff274edab72ffce86ad476ba7d063e71f73cebc6"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a48386233e79d44dfc6ac99d841e7c0cdaf7df49e1bd1a7212f39d0258ddca42"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3b8c0946bb73bf9d8ef3ae2aa66d9aa3c68cd49455c0f26453f1d892c983b5b2"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c085e625604c45a1e3892f1565d48fa48dfe4b317b46ba65c962de1f4554ab58"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"526476152a38c2f10fe1ce80108cdc3f5a994d3868680f4d1782f6d68743ec61"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5cfe900b187fc40d1c9ee3cbc68e7995a3bb3d23b7c0a12455351f8b0857b2ba"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/notification/resources/email_templates/en/password-reset.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"caac4577449a2fa9912d569bcdf0a9e10e4938a5d65cd93e8348824a54905ee0"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/notification/resources/email_templates/id/password-reset.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2c81b18f90cd3a2a66b4d0806a9c3c42887eca47038290b194657c1462dd75f"}},{"ruleId":"AC7","level":"warning","message":{"text":"Accessibility enforcement below the top rung: No accessibility enforcement found \u2014 no automated accessibility check runs over the HTML your app renders. Assert the accessibility invariants over that HTML in the test suite you already have (parse the output and assert, or drive a browser), and gate that test in CI so a regression blocks the merge. What was searched, so you can tell an absence from a miss: the 4 markup file(s) this pass actually assessed, the linter configuration checked in beside them, and this repository\u0027s test and CI files \u2014 matched by name against the accessibility checkers this dimension carries. An audit run outside the repository, a hosted scanner, or a check whose name is not one of those, is not seen here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d46019b86eff5ddad9db289e6802ac158899e980df54c34f67722442787ead62"}},{"ruleId":"DM2","level":"note","message":{"text":"Primitive id on a domain type: Auth.UserId: \u0060Auth.UserId\u0060 is a raw \u0060string\u0060 \u2014 give it a strongly-typed id: a dedicated single-field type wrapping the \u0060string\u0060, in whatever form your language spells that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/domain/entities/auth.go"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"836bced30d40d2a0d1928a622c2b698210fc939fc75b5d37e423df77778d5430"}},{"ruleId":"DM2","level":"note","message":{"text":"Primitive id on a domain type: Notification.UserId: \u0060Notification.UserId\u0060 is a raw \u0060string\u0060 \u2014 give it a strongly-typed id: a dedicated single-field type wrapping the \u0060string\u0060, in whatever form your language spells that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/notification/domain/entities/notification.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba474984d9956b8f5f7dc94f694707a2ddb108d1c9091bfd7ee8dfff9205f45a"}},{"ruleId":"DM5","level":"note","message":{"text":"Mutable entity: Auth: \u0060Auth\u0060 exposes publicly writable state (ID, UserId, Email, Password, EmailVerifiedAt, CreatedAt, and 1 more)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/auth/domain/entities/auth.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"67cc40457e11cae64361978c6ac1fc76490d64e3a128bc36cffd44e89454e8ce"}},{"ruleId":"DM5","level":"note","message":{"text":"Mutable entity: Notification: \u0060Notification\u0060 exposes publicly writable state (ID, UserId, Type, Data, CreatedAt, UpdatedAt)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/notification/domain/entities/notification.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"23b9c9d17cfa793d61146cf70e7eaaaad777210915b83ceb6c812c7cd4c6d856"}},{"ruleId":"DM5","level":"note","message":{"text":"Mutable entity: User: \u0060User\u0060 exposes publicly writable state (ID, Name, Email, Avatar, LangCode, CreatedAt, and 1 more)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/notification/domain/entities/user.go"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"e695742f5903ac6eecb9b2d01826b119402a88fa685cdc9dc21a00f2317f5b82"}},{"ruleId":"DM5","level":"note","message":{"text":"Mutable entity: Cloud: \u0060Cloud\u0060 exposes publicly writable state (ID, Name, Url, Status, CreatedBy, CreatedAt, and 1 more)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/storage/domain/entities/cloud.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"65d5d9f04cbb554a328367f8293b5e5ff0acda136853ed8dd3d0832eec9e417f"}},{"ruleId":"DM5","level":"note","message":{"text":"Mutable entity: User: \u0060User\u0060 exposes publicly writable state (ID, Name, Email, Avatar, LangCode, EmailVerifiedAt, and 2 more)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/user/domain/entities/user.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"17b0d69f1d156ff4402a88848dce5b34037830a63d7ecd4fcbd5ce78e50b01ad"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 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."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add gosec / govulncheck (or golangci-lint) (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 338 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\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/go-tests.yml"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P4","level":"note","message":{"text":"No rollback/health safety: Deployment is orchestrated by compose, but no service declares a \u0060healthcheck:\u0060 and nothing pins a previous image to fall back to \u2014 the runtime can tell that the container is up, not that it is serving, so a bad release is harder to detect and reverse."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"db6bab8a28a2145f47e5a4e6683cda39d2ba0296c723238e8057da979ae1c706"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060find.Avatar != \u0022\u0022 \u0026\u0026 find.Avatar != user.Avatar\u0060 appears character-identically in 2 files \u2014 services/user/internal/usecases/profile/update.go, services/user/internal/usecases/user/update.go. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/user/internal/usecases/profile/update.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0888f0bc8c9decef7c0a9016c55effdbfda2e40e21f2a7cbefc35942f3ab5e2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060user.Avatar != \u0022\u0022 \u0026\u0026 find.Avatar != user.Avatar\u0060 appears character-identically in 2 files \u2014 services/user/internal/usecases/profile/update.go, services/user/internal/usecases/user/update.go. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/user/internal/usecases/profile/update.go"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"81312e5e115448c1de5c1b070d9a831947b4d92f2ea7b598499b5deb62ede8b2"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1104","guid":"4c918cb5-b2a6-6c55-9963-a44ee464305e","name":"Use of Unmaintained Third Party Components","shortDescription":{"text":"Use of Unmaintained Third Party Components"},"helpUri":"https://cwe.mitre.org/data/definitions/1104.html"},{"id":"CWE-1329","guid":"f70f1c3f-4ccf-cb5e-bdd3-03ba4868d36d","name":"Reliance on Component That is Not Updateable","shortDescription":{"text":"Reliance on Component That is Not Updateable"},"helpUri":"https://cwe.mitre.org/data/definitions/1329.html"},{"id":"CWE-1352","guid":"5257f322-5cfc-6b52-bedd-0b9a526b4c7d","name":"CWE-1352","shortDescription":{"text":"CWE-1352"},"helpUri":"https://cwe.mitre.org/data/definitions/1352.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-248","guid":"64b58946-d244-a556-a48a-f82fcd4f4186","name":"Uncaught Exception","shortDescription":{"text":"Uncaught Exception"},"helpUri":"https://cwe.mitre.org/data/definitions/248.html"},{"id":"CWE-252","guid":"78915dc5-e486-f858-bc3c-aa570ad9010d","name":"Unchecked Return Value","shortDescription":{"text":"Unchecked Return Value"},"helpUri":"https://cwe.mitre.org/data/definitions/252.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-300","guid":"c5969c2f-022a-5059-bb13-5ac56ccacbd0","name":"Channel Accessible by Non-Endpoint","shortDescription":{"text":"Channel Accessible by Non-Endpoint"},"helpUri":"https://cwe.mitre.org/data/definitions/300.html"},{"id":"CWE-319","guid":"7af97476-9f0d-4458-9163-3d2043918a1a","name":"Cleartext Transmission of Sensitive Information","shortDescription":{"text":"Cleartext Transmission of Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/319.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-391","guid":"d9ef5687-8d79-9b51-b509-b83411fbcdc3","name":"Unchecked Error Condition","shortDescription":{"text":"Unchecked Error Condition"},"helpUri":"https://cwe.mitre.org/data/definitions/391.html"},{"id":"CWE-400","guid":"ca529a89-676d-8857-aac1-84359c77bb6c","name":"CWE-400","shortDescription":{"text":"CWE-400"},"helpUri":"https://cwe.mitre.org/data/definitions/400.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-704","guid":"50bd74b4-a921-5159-8671-99fd7e78c810","name":"CWE-704","shortDescription":{"text":"CWE-704"},"helpUri":"https://cwe.mitre.org/data/definitions/704.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A04:2025","guid":"6a9f5bfd-1a56-6453-beec-a7eff0ba3007","name":"Cryptographic Failures","shortDescription":{"text":"Cryptographic Failures"},"helpUri":"https://top10.owasp.org/2025/A04_2025-Cryptographic_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"},{"id":"A10:2025","guid":"9ca3ab55-ca61-fd5e-b9ab-3dad2efa59d0","name":"Mishandling of Exceptional Conditions","shortDescription":{"text":"Mishandling of Exceptional Conditions"},"helpUri":"https://top10.owasp.org/2025/A10_2025-Mishandling_of_Exceptional_Conditions/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"},{"id":"CICD-SEC-7","guid":"4c4af28d-49e3-2d51-b597-e1396c49658b","name":"Insecure System Configuration","shortDescription":{"text":"Insecure System Configuration"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-07-Insecure-System-Configuration"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":62,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}