{"$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":"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":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"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":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"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":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"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":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"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":"Sequence.getLocalAddress0 (cognitive 20): Sequence.getLocalAddress0 has cognitive complexity 20 (threshold 15). Drivers by points: error handling 4 (9 pts), if/else 3 (6 pts), loops 2 (5 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"event-sourcing-api/src/main/java/com/damon/eventsourcing/utils/IdWorker.java"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b004bbec81ecf76365f8b65776707451902837ab9fc4ff9fcf532c1876efa46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): event-sourcing-core/src/main/java/com/damon/eventsourcing/cache/CaffeineAggregateCache.java:27-33 | event-sourcing-core/src/main/java/com/damon/eventsourcing/config/AggregateSlotLock.java:32-38 \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 \u0060event-sourcing-core/src/main/java/com/damon/eventsourcing/cache/CaffeineAggregateCache.java:27\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":"event-sourcing-core/src/main/java/com/damon/eventsourcing/cache/CaffeineAggregateCache.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9f719a022686394b62d38252eaab490844502ca5031fc9b13547eeb0a4b32f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/red_packet/RedPacketServiceBootstrap.java:38-64 | event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/red_packet/RedPacketServiceVirtualThreadBootstrap.java:39-65 \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 \u0060event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/red_packet/RedPacketServiceBootstrap.java:38\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":"event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/red_packet/RedPacketServiceBootstrap.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"854bc4b2e198b1d29793b37c1712ea21c320b7b6fd92b212a9935d37bbb8fffb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 5): event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/train/TrainStockMultiSceneTestBootstrap.java:87-105 | event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/train/TrainStockMultiSceneTestBootstrap.java:108-126 | event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/train/TrainStockMultiSceneTestBootstrap.java:129-147 | event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/train/TrainStockMultiSceneTestBootstrap.java:150-168 | event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/train/TrainStockMultiSceneTestBootstrap.java:171-189 \u2014 all 5 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 \u0060event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/train/TrainStockMultiSceneTestBootstrap.java:87\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":"event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/train/TrainStockMultiSceneTestBootstrap.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"65958c61096949716639608e0ad36ee4d77a3a189e673b77ffe382405438c5aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/red_packet/RedPacketServiceBootstrap.java:21-36 | event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/red_packet/RedPacketServiceVirtualThreadBootstrap.java:22-37 \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":"event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/red_packet/RedPacketServiceBootstrap.java"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"553216044430b49354c8501f107f349c0fcd789bd08b33a6b8199a7ea7b1afcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/train/TrainStockMultiSceneTestBootstrap.java:87-96 | event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/train/TrainStockMultiSceneTestBootstrap.java:108-117 | event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/train/TrainStockMultiSceneTestBootstrap.java:129-138 | event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/train/TrainStockMultiSceneTestBootstrap.java:150-159 | event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/train/TrainStockMultiSceneTestBootstrap.java:171-180 | event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/train/TrainStockMultiSceneTestBootstrap.java:192-201 \u2014 all 6 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 \u0060event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/train/TrainStockMultiSceneTestBootstrap.java:87\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":"event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/train/TrainStockMultiSceneTestBootstrap.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b226ee1c6627afcd4f77c7b901c418ad9df3cb11482496ebcd1e583d69210f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/train/aggregate/TrainStock.java:153-161 | event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/train/aggregate/TrainStock.java:214-222 | event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/train/aggregate/TrainStock.java:344-352 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060command\u0060 to \u0060TicketProtectCommand\u0060 in one and \u0060TicketBuyCommand\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":"event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/train/aggregate/TrainStock.java"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec1ef1a0078a30d05cd45ecd9feada8dfd555be03f9483fabda5eabcab93604e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/train/aggregate/TrainStock.java:282-290 | event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/train/aggregate/TrainStock.java:334-342 \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 \u0060event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/train/aggregate/TrainStock.java:282\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":"event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/train/aggregate/TrainStock.java"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9aa394466dac5d492d17099c7c5d35bea87b2e033848f1dd85746ca556e4e0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/train/TrainStockMultiSceneTestBootstrap.java:79-84 | event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/train/TrainStockMultiSceneTestBootstrap.java:100-105 | event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/train/TrainStockMultiSceneTestBootstrap.java:121-126 | event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/train/TrainStockMultiSceneTestBootstrap.java:142-147 | event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/train/TrainStockMultiSceneTestBootstrap.java:163-168 | event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/train/TrainStockMultiSceneTestBootstrap.java:184-189 \u2014 all 6 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 \u0060event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/train/TrainStockMultiSceneTestBootstrap.java:79\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":"event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/train/TrainStockMultiSceneTestBootstrap.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf93a53c45f027ec8d152cef84a2085bec80ad23c97d3e13ca23bde9a9f390fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/train/command/TicketProtectCancelCommand.java:15-49 | event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/train/command/TicketProtectCommand.java:25-75 \u2014 before extracting anything, compare \u0060event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/train/command/TicketProtectCancelCommand.java\u0060 and \u0060event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/train/command/TicketProtectCommand.java\u0060 as WHOLE FILES: 86% 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":"event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/train/command/TicketProtectCancelCommand.java"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a1cbf194529409b2b2b1d5d829894625a07bcaacf8d0bde5bdec8e9818b90a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 3): event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/train/aggregate/value_object/UserSeatInfo.java:1-59 | event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/train/event/TicketBoughtEvent.java:26-92 | event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/train/event/TicketProtectCanceledEvent.java:12-37 \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 \u0060event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/train/aggregate/value_object/UserSeatInfo.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":"event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/train/aggregate/value_object/UserSeatInfo.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"af4e5d34d54e80993f7e062c50276c896682851d2a98cda9de9221f7537169bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/goods/GoodsApplication.java:55-59 | event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/goods/GoodsVirtualThreadApplication.java:64-68 \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 \u0060event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/goods/GoodsApplication.java:55\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":"event-sourcing-sample/event-sourcing-sample-generic-test/src/main/java/com/damon/eventsourcing/sample/goods/GoodsApplication.java"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"57afdb7243a2b828ee630b3e9c6fc37736e9885ca3fec21b8402d4521071af03"}},{"ruleId":"D16","level":"warning","message":{"text":"bus factor 1 \u2014 one contributor carries this repository: 2 contributor(s) have commits in this repository (automation and bot accounts excluded), but the commits of a single one of them cover most of its history \u2014 86% of the 186 commit(s) sampled \u2014 so the number of people who actually carry it is 1. This is not the ambient state of a solo project: there ARE other contributors, and if the one who carries the repository becomes unavailable, the knowledge behind most of its history goes with them. Spread the next changes deliberately \u2014 have a second contributor review or pair on them \u2014 and write down the parts only one person can currently change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a99f114ab4dfee37ae0bf0665b44c7468d85b809d361949e2b6258101fa1e5a2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated constructor stub \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":"event-sourcing-api/src/main/java/com/damon/eventsourcing/exception/AggregateEventConflictException.java"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a8d110b2588209b1b19a7d94ea5cfa1b2be252bf1c061d8c4bbdefbf8ca036b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated constructor stub \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":"event-sourcing-api/src/main/java/com/damon/eventsourcing/exception/AggregateEventConflictException.java"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3a2956b3ec1dbed90717e1f9741bd93b4e781d34ff7371395004a1ad39828a4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated constructor stub \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":"event-sourcing-api/src/main/java/com/damon/eventsourcing/exception/AggregateEventConflictException.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce027c3b1e9ff4496d0e8c498ae95dc80dd3f961d9d822a1ad19d8e1584126ec"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated constructor stub \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":"event-sourcing-api/src/main/java/com/damon/eventsourcing/exception/AggregateProcessingTimeoutException.java"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b87ac95c73144efcaaba8e88d9e494ed725c271cefa1366f86be0c2d2dc735a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated constructor stub \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":"event-sourcing-api/src/main/java/com/damon/eventsourcing/exception/AggregateProcessingTimeoutException.java"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c720def193a2dc8b0acbe2116e2e4f55e134fb5a80981f42f8ba644889146e9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated constructor stub \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":"event-sourcing-api/src/main/java/com/damon/eventsourcing/exception/AggregateProcessingTimeoutException.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"0552c452086a7ea6ab99f3199e5d4c0199793cb53d29d498450b5f74b76ed333"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated constructor stub \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":"event-sourcing-api/src/main/java/com/damon/eventsourcing/exception/AggregateProcessingTimeoutException.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b5682342ce520d78ab43ce7f9b35dd0920448e7add940bc9f0fc686bad9fd08"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated constructor stub \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":"event-sourcing-api/src/main/java/com/damon/eventsourcing/exception/AggregateProcessingTimeoutException.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"d149f85ff784b1457e7a4381224039477e353b15a313b13aad69deb2f7d76c91"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated constructor stub \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":"event-sourcing-api/src/main/java/com/damon/eventsourcing/exception/DuplicateEventStreamException.java"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f677fcb20080a15dbef9e30a3e9c0a80a142e9a73d1fe9831b2ecee8b5d5f57"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated constructor stub \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":"event-sourcing-api/src/main/java/com/damon/eventsourcing/exception/DuplicateEventStreamException.java"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b1286f48060c2b7cf134dd7874c1ccf2d36d75b0bb4a31da9bf4a1d6542c698"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated constructor stub \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":"event-sourcing-api/src/main/java/com/damon/eventsourcing/exception/DuplicateEventStreamException.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"1097c6abe720c70c8692ec5c465939da0be27129871ec4b26c1021fe0df3e71e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated constructor stub \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":"event-sourcing-api/src/main/java/com/damon/eventsourcing/exception/DuplicateEventStreamException.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"81b1c6a6b634e844ba64a2cf48f27f217852bb36273ba4e8396320a0de5060d3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated constructor stub \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":"event-sourcing-api/src/main/java/com/damon/eventsourcing/exception/DuplicateEventStreamException.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0e544af39e74d27cc3d222ef2a202e798eafd3606f80cb18bb1a7a0bb483c8f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated constructor stub \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":"event-sourcing-api/src/main/java/com/damon/eventsourcing/exception/EventApplyException.java"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dbb414bf38719c7d5fe12bc35aebd8bacfadc631edb5fd7607130b866f829f8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated constructor stub \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":"event-sourcing-api/src/main/java/com/damon/eventsourcing/exception/EventApplyException.java"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"23aa8fa00ca011e008e8239e4c6747cc371acadfc2a596d9ff60c72bdbef968c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated constructor stub \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":"event-sourcing-api/src/main/java/com/damon/eventsourcing/exception/EventApplyException.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"88658e12d330df0d4f1c6a5a45467e29062f428e5e40390fdedb667e129a938d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated constructor stub \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":"event-sourcing-api/src/main/java/com/damon/eventsourcing/exception/EventApplyException.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"c30b5f5a259ef73192d598bbd5aa6e04dc05a46aa0363815d5757b503e5e5dbc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated constructor stub \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":"event-sourcing-api/src/main/java/com/damon/eventsourcing/exception/EventApplyException.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"52f2822990ff86d4648beee4bda56a27070d3e67e8fe264c17502aa85a18cb52"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated constructor stub \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":"event-sourcing-api/src/main/java/com/damon/eventsourcing/exception/EventSendingException.java"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a252464da0e1e0e95cbcfabab8294c34ac02fca93a59d24310495b3cb2eb143"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated constructor stub \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":"event-sourcing-api/src/main/java/com/damon/eventsourcing/exception/EventSendingException.java"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"1894ed6704e87566a67c27b7a77e4c2d29667aa4805fefbf0c0bed8513d8ef70"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated constructor stub \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":"event-sourcing-api/src/main/java/com/damon/eventsourcing/exception/EventSendingException.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"e56d8642f50c31695a2e0c4d8910ca1583ffe178c3c76dd8fe73c26c1012bc8a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated constructor stub \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":"event-sourcing-api/src/main/java/com/damon/eventsourcing/exception/EventSendingException.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"2505090682212e85d1426b5527bf4d5bcd7e34f412be98ab78199a406dc86561"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated constructor stub \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":"event-sourcing-api/src/main/java/com/damon/eventsourcing/exception/EventSendingException.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"bedeeb13e03db995d0941d7f03d1759b2690874ebe713a1addfb2827dd8552eb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated constructor stub \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":"event-sourcing-api/src/main/java/com/damon/eventsourcing/exception/EventStoreException.java"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"8129ae6f4b7d6a1368fefd98ca553618d5fb75c69ec3e72ccb6150cf8d7c0b3f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated constructor stub \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":"event-sourcing-api/src/main/java/com/damon/eventsourcing/exception/EventStoreException.java"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb8d2d15aebbf9c4844699b23023f1f31c626c333883c6f8c7924595f78eb174"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated constructor stub \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":"event-sourcing-api/src/main/java/com/damon/eventsourcing/exception/EventStoreException.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"f42d5999e66aa0b4e2bd7ca8450240593dd512266f0c9364f43e37fda18690af"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated constructor stub \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":"event-sourcing-api/src/main/java/com/damon/eventsourcing/exception/EventStoreException.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"125cda989ae45bf6020f48cb2e4e33f77a37ec6e0bfba290a20306940b892d01"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated constructor stub \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":"event-sourcing-api/src/main/java/com/damon/eventsourcing/exception/EventStoreException.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7cf2a9ee702a2424d7fc165f9372d2889e600d265c65694825fc6ac77b6b027"}},{"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":"942d3c3f2fb84ba1e7e0f205b71dbb98eba4e0c91b300e7f026e2b407433b896"},"properties":{"dependency":{"package":"mysql:mysql-connector-java","version":"8.0.33","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"AX4","level":"error","message":{"text":"Dependency-rule violation: event-sourcing-core (Domain) \u2192 event-sourcing-api (Web): \u0060event-sourcing-core\u0060 is a Domain project but references \u0060event-sourcing-api\u0060, a Web project. The clean-architecture rule is that dependencies point INWARD \u2014 the domain/application core must not depend on outer layers (infrastructure/web). Invert it: define the abstraction in the inner layer and implement it in the outer one."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3a97b9e55fb13bf8c43079a5fabd9899beb44b431c45410484cd1721fa68228b"}},{"ruleId":"M1","level":"note","message":{"text":"Thin README: The root README is 95 words, against a bar of 120. Of the three newcomer-critical sections this check looks for by heading, in the README and in the repository documents it links, it found no a build/run or getting-started section, no a testing section, no an architecture or project-map section. Sections are matched on HEADING text only, so material written under a heading this check does not recognise \u2014 or with no heading at all \u2014 is not seen and this row may understate what the document covers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c88b11295dc6ac6146c259ace6043143959f96dc98628f8c8578b6c5f95b8149"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"P1","level":"warning","message":{"text":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add spotbugs with find-sec-bugs (or \u0060semgrep --config=auto\u0060, which runs on any language) \u2014 this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn\u0060 at line 206 is handed a message assembled at the call \u2014 a string concatenated with a value, or \u0060String.format\u0060 \u2014 through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.warn(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2\u0027s JsonTemplateLayout, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. An exception goes last, as the throwable argument, not into the text."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"event-sourcing-api/src/main/java/com/damon/eventsourcing/utils/IdWorker.java"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"741eacf8a43a966d2f2d0ce47b40c8fcc3b2b38a572b023acc7b931755697844"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn\u0060 at line 223 is handed a message assembled at the call \u2014 a string concatenated with a value, or \u0060String.format\u0060 \u2014 through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.warn(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2\u0027s JsonTemplateLayout, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. An exception goes last, as the throwable argument, not into the text."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"event-sourcing-api/src/main/java/com/damon/eventsourcing/utils/IdWorker.java"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"5299499f107f0048d75fc113fa46b298101bc782bc7d05f1f3d72d2d2d3b432e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn\u0060 at line 227 is handed a message assembled at the call \u2014 a string concatenated with a value, or \u0060String.format\u0060 \u2014 through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.warn(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2\u0027s JsonTemplateLayout, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. An exception goes last, as the throwable argument, not into the text."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"event-sourcing-api/src/main/java/com/damon/eventsourcing/utils/IdWorker.java"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"3450a190f6c086fe5a73bde428f25e87ea79c4aadfb371bbf8dff59b8566f5ae"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn\u0060 at line 232 is handed a message assembled at the call \u2014 a string concatenated with a value, or \u0060String.format\u0060 \u2014 through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.warn(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2\u0027s JsonTemplateLayout, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. An exception goes last, as the throwable argument, not into the text."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"event-sourcing-api/src/main/java/com/damon/eventsourcing/utils/IdWorker.java"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0713b596a8043667f658d746f4a86cc8e5cff88c1cfeac86a600481bdb39c5e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn\u0060 at line 267 is handed a message assembled at the call \u2014 a string concatenated with a value, or \u0060String.format\u0060 \u2014 through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.warn(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2\u0027s JsonTemplateLayout, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. An exception goes last, as the throwable argument, not into the text."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"event-sourcing-api/src/main/java/com/damon/eventsourcing/utils/IdWorker.java"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"efda9c4c60ad3a33698c9f24375e55628c0b9739e286b774576841a5bf69ddaf"}},{"ruleId":"X5","level":"note","message":{"text":"Java packages are not null-marked everywhere: 0/15 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-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-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-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-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":"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":"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":1,"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."]}]}