{"$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"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"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":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"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"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"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"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"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"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}},{"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"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"]}},{"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":"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"]}],"properties":{"cwe":["CWE-506"]}},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX5","name":"Architecture \u0026 structure","shortDescription":{"text":"Architecture \u0026 structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AX5"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"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":"DM4","name":"Rich vs anemic model","shortDescription":{"text":"Rich vs anemic model"},"helpUri":"https://codehealth.canine.dev/dimensions/DM4"},{"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":"DM8","name":"Value-object opportunities","shortDescription":{"text":"Value-object opportunities"},"helpUri":"https://codehealth.canine.dev/dimensions/DM8"},{"id":"ED1","name":"Handler temporal coupling","shortDescription":{"text":"Handler temporal coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/ED1"},{"id":"ED2","name":"Event/command shape","shortDescription":{"text":"Event/command shape"},"helpUri":"https://codehealth.canine.dev/dimensions/ED2"},{"id":"ED3","name":"Event naming","shortDescription":{"text":"Event naming"},"helpUri":"https://codehealth.canine.dev/dimensions/ED3"},{"id":"ED4","name":"Outbox / dual-write","shortDescription":{"text":"Outbox / dual-write"},"helpUri":"https://codehealth.canine.dev/dimensions/ED4"},{"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":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"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":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"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":"internal.ConvertAssign (cyclomatic 52): internal.ConvertAssign has cyclomatic complexity 52 (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":"internal/util.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d43b04578b4cb7fde513cdd4691d6a760ba968ba48852d25dd87a2e549e9c8e"}},{"ruleId":"D1","level":"warning","message":{"text":"requests.readSetCookies (cyclomatic 28): requests.readSetCookies has cyclomatic complexity 28 (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":"infra/requests/http_response.go"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a73b0727e74fa9522365ac6d16223c325fc9d2a32d894869b9d206a149a54b2"}},{"ruleId":"D1","level":"warning","message":{"text":"crud.lintName (cyclomatic 21): crud.lintName has cyclomatic complexity 21 (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":"freedom/template/crud/generate.go"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dec4eaabc07d7fac2e4b7c8307e678b2b1aea8a65425b9b3358972f044aa4aa"}},{"ruleId":"D1","level":"warning","message":{"text":"factoryPool.diFactoryFromValue (cyclomatic 21): factoryPool.diFactoryFromValue has cyclomatic complexity 21 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 10 belong to 2 function literals inside it that branch. 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":"internal/factory_pool.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eaaaeacb14b898f84725ddb7542d3c73eaf82c654b1512a24dcd9cb7c60f4d6"}},{"ruleId":"D1","level":"warning","message":{"text":"requestLoggerMiddleware.ServeHTTP (cyclomatic 20): requestLoggerMiddleware.ServeHTTP has cyclomatic complexity 20 (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":"middleware/request_logger.go"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf0a4cd805527f1c52dc19ccaaee5dfa1502ea06811b88d662ab5c863f274d9b"}},{"ruleId":"D2","level":"warning","message":{"text":"internal.ConvertAssign (cognitive 67): internal.ConvertAssign has cognitive complexity 67 (threshold 15). Drivers by points: if/else 23 (50 pts), match/switch 9 (15 pts), boolean chains 2 (nesting depth added 33). 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":"internal/util.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbabcbc348e38e30918b0ebd998189fdde946d75e720fcc85866a08f5fa1a392"}},{"ruleId":"D2","level":"warning","message":{"text":"requests.readSetCookies (cognitive 48): requests.readSetCookies has cognitive complexity 48 (threshold 15). Drivers by points: if/else 12 (35 pts), match/switch 2 (7 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 29). 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":"infra/requests/http_response.go"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d773d05aae2a339d7a8a9c678f5fc775f1d6f438f6ed8af970cf201ce8f19ae"}},{"ruleId":"D2","level":"warning","message":{"text":"factoryPool.diFactoryFromValue (cognitive 36): factoryPool.diFactoryFromValue has cognitive complexity 36 (threshold 15). Drivers by points: if/else 13 (30 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 18). Of this number, 19 points are the body\u0027s own statements and 17 belong to 2 function literals inside it that branch. 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":"internal/factory_pool.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6ec32306e29ee4ee63eb337f4d665aa0f8b58395b2eec7a210ab297908c3cac"}},{"ruleId":"D2","level":"warning","message":{"text":"crud.lintName (cognitive 29): crud.lintName has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 5, loops 3 (5 pts) (nesting depth added 10). 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":"freedom/template/crud/generate.go"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"73d3b44aa07795ebee28016f79e0c4bc4560c3d904cb3c6cf7740ffea59ed59a"}},{"ruleId":"D2","level":"warning","message":{"text":"repositoryPool.diRepoFromValue (cognitive 29): repositoryPool.diRepoFromValue has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (25 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 15). Of this number, 19 points are the body\u0027s own statements and 10 belong to 2 function literals inside it that branch. 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":"internal/repo_pool.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"6757f717bb1f3368e2c417aa06a34aea188328b7c2d9643f98023ec7d9355b74"}},{"ruleId":"D2","level":"warning","message":{"text":"Generate.schema (cognitive 28): Generate.schema has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 3 (5 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 15). 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":"freedom/template/crud/generate.go"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"345798fd2302475cc1a1c93bb462888b994e1f4124ae589c7a1d74ec7b912245"}},{"ruleId":"D2","level":"warning","message":{"text":"requestLoggerMiddleware.ServeHTTP (cognitive 27): requestLoggerMiddleware.ServeHTTP has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (19 pts), loops 3 (5 pts), boolean chains 3 (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":"middleware/request_logger.go"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d0423c8783c57ede3e685f3d43d10d02e478639e746086b260501ed60a78cf3"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkerPool.worker (cognitive 18): WorkerPool.worker has cognitive complexity 18 (threshold 15). Drivers by points: if/else 2 (8 pts), match/switch 2 (6 pts), loops 2 (4 pts) (nesting depth added 12). 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":"infra/kafka/consumer.go"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"515a86185aea4637092ef556eed585278d56d430b8add379b5ece837a3615078"}},{"ruleId":"D2","level":"warning","message":{"text":"Generate.getColumnsPostgres (cognitive 17): Generate.getColumnsPostgres has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 2, boolean chains 1 (nesting depth added 5). 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":"freedom/template/crud/generate.go"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b543eb1a350bb748b2ef773107d6c9e79a93b9c145c190f175888d4f38ef6ce"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: internal.ConvertAssign: FunctionTooLong \u2014 ConvertAssign runs 144 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 44 over it, 1.44\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/util.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e52174890aeaec14f66fe4043db46ea06b78c113374522fefe6c6b6122af464"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: httpRequest: TooManyMethods \u2014 43 methods. The bar is 30 methods; this is 13 over it, 1.43\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infra/requests/http_request.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"033b004c66df194a2936e39489df88eab5c36311bc9452a088085151491fd2e1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Application: TooManyMethods \u2014 42 methods. The bar is 30 methods; this is 12 over it, 1.40\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"75d309bd3ab282f7d210bc3b84a0cbc39f7b68e78d6c76caf7d4028d9b5b8177"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201327 lines \u00D7 2): internal/factory_pool.go:65-91 | internal/factory_pool.go:104-128 \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 \u0060internal/factory_pool.go:65\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":"internal/factory_pool.go"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a13d8efe6fd22acccc85b7d35d8f2505bf51410e7bb2f683dd5344897c6f0cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201326 lines \u00D7 2): internal/factory_pool.go:79-104 | internal/repo_pool.go:64-87 \u2014 before extracting anything, compare \u0060internal/factory_pool.go\u0060 and \u0060internal/repo_pool.go\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 42 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 \u0060internal/factory_pool.go:79\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":"internal/factory_pool.go"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f9591e1a412b324684d09f9fa397b347ced57fbab75972b6488d0ab401c3127"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): internal/infra_pool.go:52-65 | internal/infra_pool.go:78-91 \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 \u0060internal/infra_pool.go:52\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":"internal/infra_pool.go"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec23d6a478622155cda1764aae624fd18cc3eb3369f3383e3565f72473fb9a6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/infra.go:93-105 | internal/repository.go:120-132 \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 \u0060internal/infra.go:93\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 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060Entity\u0060 to \u0060infra *Infra) InjectBaseEntity(entity\u0060 in one and \u0060repo *Repository) InjectBaseEntity(entity\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/infra.go"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"d50e48fe62de3fc33b7fc8f2928375fde6ef469d5c0824ddafa5398a1614b285"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): freedom/cmd/new_po.go:176-186 | freedom/template/crud/generate.go:649-659 \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. 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":"freedom/cmd/new_po.go"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe740da4103f1943805101774d0f7d03319581d908e3c5e65697ddd55a470c25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): freedom/template/crud/generate.go:384-393 | freedom/template/crud/generate.go:472-481 \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 \u0060freedom/template/crud/generate.go:384\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":"freedom/template/crud/generate.go"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"461dd1d3687cd00499255e4f89455eedd6bebb8a45b24a2ab52d9be8ccdc8b03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/service_locator.go:36-43 | internal/unit.go:105-112 \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":"internal/service_locator.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc61fbb73b238eeebeef6a8cd30b31168132bc49b0dbbbd61531537eddd7fb94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): internal/factory_pool.go:71-76 | internal/factory_pool.go:110-115 | internal/service_pool.go:97-102 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. 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":"internal/factory_pool.go"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a185823d607d6a8176e9bc8f8f3c7d5d95767a7ab6fbb0d5ce3b0952dc33421"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/unit.go:47-52 | internal/unit.go:65-70 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060internal/unit.go:54\u0060 calls \u0060Interface\u0060 and \u0060internal/unit.go:72\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":"internal/unit.go"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"a31ffafabb6aa2611393d278d879cf813d80d9c2cc81341ee8312833d1114950"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/infra.go:29-38 | internal/repository.go:53-62 \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":"internal/infra.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e125b52d94db20d434443167e7481d9b6b8505fdb12365925adb3a6d30e9077"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): infra/store/entity_cache.go:107-116 | infra/store/entity_cache.go:136-145 \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 \u0060infra/store/entity_cache.go:107\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. 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":"infra/store/entity_cache.go"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5c069d78179edc567b033f06d33d8be4f66b963b2c7e3156967cb7d193f60c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/factory_pool.go:61-69 | internal/repo_pool.go:54-62 \u2014 before extracting anything, compare \u0060internal/factory_pool.go\u0060 and \u0060internal/repo_pool.go\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 42 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/factory_pool.go"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5da8539823b00981265156d61643e537b9845ac62984bb2293f10a6aaa19e2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/factory_pool.go:25-31 | internal/repo_pool.go:21-27 \u2014 before extracting anything, compare \u0060internal/factory_pool.go\u0060 and \u0060internal/repo_pool.go\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 42 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 \u0060internal/factory_pool.go:25\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":"internal/factory_pool.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cdd5b35452cd1f86ebbe980baacaaf09b2447fd2dfdb626521e93e4c21391aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/infra_pool.go:38-43 | internal/service_pool.go:88-92 \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 \u0060internal/infra_pool.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":"internal/infra_pool.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"14a8f6d5b99887f08a432787d60a3f2de9b3ab271f5c38700c0e15a2d3b9f75d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): example/fshop/infra/domainevent/event_retry.go:88-116 | example/infra-example/infra/domainevent/event_retry.go:88-116 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/fshop/infra/domainevent/event_retry.go"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"87e8d9cc1375df8be41d2e04b365c1f8324190f36e2f96ba2fea6ef7779f4dee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): example/fshop/infra/domainevent/event_retry.go:138-166 | example/infra-example/infra/domainevent/event_retry.go:138-166 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/fshop/infra/domainevent/event_retry.go"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a70b5414081d584c3cc04e113d4d1ddda006efabf0e289c9fd8e83895af514c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (9 members, 50\u002B identical tokens): example/fshop/adapter/repository/generate.go:157-170 | example/fshop/adapter/repository/generate.go:314-327 | example/fshop/adapter/repository/generate.go:471-484 | example/fshop/adapter/repository/generate.go:628-641 | example/fshop/adapter/repository/generate.go:785-798 | example/fshop/adapter/repository/generate.go:942-955 | example/fshop/adapter/repository/generate.go:1099-1112 | example/infra-example/adapter/repository/generate.go:157-170 | example/infra-example/adapter/repository/generate.go:349-362 \u2014 These 9 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 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/fshop/adapter/repository/generate.go"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eae504abd497310a37c5b62a45b68abc2abfe86504a8e921938879145bf071c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (9 members, 50\u002B identical tokens): example/fshop/adapter/repository/generate.go:185-202 | example/fshop/adapter/repository/generate.go:342-359 | example/fshop/adapter/repository/generate.go:499-516 | example/fshop/adapter/repository/generate.go:656-673 | example/fshop/adapter/repository/generate.go:813-830 | example/fshop/adapter/repository/generate.go:970-987 | example/fshop/adapter/repository/generate.go:1127-1144 | example/infra-example/adapter/repository/generate.go:197-214 | example/infra-example/adapter/repository/generate.go:389-406 \u2014 These 9 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 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/fshop/adapter/repository/generate.go"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6e45d3dc67491a4e7b88bfa04c4a9bc3958b4958d98aca507df9eb184feeb4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (9 members, 50\u002B identical tokens): example/fshop/adapter/repository/generate.go:205-220 | example/fshop/adapter/repository/generate.go:362-377 | example/fshop/adapter/repository/generate.go:519-534 | example/fshop/adapter/repository/generate.go:676-691 | example/fshop/adapter/repository/generate.go:833-848 | example/fshop/adapter/repository/generate.go:990-1005 | example/fshop/adapter/repository/generate.go:1147-1162 | example/infra-example/adapter/repository/generate.go:217-232 | example/infra-example/adapter/repository/generate.go:409-424 \u2014 These 9 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 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/fshop/adapter/repository/generate.go"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d545f36258c3a8a1e9377be04c3a09dc3a7e3cedb94fb0fe4c59ffc526ff847"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (9 members, 50\u002B identical tokens): example/fshop/adapter/repository/generate.go:240-257 | example/fshop/adapter/repository/generate.go:397-414 | example/fshop/adapter/repository/generate.go:554-571 | example/fshop/adapter/repository/generate.go:711-728 | example/fshop/adapter/repository/generate.go:868-885 | example/fshop/adapter/repository/generate.go:1025-1042 | example/fshop/adapter/repository/generate.go:1182-1199 | example/infra-example/adapter/repository/generate.go:252-269 | example/infra-example/adapter/repository/generate.go:444-461 \u2014 These 9 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 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/fshop/adapter/repository/generate.go"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f1d860dccf528cb395a721d614b3e9378754389aeb1c49c378dae5580a0059"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (9 members, 50\u002B identical tokens): example/fshop/adapter/repository/generate.go:292-311 | example/fshop/adapter/repository/generate.go:449-468 | example/fshop/adapter/repository/generate.go:606-625 | example/fshop/adapter/repository/generate.go:763-782 | example/fshop/adapter/repository/generate.go:920-939 | example/fshop/adapter/repository/generate.go:1077-1096 | example/fshop/adapter/repository/generate.go:1234-1253 | example/infra-example/adapter/repository/generate.go:327-346 | example/infra-example/adapter/repository/generate.go:519-538 \u2014 These 9 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 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/fshop/adapter/repository/generate.go"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"a90ae869ae563c10e45a57bad914f7c4a078c06c99adecc569b56561bc94b7e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): example/base/config/config.go:51-71 | example/fshop/config/config.go:51-71 | example/http2/config/config.go:51-71 | example/infra-example/config/config.go:51-71 \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":"example/base/config/config.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"412cb5e09003c461d154c4748303b0ac397100f8b914ee1a837c698af8b8022c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): example/base/config/config.go:18-49 | example/fshop/config/config.go:18-49 | example/http2/config/config.go:18-49 | example/infra-example/config/config.go:18-49 \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":"example/base/config/config.go"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa996cff7ae0d0e087516e2b733ca5d7a98ab6ccdc59324abaa1dfc05c436006"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): example/fshop/infra/domainevent/event_manager.go:109-150 | example/infra-example/infra/domainevent/event_manager.go:103-144 \u2014 before extracting anything, compare \u0060example/fshop/infra/domainevent/event_manager.go\u0060 and \u0060example/infra-example/infra/domainevent/event_manager.go\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 134 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. 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":"example/fshop/infra/domainevent/event_manager.go"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f348ec40321f5c49e5148b86eea98838b9bb933b51c4751fe28593db562c0a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 4): example/base/config/config.go:18-49 | example/fshop/config/config.go:18-49 | example/http2/config/config.go:18-49 | example/infra-example/config/config.go:18-49 \u2014 before extracting anything, compare \u0060example/base/config/config.go\u0060 and \u0060example/fshop/config/config.go\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 65 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/base/config/config.go"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb89be7a7c76c1ca38598cce6e6e12343b851e7a0d1124985172649b7a6d43f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201332 lines \u00D7 3): example/base/infra/response.go:21-51 | example/fshop/infra/response.go:21-52 | example/infra-example/infra/response.go:21-52 \u2014 before extracting anything, compare \u0060example/base/infra/response.go\u0060 and \u0060example/fshop/infra/response.go\u0060 as WHOLE FILES: 97% 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/base/infra/response.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"955377db947e5b687f310728aa57a78e398bf40a0bf1a0ec9971ae652bc24437"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): example/fshop/adapter/repository/generate.go:92-120 | example/infra-example/adapter/repository/generate.go:92-120 \u2014 before extracting anything, compare \u0060example/fshop/adapter/repository/generate.go\u0060 and \u0060example/infra-example/adapter/repository/generate.go\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 311 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. 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":"example/fshop/adapter/repository/generate.go"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"21a7c3c003533d8474fe0e3ac56edae640ae90b3bbdfd4d128e370a9251d5ad6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): example/fshop/infra/domainevent/event_manager.go:190-217 | example/infra-example/infra/domainevent/event_manager.go:184-211 \u2014 before extracting anything, compare \u0060example/fshop/infra/domainevent/event_manager.go\u0060 and \u0060example/infra-example/infra/domainevent/event_manager.go\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 134 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. 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":"example/fshop/infra/domainevent/event_manager.go"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"74ced5c0f3d5a361ef9930df3d9798ff4be550dec3e3353ab6bc934060a55797"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): example/fshop/infra/domainevent/event_retry.go:92-116 | example/infra-example/infra/domainevent/event_retry.go:92-116 \u2014 before extracting anything, compare \u0060example/fshop/infra/domainevent/event_retry.go\u0060 and \u0060example/infra-example/infra/domainevent/event_retry.go\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 161 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 \u0060example/fshop/infra/domainevent/event_retry.go:92\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":"example/fshop/infra/domainevent/event_retry.go"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf7ff87fd647245e53d7f46ef9469b851bc916e58f4965a7e0cd2ec960dfe876"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): example/fshop/infra/domainevent/event_retry.go:142-166 | example/infra-example/infra/domainevent/event_retry.go:142-166 \u2014 before extracting anything, compare \u0060example/fshop/infra/domainevent/event_retry.go\u0060 and \u0060example/infra-example/infra/domainevent/event_retry.go\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 161 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 \u0060example/fshop/infra/domainevent/event_retry.go:142\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":"example/fshop/infra/domainevent/event_retry.go"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"e331509f236200e37c8cf7363e38f902b5b0aee1b2213e171fdefab7285ab788"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): example/fshop/adapter/repository/generate.go:16-39 | example/infra-example/adapter/repository/generate.go:16-39 \u2014 before extracting anything, compare \u0060example/fshop/adapter/repository/generate.go\u0060 and \u0060example/infra-example/adapter/repository/generate.go\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 311 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/fshop/adapter/repository/generate.go"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4418821b31daf771148b94f5ce83b7ab9524128c3172578a2279827c33d65fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): example/fshop/infra/domainevent/event_retry.go:45-66 | example/infra-example/infra/domainevent/event_retry.go:45-66 \u2014 before extracting anything, compare \u0060example/fshop/infra/domainevent/event_retry.go\u0060 and \u0060example/infra-example/infra/domainevent/event_retry.go\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 161 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. 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":"example/fshop/infra/domainevent/event_retry.go"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfa976aa68bdce9c6f1f6136086cbf92efb61b03db28a26650a175882619719e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 4): example/base/config/config.go:52-71 | example/fshop/config/config.go:52-71 | example/http2/config/config.go:52-71 | example/infra-example/config/config.go:52-71 \u2014 before extracting anything, compare \u0060example/base/config/config.go\u0060 and \u0060example/fshop/config/config.go\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 65 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. 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":"example/base/config/config.go"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"7335720b11fda1b9027a83658b4fa619f96b7e379e60785609b260764a0c1332"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): example/fshop/infra/domainevent/event_retry.go:187-206 | example/infra-example/infra/domainevent/event_retry.go:187-206 \u2014 before extracting anything, compare \u0060example/fshop/infra/domainevent/event_retry.go\u0060 and \u0060example/infra-example/infra/domainevent/event_retry.go\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 161 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. 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":"example/fshop/infra/domainevent/event_retry.go"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"78a026b4a41c7f55f1c49a76d863b9fced4e6dfd18de6f419f417531255a2b51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): example/fshop/adapter/repository/generate.go:608-625 | example/infra-example/adapter/repository/generate.go:329-346 \u2014 before extracting anything, compare \u0060example/fshop/adapter/repository/generate.go\u0060 and \u0060example/infra-example/adapter/repository/generate.go\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 311 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 \u0060example/fshop/adapter/repository/generate.go:608\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 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":"example/fshop/adapter/repository/generate.go"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eb5ff3be32f5ff92a07fafa8aec5545a139517354f811a5d9336a4f17147c0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): example/fshop/adapter/repository/generate.go:765-782 | example/infra-example/adapter/repository/generate.go:521-538 \u2014 before extracting anything, compare \u0060example/fshop/adapter/repository/generate.go\u0060 and \u0060example/infra-example/adapter/repository/generate.go\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 311 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 \u0060example/fshop/adapter/repository/generate.go:765\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 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":"example/fshop/adapter/repository/generate.go"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c1905458af8de9b837d610a5de2454d6ddefd1ce54db0ee2d12ca84dab802c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): example/fshop/infra/domainevent/event_manager.go:154-171 | example/infra-example/infra/domainevent/event_manager.go:148-165 \u2014 before extracting anything, compare \u0060example/fshop/infra/domainevent/event_manager.go\u0060 and \u0060example/infra-example/infra/domainevent/event_manager.go\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 134 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. 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":"example/fshop/infra/domainevent/event_manager.go"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cf6245c3aed9dbc914458a061f600160dd6d0ebaddb6423f1bfe8110de27b8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): example/fshop/infra/domainevent/event_retry.go:119-136 | example/infra-example/infra/domainevent/event_retry.go:119-136 \u2014 before extracting anything, compare \u0060example/fshop/infra/domainevent/event_retry.go\u0060 and \u0060example/infra-example/infra/domainevent/event_retry.go\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 161 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. 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":"example/fshop/infra/domainevent/event_retry.go"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"f448848a1217ffceb162585ec4f2e160b7610d50eb9732e310bbd7987fb31527"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): example/fshop/infra/domainevent/event_retry.go:169-184 | example/infra-example/infra/domainevent/event_retry.go:169-184 \u2014 before extracting anything, compare \u0060example/fshop/infra/domainevent/event_retry.go\u0060 and \u0060example/infra-example/infra/domainevent/event_retry.go\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 161 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. 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":"example/fshop/infra/domainevent/event_retry.go"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"94e574ced338198fa815da6e98ba58eb17d009cab75729231006b1c34b239f23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): example/base/infra/request.go:78-92 | example/fshop/infra/request.go:78-92 | example/infra-example/infra/request.go:78-92 \u2014 before extracting anything, compare \u0060example/base/infra/request.go\u0060 and \u0060example/fshop/infra/request.go\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 56 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. 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":"example/base/infra/request.go"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"3786486d66395d77ec61070c8401aef0b1349f4d9566639d7a04c2a30b63067b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): example/fshop/adapter/repository/generate.go:575-589 | example/infra-example/adapter/repository/generate.go:273-287 \u2014 before extracting anything, compare \u0060example/fshop/adapter/repository/generate.go\u0060 and \u0060example/infra-example/adapter/repository/generate.go\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 311 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. 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":"example/fshop/adapter/repository/generate.go"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"29faa9b5f19006428336635ec5608c56ae8ae73fad74464718b6b5a5672b1373"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): example/fshop/adapter/repository/generate.go:732-746 | example/infra-example/adapter/repository/generate.go:465-479 \u2014 before extracting anything, compare \u0060example/fshop/adapter/repository/generate.go\u0060 and \u0060example/infra-example/adapter/repository/generate.go\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 311 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. 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":"example/fshop/adapter/repository/generate.go"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"0243718a0b36a4b81fb0360d8453cd74615d377f9ef174bf7ff7fa58988fb438"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): example/fshop/adapter/repository/generate.go:538-551 | example/infra-example/adapter/repository/generate.go:236-249 \u2014 before extracting anything, compare \u0060example/fshop/adapter/repository/generate.go\u0060 and \u0060example/infra-example/adapter/repository/generate.go\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 311 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. 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":"example/fshop/adapter/repository/generate.go"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dbf8515a1f26eb146a1250e4c7776bc8eba619902cb616cb32049696c61057d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): example/fshop/adapter/repository/generate.go:555-568 | example/infra-example/adapter/repository/generate.go:253-266 \u2014 before extracting anything, compare \u0060example/fshop/adapter/repository/generate.go\u0060 and \u0060example/infra-example/adapter/repository/generate.go\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 311 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. 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":"example/fshop/adapter/repository/generate.go"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"0987739d8f0da3bdf657d85f2dada37dcb58200c01d8d632bda8638007cd8d2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): example/fshop/adapter/repository/generate.go:695-708 | example/infra-example/adapter/repository/generate.go:428-441 \u2014 before extracting anything, compare \u0060example/fshop/adapter/repository/generate.go\u0060 and \u0060example/infra-example/adapter/repository/generate.go\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 311 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. 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":"example/fshop/adapter/repository/generate.go"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"30ead77a8ef8abc73976552e32ebcc9633ef33c9c0edf13dc733b28c5281a5ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): example/fshop/adapter/repository/generate.go:712-725 | example/infra-example/adapter/repository/generate.go:445-458 \u2014 before extracting anything, compare \u0060example/fshop/adapter/repository/generate.go\u0060 and \u0060example/infra-example/adapter/repository/generate.go\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 311 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. 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":"example/fshop/adapter/repository/generate.go"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"0540eab818fb6c5a89dddbaffcb85564d5748273209a9744395fe43d302e4eb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): example/fshop/infra/domainevent/event_manager.go:39-52 | example/infra-example/infra/domainevent/event_manager.go:39-50 \u2014 before extracting anything, compare \u0060example/fshop/infra/domainevent/event_manager.go\u0060 and \u0060example/infra-example/infra/domainevent/event_manager.go\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 134 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. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060example/fshop/infra/domainevent/event_manager.go:55\u0060 calls \u0060GetPublisherChan\u0060 and \u0060example/infra-example/infra/domainevent/event_manager.go:53\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":"example/fshop/infra/domainevent/event_manager.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"c89bd5deafd219000e3a87d291e4e248ca42a5e25fcb0f7ad37840c3191b05b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 9): example/fshop/adapter/repository/generate.go:190-202 | example/fshop/adapter/repository/generate.go:347-359 | example/fshop/adapter/repository/generate.go:504-516 | example/fshop/adapter/repository/generate.go:661-673 | example/fshop/adapter/repository/generate.go:818-830 | example/fshop/adapter/repository/generate.go:975-987 | example/fshop/adapter/repository/generate.go:1132-1144 | example/infra-example/adapter/repository/generate.go:202-214 | example/infra-example/adapter/repository/generate.go:394-406 \u2014 before extracting anything, compare \u0060example/fshop/adapter/repository/generate.go\u0060 and \u0060example/infra-example/adapter/repository/generate.go\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 311 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 \u0060example/fshop/adapter/repository/generate.go:190\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/fshop/adapter/repository/generate.go"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"fda686fe88d0b5a0ac438802e11799f1c2ec2a225fb5f43fd2dda3157f9d23c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 9): example/fshop/adapter/repository/generate.go:245-257 | example/fshop/adapter/repository/generate.go:402-414 | example/fshop/adapter/repository/generate.go:559-571 | example/fshop/adapter/repository/generate.go:716-728 | example/fshop/adapter/repository/generate.go:873-885 | example/fshop/adapter/repository/generate.go:1030-1042 | example/fshop/adapter/repository/generate.go:1187-1199 | example/infra-example/adapter/repository/generate.go:257-269 | example/infra-example/adapter/repository/generate.go:449-461 \u2014 before extracting anything, compare \u0060example/fshop/adapter/repository/generate.go\u0060 and \u0060example/infra-example/adapter/repository/generate.go\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 311 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 \u0060example/fshop/adapter/repository/generate.go:245\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/fshop/adapter/repository/generate.go"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"16b83e75e6a3420ae158584377e6dbd3f42d75226035a90dcac791a8e4369571"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): example/base/infra/request.go:41-52 | example/fshop/infra/request.go:41-52 | example/infra-example/infra/request.go:41-52 \u2014 before extracting anything, compare \u0060example/base/infra/request.go\u0060 and \u0060example/fshop/infra/request.go\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 56 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 \u0060example/base/infra/request.go:41\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/base/infra/request.go"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"46fa9fa846ba7d2178901121b4001924c911755c9b68d04b7ee9b792102161c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): example/fshop/adapter/repository/generate.go:472-483 | example/infra-example/adapter/repository/generate.go:158-169 \u2014 before extracting anything, compare \u0060example/fshop/adapter/repository/generate.go\u0060 and \u0060example/infra-example/adapter/repository/generate.go\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 311 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. 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":"example/fshop/adapter/repository/generate.go"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a3fb9afac445aa84008ab3bb7915d54166fd0ff9da83c159bc8e445d33f485"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): example/fshop/adapter/repository/generate.go:629-640 | example/infra-example/adapter/repository/generate.go:350-361 \u2014 before extracting anything, compare \u0060example/fshop/adapter/repository/generate.go\u0060 and \u0060example/infra-example/adapter/repository/generate.go\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 311 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. 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":"example/fshop/adapter/repository/generate.go"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ac5420f3507ba3b3d53074c4988235ae2aef4f00c1b05c84961347f92678433"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): example/fshop/domain/goods.go:17-28 | example/infra-example/domain/goods.go:12-21 \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. 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":"example/fshop/domain/goods.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b28b167ac9ff8af7d837930bf137af08d14d8c47aab96080ed885e51134acf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): example/fshop/domain/order.go:12-23 | example/infra-example/domain/order.go:14-23 \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. 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":"example/fshop/domain/order.go"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2e81bacbf343d7efe74a320c2e2202388e4916e251361bdd5c2df17e97ba1f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 9): example/fshop/adapter/repository/generate.go:210-220 | example/fshop/adapter/repository/generate.go:367-377 | example/fshop/adapter/repository/generate.go:524-534 | example/fshop/adapter/repository/generate.go:681-691 | example/fshop/adapter/repository/generate.go:838-848 | example/fshop/adapter/repository/generate.go:995-1005 | example/fshop/adapter/repository/generate.go:1152-1162 | example/infra-example/adapter/repository/generate.go:222-232 | example/infra-example/adapter/repository/generate.go:414-424 \u2014 before extracting anything, compare \u0060example/fshop/adapter/repository/generate.go\u0060 and \u0060example/infra-example/adapter/repository/generate.go\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 311 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 \u0060example/fshop/adapter/repository/generate.go:210\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/fshop/adapter/repository/generate.go"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"27d048fb4eff47e94c6a8a989e3545f3cadbcc9286204c9a5f56fcebefe99630"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): example/base/infra/request.go:16-26 | example/fshop/infra/request.go:16-26 | example/infra-example/infra/request.go:16-26 \u2014 before extracting anything, compare \u0060example/base/infra/request.go\u0060 and \u0060example/fshop/infra/request.go\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 56 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. 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":"example/base/infra/request.go"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a6e8710695d84f7921475b0adcc3ae8d3b107e58be7102cb71d45a6aadd00d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): example/fshop/adapter/repository/generate.go:53-63 | example/infra-example/adapter/repository/generate.go:53-63 \u2014 before extracting anything, compare \u0060example/fshop/adapter/repository/generate.go\u0060 and \u0060example/infra-example/adapter/repository/generate.go\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 311 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. 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":"example/fshop/adapter/repository/generate.go"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"d74b9114c5c61dd906a7e6c4d22164d54d39a96d970f28889ca36c30c7cdc735"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): example/fshop/adapter/repository/generate.go:593-603 | example/infra-example/adapter/repository/generate.go:314-324 \u2014 before extracting anything, compare \u0060example/fshop/adapter/repository/generate.go\u0060 and \u0060example/infra-example/adapter/repository/generate.go\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 311 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. 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":"example/fshop/adapter/repository/generate.go"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"854128975e6737e919d274e8ef8b3a8f3972d4f032e2001d9656b486e62bc983"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): example/fshop/adapter/repository/generate.go:750-760 | example/infra-example/adapter/repository/generate.go:506-516 \u2014 before extracting anything, compare \u0060example/fshop/adapter/repository/generate.go\u0060 and \u0060example/infra-example/adapter/repository/generate.go\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 311 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. 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":"example/fshop/adapter/repository/generate.go"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"bab2ad3183ad046859fc12f3d997cf1e998f00dfab7c3ef7f0c056f74c3a230d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 9): example/fshop/adapter/repository/generate.go:293-302 | example/fshop/adapter/repository/generate.go:450-459 | example/fshop/adapter/repository/generate.go:607-616 | example/fshop/adapter/repository/generate.go:764-773 | example/fshop/adapter/repository/generate.go:921-930 | example/fshop/adapter/repository/generate.go:1078-1087 | example/fshop/adapter/repository/generate.go:1235-1244 | example/infra-example/adapter/repository/generate.go:328-337 | example/infra-example/adapter/repository/generate.go:520-529 \u2014 before extracting anything, compare \u0060example/fshop/adapter/repository/generate.go\u0060 and \u0060example/infra-example/adapter/repository/generate.go\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 311 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 \u0060example/fshop/adapter/repository/generate.go:293\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. 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":"example/fshop/adapter/repository/generate.go"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9c360e452ed263fffbd7e21a44eebfb685da3417ee4dd5221f027a7971e33dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): example/fshop/adapter/repository/generate.go:67-76 | example/infra-example/adapter/repository/generate.go:67-76 \u2014 before extracting anything, compare \u0060example/fshop/adapter/repository/generate.go\u0060 and \u0060example/infra-example/adapter/repository/generate.go\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 311 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. 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":"example/fshop/adapter/repository/generate.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"c81c9962972a2bc3a9e8de7f23523b1e8edce41760eb26c685559afc1bf5b602"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): example/fshop/infra/domainevent/event_manager.go:88-97 | example/infra-example/infra/domainevent/event_manager.go:82-91 \u2014 before extracting anything, compare \u0060example/fshop/infra/domainevent/event_manager.go\u0060 and \u0060example/infra-example/infra/domainevent/event_manager.go\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 134 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 \u0060example/fshop/infra/domainevent/event_manager.go:88\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":"example/fshop/infra/domainevent/event_manager.go"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"8691924c99e1e97108c59f2bc3e04b9f804215b9dedea00a59830f992a2ac1b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 9): example/fshop/adapter/repository/generate.go:162-170 | example/fshop/adapter/repository/generate.go:319-327 | example/fshop/adapter/repository/generate.go:476-484 | example/fshop/adapter/repository/generate.go:633-641 | example/fshop/adapter/repository/generate.go:790-798 | example/fshop/adapter/repository/generate.go:947-955 | example/fshop/adapter/repository/generate.go:1104-1112 | example/infra-example/adapter/repository/generate.go:162-170 | example/infra-example/adapter/repository/generate.go:354-362 \u2014 before extracting anything, compare \u0060example/fshop/adapter/repository/generate.go\u0060 and \u0060example/infra-example/adapter/repository/generate.go\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 311 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 \u0060example/fshop/adapter/repository/generate.go:162\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/fshop/adapter/repository/generate.go"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e5c2609ddfa2f684b0b047fcc98565625c3aab5a14ce806ce9b45d624f7743a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): example/fshop/infra/domainevent/event_manager.go:66-73 | example/infra-example/infra/domainevent/event_manager.go:59-66 \u2014 before extracting anything, compare \u0060example/fshop/infra/domainevent/event_manager.go\u0060 and \u0060example/infra-example/infra/domainevent/event_manager.go\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 134 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 \u0060example/fshop/infra/domainevent/event_manager.go:66\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. 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":"example/fshop/infra/domainevent/event_manager.go"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"adbae9352065c59a7d5070be0640c4f16ebf658d4d9f40adcb446f2243c0a86b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): example/fshop/adapter/repository/generate.go:141-147 | example/infra-example/adapter/repository/generate.go:141-147 \u2014 before extracting anything, compare \u0060example/fshop/adapter/repository/generate.go\u0060 and \u0060example/infra-example/adapter/repository/generate.go\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 311 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. 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":"example/fshop/adapter/repository/generate.go"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"dee1a791c52c758f4344f7dfaf8d5428d9b2eac242e876e450abbd49c94a3886"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): example/fshop/infra/domainevent/event_retry.go:101-106 | example/fshop/infra/domainevent/event_retry.go:151-156 | example/infra-example/infra/domainevent/event_retry.go:101-106 | example/infra-example/infra/domainevent/event_retry.go:151-156 \u2014 before extracting anything, compare \u0060example/fshop/infra/domainevent/event_retry.go\u0060 and \u0060example/infra-example/infra/domainevent/event_retry.go\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 161 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 \u0060example/fshop/infra/domainevent/event_retry.go:101\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":"example/fshop/infra/domainevent/event_retry.go"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c550e07535d8bd801b1a120cfeedcfe991073f3a43bb52ce732457c57d077f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (47 lines \u00D7 2): example/fshop/infra/domainevent/event_pub.go:10-56 | example/infra-example/infra/domainevent/event_pub.go:10-56 \u2014 before extracting anything, compare \u0060example/fshop/infra/domainevent/event_pub.go\u0060 and \u0060example/infra-example/infra/domainevent/event_pub.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/fshop/infra/domainevent/event_pub.go"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"2beaad5346fa736d22945b053eab1a8b74f4b55e8ec0e76191d4b48ecabe39bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (47 lines \u00D7 2): example/fshop/infra/domainevent/event_sub.go:10-56 | example/infra-example/infra/domainevent/event_sub.go:10-56 \u2014 before extracting anything, compare \u0060example/fshop/infra/domainevent/event_sub.go\u0060 and \u0060example/infra-example/infra/domainevent/event_sub.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/fshop/infra/domainevent/event_sub.go"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dc30cf7278d1fd68388928cc43151a793df5059ba943ced4f9cf940b0f760a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 2): example/fshop/infra/domainevent/event_transaction.go:8-52 | example/infra-example/infra/domainevent/event_transaction.go:8-52 \u2014 before extracting anything, compare \u0060example/fshop/infra/domainevent/event_transaction.go\u0060 and \u0060example/infra-example/infra/domainevent/event_transaction.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. 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":"example/fshop/infra/domainevent/event_transaction.go"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"ace4dbe43be7faaf806b071dfaea654255a2f86b3f63d4073cc3b050f80d0f47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 12): example/base/adapter/repository/default.go:36-42 | example/fshop/adapter/repository/admin.go:42-48 | example/fshop/adapter/repository/cart.go:82-88 | example/fshop/adapter/repository/delivery.go:49-55 | example/fshop/adapter/repository/goods.go:126-132 | example/fshop/adapter/repository/order.go:156-162 | example/fshop/adapter/repository/user.go:82-88 | example/fshop/infra/domainevent/event_manager.go:220-226 | example/http2/adapter/repository/goods.go:43-49 | example/infra-example/adapter/repository/goods.go:66-72 | example/infra-example/adapter/repository/order.go:97-103 | example/infra-example/infra/domainevent/event_manager.go:214-220 \u2014 before extracting anything, compare \u0060example/fshop/infra/domainevent/event_manager.go\u0060 and \u0060example/infra-example/infra/domainevent/event_manager.go\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 134 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/base/adapter/repository/default.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"292b72293371e72dc63630f9f7794ca4d32d5b8072d522654715881186f839f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): example/base/config/config.go:74-86 | example/fshop/config/config.go:74-86 | example/http2/config/config.go:74-86 | example/infra-example/config/config.go:74-86 \u2014 before extracting anything, compare \u0060example/base/config/config.go\u0060 and \u0060example/fshop/config/config.go\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 65 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/base/config/config.go"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ffcde891333f30545b2a7d68b7a3f1c89a621b7139435cf4a76b1e16326820e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): example/base/infra/request.go:55-63 | example/fshop/infra/request.go:55-63 | example/infra-example/infra/request.go:55-63 \u2014 before extracting anything, compare \u0060example/base/infra/request.go\u0060 and \u0060example/fshop/infra/request.go\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 56 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/base/infra/request.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cb513e24992f8b2b763bf8ffaeb0661e718eb8f571989ce98ca41597adb7d3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): example/base/infra/request.go:66-74 | example/fshop/infra/request.go:66-74 | example/infra-example/infra/request.go:66-74 \u2014 before extracting anything, compare \u0060example/base/infra/request.go\u0060 and \u0060example/fshop/infra/request.go\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 56 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/base/infra/request.go"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"d59a24198adb9c07138fb57638f21142be5f90e8cae51fb9cc3047524c60dd61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): example/fshop/adapter/repository/generate.go:149-154 | example/infra-example/adapter/repository/generate.go:149-154 \u2014 before extracting anything, compare \u0060example/fshop/adapter/repository/generate.go\u0060 and \u0060example/infra-example/adapter/repository/generate.go\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 311 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/fshop/adapter/repository/generate.go"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e5f754ca902d71727ca2baf7c8985377c4836f8e1a266274bddfc5f91efa1ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): example/fshop/adapter/repository/goods.go:17-24 | example/http2/adapter/repository/goods.go:11-17 | example/infra-example/adapter/repository/goods.go:12-18 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/fshop/adapter/repository/goods.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2d58b9a0765a50e67ae81363d9f37c53e1ca73ce8aed3930fd096b8aa0e13c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): example/fshop/adapter/repository/order.go:16-23 | example/infra-example/adapter/repository/order.go:17-23 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/fshop/adapter/repository/order.go"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"922d4dedd9c3b7220cd179231cac12bd30e77ad1d78aebe9eb030ce09ccc5523"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): example/fshop/domain/event/change_password.go:20-29 | example/fshop/domain/event/shop_goods.go:22-31 | example/infra-example/domain/event/shop_goods.go:30-39 \u2014 before extracting anything, compare \u0060example/fshop/domain/event/shop_goods.go\u0060 and \u0060example/infra-example/domain/event/shop_goods.go\u0060 as WHOLE FILES: 88% 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/fshop/domain/event/change_password.go"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"c24ca0162f1c47a7a4ce59b15f44c4a8e3cb741259c3ddc03f78b7f3e41b07ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): example/fshop/infra/domainevent/event_manager.go:99-105 | example/infra-example/infra/domainevent/event_manager.go:93-99 \u2014 before extracting anything, compare \u0060example/fshop/infra/domainevent/event_manager.go\u0060 and \u0060example/infra-example/infra/domainevent/event_manager.go\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 134 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/fshop/infra/domainevent/event_manager.go"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a113871dc2bb34bb67524ed777b6f72d8c8585a51d65e0246180d6573ad0963"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): example/fshop/infra/domainevent/event_retry.go:12-19 | example/infra-example/infra/domainevent/event_retry.go:12-19 \u2014 before extracting anything, compare \u0060example/fshop/infra/domainevent/event_retry.go\u0060 and \u0060example/infra-example/infra/domainevent/event_retry.go\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 161 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/fshop/infra/domainevent/event_retry.go"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fed58fb1cb25256c628a04e5a54f11f7812ba03ac34f4aa662dc4a1f1df9762"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): example/fshop/infra/domainevent/event_retry.go:33-42 | example/infra-example/infra/domainevent/event_retry.go:33-42 \u2014 before extracting anything, compare \u0060example/fshop/infra/domainevent/event_retry.go\u0060 and \u0060example/infra-example/infra/domainevent/event_retry.go\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 161 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/fshop/infra/domainevent/event_retry.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea5e10faf2e643c79d4c411b15267eb57d6d56e84da5e0af9308b7fec760932d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): example/fshop/infra/domainevent/event_retry.go:21-31 | example/infra-example/infra/domainevent/event_retry.go:21-31 \u2014 before extracting anything, compare \u0060example/fshop/infra/domainevent/event_retry.go\u0060 and \u0060example/infra-example/infra/domainevent/event_retry.go\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 161 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/fshop/infra/domainevent/event_retry.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd8b7bce5d050b8d35f3a1bec9c31b1e9c08689b2e63f2cf45c4c6c2db14bb75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): example/base/main.go:20-39 | example/http2/main.go:11-20 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/base/main.go"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb63f7b39b13824857e67799a1feac9a52e728fae4e63a87022197bdde5f77a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): example/fshop/adapter/controller/user.go:41-47 | example/infra-example/adapter/controller/goods.go:36-42 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/fshop/adapter/controller/user.go"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"76a1e65cdc1932d948e5df60881f2d6fff8e9a4dcfc5585bf544e92cc68365fd"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: GoodsRepository (LCOM4 5): GoodsRepository\u0027s methods fall into 5 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 5 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":"example/fshop/adapter/repository/goods.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"49a69f144038d642204c2589854f22811b7f7e061fb646cc03de75e59329c1c9"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: OrderRepository (LCOM4 5): OrderRepository\u0027s methods fall into 5 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 5 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":"example/fshop/adapter/repository/order.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f201e267068c1cf6878283be4d2e93ea96f198e1b3a16b1becb0e6b51bc70a0"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: UserRepository (LCOM4 5): UserRepository\u0027s methods fall into 5 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 5 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":"example/fshop/adapter/repository/user.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1c4ba20598a950d00d92788d1ce4bd811e06aef58cdecd017c6c39a6267ab2e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: GoodsRepository (LCOM4 4): GoodsRepository\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":"example/infra-example/adapter/repository/goods.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef86679459072f7b014467b79c381cb329df4386f054c486f4b23f97a0512cd"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: OrderRepository (LCOM4 4): OrderRepository\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":"example/infra-example/adapter/repository/order.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"d866b9df1bfb17f42314bdb4fe6855a2c459835079e49d4d1a40bbbf45db0005"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Application (LCOM4 4): Application\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":"internal/app.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"270ecf9dc51033860284f138920f719b1a9321f5e4ce8dd1e8e742f90ea67379"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(coco): this variable seems has no effect, considering remove it. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"profile.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e1b724f299e1a6d44c79c4a4eb76da6ce40fdb1bba22011721d017809efa3b8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(coco): \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e9e58aed9a32f5928b3b9ef4c9cb6e478bb8df11e7a1ddec89bc2ddcf992c0f"}},{"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":"D27","level":"note","message":{"text":"High interface indirection: 43 % of calls go through an interface \u2014 tracing a call means resolving the implementation each hop. Prefer concrete types where there\u0027s a single implementation."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"cdce37f9abf7531f8d28e92afaa9d119cadea0ab8dd2d3958949c20b31f486ec"}},{"ruleId":"D27","level":"note","message":{"text":"Scattered collaborators: 63 % of calls cross a namespace and only 53 % 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":"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":"469eeffa76fa6d4e8fd018f3160b44e015ac12cd3c61ab33406ae2489845a6aa"},"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"}}]},{"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":"fd739684ec8f03d867c583117bbcc088b7986805eb1bee0d249eee3d9e5c2fe2"},"taxa":[{"id":"CWE-338","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"49aa6a825bc272c340ed90292b3b122187076832833de8ef38f3c84ee63278c4"},"taxa":[{"id":"CWE-391","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"8b8afeb33a0b6149a4285e02c34363bf2b0eb0d9e57be6310998b530a8120828"},"taxa":[{"id":"CWE-330","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"2c0b5fe462b324e8e093f908d177fc8373a80d0d09506903e2abdd1dfcf38c59"},"taxa":[{"id":"CWE-330","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"c49f7bff223f8301d75354448703c443597734658b572a816e79e8a2f466930b"},"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"}}]},{"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":"c4a36f6c4340cb5af60d192de217d98cc403b1030b3b19728c693e21dfcc60fd"},"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"}}]},{"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":"6c9671fcbbe4fd61405e79d8873591cbd2ccc76adc8fce087b48083aa644a43c"},"taxa":[{"id":"CWE-400","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"6732825c6fa695410ac6ce9790b412c69ed44ce57432ae3fc36a2c08958533b5"},"taxa":[{"id":"CWE-400","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"43d5526f79e48c25caba32039dfc6cc9c9c75b1b54b9661d487c1c8d120a6e81"},"taxa":[{"id":"CWE-400","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"6c31a45117d9765e13919a456574eaab915138d98ba3edbc5c77624a1c6cb81f"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"03fad18bc4aabfedbe85867d9770b9d5b6d6cc54e537c5d92d86f58c7e94f692"},"taxa":[{"id":"CWE-400","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"c54164c8ab5df127ee0eb44137736abda331e9e5f75e6add895384752a77b426"},"taxa":[{"id":"CWE-338","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"c4128b92cff17b623898505ba48372c19948ade0a69883119e31c24f090f0d26"},"taxa":[{"id":"CWE-338","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"2f40c4475db510433b6b4644f016ea8e5f62ebc7c69170c5ac6e5367bf771965"},"taxa":[{"id":"CWE-1004","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"a50d80c5d035b48b89c398f465ffacfc6b04dfc982af589e82b416e49ef44d03"},"taxa":[{"id":"CWE-614","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"d94222fa9934edd47ba3a0ef99e3a7d85a9c2a0dac93507e5359a1abb9d5d840"}},{"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":"3e3497dff39b29b75ac9960654bbb40b8974db0fe5077832fce62e57e7802e79"}},{"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"}},{"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":"886742cb819e0d06775e459d9d2537b4092a998f50ceed613501acd86680b416"}},{"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":"1c9c7154a9d80981a2f1da0fd0aa2e12a4e104a4411624a7aabc5ce2dd45d848"}},{"ruleId":"DM1","level":"error","message":{"text":"Aggregate holds a reference to another aggregate: CartAddCmd.goods: \u0060CartAddCmd\u0060 references the aggregate root \u0060Goods\u0060 directly (via \u0060goods\u0060) \u2014 hold its \u0060GoodsId\u0060 instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/fshop/domain/aggregate/cart_add_cmd.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"505497f6c1b06fb7a515b0222de322f79cda68dc8fa475c3fcfdd35451cf1874"}},{"ruleId":"DM1","level":"error","message":{"text":"Aggregate holds a reference to another aggregate: CartShopCmd.userEntity: \u0060CartShopCmd\u0060 references the aggregate root \u0060User\u0060 directly (via \u0060userEntity\u0060) \u2014 hold its \u0060UserId\u0060 instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/fshop/domain/aggregate/cart_shop_cmd.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e04caa764ebcd5b3213458970a07fc1934883eec26033868c27b9d2d3addd24"}},{"ruleId":"DM1","level":"error","message":{"text":"Aggregate holds a reference to another aggregate: GoodsShopCmd.userEntity: \u0060GoodsShopCmd\u0060 references the aggregate root \u0060User\u0060 directly (via \u0060userEntity\u0060) \u2014 hold its \u0060UserId\u0060 instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/fshop/domain/aggregate/goods_shop_cmd.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"18ff5d0d336ed7410df268bbb920e46a25f69beec685aae23e87000496821a69"}},{"ruleId":"DM1","level":"error","message":{"text":"Aggregate holds a reference to another aggregate: DeliveryCmd.adminEntity: \u0060DeliveryCmd\u0060 references the aggregate root \u0060Admin\u0060 directly (via \u0060adminEntity\u0060) \u2014 hold its \u0060AdminId\u0060 instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/fshop/domain/aggregate/order_delivery_cmd.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"e959805554d6b74a4814d1a2f84fa54f6fc67726720a2fcea2682114f28ff497"}},{"ruleId":"DM1","level":"error","message":{"text":"Aggregate holds a reference to another aggregate: OrderPayCmd.userEntity: \u0060OrderPayCmd\u0060 references the aggregate root \u0060User\u0060 directly (via \u0060userEntity\u0060) \u2014 hold its \u0060UserId\u0060 instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/fshop/domain/aggregate/order_pay_cmd.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"139869c1f0cd3e4ba0364e87c9f49ed47fe553cdc20761a0032a67d4795b8e63"}},{"ruleId":"DM10","level":"warning","message":{"text":"One operation mutates 2 aggregates: CartShopCmd.Shop: \u0060CartShopCmd.Shop\u0060 saves \u0060Goods\u0060, \u0060Order\u0060 in a single operation. Each is its own consistency boundary, so committing them together makes the second\u0027s invariants depend on the first\u0027s transaction, holds a lock across both for the whole operation, and means the pair can no longer be separated \u2014 into different services, or different databases. Mutate one aggregate here and let the others follow from a domain event."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/fshop/domain/aggregate/cart_shop_cmd.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0301ff1a47e5ebeab9c0da7bb64bce74488266df790364efa0187f7fbac846e"}},{"ruleId":"DM10","level":"warning","message":{"text":"One operation mutates 2 aggregates: GoodsShopCmd.Shop: \u0060GoodsShopCmd.Shop\u0060 saves \u0060Goods\u0060, \u0060Order\u0060 in a single operation. Each is its own consistency boundary, so committing them together makes the second\u0027s invariants depend on the first\u0027s transaction, holds a lock across both for the whole operation, and means the pair can no longer be separated \u2014 into different services, or different databases. Mutate one aggregate here and let the others follow from a domain event."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/fshop/domain/aggregate/goods_shop_cmd.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab7f2198a4237833e7dcf1e9bb5b928a56419a2f2ce5c338c06c9c30a30b9c4c"}},{"ruleId":"DM10","level":"warning","message":{"text":"One operation mutates 2 aggregates: DeliveryCmd.Run: \u0060DeliveryCmd.Run\u0060 saves \u0060Order\u0060, \u0060Delivery\u0060 in a single operation. Each is its own consistency boundary, so committing them together makes the second\u0027s invariants depend on the first\u0027s transaction, holds a lock across both for the whole operation, and means the pair can no longer be separated \u2014 into different services, or different databases. Mutate one aggregate here and let the others follow from a domain event."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/fshop/domain/aggregate/order_delivery_cmd.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"d780b744e1500065812f50be00ff86647395fdb5915dbc2874da081d67cb9f1e"}},{"ruleId":"DM10","level":"warning","message":{"text":"One operation mutates 2 aggregates: OrderPayCmd.Pay: \u0060OrderPayCmd.Pay\u0060 saves \u0060Order\u0060, \u0060User\u0060 in a single operation. Each is its own consistency boundary, so committing them together makes the second\u0027s invariants depend on the first\u0027s transaction, holds a lock across both for the whole operation, and means the pair can no longer be separated \u2014 into different services, or different databases. Mutate one aggregate here and let the others follow from a domain event."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/fshop/domain/aggregate/order_pay_cmd.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"076d560bff002f3c4160c05f8c97cb4fa1be8ee8282feace1957e1a9e4703173"}},{"ruleId":"DM6","level":"note","message":{"text":"Domain depends on infrastructure: domain: The domain package \u0060github.com/8treenet/freedom/example/base/domain\u0060 imports \u0060pkg:adapter\u0060 \u2014 an infrastructure concern (persistence/HTTP/broker/auth). The dependency direction points from the domain layer to infrastructure; invert it behind a domain-owned port."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/base/domain/default.go"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"16abb6df9df4d339b8efff59898be9430fd452addb409be738ab38d05004c7e6"}},{"ruleId":"DM6","level":"note","message":{"text":"Domain depends on infrastructure: aggregate: The domain package \u0060github.com/8treenet/freedom/example/fshop/domain/aggregate\u0060 imports \u0060pkg:infra\u0060 \u2014 an infrastructure concern (persistence/HTTP/broker/auth). The dependency direction points from the domain layer to infrastructure; invert it behind a domain-owned port."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/fshop/domain/aggregate/order_factory.go"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"c34c1f5555f805015c95c5abd12c85300018edb2b2b5f7c053423cc8edff943e"}},{"ruleId":"DM6","level":"note","message":{"text":"Domain depends on infrastructure: aggregate: The domain package \u0060github.com/8treenet/freedom/example/fshop/domain/aggregate\u0060 imports \u0060pkg:infra\u0060 \u2014 an infrastructure concern (persistence/HTTP/broker/auth). The dependency direction points from the domain layer to infrastructure; invert it behind a domain-owned port."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/fshop/domain/aggregate/shop_factory.go"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"d30ae963ff0ea4d56f20418e5e63574aacf38be9ff515c543227390edf3042a6"}},{"ruleId":"DM6","level":"note","message":{"text":"Domain depends on infrastructure: domain: The domain package \u0060github.com/8treenet/freedom/example/fshop/domain\u0060 imports \u0060pkg:infra\u0060 \u2014 an infrastructure concern (persistence/HTTP/broker/auth). The dependency direction points from the domain layer to infrastructure; invert it behind a domain-owned port."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/fshop/domain/goods.go"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"89dd9783257bdcaacf421ddcaf69c7d65077e9882dc46d0808467fffdfcb8c7f"}},{"ruleId":"DM6","level":"note","message":{"text":"Domain depends on infrastructure: domain: The domain package \u0060github.com/8treenet/freedom/example/fshop/domain\u0060 imports \u0060pkg:infra\u0060 \u2014 an infrastructure concern (persistence/HTTP/broker/auth). The dependency direction points from the domain layer to infrastructure; invert it behind a domain-owned port."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/fshop/domain/user.go"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcbb6f567849e62a4ae813b9cb31e26fb12d21d55688da6aeaec0ea31bdfc747"}},{"ruleId":"DM6","level":"note","message":{"text":"Domain depends on infrastructure: domain: The domain package \u0060github.com/8treenet/freedom/example/http2/domain\u0060 imports \u0060pkg:adapter\u0060 \u2014 an infrastructure concern (persistence/HTTP/broker/auth). The dependency direction points from the domain layer to infrastructure; invert it behind a domain-owned port."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/http2/domain/shop.go"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"a759febf77a17a4a7b5066b8d1629d42d54f73cab15a9fc26bb671bb038f4adf"}},{"ruleId":"DM6","level":"note","message":{"text":"Domain depends on infrastructure: event: The domain package \u0060github.com/8treenet/freedom/example/infra-example/domain/event\u0060 imports \u0060pkg:infra\u0060 \u2014 an infrastructure concern (persistence/HTTP/broker/auth). The dependency direction points from the domain layer to infrastructure; invert it behind a domain-owned port."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/infra-example/domain/event/shop_goods.go"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"26f5a1175159f9c04f5fbad2007336dc23d036e9cb7da7aa9199ec03e5d7b1d3"}},{"ruleId":"DM6","level":"note","message":{"text":"Domain depends on infrastructure: domain: The domain package \u0060github.com/8treenet/freedom/example/infra-example/domain\u0060 imports \u0060pkg:adapter\u0060 \u2014 an infrastructure concern (persistence/HTTP/broker/auth). The dependency direction points from the domain layer to infrastructure; invert it behind a domain-owned port."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/infra-example/domain/goods.go"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0ad472689d03cbb974ed31806e0036830aa344aa75b3364f3b86659102c85f7"}},{"ruleId":"DM6","level":"note","message":{"text":"Domain depends on infrastructure: domain: The domain package \u0060github.com/8treenet/freedom/example/infra-example/domain\u0060 imports \u0060pkg:adapter\u0060 \u2014 an infrastructure concern (persistence/HTTP/broker/auth). The dependency direction points from the domain layer to infrastructure; invert it behind a domain-owned port."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/infra-example/domain/order.go"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"30c83fb37317d3eebfa0ef068a0eb55697bd744c75a3d01dbe6bc78b4dd2fd5e"}},{"ruleId":"DM6","level":"note","message":{"text":"Domain depends on infrastructure: domain: The domain package \u0060github.com/8treenet/freedom/example/infra-example/domain\u0060 imports \u0060pkg:infra\u0060 \u2014 an infrastructure concern (persistence/HTTP/broker/auth). The dependency direction points from the domain layer to infrastructure; invert it behind a domain-owned port."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/infra-example/domain/goods.go"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3821aebd19fb03919a8463306c55d63e7971f993d4fb1770f49e49c14b6451e"}},{"ruleId":"DM6","level":"note","message":{"text":"Domain depends on infrastructure: domain: The domain package \u0060github.com/8treenet/freedom/example/infra-example/domain\u0060 imports \u0060pkg:infra\u0060 \u2014 an infrastructure concern (persistence/HTTP/broker/auth). The dependency direction points from the domain layer to infrastructure; invert it behind a domain-owned port."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/infra-example/domain/order.go"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b9bc912720bbe703e3d3ff4450e84153ce1e11d0c114454ca8c942b956131ab"}},{"ruleId":"ED3","level":"note","message":{"text":"Event not named in past tense: ChangePassword: \u0060ChangePassword\u0060 reads as an instruction, not a fact that happened. Events describe something that already occurred \u2014 name them in the past tense (e.g. \u0060OrderPlaced\u0060, \u0060PaymentCaptured\u0060) so the ubiquitous language stays clear."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/fshop/domain/event/change_password.go"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1fe414b2a13812f6996340570ef9b2d42dc85b92050c39e1e3341337dcc5390"}},{"ruleId":"ED3","level":"note","message":{"text":"Event not named in past tense: ShopGoods: \u0060ShopGoods\u0060 reads as an instruction, not a fact that happened. Events describe something that already occurred \u2014 name them in the past tense (e.g. \u0060OrderPlaced\u0060, \u0060PaymentCaptured\u0060) so the ubiquitous language stays clear."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/fshop/domain/event/shop_goods.go"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6ee663154cbefeb3615470ae5e4ad95f1c8d39fe1538c0d5eb4e1227ccb2dad"}},{"ruleId":"ED3","level":"note","message":{"text":"Event not named in past tense: OrderPay: \u0060OrderPay\u0060 reads as an instruction, not a fact that happened. Events describe something that already occurred \u2014 name them in the past tense (e.g. \u0060OrderPlaced\u0060, \u0060PaymentCaptured\u0060) so the ubiquitous language stays clear."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/infra-example/domain/event/order.go"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"46287fa58dfe943c51aef84f76464540ca0e596e88409db6d5991b6d3bde1b5b"}},{"ruleId":"ED3","level":"note","message":{"text":"Event not named in past tense: ShopGoods: \u0060ShopGoods\u0060 reads as an instruction, not a fact that happened. Events describe something that already occurred \u2014 name them in the past tense (e.g. \u0060OrderPlaced\u0060, \u0060PaymentCaptured\u0060) so the ubiquitous language stays clear."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/infra-example/domain/event/shop_goods.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c1a12e8a15a26c05a08debfd8a4e037513d4313bf5ff1479f486680b839ec2e"}},{"ruleId":"ED4","level":"error","message":{"text":"Dual write (no outbox): OrderRepository.Pay: \u0060OrderRepository.Pay\u0060 writes to the database AND publishes to the message bus in the same flow, with no outbox referenced in this path. These two writes aren\u0027t atomic \u2014 a crash between them either loses the message (DB committed, publish failed) or emits a phantom event (publish succeeded, DB rolled back). Use the transactional outbox pattern \u2014 write the message to an outbox table in the SAME transaction as the state change, and dispatch it from there afterwards \u2014 or your platform\u0027s equivalent (a broker transaction, or an outbox library from your own ecosystem)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/infra-example/adapter/repository/order.go"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"33617f28e3d32e01a1ab61fac2c77a923b4e03e1d99c4d15c130483049f03bdc"}},{"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":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"P1","level":"warning","message":{"text":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"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) \u2014 this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\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":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}}],"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-1004","guid":"872195c9-bb07-cf51-8a32-865f4bb753ca","name":"CWE-1004","shortDescription":{"text":"CWE-1004"},"helpUri":"https://cwe.mitre.org/data/definitions/1004.html"},{"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-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":"CWE-248","shortDescription":{"text":"CWE-248"},"helpUri":"https://cwe.mitre.org/data/definitions/248.html"},{"id":"CWE-252","guid":"78915dc5-e486-f858-bc3c-aa570ad9010d","name":"CWE-252","shortDescription":{"text":"CWE-252"},"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-319","guid":"7af97476-9f0d-4458-9163-3d2043918a1a","name":"CWE-319","shortDescription":{"text":"CWE-319"},"helpUri":"https://cwe.mitre.org/data/definitions/319.html"},{"id":"CWE-330","guid":"f811ddf9-2e54-865b-9c76-f97905849790","name":"CWE-330","shortDescription":{"text":"CWE-330"},"helpUri":"https://cwe.mitre.org/data/definitions/330.html"},{"id":"CWE-338","guid":"e89b7604-c3f7-8b53-bc8c-4d4718c28617","name":"CWE-338","shortDescription":{"text":"CWE-338"},"helpUri":"https://cwe.mitre.org/data/definitions/338.html"},{"id":"CWE-391","guid":"d9ef5687-8d79-9b51-b509-b83411fbcdc3","name":"CWE-391","shortDescription":{"text":"CWE-391"},"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-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"CWE-506","shortDescription":{"text":"CWE-506"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-614","guid":"faa8a6a5-7e9d-5d5e-afc9-020ff49d250a","name":"CWE-614","shortDescription":{"text":"CWE-614"},"helpUri":"https://cwe.mitre.org/data/definitions/614.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":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"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":"SQL Injection","shortDescription":{"text":"SQL Injection"},"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":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"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":21,"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."]}]}