{"$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":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"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":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"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"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX1","name":"Captive dependencies","shortDescription":{"text":"Captive dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/AX1"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX2","name":"Stateful singletons","shortDescription":{"text":"Stateful singletons"},"helpUri":"https://codehealth.canine.dev/dimensions/AX2"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX5","name":"Architecture \u0026 structure","shortDescription":{"text":"Architecture \u0026 structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AX5"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AX7","name":"Slice cohesion","shortDescription":{"text":"Slice cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/AX7"},{"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":"DM3","name":"Integration-event coupling","shortDescription":{"text":"Integration-event coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/DM3"},{"id":"DM4","name":"Rich vs anemic model","shortDescription":{"text":"Rich vs anemic model"},"helpUri":"https://codehealth.canine.dev/dimensions/DM4"},{"id":"DM5","name":"Encapsulated state","shortDescription":{"text":"Encapsulated state"},"helpUri":"https://codehealth.canine.dev/dimensions/DM5"},{"id":"DM6","name":"Domain \u2194 infrastructure boundary","shortDescription":{"text":"Domain \u2194 infrastructure boundary"},"helpUri":"https://codehealth.canine.dev/dimensions/DM6"},{"id":"DM7","name":"Repository granularity","shortDescription":{"text":"Repository granularity"},"helpUri":"https://codehealth.canine.dev/dimensions/DM7"},{"id":"DM9","name":"Scattered domain decisions","shortDescription":{"text":"Scattered domain decisions"},"helpUri":"https://codehealth.canine.dev/dimensions/DM9"},{"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":"IC1","name":"Incompleteness \u0026 stubs","shortDescription":{"text":"Incompleteness \u0026 stubs"},"helpUri":"https://codehealth.canine.dev/dimensions/IC1"},{"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":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P5","name":"DR \u0026 Backup","shortDescription":{"text":"DR \u0026 Backup"},"helpUri":"https://codehealth.canine.dev/dimensions/P5"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"P8","name":"Schema migrations","shortDescription":{"text":"Schema migrations"},"helpUri":"https://codehealth.canine.dev/dimensions/P8"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D2","level":"warning","message":{"text":"ObservabilityConfiguration.configureTracingExporters (cognitive 21): ObservabilityConfiguration.configureTracingExporters has cognitive complexity 21 (threshold 15). Drivers by points: error handling 6 (13 pts), if/else 7 (8 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/observability/ObservabilityConfiguration.java"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f513997af33525a28a3919155623453596202108c88474fc4a8c5dc640bb956"}},{"ruleId":"D2","level":"warning","message":{"text":"ObservabilityConfiguration.configMetricsExporters (cognitive 18): ObservabilityConfiguration.configMetricsExporters has cognitive complexity 18 (threshold 15). Drivers by points: error handling 5 (11 pts), if/else 6 (7 pts) (nesting depth added 7). 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":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/observability/ObservabilityConfiguration.java"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd3086de01e7f5c3cfb8d9285eb91212d0a1c2ff6cbe7b8807e0c7a65fd973cb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ObservabilityProperties: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. This type is bound by @ConfigurationProperties, so its accessors ARE the configuration keys: grouping members onto a nested type renames every key beneath it, and keeping the keys means the delegate still needs the full pass-through pair, which does not reduce the count. To reduce it, treat the split as a key migration \u2014 move each cohesive group onto its own bound type and publish the new key names, keeping the old ones accepted for a deprecation period. Where the key surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/observability/ObservabilityProperties.java"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"7863480b464543925df8525d5b475e09e8cbcb2899deb6e624d5fb10c9082a12"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AggregateBaseRepository: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\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":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/data/AggregateBaseRepository.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a47f5d0e4900a389ddfd1ac24b87eeb4616c338bc492c50eab5a2788f6aa7d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): api-gateway/src/main/java/com/github/mehdihadeli/apigateway/security/CustomFluxJwtAuthenticationConverter.java:106-124 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/security/CustomJwtAuthenticationConverter.java:122-140 \u2014 These two members are one piece of code written twice and then edited apart: 19 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":"api-gateway/src/main/java/com/github/mehdihadeli/apigateway/security/CustomFluxJwtAuthenticationConverter.java"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"817ae337613a4d270f0b9b437d20dd46e6a0e4b7c6c5c791625400a4a0dcdbfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/validation/NumberRuleBuilder.java:39-45 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/validation/ObjectRuleBuilder.java:20-26 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/validation/StringRuleBuilder.java:54-60 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/validation/UUIDRuleBuilder.java:33-39 \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":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/validation/NumberRuleBuilder.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5f8bc0fa9c2e1e51b437b3423ef562f6258106a12aeb11157285617a2702c6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/mediator/MediatorImpl.java:318-339 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/mediator/MediatorImpl.java:344-365 \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. 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":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/mediator/MediatorImpl.java"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6a11c0d11772f807cc6e28a0c1d34396bb7e34007fd601fb078b1877a32ab62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): api-gateway/src/main/java/com/github/mehdihadeli/apigateway/security/CustomFluxJwtAuthenticationConverter.java:85-104 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/security/CustomJwtAuthenticationConverter.java:81-100 \u2014 before extracting anything, compare \u0060api-gateway/src/main/java/com/github/mehdihadeli/apigateway/security/CustomFluxJwtAuthenticationConverter.java\u0060 and \u0060building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/security/CustomJwtAuthenticationConverter.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 103 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":"api-gateway/src/main/java/com/github/mehdihadeli/apigateway/security/CustomFluxJwtAuthenticationConverter.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"7981cc090552192474d28ff68f8630117ad487228e25881805e5efec2ef192b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): api-gateway/src/main/java/com/github/mehdihadeli/apigateway/security/CustomFluxJwtAuthenticationConverter.java:127-144 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/security/CustomJwtAuthenticationConverter.java:103-120 \u2014 before extracting anything, compare \u0060api-gateway/src/main/java/com/github/mehdihadeli/apigateway/security/CustomFluxJwtAuthenticationConverter.java\u0060 and \u0060building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/security/CustomJwtAuthenticationConverter.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 103 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":"api-gateway/src/main/java/com/github/mehdihadeli/apigateway/security/CustomFluxJwtAuthenticationConverter.java"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"f07d0160d083524bfd2525263051cb3801a6a72278b239cb73905879d43e04ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/observability/DiagnosticsProviderImpl.java:45-61 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/observability/DiagnosticsProviderImpl.java:77-94 \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 \u0060building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/observability/DiagnosticsProviderImpl.java:45\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":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/observability/DiagnosticsProviderImpl.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e6f3b828568abe182c4eab879585f2decb1e2d0551000f5f5ba77aee70b7c70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): api-gateway/src/main/java/com/github/mehdihadeli/apigateway/security/CustomFluxJwtAuthenticationConverter.java:147-163 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/security/CustomJwtAuthenticationConverter.java:143-159 \u2014 before extracting anything, compare \u0060api-gateway/src/main/java/com/github/mehdihadeli/apigateway/security/CustomFluxJwtAuthenticationConverter.java\u0060 and \u0060building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/security/CustomJwtAuthenticationConverter.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 103 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":"api-gateway/src/main/java/com/github/mehdihadeli/apigateway/security/CustomFluxJwtAuthenticationConverter.java"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"8089fffee79ca9e0f78103bbf46d4ad696d7b69033a4038f62a03990f8194a62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/observability/diagnostics/command/CommandHandlerSpanImpl.java:23-38 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/observability/diagnostics/command/CommandHandlerSpanImpl.java:48-64 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/observability/diagnostics/command/CommandHandlerSpanImpl.java"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfd1e15c40ccbb6a6a3edebfc54ea683821df3e25236326a5370c45c6cd59b1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): api-gateway/src/main/java/com/github/mehdihadeli/apigateway/security/CustomFluxJwtAuthenticationConverter.java:57-72 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/security/CustomJwtAuthenticationConverter.java:53-68 \u2014 before extracting anything, compare \u0060api-gateway/src/main/java/com/github/mehdihadeli/apigateway/security/CustomFluxJwtAuthenticationConverter.java\u0060 and \u0060building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/security/CustomJwtAuthenticationConverter.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 103 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":"api-gateway/src/main/java/com/github/mehdihadeli/apigateway/security/CustomFluxJwtAuthenticationConverter.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aa25d73657ac3b034373556715cb1fa1bf8e940adff3d5cd85e1d308d586c5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/data/EntityManagerUtils.java:66-79 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/data/EntityManagerUtils.java:86-99 \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. 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":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/data/EntityManagerUtils.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e5906077c01cff855ac1b8b775a55ac3dbf5781060c385427d5030eb1b5721c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/mediator/MediatorImpl.java:191-202 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/mediator/MediatorImpl.java:232-243 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/mediator/MediatorImpl.java:271-282 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/mediator/MediatorImpl.java"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2d3b7f7ec0f27914633a5518f6d3fb16cdb84bf04cceb1ccd31d07f471b3b28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): api-gateway/src/main/java/com/github/mehdihadeli/apigateway/security/CustomFluxJwtAuthenticationConverter.java:113-124 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/security/CustomJwtAuthenticationConverter.java:129-140 \u2014 before extracting anything, compare \u0060api-gateway/src/main/java/com/github/mehdihadeli/apigateway/security/CustomFluxJwtAuthenticationConverter.java\u0060 and \u0060building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/security/CustomJwtAuthenticationConverter.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 103 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 \u0060api-gateway/src/main/java/com/github/mehdihadeli/apigateway/security/CustomFluxJwtAuthenticationConverter.java:113\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":"api-gateway/src/main/java/com/github/mehdihadeli/apigateway/security/CustomFluxJwtAuthenticationConverter.java"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"a27dbebbb4553e85435f5579a45a3f3d0de62d052d018de2d4f450f075e29e26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): api-gateway/src/main/java/com/github/mehdihadeli/apigateway/security/KeycloakGatewayConfiguration.java:24-34 | api-gateway/src/main/java/com/github/mehdihadeli/apigateway/security/KeycloakGatewayConfiguration.java:36-46 | api-gateway/src/main/java/com/github/mehdihadeli/apigateway/security/KeycloakGatewayConfiguration.java:48-58 | api-gateway/src/main/java/com/github/mehdihadeli/apigateway/security/KeycloakGatewayConfiguration.java:59-70 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060api-gateway/src/main/java/com/github/mehdihadeli/apigateway/security/KeycloakGatewayConfiguration.java:24\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api-gateway/src/main/java/com/github/mehdihadeli/apigateway/security/KeycloakGatewayConfiguration.java"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"09a03a574a7566eb5420191279b81a775c0aa26a280a86c3438bf3850ad53a5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/mediator/MediatorImpl.java:55-65 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/mediator/MediatorImpl.java:72-82 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/mediator/MediatorImpl.java:89-99 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/mediator/MediatorImpl.java:55\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":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/mediator/MediatorImpl.java"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"29b887cd79e7c90f79ba21b5705572dd1d03950dc1eddada0b288584b3d8f524"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/data/EntityManagerUtils.java:233-243 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/data/EntityManagerUtils.java:262-272 \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 \u0060building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/data/EntityManagerUtils.java:233\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":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/data/EntityManagerUtils.java"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"07a16ad7e25f7cd678f8ba1239e3686b145361509722c017ba2705e55d979c77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): services/users/core/src/main/java/com/github/mehdihadeli/users/core/users/UserMapper.java:19-28 | services/users/core/src/main/java/com/github/mehdihadeli/users/core/users/features/creatinguser/v1/CreateUserEndpoint.java:58-67 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060services/users/core/src/main/java/com/github/mehdihadeli/users/core/users/UserMapper.java:19\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/users/core/src/main/java/com/github/mehdihadeli/users/core/users/UserMapper.java"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bddfe04c7a39dce25a6ed96450baeb5d49e7be24d7bc4039981d3690e072f84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): services/catalogs/api/src/main/java/com/github/mehdihadeli/catalogs/api/CatalogsApiApplication.java:35-43 | services/customers/api/src/main/java/com/github/mehdihadeli/customers/api/CustomersApiApplication.java:34-42 | services/users/api/src/main/java/com/github/mehdihadeli/users/api/UsersApiApplication.java:34-42 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060services/catalogs/api/src/main/java/com/github/mehdihadeli/catalogs/api/CatalogsApiApplication.java:35\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/catalogs/api/src/main/java/com/github/mehdihadeli/catalogs/api/CatalogsApiApplication.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"de9e9aea31d8188de3c50fb901173e68b987b54771507db66a0b8a87b91b1786"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/observability/ObservabilityConfiguration.java:266-273 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/observability/ObservabilityConfiguration.java:280-287 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/observability/ObservabilityConfiguration.java:299-306 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/observability/ObservabilityConfiguration.java:266\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":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/observability/ObservabilityConfiguration.java"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d65854fad5c51805cafc611e315ef0c4c2ef75da34ef72f6371f88655716c11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/observability/diagnostics/command/CommandHandlerMetricsImpl.java:50-57 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/observability/diagnostics/command/CommandHandlerMetricsImpl.java:70-77 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/observability/diagnostics/command/CommandHandlerMetricsImpl.java:93-100 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/observability/diagnostics/command/CommandHandlerMetricsImpl.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"adeac011d0373f568f5a2b6ff8204c844c5622356aa818587ed853d76410253e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/observability/diagnostics/query/QueryHandlerMetricsImpl.java:50-57 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/observability/diagnostics/query/QueryHandlerMetricsImpl.java:70-77 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/observability/diagnostics/query/QueryHandlerMetricsImpl.java:93-100 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/observability/diagnostics/query/QueryHandlerMetricsImpl.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6f6b659ca6a1d252c05e7c598e2eca43f8f1450c90f394889605279e5ae8ea2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): api-gateway/src/main/java/com/github/mehdihadeli/apigateway/security/CustomFluxJwtAuthenticationConverter.java:75-82 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/security/CustomJwtAuthenticationConverter.java:71-78 \u2014 before extracting anything, compare \u0060api-gateway/src/main/java/com/github/mehdihadeli/apigateway/security/CustomFluxJwtAuthenticationConverter.java\u0060 and \u0060building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/security/CustomJwtAuthenticationConverter.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 103 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":"api-gateway/src/main/java/com/github/mehdihadeli/apigateway/security/CustomFluxJwtAuthenticationConverter.java"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff108cc197fe608ed51d3aded9b58b34e4cf62149d3066f31ce0c2f9c8c3f64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/data/MongoTemplateUtils.java:71-78 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/data/MongoTemplateUtils.java:93-100 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/data/MongoTemplateUtils.java"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"3037aac38e119c1089125dd04ca08c1604f03329b07767691a776e89edfe92ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/observability/ObservabilityConfiguration.java:186-194 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/observability/ObservabilityConfiguration.java:382-389 \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 \u0060building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/observability/ObservabilityConfiguration.java:186\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":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/observability/ObservabilityConfiguration.java"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"4db11f77fe65ac9fdcb5bebc76e5290fdbcaf9ffc7d5be31fc49182d90ce5102"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/observability/ObservabilityConfiguration.java:319-326 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/observability/ObservabilityConfiguration.java:363-370 \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 \u0060building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/observability/ObservabilityConfiguration.java:319\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":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/observability/ObservabilityConfiguration.java"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"645b4a96f0df7e9ceff9121fa6f6a6846ed7069c6d93f672f1605f38847f3c7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/products/ProductMapper.java:290-297 | services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/products/ProductMapper.java:417-424 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/products/ProductMapper.java:290\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/products/ProductMapper.java"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"eccb87fafaa68c8c1006bb430396fe2c54707ebdd6e09118b1af6c604c89e6c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/observability/ObservabilityConfiguration.java:252-258 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/observability/ObservabilityConfiguration.java:267-273 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/observability/ObservabilityConfiguration.java:281-287 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/observability/ObservabilityConfiguration.java:252\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":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/observability/ObservabilityConfiguration.java"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"b501bbaf73792bd300220164aeb7f1a0748e11bad4033489483aad46a162b308"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): api-gateway/src/main/java/com/github/mehdihadeli/apigateway/security/CustomFluxJwtAuthenticationConverter.java:48-54 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/security/CustomJwtAuthenticationConverter.java:44-50 \u2014 before extracting anything, compare \u0060api-gateway/src/main/java/com/github/mehdihadeli/apigateway/security/CustomFluxJwtAuthenticationConverter.java\u0060 and \u0060building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/security/CustomJwtAuthenticationConverter.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 103 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 \u0060api-gateway/src/main/java/com/github/mehdihadeli/apigateway/security/CustomFluxJwtAuthenticationConverter.java:48\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":"api-gateway/src/main/java/com/github/mehdihadeli/apigateway/security/CustomFluxJwtAuthenticationConverter.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ba7b55377d1db65e4c0b2316772c39bfeb947243c1a331716e947b68fd019e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/abstractions/core/data/AggregateRepository.java:81-87 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/data/RepositoryBase.java:113-119 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/abstractions/core/data/AggregateRepository.java:81\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/abstractions/core/data/AggregateRepository.java"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"1491a26dc3e1b71c315fdf6a539ff065b5b19a0e7c999cc22a7f07d9b2bece3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/messaging/MessageUtils.java:61-67 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/messaging/MessageUtils.java:80-87 \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 \u0060building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/messaging/MessageUtils.java:61\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":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/messaging/MessageUtils.java"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"cef97d2666b9d806a2ca9f6cf9e617c10d7e33cffea7c64aa2ac007858ec27bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/validation/NumberRuleBuilder.java:41-45 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/validation/ObjectRuleBuilder.java:22-26 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/validation/StringRuleBuilder.java:56-60 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/validation/UUIDRuleBuilder.java:35-39 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/validation/NumberRuleBuilder.java:41\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/validation/NumberRuleBuilder.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a2a094782880e0ddca82ffd5789e52f788beda973dcd4e321744b44069afd43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): api-gateway/src/main/java/com/github/mehdihadeli/apigateway/security/CustomFluxJwtAuthenticationConverter.java:107-111 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/security/CustomJwtAuthenticationConverter.java:123-127 \u2014 before extracting anything, compare \u0060api-gateway/src/main/java/com/github/mehdihadeli/apigateway/security/CustomFluxJwtAuthenticationConverter.java\u0060 and \u0060building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/security/CustomJwtAuthenticationConverter.java\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 103 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":"api-gateway/src/main/java/com/github/mehdihadeli/apigateway/security/CustomFluxJwtAuthenticationConverter.java"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb6bb624249bcadc398479285881b3b8983e51dd2e665eb315572b2520de3754"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/data/AggregateBaseRepository.java:187-193 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/data/AggregateBaseRepository.java:240-244 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/data/AggregateBaseRepository.java"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"906deb1bfc0ace6f5e7f5eaba5eae93e81a8d850733c2709fbc2873009574f8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (64 lines \u00D7 2): building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/data/AggregateDataModelBase.java:1-64 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/data/AuditableAggregateDataModelBase.java:1-64 \u2014 before extracting anything, compare \u0060building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/data/AggregateDataModelBase.java\u0060 and \u0060building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/data/AuditableAggregateDataModelBase.java\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. 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 \u0060building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/data/AggregateDataModelBase.java:1\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":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/data/AggregateDataModelBase.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"67da39242ea7a341515b0014fb6b2383675d85ae53860f409e396ab5a4dd7eb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (68 lines \u00D7 2): services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/CatalogsCoreConfiguration.java:1-69 | services/customers/core/src/main/java/com/github/mehdihadeli/customers/core/CustomersCoreConfiguration.java:1-68 \u2014 before extracting anything, compare \u0060services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/CatalogsCoreConfiguration.java\u0060 and \u0060services/customers/core/src/main/java/com/github/mehdihadeli/customers/core/CustomersCoreConfiguration.java\u0060 as WHOLE FILES: 96% 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/CatalogsCoreConfiguration.java:1\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 transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/CatalogsCoreConfiguration.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"26c4e1789f8bbc72e545b52bbb70c0d116070404ae69f2de168e662be1ef4bf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/categories/features/updatingcategorydetails/v1/UpdateCategoryDetails.java:1-19 | services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/categories/features/updatingcategorydetails/v1/events/domain/CategoryDetailsUpdated.java:1-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/categories/features/updatingcategorydetails/v1/UpdateCategoryDetails.java:1\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/categories/features/updatingcategorydetails/v1/UpdateCategoryDetails.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9c3336d0740cedd11a1dc0909df66fb09dd3a94f2dc4fb205874b83b74f0ba9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/products/data/valueobjects/MoneyVO.java:13-34 | services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/products/data/valueobjects/PriceVO.java:13-34 \u2014 before extracting anything, compare \u0060services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/products/data/valueobjects/MoneyVO.java\u0060 and \u0060services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/products/data/valueobjects/PriceVO.java\u0060 as WHOLE FILES: 85% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/products/data/valueobjects/MoneyVO.java"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2cc0134dbb429261c07fba59b2442aef438f377b5adbd55b91768019b42d6c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/products/features/creatingproductreview/v1/events/domain/ProductReviewCreated.java:1-24 | services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/products/features/updatingproductdetails/v1/UpdateProductDetails.java:1-28 | services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/products/features/updatingproductdetails/v1/events/domain/ProductDetailsUpdated.java:1-30 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/products/features/creatingproductreview/v1/events/domain/ProductReviewCreated.java:1\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/products/features/creatingproductreview/v1/events/domain/ProductReviewCreated.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f958fd8946a0f4dafa68e4cb3616442d896bea9b072c19d58d64a754a52d1631"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/products/features/updatingproductdetails/v1/UpdateProductDetails.java:1-28 | services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/products/features/updatingproductdetails/v1/events/domain/ProductDetailsUpdated.java:1-30 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/products/features/updatingproductdetails/v1/UpdateProductDetails.java:1\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/products/features/updatingproductdetails/v1/UpdateProductDetails.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"deb3fcfef6e56f92a8f62815d34cff2ab43d581f1311ab4bf65dd1ab682dfa57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/abstractions/core/data/AggregateRepository.java:90-99 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/data/EntityManagerUtils.java:403-412 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/abstractions/core/data/AggregateRepository.java:90\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":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/abstractions/core/data/AggregateRepository.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dd613ac289141eeeed223e03e55c3b75144e49deae298427b32a9cc66093733"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/data/AggregateBaseRepository.java:298-303 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/jpa/SoftDeleteFilterBehaviorPipeline.java:25-29 \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":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/data/AggregateBaseRepository.java"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6f0589e6ad012ebe7f3ebec548c4031a31a08a7bd1087e0a8dc12c1bf676f05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/serialization/JacksonMessageSerializerImpl.java:17-25 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/serialization/JacksonSerializerImpl.java:12-20 \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":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/serialization/JacksonMessageSerializerImpl.java"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad98be42e6931d6ca13b7230194edc7ead980b02e86aec0c124cda952321cb21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/serialization/JacksonSerializerImpl.java:37-43 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/utils/SerializerUtils.java:44-50 \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":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/serialization/JacksonSerializerImpl.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c6be32549c2ff0d7492d1541afb3946e9c5b73c5b93ba7ad3979b5ad1d87d41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/jpa/interceptors/AuditInterceptor.java:21-28 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/jpa/interceptors/DeleteInterceptor.java:17-24 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/jpa/interceptors/AuditInterceptor.java"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dfac86bac838b26441ec54d9bb4fcf74a3802419e33918e8c0f2f1ee72ea78c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/categories/features/creatingcategory/v1/events/domain/CategoryCreated.java:37-41 | services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/categories/features/creatingcategory/v1/events/notification/CategoryCreatedNotification.java:26-32 | services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/products/features/creatingproduct/v1/events/notification/ProductCreatedNotification.java:25-31 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060notification\u0060 to \u0060CategoryCreatedNotification\u0060 in one and \u0060ProductCreatedNotification\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":"services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/categories/features/creatingcategory/v1/events/domain/CategoryCreated.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"e027e64960cf9417e5343b723ae75855131f7c43ed0b928994353c5b58db1883"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/products/features/creatingproduct/v1/CreateProduct.java:32-39 | services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/products/features/creatingproductvariant/v1/events/domain/ProductVariantCreated.java:17-25 \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":"services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/products/features/creatingproduct/v1/CreateProduct.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1c6f572c6201672274212609ec800b5766f2775f6c2fe51ff9d8ace034eb5cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/data/AggregateBaseRepository.java:43-49 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/data/RepositoryBase.java:26-32 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/data/AggregateBaseRepository.java:43\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060customJpaRepository\u0060 to \u0060CustomJpaRepository\u003CTDataModelEntity, TDataModelEntityId\u003E\u0060 in one and \u0060CustomJpaRepository\u003CTEntity, TID\u003E\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":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/data/AggregateBaseRepository.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"d30b1f8b316a5f0176b169a15e0e2bb4d39c48e61465930d18187a8443cbb8da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): services/users/core/src/main/java/com/github/mehdihadeli/users/core/users/features/creatingadminuser/v1/CreateAdminUser.java:48-58 | services/users/core/src/main/java/com/github/mehdihadeli/users/core/users/features/creatingcustomeruser/v1/CreateCustomerUser.java:44-54 \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. 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060command\u0060 to \u0060CreateAdminUser\u0060 in one and \u0060CreateCustomerUser\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":"services/users/core/src/main/java/com/github/mehdihadeli/users/core/users/features/creatingadminuser/v1/CreateAdminUser.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"677e4da52b95cf768f684a987ec4bc0348b6b45a452c6725b579e0ec480dde86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/observability/TelemetryTags.java:116-120 | building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/observability/TelemetryTags.java:156-160 \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, \u0060building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/observability/TelemetryTags.java:163\u0060 calls \u0060put\u0060 and \u0060building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/observability/TelemetryTags.java:123\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":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/observability/TelemetryTags.java"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"ded88c0f59e6f88b96bdf3572a9ea76cfcc715946bcca6728740727afe0aeb62"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Product (LCOM4 5): Product\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":"services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/products/domain/models/entities/Product.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f66c76667245588c52a5a095432d71bc9332b139d8bfec2746cd9b9e246409e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: RabbitMQConfiguration (LCOM4 4): RabbitMQConfiguration\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":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/rabbitmq/RabbitMQConfiguration.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4c0290c40b9d2f6b0cfa006bd033ba36af038d40d419476487d2a188c8dbf31"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: can_publish_product_created_integration_event_to_the_broker: This method\u0027s body runs code, and no assertion was recognised in it. Recognised: JUnit\u0027s assertion methods (assertEquals, assertTrue, assertInstanceOf, assertThrows, assertThrowsExactly, assertTimeoutPreemptively, assertAll and the rest of JUnit 5\u0027s list), assertThat (AssertJ, Hamcrest, Truth), fail, Mockito\u0027s verify and the \u0060assert\u0060 statement, in the test body and in helper methods of the test\u0027s own class or an in-repository base class, followed three calls deep. Verification through a helper on another object or in another class, through a custom matcher library, or through a harness that fails by throwing under some other name is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/catalogs/api/src/test/java/com/github/mehdihadeli/catalogs/api/integrationtests/products/features/creatingproduct/v1/CreateProductTests.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a8a629b95341d7693f36cba413d27325d11fcc63d1b1bea7e34efe9d705c5f3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: can_save_mongo_product_read_model_in_internal_persistence_message: This method\u0027s body runs code, and no assertion was recognised in it. Recognised: JUnit\u0027s assertion methods (assertEquals, assertTrue, assertInstanceOf, assertThrows, assertThrowsExactly, assertTimeoutPreemptively, assertAll and the rest of JUnit 5\u0027s list), assertThat (AssertJ, Hamcrest, Truth), fail, Mockito\u0027s verify and the \u0060assert\u0060 statement, in the test body and in helper methods of the test\u0027s own class or an in-repository base class, followed three calls deep. Verification through a helper on another object or in another class, through a custom matcher library, or through a harness that fails by throwing under some other name is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/catalogs/api/src/test/java/com/github/mehdihadeli/catalogs/api/integrationtests/products/features/creatingproduct/v1/CreateProductTests.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"41ff15374ba33a2f27d3295385675b6950c22fc5378e90d08f7f42d88d735621"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: can_save_product_created_integration_event_in_the_outbox: This method\u0027s body runs code, and no assertion was recognised in it. Recognised: JUnit\u0027s assertion methods (assertEquals, assertTrue, assertInstanceOf, assertThrows, assertThrowsExactly, assertTimeoutPreemptively, assertAll and the rest of JUnit 5\u0027s list), assertThat (AssertJ, Hamcrest, Truth), fail, Mockito\u0027s verify and the \u0060assert\u0060 statement, in the test body and in helper methods of the test\u0027s own class or an in-repository base class, followed three calls deep. Verification through a helper on another object or in another class, through a custom matcher library, or through a harness that fails by throwing under some other name is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/catalogs/api/src/test/java/com/github/mehdihadeli/catalogs/api/integrationtests/products/features/creatingproduct/v1/CreateProductTests.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b5bcc37c4087a1369e69cb529d6fa30021d92799e3de37c6534af95cf48ea9d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: implement header propagation store \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":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/messaging/MessageMetadataAccessorImpl.java"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"e873cc560edec3435a9c381e3102875fa36ce61b18689bb0861f85d405aacdfa"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Return the currently \u0060authenticated user\u0060, this could be from a security context \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":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/data/AuditorAwareLong.java"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"489aa293a94a6db56d556c08053357aab15f48567491dba414360bed6bd71382"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Return the currently \u0060authenticated user\u0060, this could be from a security context \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":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/data/AuditorAwareUUID.java"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d8a6df2747bac3ccd48ede56c1c79ed7a81873f5edb77690f9d6bdef99f5418"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: fix issue in generating Q prefix readmodel for querydsl \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":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/abstractions/core/data/CustomMongoJpaRepository.java"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"0480615fa6354eaa22d288a9bf058db765c6ceb63a15b8d24553994526c95cbe"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d2bea044ff79d7d275f5a91a6e2f548586178eaf480274c33960ad020c854631"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 9 project(s) overshoot their size bounds, lowering Project Cohesion to 7.8/10. The most over is \u0060building-blocks\u0060 (11737 LoC, 320 module-visible types across 54 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"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":"721ca86da8151cf4066f75c704727e9bf623159a29ebca3fdee2ae89e3201dec"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e427b64a3e82766d079141695ae4b2daed74864848d5eacea2bb99d0cd6c88f3"},"properties":{"dependency":{"package":"com.querydsl:querydsl-apt","version":"5.1.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d50a24d0b926684aa630387d63c7071ead1b9d405118c15452ef5744f3d2e37b"},"properties":{"dependency":{"package":"com.querydsl:querydsl-jpa","version":"5.1.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"069e6710f4fda8d79fc7d0fa530313c4e388939ad952c973f21b6bb28d7926d1"},"properties":{"dependency":{"package":"org.postgresql:postgresql","version":"42.7.4","advisory":"[GHSA redacted]","aliases":["BIT-postgresql-jdbc-driver-2025-49146","BIT-postgresql-jdbc-driver-2026-42198","BIT-postgresql-jdbc-driver-2026-54291","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0b45c34c042cd4efbccd2ef4615622e5994424b894b266fbbb613d4d4a38c661"},"properties":{"dependency":{"package":"com.google.guava:guava","version":"33.4.0-jre","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2567ea2f56ae79977dadd3bf380bcb8e0d5204997d0db598b3e49e1891ff5525"},"properties":{"dependency":{"package":"fast-uri","version":"3.0.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5a31a0b5364830f542d37385755d27dd90f97746286a80cb6c17836bc6e14179"},"properties":{"dependency":{"package":"js-yaml","version":"4.1.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7a6c8aec811a2d7ca01dc30175c7ce3e9ebf8b9d90e6e0e2ae64d2e9773685b6"},"properties":{"dependency":{"package":"ajv","version":"8.17.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"58a53f8b7a89ceb5941f11ee8756ebff75ff3f031ee8244c0dec67e9109a35e0"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6c91ac614c205671bdb5da38f97b7dca16f4ea4d65ba4320ec0261d8e99e0238"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"710b0fbef89ed5d90ebe5d264d34b6734867e77025164682b9c716a59c502d28"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e36370105dd905db78b8d348330f25d3a11ffaee491d0d5faac93ae2a2036415"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0f820b858dd51e2c1cf957752e06138df5b1b9ce839dc34b7a440ea66eb3e85a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"709b9bb395be0ee0c27e22745c6612d48e859cc94693e5380ba81c97ff4cba64"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c5710e4d44d78208456ad43ee00324b8d503b31df05ac32c9370e36686f14e5c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0d2f396d8eb7ad4b8e109566ce06ff30bbc3e899680166a5ef6fa8bcc66c5dd7"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"186b31973addba834e359b3cb57e975a70d198dcd9be14793b46b29407deb0e7"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ed5c3293f4c401a0f90d9c0dc797d22a5a8a507dd9dae9bf4385dcb8b54d4594"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"242fbc39ce59cb3f2b5e8ffddfb8fa443f3612a99f932d8d96b9fa8e3f25945e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"dc7ca42a4341e3559f8c084b66b1b03e244536478403b256e3f2d247aae6c717"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"211e883c6316ee4c96b9230eb2eb7df3327737813524c076324ec7b46817ce4d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c72c823cad6212061a585a53ef105885184f27fd33f1818d02833fa86f88b3cb"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"65f6898741c666510ecd50ab39c768d05a0f552da910896e7d02c86298dac4b5"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bfc8d7ca186979c68e42aa88ce37e4f4167a485ec558771628f6d05dce86c288"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"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":"4245684489cbc9436c7952652379947bc5f434a910d7d4791ef1941cc73b368e"}},{"ruleId":"AX1","level":"error","message":{"text":"Captive dependency: singleton CreateUserEndpoint captures prototype CommandBus: \u0060CreateUserEndpoint\u0060 is a Spring singleton (the default scope) and is injected \u0060CommandBus commandBus\u0060, whose bean \u0060CommandBus\u0060 is scoped prototype without a scoped proxy (building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/CoreConfiguration.java:180). The singleton is given ONE instance, once, and keeps it for the life of the application context \u2014 the fresh instance per use that the prototype scope promises never happens, and any state it carries is shared by every caller on every thread. Inject \u0060ObjectProvider\u003CCommandBus\u003E\u0060 and call getObject() per use, or declare the scope with proxyMode = ScopedProxyMode.TARGET_CLASS."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/users/core/src/main/java/com/github/mehdihadeli/users/core/users/features/creatinguser/v1/CreateUserEndpoint.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"50ebad97bd57d9b0eb8afb25b28ec2fabf44c4f6d280834e16e3c08bd8286fdb"}},{"ruleId":"AX1","level":"error","message":{"text":"Captive dependency: singleton CreateCustomerUserEndpoint captures prototype CommandBus: \u0060CreateCustomerUserEndpoint\u0060 is a Spring singleton (the default scope) and is injected \u0060CommandBus commandBus\u0060, whose bean \u0060CommandBus\u0060 is scoped prototype without a scoped proxy (building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/CoreConfiguration.java:180). The singleton is given ONE instance, once, and keeps it for the life of the application context \u2014 the fresh instance per use that the prototype scope promises never happens, and any state it carries is shared by every caller on every thread. Inject \u0060ObjectProvider\u003CCommandBus\u003E\u0060 and call getObject() per use, or declare the scope with proxyMode = ScopedProxyMode.TARGET_CLASS."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/users/core/src/main/java/com/github/mehdihadeli/users/core/users/features/creatingcustomeruser/v1/CreateCustomerUserEndpoint.java"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"fda64009e358be73d71fdf3eacab26c5f2a61878c4f37162d4883fa9fb31f436"}},{"ruleId":"AX1","level":"error","message":{"text":"Captive dependency: singleton CreateAdminUserEndpoint captures prototype CommandBus: \u0060CreateAdminUserEndpoint\u0060 is a Spring singleton (the default scope) and is injected \u0060CommandBus commandBus\u0060, whose bean \u0060CommandBus\u0060 is scoped prototype without a scoped proxy (building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/CoreConfiguration.java:180). The singleton is given ONE instance, once, and keeps it for the life of the application context \u2014 the fresh instance per use that the prototype scope promises never happens, and any state it carries is shared by every caller on every thread. Inject \u0060ObjectProvider\u003CCommandBus\u003E\u0060 and call getObject() per use, or declare the scope with proxyMode = ScopedProxyMode.TARGET_CLASS."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/users/core/src/main/java/com/github/mehdihadeli/users/core/users/features/creatingadminuser/v1/CreateAdminUserEndpoint.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"37e20e210bfde27ef38cde04e813412f73b2acbd46af84bfdebdf5182c1b23c1"}},{"ruleId":"AX1","level":"error","message":{"text":"Captive dependency: singleton UpdateProductDetailsEndpoint captures prototype CommandBus: \u0060UpdateProductDetailsEndpoint\u0060 is a Spring singleton (the default scope) and is injected \u0060CommandBus commandBus\u0060, whose bean \u0060CommandBus\u0060 is scoped prototype without a scoped proxy (building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/CoreConfiguration.java:180). The singleton is given ONE instance, once, and keeps it for the life of the application context \u2014 the fresh instance per use that the prototype scope promises never happens, and any state it carries is shared by every caller on every thread. Inject \u0060ObjectProvider\u003CCommandBus\u003E\u0060 and call getObject() per use, or declare the scope with proxyMode = ScopedProxyMode.TARGET_CLASS."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/products/features/updatingproductdetails/v1/UpdateProductDetailsEndpoint.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b190e5b2d19a096cc32db5d2868016d91a3d29cc53eb909268bdbc8e5811af9"}},{"ruleId":"AX1","level":"error","message":{"text":"Captive dependency: singleton SearchProductsByNameEndpoint captures prototype QueryBus: \u0060SearchProductsByNameEndpoint\u0060 is a Spring singleton (the default scope) and is injected \u0060QueryBus queryBus\u0060, whose bean \u0060QueryBus\u0060 is scoped prototype without a scoped proxy (building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/CoreConfiguration.java:190). The singleton is given ONE instance, once, and keeps it for the life of the application context \u2014 the fresh instance per use that the prototype scope promises never happens, and any state it carries is shared by every caller on every thread. Inject \u0060ObjectProvider\u003CQueryBus\u003E\u0060 and call getObject() per use, or declare the scope with proxyMode = ScopedProxyMode.TARGET_CLASS."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/products/features/searchproductbyname/v1/SearchProductsByNameEndpoint.java"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"2645ba39b92afb1a582af259bc9b7019f1f1ddebd44e8a6f4e40dac58650708c"}},{"ruleId":"AX1","level":"error","message":{"text":"Captive dependency: singleton GetProductsEndpoint captures prototype QueryBus: \u0060GetProductsEndpoint\u0060 is a Spring singleton (the default scope) and is injected \u0060QueryBus queryBus\u0060, whose bean \u0060QueryBus\u0060 is scoped prototype without a scoped proxy (building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/CoreConfiguration.java:190). The singleton is given ONE instance, once, and keeps it for the life of the application context \u2014 the fresh instance per use that the prototype scope promises never happens, and any state it carries is shared by every caller on every thread. Inject \u0060ObjectProvider\u003CQueryBus\u003E\u0060 and call getObject() per use, or declare the scope with proxyMode = ScopedProxyMode.TARGET_CLASS."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/products/features/gettingproducts/v1/GetProductsEndpoint.java"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a65e7da4867797a42728376584d433e650b5def89131c3291b18391c349ca35"}},{"ruleId":"AX1","level":"error","message":{"text":"Captive dependency: singleton GetProductByIdEndpoint captures prototype QueryBus: \u0060GetProductByIdEndpoint\u0060 is a Spring singleton (the default scope) and is injected \u0060QueryBus queryBus\u0060, whose bean \u0060QueryBus\u0060 is scoped prototype without a scoped proxy (building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/CoreConfiguration.java:190). The singleton is given ONE instance, once, and keeps it for the life of the application context \u2014 the fresh instance per use that the prototype scope promises never happens, and any state it carries is shared by every caller on every thread. Inject \u0060ObjectProvider\u003CQueryBus\u003E\u0060 and call getObject() per use, or declare the scope with proxyMode = ScopedProxyMode.TARGET_CLASS."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/products/features/gettingproductbyid/v1/GetProductByIdEndpoint.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"288bd3cc0de70b3c0e8442f3bccb564e1a062469973c1981bdc7d233333d3104"}},{"ruleId":"AX1","level":"error","message":{"text":"Captive dependency: singleton DeleteProductEndpoint captures prototype CommandBus: \u0060DeleteProductEndpoint\u0060 is a Spring singleton (the default scope) and is injected \u0060CommandBus commandBus\u0060, whose bean \u0060CommandBus\u0060 is scoped prototype without a scoped proxy (building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/CoreConfiguration.java:180). The singleton is given ONE instance, once, and keeps it for the life of the application context \u2014 the fresh instance per use that the prototype scope promises never happens, and any state it carries is shared by every caller on every thread. Inject \u0060ObjectProvider\u003CCommandBus\u003E\u0060 and call getObject() per use, or declare the scope with proxyMode = ScopedProxyMode.TARGET_CLASS."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/products/features/deletingproduct/DeleteProductEndpoint.java"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec8bad051c156ccd0d79fc11db8d107a8b135fe7014c5ae4d0ef3279b1b4c49e"}},{"ruleId":"AX1","level":"error","message":{"text":"Captive dependency: singleton CreateProductEndpoint captures prototype CommandBus: \u0060CreateProductEndpoint\u0060 is a Spring singleton (the default scope) and is injected \u0060CommandBus commandBus\u0060, whose bean \u0060CommandBus\u0060 is scoped prototype without a scoped proxy (building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/CoreConfiguration.java:180). The singleton is given ONE instance, once, and keeps it for the life of the application context \u2014 the fresh instance per use that the prototype scope promises never happens, and any state it carries is shared by every caller on every thread. Inject \u0060ObjectProvider\u003CCommandBus\u003E\u0060 and call getObject() per use, or declare the scope with proxyMode = ScopedProxyMode.TARGET_CLASS."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/products/features/creatingproduct/v1/CreateProductEndpoint.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cfbaaee3c5c44c54f2569f9d4ffc14c7e0264850cecf86213d3822d0c93a11a"}},{"ruleId":"AX1","level":"error","message":{"text":"Captive dependency: singleton UpdateCategoryDetailsEndpoint captures prototype CommandBus: \u0060UpdateCategoryDetailsEndpoint\u0060 is a Spring singleton (the default scope) and is injected \u0060CommandBus commandBus\u0060, whose bean \u0060CommandBus\u0060 is scoped prototype without a scoped proxy (building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/CoreConfiguration.java:180). The singleton is given ONE instance, once, and keeps it for the life of the application context \u2014 the fresh instance per use that the prototype scope promises never happens, and any state it carries is shared by every caller on every thread. Inject \u0060ObjectProvider\u003CCommandBus\u003E\u0060 and call getObject() per use, or declare the scope with proxyMode = ScopedProxyMode.TARGET_CLASS."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/categories/features/updatingcategorydetails/v1/UpdateCategoryDetailsEndpoint.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"4272abb8de5bf44b7474208a5bb3594cd1d52aa999b6d81db58fff55746e5c90"}},{"ruleId":"AX1","level":"error","message":{"text":"Captive dependency: singleton GetCategoryByIdEndpoint captures prototype QueryBus: \u0060GetCategoryByIdEndpoint\u0060 is a Spring singleton (the default scope) and is injected \u0060QueryBus queryBus\u0060, whose bean \u0060QueryBus\u0060 is scoped prototype without a scoped proxy (building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/CoreConfiguration.java:190). The singleton is given ONE instance, once, and keeps it for the life of the application context \u2014 the fresh instance per use that the prototype scope promises never happens, and any state it carries is shared by every caller on every thread. Inject \u0060ObjectProvider\u003CQueryBus\u003E\u0060 and call getObject() per use, or declare the scope with proxyMode = ScopedProxyMode.TARGET_CLASS."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/categories/features/gettingcategorybyid/GetCategoryByIdEndpoint.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dbcab2ad882286963fed05b2fd158099572587947903e2490394a8765ffe40d"}},{"ruleId":"AX1","level":"error","message":{"text":"Captive dependency: singleton GetCategoriesEndpoint captures prototype QueryBus: \u0060GetCategoriesEndpoint\u0060 is a Spring singleton (the default scope) and is injected \u0060QueryBus queryBus\u0060, whose bean \u0060QueryBus\u0060 is scoped prototype without a scoped proxy (building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/CoreConfiguration.java:190). The singleton is given ONE instance, once, and keeps it for the life of the application context \u2014 the fresh instance per use that the prototype scope promises never happens, and any state it carries is shared by every caller on every thread. Inject \u0060ObjectProvider\u003CQueryBus\u003E\u0060 and call getObject() per use, or declare the scope with proxyMode = ScopedProxyMode.TARGET_CLASS."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/categories/features/gettingcategories/v1/GetCategoriesEndpoint.java"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4f82e964a249ac152e02abedf316902aab9ed76dadae7b111da604590cc09f5"}},{"ruleId":"AX1","level":"error","message":{"text":"Captive dependency: singleton DeleteCategoryEndpoint captures prototype CommandBus: \u0060DeleteCategoryEndpoint\u0060 is a Spring singleton (the default scope) and is injected \u0060CommandBus commandBus\u0060, whose bean \u0060CommandBus\u0060 is scoped prototype without a scoped proxy (building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/CoreConfiguration.java:180). The singleton is given ONE instance, once, and keeps it for the life of the application context \u2014 the fresh instance per use that the prototype scope promises never happens, and any state it carries is shared by every caller on every thread. Inject \u0060ObjectProvider\u003CCommandBus\u003E\u0060 and call getObject() per use, or declare the scope with proxyMode = ScopedProxyMode.TARGET_CLASS."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/categories/features/deletingcategory/DeleteCategoryEndpoint.java"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ead04a0cdc6902bdc1316c6b17a78ec64a0b4661b10a2c86717d568be745cd3"}},{"ruleId":"AX1","level":"error","message":{"text":"Captive dependency: singleton CreateCategoryEndpoint captures prototype CommandBus: \u0060CreateCategoryEndpoint\u0060 is a Spring singleton (the default scope) and is injected \u0060CommandBus commandBus\u0060, whose bean \u0060CommandBus\u0060 is scoped prototype without a scoped proxy (building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/CoreConfiguration.java:180). The singleton is given ONE instance, once, and keeps it for the life of the application context \u2014 the fresh instance per use that the prototype scope promises never happens, and any state it carries is shared by every caller on every thread. Inject \u0060ObjectProvider\u003CCommandBus\u003E\u0060 and call getObject() per use, or declare the scope with proxyMode = ScopedProxyMode.TARGET_CLASS."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/categories/features/creatingcategory/v1/CreateCategoryEndpoint.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa79f0c5b137adf3b8b97a50ff264ab0e6052dce0c63aac75ee12ccfca181e51"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: AggregateRepository\u003CTAggregate, TDataModelEntity, TAggregateId, TDataModelEntityId\u003E (29 abstract methods): \u0060AggregateRepository\u003CTAggregate, TDataModelEntity, TAggregateId, TDataModelEntityId\u003E\u0060 declares 29 abstract methods: \u0060add\u0060, \u0060count\u0060, \u0060countByCriteria\u0060, \u0060delete\u0060, \u0060deleteById\u0060, \u0060exists\u0060, \u0060existsByCriteria\u0060, \u0060findAll\u0060, \u0060findAll\u0060, \u0060findAll\u0060, \u0060findAll\u0060, \u0060findAll\u0060, \u0060findAllByExample\u0060, \u0060findAllByExample\u0060, \u0060findAllByExample\u0060, \u0060findAllByExample\u0060, \u0060findByCriteria\u0060, \u0060findByCriteria\u0060, \u0060findByCriteria\u0060, \u0060findById\u0060, \u0060findOne\u0060, \u0060findOne\u0060, \u0060findOneByCriteria\u0060, \u0060findOneByExample\u0060, \u0060findOneByExample\u0060, \u0060getCustomJpaRepository\u0060, \u0060getEntityManager\u0060, \u0060save\u0060, \u0060update\u0060. Counted over its ABSTRACT methods, once per signature; \u0060default\u0060, \u0060static\u0060 and \u0060private\u0060 methods and constants are not counted, because no implementer is forced to write them. Those 29 declarations carry 18 distinct name(s), so part of the width is overloading rather than separate responsibilities \u2014 but 18 operations clears the \u003E15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/abstractions/core/data/AggregateRepository.java"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef81b6ef713f3ac934e3364f6ff3bdaff78a6321528ca10d3b016d62f39dbcc0"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: PersistMessage: \u0060PersistMessage\u0060\u0027s public constructor takes \u0060dataType\u0060, \u0060data\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060PersistMessage\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/abstractions/core/messaging/messagepersistence/PersistMessage.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d0de6247a4ae75fa0f6d18def66f379e56ee89caf014115d5446a7a825574c3"}},{"ruleId":"DM7","level":"warning","message":{"text":"Repository for a non-root entity: CategoryJpaRepository \u2192 CategoryDataModel: \u0060CategoryJpaRepository\u0060 is a repository over \u0060CategoryDataModel\u0060, which is an entity but not an aggregate root. Repositories should be per aggregate ROOT \u2014 loading/saving a child entity independently lets callers bypass the root\u0027s invariants. Access \u0060CategoryDataModel\u0060 through its owning aggregate instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/categories/data/contracts/CategoryJpaRepository.java"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a4c5e4335621843258b2f594123412febce7bd68b68fac34f3bbbe641c3ce8c"}},{"ruleId":"DM7","level":"warning","message":{"text":"Repository for a non-root entity: ProductJpaRepository \u2192 ProductDataModel: \u0060ProductJpaRepository\u0060 is a repository over \u0060ProductDataModel\u0060, which is an entity but not an aggregate root. Repositories should be per aggregate ROOT \u2014 loading/saving a child entity independently lets callers bypass the root\u0027s invariants. Access \u0060ProductDataModel\u0060 through its owning aggregate instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"services/catalogs/core/src/main/java/com/github/mehdihadeli/catalogs/core/products/data/contracts/ProductJpaRepository.java"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"05b4726d7c82b846fbe650322d095d0d4ae8f1d397eb45b5e3dd36b77e0315d5"}},{"ruleId":"ED2","level":"warning","message":{"text":"Command with 12 handlers: TCommand: \u0060TCommand\u0060 is shaped like a command (one imperative intent) but has 12 handlers. A command should have exactly one handler that owns the decision; multiple handlers means hidden fan-out and unclear ownership. If several things should react, raise an EVENT after the command succeeds and let them subscribe."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4f96913c011ea7097809c4022f5cb95c6ea9863ca04233f59cdf81a67fc43025"}},{"ruleId":"ED3","level":"note","message":{"text":"Event not named in past tense: DomainNotificationEventWrapper: \u0060DomainNotificationEventWrapper\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":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/events/DomainNotificationEventWrapper.java"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e6a7248847970b5aac5d2b9db342bf06061133308fbed2ff888fd387a005297"}},{"ruleId":"ED3","level":"note","message":{"text":"Event not named in past tense: IntegrationEventWrapper: \u0060IntegrationEventWrapper\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":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/events/IntegrationEventWrapper.java"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6d5f6a1dc0643a64263f191a9ba49958175d59bfc6c25d4dc7e9ccadc3caa37"}},{"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":"M4","level":"note","message":{"text":"README/code drift: readme.md links to \u0060./building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/jpamessagepersistence/PostgresMessagePersistenceRepositoryImpl.java\u0060, but \u0060building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/jpamessagepersistence/PostgresMessagePersistenceRepositoryImpl.java\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"readme.md"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cc000d147bd5a58b455ac40062b2839858a3a236f7a0bbef6cb20a3fc4f5ac3"}},{"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 dependency-update automation: \u0060package.json\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b237f7efe841e3a95b381b232502a3a473094adeb069a11eaca8ca533fb1c34"}},{"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"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060packages.isEmpty() \u0026\u0026 AutoConfigurationPackages.has(beanFactory)\u0060 appears character-identically in 2 files \u2014 building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/jpa/CustomJpaConfiguration.java, building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/mediator/MediatorRegisteredTypesScanner.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/jpa/CustomJpaConfiguration.java"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6654d914e20aff105957fe32f072f533fc3a6f21eea209832fd91d9401ffebd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060realmAccess != null \u0026\u0026 realmAccess.containsKey(\u0022roles\u0022)\u0060 appears character-identically in 2 files \u2014 api-gateway/src/main/java/com/github/mehdihadeli/apigateway/security/CustomFluxJwtAuthenticationConverter.java, building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/security/CustomJwtAuthenticationConverter.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api-gateway/src/main/java/com/github/mehdihadeli/apigateway/security/CustomFluxJwtAuthenticationConverter.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdfeb01406f5a7e58885813f68e6ecac4b55733d240b72f345bd7d83ae3270d5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"building-blocks/src/main/java/com/github/mehdihadeli/buildingblocks/core/utils/SerializerUtils.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"4325d3d84afef4afcaa6027e6f8c5d2d0336a6c7d772d295a5214cbf89febe91"}},{"ruleId":"X5","level":"note","message":{"text":"Java packages are not null-marked everywhere: 7/120 of this repository\u0027s Java package directories are under a non-null default: a \u0060package-info.java\u0060 declaring \u0060@NullMarked\u0060 (JSpecify) or \u0060@NonNullApi\u0060, \u0060@ParametersAreNonnullByDefault\u0060, \u0060@NonNullByDefault\u0060, \u0060@DefaultQualifier(NonNull.class)\u0060; a \u0060module-info.java\u0060 declaring \u0060@NullMarked\u0060; every type in it \u0060@NullMarked\u0060; or a build that runs NullAway with the package in \u0060AnnotatedPackages\u0060, or the Checker Framework\u0027s \u0060NullnessChecker\u0060. Elsewhere every reference admits null and no checker warns on the dereference that throws a \u0060NullPointerException\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"419201f6fc7ba243aef2cfb154378641588a8190e6269cea04a7b48c3d343bd5"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-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":"Cleartext Transmission of Sensitive Information","shortDescription":{"text":"Cleartext Transmission of Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/319.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A04:2025","guid":"6a9f5bfd-1a56-6453-beec-a7eff0ba3007","name":"Cryptographic Failures","shortDescription":{"text":"Cryptographic Failures"},"helpUri":"https://top10.owasp.org/2025/A04_2025-Cryptographic_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]}],"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":25,"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."]}]}