{"$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":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"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":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"AXS1","name":"Runtime exposed surface","shortDescription":{"text":"Runtime exposed surface"},"helpUri":"https://codehealth.canine.dev/dimensions/AXS1"},{"id":"GD1","name":"Unfinished \u0026 placeholder code","shortDescription":{"text":"Unfinished \u0026 placeholder code"},"helpUri":"https://codehealth.canine.dev/dimensions/GD1"},{"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":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"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":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"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":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"Main.main (cyclomatic 60): Main.main has cyclomatic complexity 60 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.24/Program.fs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"86dac11357e0c2c29d72860f8c2a6828cdbe2a08b5d5f9908653bc391d8078d1"}},{"ruleId":"D1","level":"warning","message":{"text":"Main.main (cyclomatic 60): Main.main has cyclomatic complexity 60 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.26/Program.fs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"5abdec3b19757bb0fb795e4a7b2ceea39df84387701baad123a3091b5838d8e2"}},{"ruleId":"D1","level":"warning","message":{"text":"Main.main (cyclomatic 60): Main.main has cyclomatic complexity 60 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.27/Program.fs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"97cc98b7d5f3cf1d1b1d90470b04867171716ecfd78f495430b996e3c5eba683"}},{"ruleId":"D1","level":"warning","message":{"text":"Main.main (cyclomatic 60): Main.main has cyclomatic complexity 60 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.28/Program.fs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc2ff16a8c2ab29bfa9dc95e1e9000d3127e3714bb19a1d4bf8763798d0e8ae7"}},{"ruleId":"D1","level":"warning","message":{"text":"Main.main (cyclomatic 57): Main.main has cyclomatic complexity 57 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.22/Program.fs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eaa0cf1cd83f9fb00d4a50635b368f7e5fba27c7e2871c40f936eed3b1b926b"}},{"ruleId":"D1","level":"warning","message":{"text":"AggregateCache3.SetupL2AndBackplane (cyclomatic 19): AggregateCache3.SetupL2AndBackplane has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/Cache.fs"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6d22a947e969d53eea420792980a0b90f9becd8c17031302a7c513a57fdf3c5"}},{"ruleId":"D1","level":"warning","message":{"text":"Sanitizer.sanitizeAggregateStreamWithInitialState (cyclomatic 18): Sanitizer.sanitizeAggregateStreamWithInitialState has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/Sanitizer.fs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d25c9c4bcd20eef389b22aff164a3a3bc94349c387dfdc8791a07265e7995c"}},{"ruleId":"D2","level":"warning","message":{"text":"Main.main (cognitive 105): Main.main has cognitive complexity 105 (threshold 15). Drivers by points: match/switch 17 (57 pts), if/else 20 (42 pts), boolean chains 6 (nesting depth added 62). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.24/Program.fs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"13307bd1eb1760a291513ca4d2ce046b6f8e845eab91cc0883ca33b44072512e"}},{"ruleId":"D2","level":"warning","message":{"text":"Main.main (cognitive 105): Main.main has cognitive complexity 105 (threshold 15). Drivers by points: match/switch 17 (57 pts), if/else 20 (42 pts), boolean chains 6 (nesting depth added 62). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.26/Program.fs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"d64f070d1f0da4ca42019ac9cce058197a17691358d239cb8e6b96b7c572587d"}},{"ruleId":"D2","level":"warning","message":{"text":"Main.main (cognitive 105): Main.main has cognitive complexity 105 (threshold 15). Drivers by points: match/switch 17 (57 pts), if/else 20 (42 pts), boolean chains 6 (nesting depth added 62). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.27/Program.fs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"61c42b438de02218cd8896c6be919ad92c465b15fac00c23ae309ba5a1f3aa8a"}},{"ruleId":"D2","level":"warning","message":{"text":"Main.main (cognitive 105): Main.main has cognitive complexity 105 (threshold 15). Drivers by points: match/switch 17 (57 pts), if/else 20 (42 pts), boolean chains 6 (nesting depth added 62). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.28/Program.fs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"521111a74193cf1f072a5b36f837828b7a67d6adc39f607e889e648cd31a8468"}},{"ruleId":"D2","level":"warning","message":{"text":"Main.main (cognitive 101): Main.main has cognitive complexity 101 (threshold 15). Drivers by points: match/switch 16 (56 pts), if/else 18 (39 pts), boolean chains 6 (nesting depth added 61). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.22/Program.fs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a3d6e11eacd22fdcea8b34ba1a564a9109caa9ad755f366933bf3d22f3037ed"}},{"ruleId":"D2","level":"warning","message":{"text":"AggregateCache3.SetupL2AndBackplane (cognitive 53): AggregateCache3.SetupL2AndBackplane has cognitive complexity 53 (threshold 15). Drivers by points: if/else 15 (42 pts), match/switch 2 (10 pts), boolean chains 1 (nesting depth added 35). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/Cache.fs"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"bce129aa78889eb48b8ce96bd31a2e6f91cd1353baceb980e4444b2bcb498e37"}},{"ruleId":"D2","level":"warning","message":{"text":"add_opt_lock2.process_migrations (cognitive 36): add_opt_lock2.process_migrations has cognitive complexity 36 (threshold 15). Drivers by points: if/else 6 (22 pts), loops 5 (13 pts), boolean chains 1 (nesting depth added 24). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scratch/add_opt_lock2.py"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"e335177b7de8dd3b42214fd5afa81705f7d24eaff50ce0619282e6dc32f5d1b4"}},{"ruleId":"D2","level":"warning","message":{"text":"Sanitizer.sanitizeAggregateStreamWithInitialState (cognitive 34): Sanitizer.sanitizeAggregateStreamWithInitialState has cognitive complexity 34 (threshold 15). Drivers by points: match/switch 7 (21 pts), if/else 2 (7 pts), loops 2 (6 pts) (nesting depth added 23). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/Sanitizer.fs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9efd86d06316d05a05e6b02325595e11e2f04931aa2f8d46ac14ac2f3538de5"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandHandler.runThreeNAggregateCommandsMd (cognitive 33): CommandHandler.runThreeNAggregateCommandsMd has cognitive complexity 33 (threshold 15). Drivers by points: loops 3 (12 pts), match/switch 3 (12 pts), if/else 6 (9 pts) (nesting depth added 21). 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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":5542}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cfe2e4452c2c2b044e7650360e92a2018f1ba3f0b126c901491acc16c032489"}},{"ruleId":"D2","level":"warning","message":{"text":"DetailsCache.SetupL2AndBackplane (cognitive 32): DetailsCache.SetupL2AndBackplane has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (29 pts), boolean chains 3 (nesting depth added 18). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/Cache.fs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"9951d7dacf23a29a8df3977f31e6c9d86fff824073d8fc89883094a19f967876"}},{"ruleId":"D2","level":"warning","message":{"text":"DetailsCache.RefreshAsync (cognitive 27): DetailsCache.RefreshAsync has cognitive complexity 27 (threshold 15). Drivers by points: if/else 5 (10 pts), match/switch 3 (9 pts), error handling 2 (7 pts), boolean chains 1 (nesting depth added 16). 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":"Sharpino.Lib/Cache.fs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfe9e4e122b568003e2e9c111588675a03b773fc6cfc7303ea66cf21a85b0236"}},{"ruleId":"D2","level":"warning","message":{"text":"AggregateCache3.Memoize (cognitive 21): AggregateCache3.Memoize has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 4 (12 pts), if/else 4 (6 pts), error handling 1 (3 pts) (nesting depth added 12). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident. This shape REPEATS in the file: one other method here (AggregateCache3.MemoizeAsync) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/Cache.fs"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ba344e1ea0f6f3d0d5c967dd20b4dc98b6652864fb7b725cd37ef3bdc0b1a7a"}},{"ruleId":"D2","level":"warning","message":{"text":"AggregateCache3.MemoizeAsync (cognitive 21): AggregateCache3.MemoizeAsync has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 4 (12 pts), if/else 4 (6 pts), error handling 1 (3 pts) (nesting depth added 12). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident. This shape REPEATS in the file: one other method here (AggregateCache3.Memoize) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/Cache.fs"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"10d52cb628167c99be7b0633231bbf0c3862cce550e968675db6bc84c6e46392"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandHandler.runTwoNAggregateCommandsMd (cognitive 17): CommandHandler.runTwoNAggregateCommandsMd has cognitive complexity 17 (threshold 15). Drivers by points: loops 2 (6 pts), match/switch 2 (6 pts), if/else 4 (5 pts) (nesting depth added 9). 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. This shape REPEATS in the file: 2 other methods here (CommandHandler.runTwoNAggregateCommandsMdAsync2, CommandHandler.runTwoNAggregateCommandsMdAsync3) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":4083}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d61c4b7f2e70b8369e16bd9ba18ca716a66bd85e4b4ab8247fd5efda9a4ae7d"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandHandler.runTwoNAggregateCommandsMdAsync2 (cognitive 17): CommandHandler.runTwoNAggregateCommandsMdAsync2 has cognitive complexity 17 (threshold 15). Drivers by points: loops 2 (6 pts), match/switch 2 (6 pts), if/else 4 (5 pts) (nesting depth added 9). 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. This shape REPEATS in the file: 2 other methods here (CommandHandler.runTwoNAggregateCommandsMd, CommandHandler.runTwoNAggregateCommandsMdAsync3) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":4225}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd08144f7d14f50532a9f7c628c9dde0d360a4cf740ec888cd77d352ee89fef"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandHandler.runTwoNAggregateCommandsMdAsync3 (cognitive 17): CommandHandler.runTwoNAggregateCommandsMdAsync3 has cognitive complexity 17 (threshold 15). Drivers by points: loops 2 (6 pts), match/switch 2 (6 pts), if/else 4 (5 pts) (nesting depth added 9). 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. This shape REPEATS in the file: 2 other methods here (CommandHandler.runTwoNAggregateCommandsMd, CommandHandler.runTwoNAggregateCommandsMdAsync2) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":4374}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dd56a78407adea366816da227ccdf8f8c292ec3a7abe91d9b2af6ff31e2b253"}},{"ruleId":"D2","level":"warning","message":{"text":"StateView.getLastAggregateSnapshot (cognitive 16): StateView.getLastAggregateSnapshot has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), match/switch 4 (8 pts) (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/StateView.fs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a58629099a34543966dff2967e35a1588b824d62e82c14ffe6ab8420476c2be"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Sharpino.Lib/CommandHandler.fs: FileTooLong \u2014 5173 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 88 functions. The bar is 500 significant lines; this is 4673 over it, 10.35\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f0d9ad8e05e4ee95b97e8474f301fc9513f40216dd49cf117e16d2a76c499fc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Sharpino.Lib/PgBinaryEventStore.fs: FileTooLong \u2014 2791 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2291 over it, 5.58\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e1fc4d34d7bd38f168b2b9db67d9bb6b74420078cf9864ba6d453a7e12d5bd7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Sharpino.Lib/PgEventStore.fs: FileTooLong \u2014 2787 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2287 over it, 5.57\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgEventStore.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4df5cab083bad9136134323f8574e95c057a218decaec7b3f8e898424c883fbd"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PgBinaryStore: TooManyMethods \u2014 90 methods. The bar is 30 methods; this is 60 over it, 3.00\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"3535dd2605b1f057931d514811a86827be02de1aac8886bb6a313637fdb52610"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PgEventStore: TooManyMethods \u2014 90 methods. The bar is 30 methods; this is 60 over it, 3.00\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":"Sharpino.Lib/PgEventStore.fs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"33e8b19db5411f47cab36d5e49b4f98c8191d95a1fc348c9754f7a6e695232d4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MemoryStorage: TooManyMethods \u2014 83 methods. The bar is 30 methods; this is 53 over it, 2.77\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":"Sharpino.Lib/MemoryStorage.fs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0e4bfa4205ea7f965ee5b35e222f38fcbaee66968971576feb57a030a81c867"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Sharpino.Lib/MemoryStorage.fs: FileTooLong \u2014 1170 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 670 over it, 2.34\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/MemoryStorage.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"44dc5ba6615cfc2ce074059e298f2ccbe5f470202dcdf27cdfb58f60d3526ec8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Sharpino.Lib/StateView.fs: FileTooLong \u2014 1085 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 41 functions. The bar is 500 significant lines; this is 585 over it, 2.17\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/StateView.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"82854ccab4cc93847795e936aa01d4e31026281390acfe11f56d45e7616f541f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Sharpino.Lib/Cache.fs: FileTooLong \u2014 819 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 319 over it, 1.64\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/Cache.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"45f8c722f4e63baab813448658ff60d5f01b15a6066578b5349da11b2b16cf94"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 57 shared lines): Sharpino.Sample.22/TodoManager.fs:1-159 | Sharpino.Sample.24/TodoManager.fs:1-297 | Sharpino.Sample.26/TodoManager.fs:1-297 | Sharpino.Sample.27/TodoManager.fs:1-297 | Sharpino.Sample.28/TodoManager.fs:1-297 \u2014 These 5 members are variants of one another: a block of 57 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 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 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.22/TodoManager.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"204a93827fe7b8dd315efaffd68935faac707b8238e84555b1e95ee0a25291b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 35 shared lines): Sharpino.Sample.24/DetailsRefactor.fs:2-61 | Sharpino.Sample.26/DetailsRefactor.fs:2-61 | Sharpino.Sample.27/DetailsRefactor.fs:2-61 | Sharpino.Sample.28/DetailsRefactor.fs:2-61 \u2014 These 4 members are variants of one another: a block of 35 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them 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":"Sharpino.Sample.24/DetailsRefactor.fs"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac138bb0305df8a3aabd5c143ce79ff391e2b589e64cb5781e93a38bb29b5091"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 43 shared lines): Sharpino.Sample.11/Models/Student/Consumer.fs:1-98 | Sharpino.Sample.11/Models/Student2/Consumer.fs:2-96 | Sharpino.Sample.14/Models/Student/Consumer.fs:1-98 \u2014 These 3 members are variants of one another: a block of 43 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.11/Models/Student/Consumer.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ed29cc231cfada2f463be8dbd072a62ee23ee0712baa650a073346fa3752b66"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (2341 shared lines): Sharpino.Lib/PgBinaryEventStore.fs:1-3497 | Sharpino.Lib/PgEventStore.fs:1-3525 \u2014 These two members are variants of one another: 2341 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"855c33b10dfbade9e80a8197833b6a35f295736607c6535e695ade983022f38a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (130 shared lines): Sharpino.Sample.7/shoppingCartWithSharpino/SuperMarket.fs:1-227 | Sharpino.Sample.7/shoppingCartWithSharpinoBinary/SuperMarket.fs:1-200 \u2014 These two members are variants of one another: 130 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.7/shoppingCartWithSharpino/SuperMarket.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"880b794ffc458bb2ee2767d30ec69630748e02859f1f0a8219572aaab5182a36"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (71 shared lines): Sharpino.Sample.FormerlySaga/Domain/Rows/Consumer.fs:1-109 | Sharpino.Sample.FormerlySaga/Domain/Voucher/Consumer.fs:1-108 \u2014 These two members are variants of one another: 71 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.FormerlySaga/Domain/Rows/Consumer.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ea83aff325bb41dc20b3f48b29510b03c79e31436a969075dcb85398a4bcb41"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (40 shared lines): Sharpino.Lib/AzureServiceBusBackplane.fs:1-164 | Sharpino.Lib/PgNotifyBackplane.fs:1-148 \u2014 These two members are variants of one another: 40 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/AzureServiceBusBackplane.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4c7bfb434fab676832b40dcf4ab6651fbfc466d8f996ab524ce3534f607e14a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): Sharpino.Sample.7/shoppingCartWithSharpino/GoodsContainer/GoodsContainer.fs:1-42 | Sharpino.Sample.7/shoppingCartWithSharpinoBinary/GoodsContainer/GoodsContainer.fs:1-41 \u2014 These two members are one piece of code written twice and then edited apart: 37 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":"Sharpino.Sample.7/shoppingCartWithSharpino/GoodsContainer/GoodsContainer.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2fe55f903e124843527389fc7314f6b2e262a5a29c26f0797fbf74d5f141226"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (9 members, 50\u002B identical tokens): Sharpino.Sample.10/Models/Account/Consumer.fs:1-61 | Sharpino.Sample.10/Models/Counter/Consumer.fs:1-61 | Sharpino.Sample.9/models/Balance/Consumer.fs:1-86 | Sharpino.Sample.9/models/Course/Consumer.fs:1-102 | Sharpino.Sample.9/models/Item/Consumer.fs:1-103 | Sharpino.Sample.9/models/Reservation/Consumer.fs:1-95 | Sharpino.Sample.9/models/Student/Consumer.fs:1-93 | Sharpino.Sample.9/models/Teacher/Consumer.fs:1-92 | Sharpino.Sample.FormerlySaga/Domain/Booking/Consumer.fs:2-76 \u2014 These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.10/Models/Account/Consumer.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"94c15fded9ec674e14d91e988d5f99ba3f3777e7b0268cc278b13798449c222e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Sharpino.Sample.17/MaterialManager.fs:1-157 | Sharpino.Sample.22/Program.fs:1-249 | Sharpino.Sample.24/Program.fs:1-275 | Sharpino.Sample.26/Program.fs:1-275 | Sharpino.Sample.27/Program.fs:1-273 | Sharpino.Sample.28/Program.fs:1-273 \u2014 These 6 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 6 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 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.17/MaterialManager.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eddb28da5ab920f676a07998c85b8ff4817fd192646739af99343713b18bf5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Sharpino.Sample.22/Domain/Todo/Commands.fs:2-29 | Sharpino.Sample.24/Domain/Todo/Commands.fs:2-29 | Sharpino.Sample.25/Models/Todo/Commands.fs:2-30 | Sharpino.Sample.26/Domain/Todo/Commands.fs:2-29 | Sharpino.Sample.27/Domain/Todo/Commands.fs:2-29 | Sharpino.Sample.28/Domain/Todo/Commands.fs:2-29 \u2014 These 6 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 6 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 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.22/Domain/Todo/Commands.fs"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"77558b1b42a454b7f7bf94830bce0a7429b1187e1d06a3a7b091d8413d5a6a7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Sharpino.Sample.22/Domain/Todo/Events.fs:2-29 | Sharpino.Sample.24/Domain/Todo/Events.fs:2-29 | Sharpino.Sample.25/Models/Todo/Events.fs:2-29 | Sharpino.Sample.26/Domain/Todo/Events.fs:2-29 | Sharpino.Sample.27/Domain/Todo/Events.fs:2-29 | Sharpino.Sample.28/Domain/Todo/Events.fs:2-29 \u2014 These 6 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 6 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 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.22/Domain/Todo/Events.fs"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"5476478bcbd1628193bd92d876457a8bbeef0d9742287ce16abc592945a78a15"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Sharpino.Sample.22/Domain/Todo/Todo.fs:1-64 | Sharpino.Sample.24/Domain/Todo/Todo.fs:1-64 | Sharpino.Sample.25/Models/Todo/Todo.fs:1-72 | Sharpino.Sample.26/Domain/Todo/Todo.fs:1-64 | Sharpino.Sample.27/Domain/Todo/Todo.fs:1-64 | Sharpino.Sample.28/Domain/Todo/Todo.fs:1-64 \u2014 These 6 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 6 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 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.22/Domain/Todo/Todo.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"00d775cab4de0b769dcc3c3f7e4ca1a883a1ea228cdae23affaeeb647fea7e7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Sharpino.Sample.22/Commons.fs:1-20 | Sharpino.Sample.24/Commons.fs:1-20 | Sharpino.Sample.26/Commons.fs:1-20 | Sharpino.Sample.27/Commons.fs:1-20 | Sharpino.Sample.28/Commons.fs:1-20 \u2014 These 5 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 5 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 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.22/Commons.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea136a56cee3fd73ee934215ac19f993905f430923e1d61d9d81ad92a7e8b8de"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Sharpino.Sample.22/Details.fs:2-49 | Sharpino.Sample.24/Details.fs:2-95 | Sharpino.Sample.26/Details.fs:2-95 | Sharpino.Sample.27/Details.fs:2-95 | Sharpino.Sample.28/Details.fs:2-95 \u2014 These 5 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 5 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 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.22/Details.fs"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ba87012808b5a2cf07add2cdda13d1d6d3f192d610c443a66f30e6820692df1"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Sharpino.Sample.22/Domain/User/Commands.fs:2-28 | Sharpino.Sample.24/Domain/User/Commands.fs:2-28 | Sharpino.Sample.26/Domain/User/Commands.fs:2-28 | Sharpino.Sample.27/Domain/User/Commands.fs:2-28 | Sharpino.Sample.28/Domain/User/Commands.fs:2-28 \u2014 These 5 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 5 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 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.22/Domain/User/Commands.fs"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5582cc6014c3995d285bab80a00722afe01dc4d73427ee285a2d4baed1feb70"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Sharpino.Sample.22/Domain/User/Events.fs:2-31 | Sharpino.Sample.24/Domain/User/Events.fs:2-31 | Sharpino.Sample.26/Domain/User/Events.fs:2-31 | Sharpino.Sample.27/Domain/User/Events.fs:2-31 | Sharpino.Sample.28/Domain/User/Events.fs:2-31 \u2014 These 5 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 5 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 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.22/Domain/User/Events.fs"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3364e3fe6f7dc0d1fed6730dee54aa0635f926301e26824fc11c0615e8be4d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Sharpino.Sample.22/Domain/User/User.fs:2-61 | Sharpino.Sample.24/Domain/User/User.fs:2-61 | Sharpino.Sample.26/Domain/User/User.fs:2-61 | Sharpino.Sample.27/Domain/User/User.fs:2-61 | Sharpino.Sample.28/Domain/User/User.fs:2-61 \u2014 These 5 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 5 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 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.22/Domain/User/User.fs"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"765a9d833a244a0ea1a91354bc2263aaf52f37668ea827d9d628be824400e8ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Sharpino.Sample.6/Dishes/Consumer.fs:1-77 | Sharpino.Sample.6/Ingredients/Consumer.fs:1-79 | Sharpino.Sample.7/shoppingCartWithSharpino/Cart/Consumer.fs:1-76 | Sharpino.Sample.7/shoppingCartWithSharpino/Goods/Consumer.fs:1-71 | Sharpino.Sample.7/shoppingCartWithSharpinoBinary/Goods/Consumer.fs:1-73 \u2014 These 5 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 5 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 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.6/Dishes/Consumer.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"697431bd21ceec753efaab401653f0070b36776833f1a28760adf7bbe0e857dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sharpino.Lib/Commons.fs:1-36 | Sharpino.Sample.2/Commons.fs:2-38 | Sharpino.Sample.6/Commons.fs:1-37 | Sharpino.Sample/Commons.fs:1-37 \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":"Sharpino.Lib/Commons.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d426282394075bce40dc33931910fd5161c147a9d3d70d4b53ce0e413fd55805"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sharpino.Sample.11/Models/Student/Student.fs:1-65 | Sharpino.Sample.12/Models/Student/Student.fs:1-65 | Sharpino.Sample.14/Models/Student/Student.fs:1-81 | Sharpino.Sample.9/models/Student/Student.fs:1-59 \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":"Sharpino.Sample.11/Models/Student/Student.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b56597902a32a943f3367782541888fab578ae2d0a17aacd864974a5f7fb2dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (175 lines \u00D7 5): Sharpino.Sample.22/Program.fs:75-249 | Sharpino.Sample.24/Program.fs:101-275 | Sharpino.Sample.26/Program.fs:101-275 | Sharpino.Sample.27/Program.fs:99-273 | Sharpino.Sample.28/Program.fs:99-273 \u2014 \u0060Sharpino.Sample.22/Program.fs\u0060 and \u0060Sharpino.Sample.24/Program.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 275 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.22/Program.fs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff47b50e312df497d2ef79ecd18501693b97e7955adf08d161e951b8b203c97c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (151 lines \u00D7 2): Sharpino.Sample.16/Models/WorkOrders/WorkOrder.fs:1-151 | Sharpino.Sample.17/Models/WorkOrders/WorkOrder.fs:1-151 \u2014 before extracting anything, compare \u0060Sharpino.Sample.16/Models/WorkOrders/WorkOrder.fs\u0060 and \u0060Sharpino.Sample.17/Models/WorkOrders/WorkOrder.fs\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.16/Models/WorkOrders/WorkOrder.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"00fd56260d4f77f5c09b155657aa9077e97cac99e3c09fe7faef213c54c87ad4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (143\u2013144 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:3091-3233 | Sharpino.Lib/PgEventStore.fs:3120-3263 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:3091\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":3091}}}],"partialFingerprints":{"codehealthFindingId/v1":"592eb4bd0b42282828ed7f1406f5f1deeffb6ec29f5caa2bfdf6ade7a6057587"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (135 lines \u00D7 4): Sharpino.Sample.24/TodoManager.fs:159-293 | Sharpino.Sample.26/TodoManager.fs:159-293 | Sharpino.Sample.27/TodoManager.fs:159-293 | Sharpino.Sample.28/TodoManager.fs:159-293 \u2014 \u0060Sharpino.Sample.24/TodoManager.fs\u0060 and \u0060Sharpino.Sample.26/TodoManager.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 338 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Sample.24/TodoManager.fs:159\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.24/TodoManager.fs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"13db96ec9b3716582a9c125eb04681e5c9d408a857fbc1fd5daf7c2c2cc643d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (105 lines \u00D7 4): Sharpino.Sample.24/TodoManager.fs:40-144 | Sharpino.Sample.26/TodoManager.fs:40-144 | Sharpino.Sample.27/TodoManager.fs:40-144 | Sharpino.Sample.28/TodoManager.fs:40-144 \u2014 \u0060Sharpino.Sample.24/TodoManager.fs\u0060 and \u0060Sharpino.Sample.26/TodoManager.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 338 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.24/TodoManager.fs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"cabec8a0e43240cfb7c8a07682bf7e77f7ed055787da53bc895b0d7a75306505"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (102 lines \u00D7 3): Sharpino.Lib/CommandHandler.fs:4661-4762 | Sharpino.Lib/CommandHandler.fs:4958-5059 | Sharpino.Lib/CommandHandler.fs:5251-5352 \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 \u0060Sharpino.Lib/CommandHandler.fs:4661\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sharpino.Lib/CommandHandler.fs:5060\u0060 calls \u0060crossAggregatesConstraint\u0060 and \u0060Sharpino.Lib/CommandHandler.fs:4763\u0060 does not \u2014 after which the two agree again for 3 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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":4661}}}],"partialFingerprints":{"codehealthFindingId/v1":"2389f7bda340828c96553b77428be3bed480f9931391803e6da3ea2f1acbd5c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (96 lines \u00D7 4): Sharpino.Lib/CommandHandler.fs:989-1084 | Sharpino.Lib/CommandHandler.fs:3410-3505 | Sharpino.Lib/CommandHandler.fs:3638-3733 | Sharpino.Lib/CommandHandler.fs:3864-3959 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bb9fea7dafbbdb2368b84f8ec60090ab2f93bc82e750db61309468b0827f1f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (78 lines \u00D7 2): Sharpino.Sample.7/shoppingCartWithSharpino/Goods/Commands.fs:10-87 | Sharpino.Sample.7/shoppingCartWithSharpinoBinary/Goods/Commands.fs:8-85 \u2014 before extracting anything, compare \u0060Sharpino.Sample.7/shoppingCartWithSharpino/Goods/Commands.fs\u0060 and \u0060Sharpino.Sample.7/shoppingCartWithSharpinoBinary/Goods/Commands.fs\u0060 as WHOLE FILES: 91% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.7/shoppingCartWithSharpino/Goods/Commands.fs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"e40763942150e0f2672134bf595c1aab2fd544353ce299f7c5b523bffaf27663"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (75 lines \u00D7 2): Sharpino.Sample.11/Models/Student/Consumer.fs:24-98 | Sharpino.Sample.14/Models/Student/Consumer.fs:24-98 \u2014 before extracting anything, compare \u0060Sharpino.Sample.11/Models/Student/Consumer.fs\u0060 and \u0060Sharpino.Sample.14/Models/Student/Consumer.fs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 147 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":"Sharpino.Sample.11/Models/Student/Consumer.fs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a1e1a31191af5c5d413ee33fd57216aec963e9c594f48437fad9372141538b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (70 lines \u00D7 2): Sharpino.Sample.16/Commons.fs:1-70 | Sharpino.Sample.17/Commons.fs:1-70 \u2014 \u0060Sharpino.Sample.16/Commons.fs\u0060 and \u0060Sharpino.Sample.17/Commons.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 1 separate duplicated blocks between them, totalling at least 70 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.16/Commons.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f786890eb5b11712a57d9a2c8687e01da0efd4bfdce07b6445f01ca533e9a948"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (69 lines \u00D7 2): Sharpino.Sample.16/MaterialManager.fs:26-94 | Sharpino.Sample.17/MaterialManager.fs:41-109 \u2014 \u0060Sharpino.Sample.16/MaterialManager.fs\u0060 and \u0060Sharpino.Sample.17/MaterialManager.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 107 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Sample.16/MaterialManager.fs:26\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sharpino.Sample.16/MaterialManager.fs:23\u0060 calls \u0060MemoryStorage\u0060 and \u0060Sharpino.Sample.17/MaterialManager.fs:38\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":"Sharpino.Sample.16/MaterialManager.fs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6756817d6e7a33060566efc1d5e65d2985aadc8b27463dab5fa2345524784e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (67 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:3256-3322 | Sharpino.Lib/PgEventStore.fs:3286-3352 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:3256\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":3256}}}],"partialFingerprints":{"codehealthFindingId/v1":"02c99cd60960a225982f6c51f2e40a93fa1369fd5bd44c9425ed494e971728ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (65 lines \u00D7 2): Sharpino.Sample.11/Models/Course/Consumer.fs:33-97 | Sharpino.Sample.14/Models/Course/Consumer.fs:33-97 \u2014 before extracting anything, compare \u0060Sharpino.Sample.11/Models/Course/Consumer.fs\u0060 and \u0060Sharpino.Sample.14/Models/Course/Consumer.fs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 129 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":"Sharpino.Sample.11/Models/Course/Consumer.fs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d183fd7c13866b9e0ff9e0d3c46838fde4fe8591e197563d48a180b48a8b1c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (61\u201362 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:3348-3409 | Sharpino.Lib/PgEventStore.fs:3382-3442 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:3348\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":3348}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd44d74cf10648bc1ba9606adfe7b429a87704ab7409810364483273341f65fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (60 lines \u00D7 5): Sharpino.Sample.22/Domain/Todo/Todo.fs:1-60 | Sharpino.Sample.24/Domain/Todo/Todo.fs:1-60 | Sharpino.Sample.26/Domain/Todo/Todo.fs:1-60 | Sharpino.Sample.27/Domain/Todo/Todo.fs:1-60 | Sharpino.Sample.28/Domain/Todo/Todo.fs:1-60 \u2014 before extracting anything, compare \u0060Sharpino.Sample.22/Domain/Todo/Todo.fs\u0060 and \u0060Sharpino.Sample.24/Domain/Todo/Todo.fs\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.22/Domain/Todo/Todo.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7841564e6347088a85ffffc0ad268942c8305c5e4ad14bdcea90134a9477426d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (60 lines \u00D7 5): Sharpino.Sample.22/Domain/User/User.fs:2-61 | Sharpino.Sample.24/Domain/User/User.fs:2-61 | Sharpino.Sample.26/Domain/User/User.fs:2-61 | Sharpino.Sample.27/Domain/User/User.fs:2-61 | Sharpino.Sample.28/Domain/User/User.fs:2-61 \u2014 before extracting anything, compare \u0060Sharpino.Sample.22/Domain/User/User.fs\u0060 and \u0060Sharpino.Sample.24/Domain/User/User.fs\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.22/Domain/User/User.fs"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"d84124e28de36bb0c756c0d183b40d74d2eba665996f34013cc2315639057c38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (59 lines \u00D7 3): Sharpino.Lib/CommandHandler.fs:4126-4184 | Sharpino.Lib/CommandHandler.fs:4274-4332 | Sharpino.Lib/CommandHandler.fs:4423-4481 \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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":4126}}}],"partialFingerprints":{"codehealthFindingId/v1":"cac901c9daea9650bc775b44695f30e9d5e2df40641ddb152913415dd94e2ab4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (55 lines \u00D7 2): Sharpino.Sample.7/shoppingCartWithSharpino/Cart/Commands.fs:15-69 | Sharpino.Sample.7/shoppingCartWithSharpinoBinary/Cart/Commands.fs:15-69 \u2014 before extracting anything, compare \u0060Sharpino.Sample.7/shoppingCartWithSharpino/Cart/Commands.fs\u0060 and \u0060Sharpino.Sample.7/shoppingCartWithSharpinoBinary/Cart/Commands.fs\u0060 as WHOLE FILES: 91% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.7/shoppingCartWithSharpino/Cart/Commands.fs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"50e5bef754852a623fe7d0fbf91d5a0e52fab5e539294e815422f4bdfebe7bcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (53 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:75-127 | Sharpino.Lib/PgEventStore.fs:90-142 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:75\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fabfb60b25f83b53004362032a01616a1ac4a385d761d69f1bbe80e8e8ac78d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (51\u201352 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:1083-1134 | Sharpino.Lib/PgEventStore.fs:1063-1113 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":1083}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdfb21949c24cdcf76d44723e17451c9851d4fb1499ba0702f9c02f2c1914569"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (49\u201350 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:2626-2674 | Sharpino.Lib/PgEventStore.fs:2460-2509 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sharpino.Lib/PgBinaryEventStore.fs:2675\u0060 calls \u0060LogError\u0060 and \u0060Sharpino.Lib/PgEventStore.fs:2512\u0060 does not \u2014 after which the two agree again for 4 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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":2626}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe6585d462a64990c548160a7e247be2b95b516db8e349f10846b4b13ce2107c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44\u201346 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:1280-1323 | Sharpino.Lib/PgEventStore.fs:1257-1302 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgEventStore.fs:1257\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":1280}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a954ff03d30a59773995020f45bda9aa46a429ac3e6d52895c02b125f2bfe15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46 lines \u00D7 2): Sharpino.Sample.16/Models/Materials/Material.fs:1-46 | Sharpino.Sample.17/Models/Materials/Material.fs:1-46 \u2014 before extracting anything, compare \u0060Sharpino.Sample.16/Models/Materials/Material.fs\u0060 and \u0060Sharpino.Sample.17/Models/Materials/Material.fs\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.16/Models/Materials/Material.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac1b4e8a70981f1e31242fcfb0ea611a7ad924bf54b7a7a74b32e01c894714e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): Sharpino.Sample.7/shoppingCartWithSharpino/SuperMarket.fs:156-198 | Sharpino.Sample.7/shoppingCartWithSharpinoBinary/SuperMarket.fs:158-200 \u2014 \u0060Sharpino.Sample.7/shoppingCartWithSharpino/SuperMarket.fs\u0060 and \u0060Sharpino.Sample.7/shoppingCartWithSharpinoBinary/SuperMarket.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 151 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Sample.7/shoppingCartWithSharpino/SuperMarket.fs:156\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":"Sharpino.Sample.7/shoppingCartWithSharpino/SuperMarket.fs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca0a366a68854c9d1b817a65da539f2a19e371ee506f1e826a4d8265dd9f4013"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41\u201342 lines \u00D7 2): Sharpino.Sample.7/shoppingCartWithSharpino/Goods/Good.fs:6-47 | Sharpino.Sample.7/shoppingCartWithSharpinoBinary/Goods/Good.fs:6-46 \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":"Sharpino.Sample.7/shoppingCartWithSharpino/Goods/Good.fs"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"499ac0a622dade6ef8e0dd7e046853a80f9dcb39b9dc5a9e67668d60780bca8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37\u201342 lines \u00D7 2): Sharpino.Sample/AppVersions.fs:100-136 | Sharpino.Sample/AppVersions.fs:146-187 \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 \u0060Sharpino.Sample/AppVersions.fs:100\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample/AppVersions.fs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"3572d3fb999b19b0200e50965a6069f0343e3e13ca4715ce3d7e4d4282511b99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 4): Sharpino.Sample.24/Details.fs:24-64 | Sharpino.Sample.26/Details.fs:24-64 | Sharpino.Sample.27/Details.fs:24-64 | Sharpino.Sample.28/Details.fs:24-64 \u2014 \u0060Sharpino.Sample.24/Details.fs\u0060 and \u0060Sharpino.Sample.26/Details.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 122 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Sample.24/Details.fs:24\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.24/Details.fs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8fa2824fc127a056f4719555bb9c6b3c34b77a1fa61ff4c10247fc5c4d71adc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): Sharpino.Sample.11/Models/Student/Student.fs:11-51 | Sharpino.Sample.14/Models/Student/Student.fs:11-51 \u2014 before extracting anything, compare \u0060Sharpino.Sample.11/Models/Student/Student.fs\u0060 and \u0060Sharpino.Sample.14/Models/Student/Student.fs\u0060 as WHOLE FILES: 91% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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 \u0060Sharpino.Sample.11/Models/Student/Student.fs:11\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":"Sharpino.Sample.11/Models/Student/Student.fs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"655d3cc58de5aa7a1eaeafa5ab5fa72a10f5f36ed095be1613591c7c67c17fd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39\u201340 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:208-247 | Sharpino.Lib/PgEventStore.fs:223-261 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sharpino.Lib/PgEventStore.fs:261\u0060 calls \u0060ExecuteNonQueryAsync\u0060, \u0060ConfigureAwait\u0060 and \u0060Sharpino.Lib/PgBinaryEventStore.fs:247\u0060 does not \u2014 after which the two agree again for 5 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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfa9bc8ba01f912e4aeaeae589439131383867555d8c9ffeab9dfca8f988016b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:1137-1176 | Sharpino.Lib/PgEventStore.fs:1116-1155 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:1137\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":1137}}}],"partialFingerprints":{"codehealthFindingId/v1":"555746f61a79039d0d2d5d0e0fce66d75285b0deac15b2bfd822315753f9b035"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:1862-1901 | Sharpino.Lib/PgEventStore.fs:1856-1895 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:1862\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":1862}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e6fad51f782fabac726806189b7a2a55d635f1ee9077593a89a0e0d006da3c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38\u201339 lines \u00D7 2): Sharpino.Sample.7/shoppingCartWithSharpino/GoodsContainer/Commands.fs:10-48 | Sharpino.Sample.7/shoppingCartWithSharpinoBinary/GoodsContainer/Commands.fs:9-46 \u2014 before extracting anything, compare \u0060Sharpino.Sample.7/shoppingCartWithSharpino/GoodsContainer/Commands.fs\u0060 and \u0060Sharpino.Sample.7/shoppingCartWithSharpinoBinary/GoodsContainer/Commands.fs\u0060 as WHOLE FILES: 93% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.7/shoppingCartWithSharpino/GoodsContainer/Commands.fs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"481931bada931975fb649c37820d6eb42bafae00ccbce6c388b28a488421d60d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201338 lines \u00D7 5): Sharpino.Sample.22/TodoManager.fs:24-26 | Sharpino.Sample.24/TodoManager.fs:1-38 | Sharpino.Sample.26/TodoManager.fs:1-38 | Sharpino.Sample.27/TodoManager.fs:1-38 | Sharpino.Sample.28/TodoManager.fs:1-38 \u2014 \u0060Sharpino.Sample.22/TodoManager.fs\u0060 and \u0060Sharpino.Sample.24/TodoManager.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 98 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.22/TodoManager.fs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"997cf930e3abf13d39d78198f51e34db2a1808dfe066102f8bfd49b5ba29186b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37\u201338 lines \u00D7 3): Sharpino.Lib/CommandHandler.fs:2994-3031 | Sharpino.Lib/CommandHandler.fs:3065-3102 | Sharpino.Lib/CommandHandler.fs:3125-3161 \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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":2994}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8cf858696cb8b51d94aedb7c7db208e8eb5650012c29fec11d13be56fb982e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201338 lines \u00D7 3): Sharpino.Lib/CommandHandler.fs:4833-4870 | Sharpino.Lib/CommandHandler.fs:5130-5163 | Sharpino.Lib/CommandHandler.fs:5423-5456 \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 \u0060Sharpino.Lib/CommandHandler.fs:4833\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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":4833}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c8add6d8d3454cc3600a937745330dcf623a56f67ded2f867fc012663184284"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:2982-3019 | Sharpino.Lib/PgEventStore.fs:3011-3048 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":2982}}}],"partialFingerprints":{"codehealthFindingId/v1":"750d8a1cc9a3dcc6011f274d9140fa3bbc0645e575f0a474e618c922e75186bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35\u201336 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:1824-1859 | Sharpino.Lib/PgEventStore.fs:1819-1853 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:1824\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":1824}}}],"partialFingerprints":{"codehealthFindingId/v1":"e48c44ef6ac0ea799a986f6875d6f6dcbfbae8739ee72b9d39e8120c04357410"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35\u201336 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:2904-2939 | Sharpino.Lib/PgEventStore.fs:2730-2764 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":2904}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e21186ba821889286258af6500d47270332c81c727272b2eb6495c86a566708"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:3053-3088 | Sharpino.Lib/PgEventStore.fs:3082-3117 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:3053\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":3053}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bd28014a12af3ed40ca16a8e4d4cc093e7479cccaca9de45f22a613c1dab158"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:1573-1607 | Sharpino.Lib/PgEventStore.fs:1551-1585 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:1573\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 that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":1573}}}],"partialFingerprints":{"codehealthFindingId/v1":"af1c0ba2d9431fce743515dafc6c54631796b6167c0c406e8c84dda93e1311d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): Sharpino.Sample.7/shoppingCartWithSharpino/SuperMarket.fs:121-155 | Sharpino.Sample.7/shoppingCartWithSharpinoBinary/SuperMarket.fs:123-157 \u2014 \u0060Sharpino.Sample.7/shoppingCartWithSharpino/SuperMarket.fs\u0060 and \u0060Sharpino.Sample.7/shoppingCartWithSharpinoBinary/SuperMarket.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 151 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Sample.7/shoppingCartWithSharpino/SuperMarket.fs:121\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":"Sharpino.Sample.7/shoppingCartWithSharpino/SuperMarket.fs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"8885c4ab81a4fec44594c1654ab17f35d9c75ab7b6461862cf71413bbf4921ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 5): Sharpino.Sample.22/TodoManager.fs:73-106 | Sharpino.Sample.24/TodoManager.fs:134-167 | Sharpino.Sample.26/TodoManager.fs:134-167 | Sharpino.Sample.27/TodoManager.fs:134-167 | Sharpino.Sample.28/TodoManager.fs:134-167 \u2014 \u0060Sharpino.Sample.22/TodoManager.fs\u0060 and \u0060Sharpino.Sample.24/TodoManager.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 98 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Sample.22/TodoManager.fs:73\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.22/TodoManager.fs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd8fcc8c4ca21c8c3c7295c726265199503f68c448f60aa742cb986145a0d80c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:158-190 | Sharpino.Lib/PgEventStore.fs:173-205 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:158\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eb37396be298a893dc2ab809bcaea32d935be80cea396da2842157d35075e1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201333 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:479-505 | Sharpino.Lib/PgEventStore.fs:429-461 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:479\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0877346507551ce49b9adc8b3279efe40a28359d53510710b5b44ea9ab0917a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201332 lines \u00D7 3): Sharpino.Lib/CommandHandler.fs:1379-1410 | Sharpino.Lib/CommandHandler.fs:1721-1751 | Sharpino.Lib/CommandHandler.fs:1818-1848 \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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":1379}}}],"partialFingerprints":{"codehealthFindingId/v1":"15659257867baeaa4ad6746740e64f42cc3acac4d8af1973712fb9a5eed55e7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:1543-1574 | Sharpino.Lib/PgEventStore.fs:1417-1448 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:1543\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":1543}}}],"partialFingerprints":{"codehealthFindingId/v1":"54969b4a98b91f7c2ed9612477545522a73544fd33ea1ed01e56190b5a1fabfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 4): Sharpino.Sample.24/Details.fs:65-95 | Sharpino.Sample.26/Details.fs:65-95 | Sharpino.Sample.27/Details.fs:65-95 | Sharpino.Sample.28/Details.fs:65-95 \u2014 \u0060Sharpino.Sample.24/Details.fs\u0060 and \u0060Sharpino.Sample.26/Details.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 122 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Sample.24/Details.fs:65\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.24/Details.fs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bdd56d916351cc82165ad6c5ae440f84c7524d4bb5d6e9cb8c0489412684495"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:336-366 | Sharpino.Lib/PgEventStore.fs:349-379 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"b31405227d91cb1c462185cb306888a54f651b8fac924ab34960f2fe233cfb2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201331 lines \u00D7 2): Sharpino.Sample.12/Models/Student/Student.fs:30-59 | Sharpino.Sample.9/models/Student/Student.fs:22-52 \u2014 before extracting anything, compare \u0060Sharpino.Sample.12/Models/Student/Student.fs\u0060 and \u0060Sharpino.Sample.9/models/Student/Student.fs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Sample.12/Models/Student/Student.fs:30\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.12/Models/Student/Student.fs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c984055d584bf2a659eeea92aee228afed77aedd6de45e6725d192976394519"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): Sharpino.Sample.16/Models/WorkOrders/Events.fs:1-31 | Sharpino.Sample.17/Models/WorkOrders/Events.fs:1-31 \u2014 before extracting anything, compare \u0060Sharpino.Sample.16/Models/WorkOrders/Events.fs\u0060 and \u0060Sharpino.Sample.17/Models/WorkOrders/Events.fs\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.16/Models/WorkOrders/Events.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e483539ac8210d809db9ea4a071938891f9655fd03889e320d61ce543483eefb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): Sharpino.Sample.FormerlySaga/Domain/Rows/Consumer.fs:73-103 | Sharpino.Sample.FormerlySaga/Domain/Voucher/Consumer.fs:72-102 \u2014 \u0060Sharpino.Sample.FormerlySaga/Domain/Rows/Consumer.fs\u0060 and \u0060Sharpino.Sample.FormerlySaga/Domain/Voucher/Consumer.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 95 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Sample.FormerlySaga/Domain/Rows/Consumer.fs:73\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.FormerlySaga/Domain/Rows/Consumer.fs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"68e82d5f3f2d0eb8599c57109ef5f8b797f3bd8955c3f9ba3f1f64d98620d6cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 5): Sharpino.Sample.22/Details.fs:2-31 | Sharpino.Sample.24/Details.fs:2-31 | Sharpino.Sample.26/Details.fs:2-31 | Sharpino.Sample.27/Details.fs:2-31 | Sharpino.Sample.28/Details.fs:2-31 \u2014 \u0060Sharpino.Sample.22/Details.fs\u0060 and \u0060Sharpino.Sample.24/Details.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 2 separate duplicated blocks between them, totalling at least 50 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.22/Details.fs"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a97109377fb67230df3c2c1170c397d160c738f9e287f9c736b55a3ec483826"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 5): Sharpino.Sample.22/Domain/User/Events.fs:2-31 | Sharpino.Sample.24/Domain/User/Events.fs:2-31 | Sharpino.Sample.26/Domain/User/Events.fs:2-31 | Sharpino.Sample.27/Domain/User/Events.fs:2-31 | Sharpino.Sample.28/Domain/User/Events.fs:2-31 \u2014 before extracting anything, compare \u0060Sharpino.Sample.22/Domain/User/Events.fs\u0060 and \u0060Sharpino.Sample.24/Domain/User/Events.fs\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.22/Domain/User/Events.fs"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"07e3bacfcaad24412e3eb1be944c97de0a8520faa72c3cbe551f73e5824a47da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201330 lines \u00D7 4): Sharpino.Lib/CommandHandler.fs:1459-1487 | Sharpino.Lib/CommandHandler.fs:1549-1577 | Sharpino.Lib/CommandHandler.fs:2723-2750 | Sharpino.Lib/CommandHandler.fs:2812-2841 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":1459}}}],"partialFingerprints":{"codehealthFindingId/v1":"693c6d46a339332fd1592ae2f38a5b344972edbfa6e39e1d3ea1d0e5cc580590"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201330 lines \u00D7 4): Sharpino.Lib/PgBinaryEventStore.fs:1757-1786 | Sharpino.Lib/PgBinaryEventStore.fs:3040-3063 | Sharpino.Lib/PgEventStore.fs:1744-1773 | Sharpino.Lib/PgEventStore.fs:3069-3092 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:1757\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":1757}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a001ad6755f02b031e862ebee6e644b4fb1a5b48957d9d85c848a25e2cf5372"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): Sharpino.Sample.16/Models/Products/Product.fs:1-29 | Sharpino.Sample.17/Models/Products/Product.fs:1-29 \u2014 before extracting anything, compare \u0060Sharpino.Sample.16/Models/Products/Product.fs\u0060 and \u0060Sharpino.Sample.17/Models/Products/Product.fs\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.16/Models/Products/Product.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d767d87939839ed88ff2134fb9012d62539de654ebe953ddc6be40bfba376da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 5): Sharpino.Sample.22/Domain/Todo/Commands.fs:2-29 | Sharpino.Sample.24/Domain/Todo/Commands.fs:2-29 | Sharpino.Sample.26/Domain/Todo/Commands.fs:2-29 | Sharpino.Sample.27/Domain/Todo/Commands.fs:2-29 | Sharpino.Sample.28/Domain/Todo/Commands.fs:2-29 \u2014 before extracting anything, compare \u0060Sharpino.Sample.22/Domain/Todo/Commands.fs\u0060 and \u0060Sharpino.Sample.24/Domain/Todo/Commands.fs\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.22/Domain/Todo/Commands.fs"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4868dda0e80ed902b9d2417bf41588a5a21485da1da4a3491302ffec51d9eb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201328 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:267-294 | Sharpino.Lib/PgEventStore.fs:283-308 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:267\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbc24fd4f92b6561cb491223324d0b8beedaf61dffadb063f99386239892478b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 5): Sharpino.Sample.22/Domain/Todo/Events.fs:2-28 | Sharpino.Sample.24/Domain/Todo/Events.fs:2-28 | Sharpino.Sample.26/Domain/Todo/Events.fs:2-28 | Sharpino.Sample.27/Domain/Todo/Events.fs:2-28 | Sharpino.Sample.28/Domain/Todo/Events.fs:2-28 \u2014 before extracting anything, compare \u0060Sharpino.Sample.22/Domain/Todo/Events.fs\u0060 and \u0060Sharpino.Sample.24/Domain/Todo/Events.fs\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.22/Domain/Todo/Events.fs"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"9de3a2d106fee57da888e75d0f6a1c19ae4dc3dab2d790466d433e851eaa03c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 5): Sharpino.Sample.22/Domain/User/Commands.fs:2-28 | Sharpino.Sample.24/Domain/User/Commands.fs:2-28 | Sharpino.Sample.26/Domain/User/Commands.fs:2-28 | Sharpino.Sample.27/Domain/User/Commands.fs:2-28 | Sharpino.Sample.28/Domain/User/Commands.fs:2-28 \u2014 before extracting anything, compare \u0060Sharpino.Sample.22/Domain/User/Commands.fs\u0060 and \u0060Sharpino.Sample.24/Domain/User/Commands.fs\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.22/Domain/User/Commands.fs"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"c75f5a2f063c58b0ee9b852cb135637576111645f4f3e8d5d0318354945a4a44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 5): Sharpino.Sample.22/Program.fs:4-29 | Sharpino.Sample.24/Program.fs:9-35 | Sharpino.Sample.26/Program.fs:9-35 | Sharpino.Sample.27/Program.fs:9-35 | Sharpino.Sample.28/Program.fs:9-35 \u2014 \u0060Sharpino.Sample.22/Program.fs\u0060 and \u0060Sharpino.Sample.24/Program.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 275 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.22/Program.fs"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fb6e8b21265edcbb847c494227a15ad4c63ce55473d25bf36e364f5bac099a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 3): Sharpino.Sample.22/Program.fs:33-59 | Sharpino.Sample.24/Program.fs:42-68 | Sharpino.Sample.26/Program.fs:42-68 \u2014 \u0060Sharpino.Sample.22/Program.fs\u0060 and \u0060Sharpino.Sample.24/Program.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 275 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.22/Program.fs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab33de516cd4be3015aaa56b867b95f5cd1d6dd4bc2e49d86af60e47a90a05c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201327 lines \u00D7 2): Sharpino.Lib/RabbitMq.fs:68-94 | Sharpino.Lib/RabbitMq.fs:95-119 \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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/RabbitMq.fs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c4879105e0aae0554e83abffed4da48ff1f4ab3a976eeb8380bf85be812efa7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201327 lines \u00D7 4): Sharpino.Sample.24/Program.fs:37-40 | Sharpino.Sample.26/Program.fs:37-40 | Sharpino.Sample.27/Program.fs:40-66 | Sharpino.Sample.28/Program.fs:40-66 \u2014 \u0060Sharpino.Sample.24/Program.fs\u0060 and \u0060Sharpino.Sample.26/Program.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 7 separate duplicated blocks between them, totalling at least 302 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sharpino.Sample.27/Program.fs:40\u0060 calls \u0060TodoManager\u0060 and \u0060Sharpino.Sample.24/Program.fs:37\u0060 does not \u2014 after which the two agree again for 3 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":"Sharpino.Sample.24/Program.fs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"b00d9f753a6b421c63825462aea19c8a7f2c8a4ccc15181c62ae48bdb2dbb078"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): Sharpino.Sample.7/shoppingCartWithSharpino/Cart/Cart.fs:24-50 | Sharpino.Sample.7/shoppingCartWithSharpinoBinary/Cart/Cart.fs:22-48 \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":"Sharpino.Sample.7/shoppingCartWithSharpino/Cart/Cart.fs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e9d77c90ff025fb102b0aea55f9626d8f7819e2f5c41cda7fe890cd9e08b045"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201327 lines \u00D7 2): Sharpino.Sample.7/shoppingCartWithSharpino/Cart/Consumer.fs:18-44 | Sharpino.Sample.7/shoppingCartWithSharpinoBinary/Cart/Consumer.fs:20-44 \u2014 before extracting anything, compare \u0060Sharpino.Sample.7/shoppingCartWithSharpino/Cart/Consumer.fs\u0060 and \u0060Sharpino.Sample.7/shoppingCartWithSharpinoBinary/Cart/Consumer.fs\u0060 as WHOLE FILES: 87% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.7/shoppingCartWithSharpino/Cart/Consumer.fs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"68784a97d2ac89c460e7cefc73b2f3c79e7ba5b8ffa54a1c34991a54b11197b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 2): Sharpino.Sample.7/shoppingCartWithSharpino/SuperMarket.fs:71-96 | Sharpino.Sample.7/shoppingCartWithSharpinoBinary/SuperMarket.fs:78-104 \u2014 \u0060Sharpino.Sample.7/shoppingCartWithSharpino/SuperMarket.fs\u0060 and \u0060Sharpino.Sample.7/shoppingCartWithSharpinoBinary/SuperMarket.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 151 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Sample.7/shoppingCartWithSharpino/SuperMarket.fs:71\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":"Sharpino.Sample.7/shoppingCartWithSharpino/SuperMarket.fs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ab9a41ad8cc72534f33139b181621342c49034b59debeaee868f93e654dfcee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201326 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:310-333 | Sharpino.Lib/PgEventStore.fs:321-346 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f5bb347b6ef64f51fa36dfb6faa1e25041bdfda496ef1b2362380f892902f21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201325 lines \u00D7 4): Sharpino.Lib/PgBinaryEventStore.fs:805-826 | Sharpino.Lib/PgBinaryEventStore.fs:899-922 | Sharpino.Lib/PgEventStore.fs:585-605 | Sharpino.Lib/PgEventStore.fs:679-703 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:805\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sharpino.Lib/PgBinaryEventStore.fs:829\u0060 calls \u0060NewGuid\u0060 and \u0060Sharpino.Lib/PgBinaryEventStore.fs:922\u0060 does not \u2014 after which the two agree again for 4 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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5436db21ec535851c4b9f43da3c04243d07028269e2d8f91f07f99422227931"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:1962-1986 | Sharpino.Lib/PgEventStore.fs:1960-1984 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":1962}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4c9a1ac57df7ced19379f519c3bc381c587d30bfceaad2b480b146e135c035e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:1996-2020 | Sharpino.Lib/PgBinaryEventStore.fs:2055-2078 \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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":1996}}}],"partialFingerprints":{"codehealthFindingId/v1":"0846e65aa25140b7d6201179112fe58fabff31aee21bb0d9b8d48d748e56c0aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:2150-2174 | Sharpino.Lib/PgEventStore.fs:2131-2155 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:2150\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":2150}}}],"partialFingerprints":{"codehealthFindingId/v1":"395b7d8596e96a9c9aa0a955c056ada49176fca490eb0d7ad9a8be878bdabaa4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201325 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:2773-2797 | Sharpino.Lib/PgEventStore.fs:2604-2623 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:2773\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 that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":2773}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7a98022f3c63665830bacfba3ee89cf9a482fd0b1be8611f1cf400f30ecdad2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:2955-2979 | Sharpino.Lib/PgEventStore.fs:2984-3008 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":2955}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd2316a4f604f66a701eac39772bc8440c66e15a807eddd00ebb9c0765c63ee7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): Sharpino.Sample.16/Models/WorkOrders/Commands.fs:1-25 | Sharpino.Sample.17/Models/WorkOrders/Commands.fs:1-25 \u2014 before extracting anything, compare \u0060Sharpino.Sample.16/Models/WorkOrders/Commands.fs\u0060 and \u0060Sharpino.Sample.17/Models/WorkOrders/Commands.fs\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.16/Models/WorkOrders/Commands.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"965d42da726cd7f3374ffa5bd9a01a435e25d07032d9bf502498d8236dabe973"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): Sharpino.Sample.7/shoppingCartWithSharpino/SuperMarket.fs:34-58 | Sharpino.Sample.7/shoppingCartWithSharpinoBinary/SuperMarket.fs:29-53 \u2014 \u0060Sharpino.Sample.7/shoppingCartWithSharpino/SuperMarket.fs\u0060 and \u0060Sharpino.Sample.7/shoppingCartWithSharpinoBinary/SuperMarket.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 151 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Sample.7/shoppingCartWithSharpino/SuperMarket.fs:34\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":"Sharpino.Sample.7/shoppingCartWithSharpino/SuperMarket.fs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb552009b657a55437db4d954d98dd131daa012cd19ff6e643b19d196e132c4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): Sharpino.Lib/CommandHandler.fs:3758-3781 | Sharpino.Lib/CommandHandler.fs:3984-4007 \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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":3758}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f1feb238b86b7cb0681d89fbc94fcf40ceca6b7d3a006f34d1f4b7ee590966f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:1022-1045 | Sharpino.Lib/PgEventStore.fs:994-1016 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:1022\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":1022}}}],"partialFingerprints":{"codehealthFindingId/v1":"53f0b04e03216a1bca703c88630162cc2c695624c93044c7d35eaa99d51295ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:1519-1542 | Sharpino.Lib/PgEventStore.fs:1394-1416 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:1519\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":1519}}}],"partialFingerprints":{"codehealthFindingId/v1":"c860bb64cbcc7953573474901416d2fb29587eebf18f0b9a796022dd77790cb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:1630-1653 | Sharpino.Lib/PgEventStore.fs:1610-1633 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:1630\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":1630}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2b0d4d70c4980a98e55c358560042ada090ca12853bf5cef00fea309231287d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): Sharpino.Sample.16/Models/Materials/Events.fs:1-24 | Sharpino.Sample.17/Models/Materials/Events.fs:1-24 \u2014 before extracting anything, compare \u0060Sharpino.Sample.16/Models/Materials/Events.fs\u0060 and \u0060Sharpino.Sample.17/Models/Materials/Events.fs\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.16/Models/Materials/Events.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"41eb942b384d7d33b31e61c240ab316ded2bf8da1d6b6ec052be2e5b74c8d1ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 4): Sharpino.Lib/Commons.fs:14-36 | Sharpino.Sample.2/Commons.fs:13-35 | Sharpino.Sample.6/Commons.fs:12-34 | Sharpino.Sample/Commons.fs:12-34 \u2014 \u0060Sharpino.Lib/Commons.fs\u0060 and \u0060Sharpino.Sample.2/Commons.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 1 separate duplicated blocks between them, totalling at least 23 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/Commons.fs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bc1e1bc963c3774ca8503da0c37c143e0f73a915201bcf1f9759156e9f9baa4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 4): Sharpino.Sample.24/DetailsRefactor.fs:39-61 | Sharpino.Sample.26/DetailsRefactor.fs:39-61 | Sharpino.Sample.27/DetailsRefactor.fs:39-61 | Sharpino.Sample.28/DetailsRefactor.fs:39-61 \u2014 \u0060Sharpino.Sample.24/DetailsRefactor.fs\u0060 and \u0060Sharpino.Sample.26/DetailsRefactor.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 2 separate duplicated blocks between them, totalling at least 35 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.24/DetailsRefactor.fs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"23ba9eb198fc2b53a0b7a7bbd3c2efe2eb04d7c9b479084ef403a0bc5c4b42fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:956-978 | Sharpino.Lib/PgEventStore.fs:740-762 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sharpino.Lib/PgEventStore.fs:738\u0060 calls \u0060AddWithValue\u0060 and \u0060Sharpino.Lib/PgBinaryEventStore.fs:955\u0060 does not \u2014 after which the two agree again for 3 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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":956}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0996c404907eb3b3ca9e5852d74cf0cc2b776df0e796b7d888a162bd0a2e4da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:1047-1069 | Sharpino.Lib/PgEventStore.fs:1018-1040 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:1047\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sharpino.Lib/PgEventStore.fs:1043\u0060 calls \u0060fun\u0060 and \u0060Sharpino.Lib/PgBinaryEventStore.fs:1071\u0060 does not \u2014 after which the two agree again for 3 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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c82a3aab6a76baef27a8d5d1692c7700d242e585cbeee0e6da9d1cc722d5b85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201323 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:2236-2255 | Sharpino.Lib/PgEventStore.fs:2774-2796 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":2236}}}],"partialFingerprints":{"codehealthFindingId/v1":"e47d5b6735d5df0134d7a28677926f3d5b20a06554b7ae55779024fad8cea983"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Sharpino.Lib/StateView.fs:1038-1060 | Sharpino.Lib/StateView.fs:1208-1230 \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 \u0060Sharpino.Lib/StateView.fs:1038\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":"Sharpino.Lib/StateView.fs"},"region":{"startLine":1038}}}],"partialFingerprints":{"codehealthFindingId/v1":"37411252a8805b1d53978e6325f3f22671c850ccda4c03dbd67c7ef70966456c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201322 lines \u00D7 5): Sharpino.Sample.22/Program.fs:49-67 | Sharpino.Sample.24/Program.fs:58-79 | Sharpino.Sample.26/Program.fs:58-79 | Sharpino.Sample.27/Program.fs:56-77 | Sharpino.Sample.28/Program.fs:56-77 \u2014 \u0060Sharpino.Sample.22/Program.fs\u0060 and \u0060Sharpino.Sample.24/Program.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 275 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.22/Program.fs"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1dd937e012dd4450dfc82d60c1a23ed1ecc450b2e54b1dc20b373d9e1b6e87a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201322 lines \u00D7 3): Sharpino.Lib/StateView.fs:999-1018 | Sharpino.Lib/StateView.fs:1080-1101 | Sharpino.Lib/StateView.fs:1149-1170 \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 \u0060Sharpino.Lib/StateView.fs:999\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":"Sharpino.Lib/StateView.fs"},"region":{"startLine":999}}}],"partialFingerprints":{"codehealthFindingId/v1":"076b59a65fec3a5cc88f46c68f626a2aa8de6cda3dd4460e224d55b13f72fa8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Sharpino.Lib/CommandHandler.fs:1506-1527 | Sharpino.Lib/CommandHandler.fs:1592-1613 \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 \u0060Sharpino.Lib/CommandHandler.fs:1506\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":1506}}}],"partialFingerprints":{"codehealthFindingId/v1":"7705a940902e39bdf58a67d3126be2cab615137c5869950e047bba05a506a256"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): Sharpino.Lib/CommandHandler.fs:2434-2455 | Sharpino.Lib/CommandHandler.fs:2482-2502 \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 \u0060Sharpino.Lib/CommandHandler.fs:2434\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":2434}}}],"partialFingerprints":{"codehealthFindingId/v1":"398617c8218f902e4126563f689bf71706f45297d43ebe8c24315359f68fe06d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:378-399 | Sharpino.Lib/PgEventStore.fs:391-411 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:378\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b57231530500f3dc6c611955dc99d50b0dd70311522998847203da02a9d6d33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:843-864 | Sharpino.Lib/PgEventStore.fs:621-642 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":843}}}],"partialFingerprints":{"codehealthFindingId/v1":"60759c916d45b37163e81d2fac5a0c9d2ad35eccf7eff5fb9555aeb62da6262a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:1659-1680 | Sharpino.Lib/PgEventStore.fs:1639-1660 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":1659}}}],"partialFingerprints":{"codehealthFindingId/v1":"377451d2719745377ee11535a46edf97db8526e474a486d7e362b6b1c3acc0e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:2080-2101 | Sharpino.Lib/PgEventStore.fs:2211-2231 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:2080\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":2080}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b9a1d93cdac32fdd7fd3d99dcd474002e700801cb21c79dd404e619d3aea690"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:2117-2138 | Sharpino.Lib/PgEventStore.fs:2096-2116 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:2117\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":2117}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6930b2407403590a02e35e1068d95c4e0b13288194b48ad3a36366df5eada1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:2408-2429 | Sharpino.Lib/PgEventStore.fs:2816-2837 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:2408\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":2408}}}],"partialFingerprints":{"codehealthFindingId/v1":"33e4fbb1ff16f7e03a6fc0ee3b3aa285198224a03442202cad8b5e8b97516aea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201322 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:2742-2763 | Sharpino.Lib/PgEventStore.fs:2576-2594 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":2742}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1f981b5f384159be4f25064f274d683140a36b5e45545f0105c62b4dfb79b65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 4): Sharpino.Lib/PgBinaryEventStore.fs:197-217 | Sharpino.Lib/PgBinaryEventStore.fs:301-319 | Sharpino.Lib/PgEventStore.fs:212-232 | Sharpino.Lib/PgEventStore.fs:312-330 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3669c779a112f19c64f1befb5361f1cff8fc476f7fe316e30f5ee1b0fb47b79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): Sharpino.Lib/CommandHandler.fs:1344-1364 | Sharpino.Lib/CommandHandler.fs:2066-2086 | Sharpino.Lib/CommandHandler.fs:2158-2178 \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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":1344}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d51001f7c3618fee8c99bc9d5e62f3454bc6bcb655734eb6dc14d0dcf0f3ca1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): Sharpino.Sample.7/shoppingCartWithSharpino/SuperMarket.fs:150-170 | Sharpino.Sample.7/shoppingCartWithSharpino/SuperMarket.fs:203-223 | Sharpino.Sample.7/shoppingCartWithSharpinoBinary/SuperMarket.fs:152-172 \u2014 \u0060Sharpino.Sample.7/shoppingCartWithSharpino/SuperMarket.fs\u0060 and \u0060Sharpino.Sample.7/shoppingCartWithSharpinoBinary/SuperMarket.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 151 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.7/shoppingCartWithSharpino/SuperMarket.fs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a6ce2326f5e0b7c9b8829290794ff411a6e9e4382e353dca8b8adc46c66ecb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:872-892 | Sharpino.Lib/PgBinaryEventStore.fs:972-992 \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 \u0060Sharpino.Lib/PgBinaryEventStore.fs:872\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bdba316d3af0f86dd4e2a214150d94ddc74d5fe818df234990cee61cce31a6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:1203-1222 | Sharpino.Lib/PgBinaryEventStore.fs:1645-1665 \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 \u0060Sharpino.Lib/PgBinaryEventStore.fs:1203\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":1203}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e16622a098a3360d3f2a793f2c41d4b5e411306aafe8d670977a669b52b2c5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:1940-1960 | Sharpino.Lib/PgEventStore.fs:1938-1958 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":1940}}}],"partialFingerprints":{"codehealthFindingId/v1":"38bcbd073c4a0f7c5d6fde1fbcc2a80a1f475943e382fb5ad586ce5107f6ecc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:2707-2727 | Sharpino.Lib/PgEventStore.fs:2541-2560 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:2707\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":2707}}}],"partialFingerprints":{"codehealthFindingId/v1":"b92cd4fe46ca01ea4120cf14b407b5c2aed9df9453874a89d78e2fbc6d846a1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Sharpino.Sample.12/Models/Course/Course.fs:42-62 | Sharpino.Sample.9/models/Course/Course.fs:49-69 \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 \u0060Sharpino.Sample.12/Models/Course/Course.fs:42\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":"Sharpino.Sample.12/Models/Course/Course.fs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"1beb1d7436e88edd3a304487af3e1474187ea2fea991648a5dd1a03a4920b165"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Sharpino.Sample.16/Models/Materials/Commands.fs:1-21 | Sharpino.Sample.17/Models/Materials/Commands.fs:1-21 \u2014 before extracting anything, compare \u0060Sharpino.Sample.16/Models/Materials/Commands.fs\u0060 and \u0060Sharpino.Sample.17/Models/Materials/Commands.fs\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.16/Models/Materials/Commands.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cc3e279c53da01d30e5d421b1d14e5adb3bd47140b68fffee8b0319e3309f65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Sharpino.Sample.16/Models/Products/Events.fs:1-21 | Sharpino.Sample.17/Models/Products/Events.fs:1-21 \u2014 before extracting anything, compare \u0060Sharpino.Sample.16/Models/Products/Events.fs\u0060 and \u0060Sharpino.Sample.17/Models/Products/Events.fs\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.16/Models/Products/Events.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f04310f64ebef406c5e921393deb7b09c13ad6741ec31b46cb99dbaa64415ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Sharpino.Sample.7/shoppingCartWithSharpino/Goods/Consumer.fs:47-67 | Sharpino.Sample.7/shoppingCartWithSharpinoBinary/Goods/Consumer.fs:49-69 \u2014 before extracting anything, compare \u0060Sharpino.Sample.7/shoppingCartWithSharpino/Goods/Consumer.fs\u0060 and \u0060Sharpino.Sample.7/shoppingCartWithSharpinoBinary/Goods/Consumer.fs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 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 \u0060Sharpino.Sample.7/shoppingCartWithSharpino/Goods/Consumer.fs:47\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.7/shoppingCartWithSharpino/Goods/Consumer.fs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"0057725c222e049ff518459bbd2a2866011cf050f68d766858c92c3b0d17ef8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Sharpino.Sample.9/CourseManager.fs:3-23 | Sharpino.Sample.9/CourseManagerAsync.fs:4-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.9/CourseManager.fs"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa07c0890597fb616cd407a04270d852900615ef4c72a86d3bed33170f2bef48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 2): Sharpino.Sample.FormerlySaga/Domain/Rows/Consumer.fs:42-62 | Sharpino.Sample.FormerlySaga/Domain/Voucher/Consumer.fs:42-60 \u2014 \u0060Sharpino.Sample.FormerlySaga/Domain/Rows/Consumer.fs\u0060 and \u0060Sharpino.Sample.FormerlySaga/Domain/Voucher/Consumer.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 95 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Sample.FormerlySaga/Domain/Rows/Consumer.fs:42\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sharpino.Sample.FormerlySaga/Domain/Voucher/Consumer.fs:60\u0060 calls \u0060GetString\u0060 and \u0060Sharpino.Sample.FormerlySaga/Domain/Rows/Consumer.fs:62\u0060 does not \u2014 after which the two agree again for 5 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":"Sharpino.Sample.FormerlySaga/Domain/Rows/Consumer.fs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ce1d493c38f35bfbd3a669089d792cd5a572524abe5cc1110402c88c8f02a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201320 lines \u00D7 8): Sharpino.Lib/PgBinaryEventStore.fs:348-363 | Sharpino.Lib/PgBinaryEventStore.fs:1761-1779 | Sharpino.Lib/PgBinaryEventStore.fs:1871-1890 | Sharpino.Lib/PgBinaryEventStore.fs:3044-3056 | Sharpino.Lib/PgEventStore.fs:361-376 | Sharpino.Lib/PgEventStore.fs:1748-1766 | Sharpino.Lib/PgEventStore.fs:1865-1884 | Sharpino.Lib/PgEventStore.fs:3073-3085 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:348\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 that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"6322477fc5743da31bda9a780e8fc4ec3e9b9ade500915e90d4e2384d7b2eea6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 5): Sharpino.Sample.22/Commons.fs:1-20 | Sharpino.Sample.24/Commons.fs:1-20 | Sharpino.Sample.26/Commons.fs:1-20 | Sharpino.Sample.27/Commons.fs:1-20 | Sharpino.Sample.28/Commons.fs:1-20 \u2014 \u0060Sharpino.Sample.22/Commons.fs\u0060 and \u0060Sharpino.Sample.24/Commons.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 1 separate duplicated blocks between them, totalling at least 20 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.22/Commons.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"84dc44ac4dc9326faea9af5b30edba9deeefdfbdf1579c322f805e77408a515c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 5): Sharpino.Sample.22/Details.fs:30-49 | Sharpino.Sample.24/Details.fs:53-72 | Sharpino.Sample.26/Details.fs:53-72 | Sharpino.Sample.27/Details.fs:53-72 | Sharpino.Sample.28/Details.fs:53-72 \u2014 \u0060Sharpino.Sample.22/Details.fs\u0060 and \u0060Sharpino.Sample.24/Details.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 2 separate duplicated blocks between them, totalling at least 50 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.22/Details.fs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2bc329888f0fc153eb466816cdcce4aede56aeeadb60437a23a88ed85f0e11a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): Sharpino.Lib/CommandHandler.fs:4787-4806 | Sharpino.Lib/CommandHandler.fs:5086-5105 | Sharpino.Lib/CommandHandler.fs:5379-5398 \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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":4787}}}],"partialFingerprints":{"codehealthFindingId/v1":"390a17a37f0eb1d927bb4a027158116e1800b6198d04ed88710f0186c2d0ac00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): Sharpino.Sample.11/Models/Course/Consumer.fs:21-40 | Sharpino.Sample.14/Models/Course/Consumer.fs:21-40 | Sharpino.Sample.9/models/Course/Consumer.fs:21-40 \u2014 before extracting anything, compare \u0060Sharpino.Sample.11/Models/Course/Consumer.fs\u0060 and \u0060Sharpino.Sample.14/Models/Course/Consumer.fs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 129 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":"Sharpino.Sample.11/Models/Course/Consumer.fs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e2cd6c18256edcda421dc51c37d4816338391f05e8cab24184ec46490e8b4e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): Sharpino.Sample.16/MaterialManager.fs:84-103 | Sharpino.Sample.16/MaterialManager.fs:123-142 | Sharpino.Sample.17/MaterialManager.fs:99-118 \u2014 \u0060Sharpino.Sample.16/MaterialManager.fs\u0060 and \u0060Sharpino.Sample.17/MaterialManager.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 107 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.16/MaterialManager.fs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"9404199a676f5808bcece12fadf63f802583673a41c66dab3201111a91fb21ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Sharpino.Lib/MemoryStorage.fs:470-489 | Sharpino.Lib/MemoryStorage.fs:495-514 \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":"Sharpino.Lib/MemoryStorage.fs"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea8952e2f8f1d26b575145e5da64c53ca42c37b680097c364cec4fd6eb369541"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:133-152 | Sharpino.Lib/PgEventStore.fs:148-167 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:133\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"292511b59a1a9e1be01d899a25b2ec6a45e0812892002b7101cf8fa02c8d7005"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:1389-1408 | Sharpino.Lib/PgEventStore.fs:1369-1388 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":1389}}}],"partialFingerprints":{"codehealthFindingId/v1":"3604846448944c2128df31908a1fc08f07f0e0ac01a86fe51ab3a631d42f2252"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:1496-1515 | Sharpino.Lib/PgEventStore.fs:1533-1551 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:1496\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sharpino.Lib/PgEventStore.fs:1533\u0060 calls \u0060ExecuteNonQueryAsync\u0060 and \u0060Sharpino.Lib/PgBinaryEventStore.fs:1496\u0060 does not \u2014 after which the two agree again for 3 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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":1496}}}],"partialFingerprints":{"codehealthFindingId/v1":"9255938f718041c98856d82937929866c9d8645242308515b46e59cf200ca000"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:1790-1809 | Sharpino.Lib/PgBinaryEventStore.fs:1901-1920 \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 \u0060Sharpino.Lib/PgBinaryEventStore.fs:1790\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":1790}}}],"partialFingerprints":{"codehealthFindingId/v1":"71e15635dd6645cf292c7dbe45d28fc3ef606c8a4b6819d42b54b2347944e35a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Sharpino.Sample.16/Models/WorkOrders/WorkOrder.fs:156-175 | Sharpino.Sample.17/Models/WorkOrders/WorkOrder.fs:156-175 \u2014 before extracting anything, compare \u0060Sharpino.Sample.16/Models/WorkOrders/WorkOrder.fs\u0060 and \u0060Sharpino.Sample.17/Models/WorkOrders/WorkOrder.fs\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.16/Models/WorkOrders/WorkOrder.fs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0b733ed12e59764485767122e2fe861b1f4e359445283bd1ea080f1902437c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): Sharpino.Lib/CommandHandler.fs:4762-4780 | Sharpino.Lib/CommandHandler.fs:5062-5080 | Sharpino.Lib/CommandHandler.fs:5355-5373 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sharpino.Lib/CommandHandler.fs:5060\u0060 calls \u0060crossAggregatesConstraint\u0060 and \u0060Sharpino.Lib/CommandHandler.fs:4760\u0060 does not \u2014 after which the two agree again for 3 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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":4762}}}],"partialFingerprints":{"codehealthFindingId/v1":"4363601004fc75daffcffd2c5d33fcb4e64a071c3040f8a0b2d0b100dac1f6aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:424-442 | Sharpino.Lib/PgEventStore.fs:2019-2036 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:424\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"a20c77c904e0adca6a84fd28edb162639b42a9995d310720ca38cf57b566bef3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:830-848 | Sharpino.Lib/PgBinaryEventStore.fs:922-940 \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 before the matched lines, \u0060Sharpino.Lib/PgBinaryEventStore.fs:829\u0060 calls \u0060NewGuid\u0060 and \u0060Sharpino.Lib/PgBinaryEventStore.fs:919\u0060 does not \u2014 after which the two agree again for 4 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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d737038f264c9e57796af3935fe878a4a74127f34effdff6bbc612b3945f7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:1686-1704 | Sharpino.Lib/PgEventStore.fs:1668-1689 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:1686\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":1686}}}],"partialFingerprints":{"codehealthFindingId/v1":"86182417b32cc5113f40954f9b787869b4b2bd267e1fea2bee4f9e2c618a9776"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:1991-2009 | Sharpino.Lib/PgEventStore.fs:1989-2006 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:1991\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":1991}}}],"partialFingerprints":{"codehealthFindingId/v1":"5917ae314053668aaf838df614814dd3903120d6684f034487dbb243e69cf6d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201319 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:2261-2276 | Sharpino.Lib/PgBinaryEventStore.fs:2291-2309 \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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":2261}}}],"partialFingerprints":{"codehealthFindingId/v1":"0396c05c1c3558f2582119aa538dadb2addb91b608a4c1617cc0e49973e1ef6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:2431-2449 | Sharpino.Lib/PgEventStore.fs:2278-2295 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":2431}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7a266111b0c07ddadd7afbfd1f88f2d11b8fa649d8919441ef8479311ed5555"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:2582-2600 | Sharpino.Lib/PgEventStore.fs:2440-2458 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:2582\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":2582}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5b201e847826655fe33fb1741931b773fcf5f5169d0da8ff4a5f915e1c96e54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:3236-3254 | Sharpino.Lib/PgEventStore.fs:3266-3284 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:3236\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":3236}}}],"partialFingerprints":{"codehealthFindingId/v1":"7166f0c64360bdff3f2b81b5ed25c5f80d72ea6ccf55f7f8123e8a9002d3df63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201319 lines \u00D7 2): Sharpino.Lib/PgEventStore.fs:2843-2858 | Sharpino.Lib/PgEventStore.fs:2868-2886 \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":"Sharpino.Lib/PgEventStore.fs"},"region":{"startLine":2843}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb9403bda77af746c85b3af87413207f0e51a272131acde778319fa8a07062cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sharpino.Sample.8/Domain/Site/Consumer.fs:52-70 | Sharpino.Sample.8/Domain/Truck/Consumer.fs:63-81 \u2014 \u0060Sharpino.Sample.8/Domain/Site/Consumer.fs\u0060 and \u0060Sharpino.Sample.8/Domain/Truck/Consumer.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 45 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Sample.8/Domain/Site/Consumer.fs:52\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.8/Domain/Site/Consumer.fs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d1bb07836c65b77c31a74597ecd2271ba6455abec53bc6e9b6fe02a8f134377"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 6): Sharpino.Lib/PgBinaryEventStore.fs:1795-1812 | Sharpino.Lib/PgBinaryEventStore.fs:1906-1923 | Sharpino.Lib/PgBinaryEventStore.fs:2774-2791 | Sharpino.Lib/PgBinaryEventStore.fs:2924-2941 | Sharpino.Lib/PgEventStore.fs:2606-2623 | Sharpino.Lib/PgEventStore.fs:2749-2766 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:1795\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":1795}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bce17f4361120229fe12e27b222ef148f3aa391b257a96377cecc5779d9602a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): Sharpino.Sample.11/Models/Student/Student.fs:38-55 | Sharpino.Sample.12/Models/Student/Student.fs:42-59 | Sharpino.Sample.9/models/Student/Student.fs:35-52 \u2014 before extracting anything, compare \u0060Sharpino.Sample.12/Models/Student/Student.fs\u0060 and \u0060Sharpino.Sample.9/models/Student/Student.fs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.11/Models/Student/Student.fs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"120831631b80d65816451f8f5987ac251e93d8e384cd08a6cd64db91e69d3204"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): Sharpino.Sample.FormerlySaga/Api/SeatBooking.fs:243-260 | Sharpino.Sample.FormerlySaga/Api/SeatBooking.fs:280-297 | Sharpino.Sample.FormerlySaga/Api/SeatBooking.fs:359-376 \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":"Sharpino.Sample.FormerlySaga/Api/SeatBooking.fs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5af3b673ad31a72b4757845f38474cf6deb6feab4668f6d36fa99118c155278"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sharpino.Lib/Cache.fs:506-523 | Sharpino.Lib/Cache.fs:526-543 \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":"Sharpino.Lib/Cache.fs"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"c15c6571419fcd0c2a901ddd2bda6ed35db1d04296b016d126a3ecaaf3e79753"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:532-549 | Sharpino.Lib/PgEventStore.fs:496-513 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:532\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"c04423322d5ae0af3729bf2c4e310ee9180533115b9a5dad20636b32a8d9b64d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:2389-2406 | Sharpino.Lib/PgEventStore.fs:2797-2814 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:2389\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":2389}}}],"partialFingerprints":{"codehealthFindingId/v1":"3faef23d6d2320eef3c8a26b9b6c4a994a9f0c3396ac92e98eae7d89e3572dbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:2871-2888 | Sharpino.Lib/PgEventStore.fs:2697-2714 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:2871\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sharpino.Lib/PgBinaryEventStore.fs:2891\u0060 calls \u0060NpgsqlConnection\u0060 and \u0060Sharpino.Lib/PgEventStore.fs:2717\u0060 does not \u2014 after which the two agree again for 3 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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":2871}}}],"partialFingerprints":{"codehealthFindingId/v1":"48ba7b87c61bceb7d5a38229c68c18fa4ea7266f2232cba827857e3ba315a24e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sharpino.Lib/StateView.fs:325-342 | Sharpino.Lib/StateView.fs:383-400 \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 \u0060Sharpino.Lib/StateView.fs:325\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/StateView.fs"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"7066d5bf6f36f6eaad432b68585b062f40824bea13b08f8bb697635c84d05286"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sharpino.Sample.11/CourseManager.fs:75-92 | Sharpino.Sample.14/CourseManager.fs:199-216 \u2014 \u0060Sharpino.Sample.11/CourseManager.fs\u0060 and \u0060Sharpino.Sample.14/CourseManager.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 1 separate duplicated blocks between them, totalling at least 18 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Sample.11/CourseManager.fs:75\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. 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":"Sharpino.Sample.11/CourseManager.fs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"20165107aa2df020c296b5ff58405cb531b2019c19273c442d2f448cc5cb0cb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): Sharpino.Sample.11/Models/Student/Consumer.fs:1-18 | Sharpino.Sample.11/Models/Student2/Consumer.fs:2-18 \u2014 \u0060Sharpino.Sample.11/Models/Student/Consumer.fs\u0060 and \u0060Sharpino.Sample.11/Models/Student2/Consumer.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 78 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.11/Models/Student/Consumer.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaa186804fc9cb0cc854fbbf1d54c33279c56fd5fb63222f2de457608122e29f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sharpino.Sample.16/MaterialManager.fs:1-18 | Sharpino.Sample.25/TodoManager.fs:1-18 \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":"Sharpino.Sample.16/MaterialManager.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"204e73ed6e584bbf39108ca13813c25f41f3d54db0a4612542310f3d4f25d1bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sharpino.Sample.9/models/Course/Consumer.fs:68-85 | Sharpino.Sample.9/models/Item/Consumer.fs:76-93 \u2014 \u0060Sharpino.Sample.9/models/Course/Consumer.fs\u0060 and \u0060Sharpino.Sample.9/models/Item/Consumer.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 7 separate duplicated blocks between them, totalling at least 96 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.9/models/Course/Consumer.fs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"7013acbf573889277b9db46cfb9c82226c0c021cfd633e9b0e35a48b127d40eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 7): Sharpino.Lib/CommandHandler.fs:985-1000 | Sharpino.Lib/CommandHandler.fs:3405-3421 | Sharpino.Lib/CommandHandler.fs:3633-3649 | Sharpino.Lib/CommandHandler.fs:3859-3875 | Sharpino.Lib/CommandHandler.fs:4664-4680 | Sharpino.Lib/CommandHandler.fs:4961-4977 | Sharpino.Lib/CommandHandler.fs:5254-5270 \u2014 all 7 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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"86f67c52a3eaa9b2b5548801082b753805cd20da84e68b9ef19d77bdc42b61b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 3): Sharpino.Lib/CommandHandler.fs:2437-2452 | Sharpino.Lib/CommandHandler.fs:2485-2499 | Sharpino.Lib/CommandHandler.fs:2529-2545 \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 \u0060Sharpino.Lib/CommandHandler.fs:2437\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":2437}}}],"partialFingerprints":{"codehealthFindingId/v1":"57486c17594c7937fd5c9cdf9ef78edaf16172756fd1cea0d49b6e5411c4cf22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 3): Sharpino.Lib/CommandHandler.fs:4628-4643 | Sharpino.Lib/CommandHandler.fs:4914-4930 | Sharpino.Lib/CommandHandler.fs:5207-5223 \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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":4628}}}],"partialFingerprints":{"codehealthFindingId/v1":"951cb2484f77c956478fc4600f1f2ba5ef63ff8a1badd4af4f178e1f4cdd67ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 3): Sharpino.Sample.11/Models/Student/Consumer.fs:60-75 | Sharpino.Sample.11/Models/Student2/Consumer.fs:57-73 | Sharpino.Sample.14/Models/Student/Consumer.fs:60-75 \u2014 \u0060Sharpino.Sample.11/Models/Student/Consumer.fs\u0060 and \u0060Sharpino.Sample.11/Models/Student2/Consumer.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 78 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Sample.11/Models/Student/Consumer.fs:60\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":"Sharpino.Sample.11/Models/Student/Consumer.fs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"83b45ab3de27330aabf3c96ba9e55d022a5a2a0bdacde491e046be17026b2571"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sharpino.Lib/CommandHandler.fs:2210-2226 | Sharpino.Lib/CommandHandler.fs:2250-2266 \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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":2210}}}],"partialFingerprints":{"codehealthFindingId/v1":"e560904dbda52c3a16b54322359b0f36896e74e915106123e5354ff7962cf88c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:573-589 | Sharpino.Lib/PgEventStore.fs:537-553 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:573\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"08701ee5f9cf99d6136be8852b6369a8e1a8bab98ab65045d6df955ee98d015a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:1325-1341 | Sharpino.Lib/PgEventStore.fs:1306-1322 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:1325\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":1325}}}],"partialFingerprints":{"codehealthFindingId/v1":"d14d48cf9e3ca88a09288acac9e1352a36b595f4da27f10c454288fc7b814437"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:2549-2565 | Sharpino.Lib/PgEventStore.fs:2408-2423 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:2549\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":2549}}}],"partialFingerprints":{"codehealthFindingId/v1":"7126f4a4a8e9085f1fd1d998d3a1d0fe3107f1e5eb5d7b613d44b5bf21771604"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:2605-2621 | Sharpino.Lib/PgEventStore.fs:2352-2368 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":2605}}}],"partialFingerprints":{"codehealthFindingId/v1":"de0296ee38b7f26262669306d5e39e85462668b63fa75630007d82b75d759b34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:3459-3475 | Sharpino.Lib/PgEventStore.fs:3487-3503 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":3459}}}],"partialFingerprints":{"codehealthFindingId/v1":"d88b994564ddc1fc61806d743e6b36101d9c74efc5ac701a30ecf19046f003d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sharpino.Lib/PgEventStore.fs:1183-1199 | Sharpino.Lib/PgEventStore.fs:1629-1645 \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 \u0060Sharpino.Lib/PgEventStore.fs:1183\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":"Sharpino.Lib/PgEventStore.fs"},"region":{"startLine":1183}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be75afa5c300d864a6432b042b3ce6b158a6cc5a9378d083770b69e60db200c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sharpino.Sample.11/Test2.fs:80-96 | Sharpino.Sample.11/Test2.fs:223-239 \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, \u0060Sharpino.Sample.11/Test2.fs:240\u0060 calls \u0060Stop\u0060 and \u0060Sharpino.Sample.11/Test2.fs:97\u0060 does not \u2014 after which the two agree again for 3 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":"Sharpino.Sample.11/Test2.fs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6192e0fcd84a55588db6733cf61d9701993d29e0452761475ab012b5c9db709"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sharpino.Sample.11/Test2.fs:186-202 | Sharpino.Sample.11/Test2.fs:261-277 \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, \u0060Sharpino.Sample.11/Test2.fs:280\u0060 calls \u0060Stop\u0060 and \u0060Sharpino.Sample.11/Test2.fs:204\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":"Sharpino.Sample.11/Test2.fs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"983e4deda0b2089e66353ce0bfbb799b2e2ee5e324e40f402467a686cfed12c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sharpino.Sample.11/Test2.fs:404-420 | Sharpino.Sample.11/Test2.fs:475-491 \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, \u0060Sharpino.Sample.11/Test2.fs:494\u0060 calls \u0060Stop\u0060 and \u0060Sharpino.Sample.11/Test2.fs:422\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":"Sharpino.Sample.11/Test2.fs"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d3e3ac8f94fe3b5978e5914559d0c5b3ba1aaafc2891c011d24712362ee5f86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 6): Sharpino.Lib/PgBinaryEventStore.fs:1672-1684 | Sharpino.Lib/PgBinaryEventStore.fs:1782-1795 | Sharpino.Lib/PgBinaryEventStore.fs:1893-1906 | Sharpino.Lib/PgEventStore.fs:1652-1666 | Sharpino.Lib/PgEventStore.fs:1769-1784 | Sharpino.Lib/PgEventStore.fs:1887-1902 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgEventStore.fs:1652\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":1672}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba1079d04786d81934e701a7308c2daccc460248fd5b6414d2f5a3272fe61b9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): Sharpino.Sample.8/Domain/Site/Consumer.fs:44-59 | Sharpino.Sample.8/Domain/Truck/Consumer.fs:55-70 | Sharpino.Sample.9/models/Course/Consumer.fs:60-75 | Sharpino.Sample.9/models/Item/Consumer.fs:68-83 \u2014 \u0060Sharpino.Sample.8/Domain/Site/Consumer.fs\u0060 and \u0060Sharpino.Sample.8/Domain/Truck/Consumer.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 45 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sharpino.Sample.9/models/Course/Consumer.fs:77\u0060 calls \u0060ResetAllStates\u0060, \u0060Clear\u0060 and \u0060Sharpino.Sample.8/Domain/Site/Consumer.fs:61\u0060 does not \u2014 after which the two agree again for 3 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":"Sharpino.Sample.8/Domain/Site/Consumer.fs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b530c925cb3e6860cf30ced3ff440b83f8ecd5dcc6408a9783f5aca0af1bca3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201316 lines \u00D7 4): Sharpino.Lib/CommandHandler.fs:5887-5902 | Sharpino.Lib/CommandHandler.fs:5945-5960 | Sharpino.Lib/CommandHandler.fs:5971-5974 | Sharpino.Lib/CommandHandler.fs:6046-6049 \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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":5887}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fd3368a889e96d6fb90451257ef4364cac7c030ff435f0098988a94811a448f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:248-263 | Sharpino.Lib/PgEventStore.fs:266-279 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:248\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sharpino.Lib/PgEventStore.fs:266\u0060 calls \u0060CommitAsync\u0060, \u0060ConfigureAwait\u0060 and \u0060Sharpino.Lib/PgBinaryEventStore.fs:248\u0060 does not \u2014 after which the two agree again for 5 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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a36a0a02279cfe6a9fb55299610b8e6851fddfe7d95ea7a4a8895db56fbe40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:1461-1476 | Sharpino.Lib/PgEventStore.fs:1498-1513 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:1461\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":1461}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ffa52df2323acb864d4b2d9a60d843baa6842f0dd33d3dd3eb4ddc89f8c08d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:2846-2861 | Sharpino.Lib/PgEventStore.fs:2672-2687 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:2846\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":2846}}}],"partialFingerprints":{"codehealthFindingId/v1":"d28189431b0c6fad38fe6296ed803cecde2746b81fb7637e3c0bb263337b2d4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:3441-3456 | Sharpino.Lib/PgEventStore.fs:3469-3484 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":3441}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ee335c29836b8d9c79d4ba1850ac8775c091eaf983ed6154d233d292c46b218"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sharpino.Lib/PgEventStore.fs:608-623 | Sharpino.Lib/PgEventStore.fs:703-718 \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":"Sharpino.Lib/PgEventStore.fs"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"62eac5c13cfc50df28b28905dd7912f654f5115c7421cb0663e1c31b797a29d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sharpino.Lib/Sanitizer.fs:52-67 | Sharpino.Lib/Sanitizer.fs:166-181 \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":"Sharpino.Lib/Sanitizer.fs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d1819645c3d84cd5a4e691824ca3ba16c0409328097645669ddab02aa01b823"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): Sharpino.Sample.12/Models/Student/Commands.fs:6-20 | Sharpino.Sample.9/models/Student/Commands.fs:6-21 \u2014 before extracting anything, compare \u0060Sharpino.Sample.12/Models/Student/Commands.fs\u0060 and \u0060Sharpino.Sample.9/models/Student/Commands.fs\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 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.12/Models/Student/Commands.fs"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"73c85126a35b955e6a58b123047696e54c8788ad9a0b6891f9021696f8b2c373"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sharpino.Sample.12/Models/Student/Student.fs:11-26 | Sharpino.Sample.9/models/Student/Student.fs:8-23 \u2014 before extracting anything, compare \u0060Sharpino.Sample.12/Models/Student/Student.fs\u0060 and \u0060Sharpino.Sample.9/models/Student/Student.fs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Sample.12/Models/Student/Student.fs:11\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":"Sharpino.Sample.12/Models/Student/Student.fs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"947321386e778078066c37c87c983c4aefd0f2cb8e3ef38d1e64b3b9ed3ff06b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): Sharpino.Sample.7/shoppingCartWithSharpino/Goods/Consumer.fs:21-34 | Sharpino.Sample.7/shoppingCartWithSharpinoBinary/Goods/Consumer.fs:22-37 \u2014 before extracting anything, compare \u0060Sharpino.Sample.7/shoppingCartWithSharpino/Goods/Consumer.fs\u0060 and \u0060Sharpino.Sample.7/shoppingCartWithSharpinoBinary/Goods/Consumer.fs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 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":"Sharpino.Sample.7/shoppingCartWithSharpino/Goods/Consumer.fs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb243eed65b591b8512b966c5dce44eefa1469f9d20d0ae254c7339d3aaa568e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sharpino.Sample.7/shoppingCartWithSharpino/Goods/Events.fs:7-22 | Sharpino.Sample.7/shoppingCartWithSharpinoBinary/Goods/Events.fs:6-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.7/shoppingCartWithSharpino/Goods/Events.fs"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"841af1fe83748304a0e8addcbf887aa557809b4fe1aa353b2b62f495b3001a72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 6): Sharpino.Sample.9/models/Balance/Consumer.fs:1-14 | Sharpino.Sample.9/models/Course/Consumer.fs:1-15 | Sharpino.Sample.9/models/Item/Consumer.fs:1-15 | Sharpino.Sample.9/models/Reservation/Consumer.fs:1-15 | Sharpino.Sample.9/models/Student/Consumer.fs:1-15 | Sharpino.Sample.9/models/Teacher/Consumer.fs:1-15 \u2014 \u0060Sharpino.Sample.9/models/Balance/Consumer.fs\u0060 and \u0060Sharpino.Sample.9/models/Course/Consumer.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 62 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.9/models/Balance/Consumer.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"47b820a1baba8a2591c681e7f91691f9ff6849c92f63a38cde77345b29ae327b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 4): Sharpino.Sample.FormerlySaga/Api/SeatBooking.fs:169-182 | Sharpino.Sample.FormerlySaga/Api/SeatBooking.fs:194-207 | Sharpino.Sample.FormerlySaga/Api/SeatBooking.fs:315-329 | Sharpino.Sample.FormerlySaga/Api/SeatBooking.fs:396-409 \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 \u0060Sharpino.Sample.FormerlySaga/Api/SeatBooking.fs:169\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":"Sharpino.Sample.FormerlySaga/Api/SeatBooking.fs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"a305b0ed845c72212a56736a72becc0143a2638bf59b6895349ac2e3614dcadd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): Sharpino.Lib/CommandHandler.fs:706-720 | Sharpino.Lib/CommandHandler.fs:804-818 | Sharpino.Lib/CommandHandler.fs:942-956 \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 \u0060Sharpino.Lib/CommandHandler.fs:706\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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a41688bb27f0c6585da7b6a892b10cf0f53b93b6fecdda72b19100e04615f6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): Sharpino.Lib/CommandHandler.fs:3525-3539 | Sharpino.Lib/CommandHandler.fs:3755-3769 | Sharpino.Lib/CommandHandler.fs:3981-3995 \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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":3525}}}],"partialFingerprints":{"codehealthFindingId/v1":"476e2d570ea7153a0ea5ed810c5c454ccdba3fc5b07c10572c00943b191e79ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): Sharpino.Sample.11/Definitions.fs:6-19 | Sharpino.Sample.14/Definitions.fs:9-23 | Sharpino.Sample.15/Commons.fs:6-20 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.11/Definitions.fs"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"519065f2cacc029d9620af27b8ec7a680b15b7f4f5e18d4f0991a1e83f572bea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): Sharpino.Sample.11/Models/Student/Consumer.fs:3-17 | Sharpino.Sample.11/Models/Student2/Consumer.fs:3-17 | Sharpino.Sample.14/Models/Student/Consumer.fs:3-17 \u2014 \u0060Sharpino.Sample.11/Models/Student/Consumer.fs\u0060 and \u0060Sharpino.Sample.11/Models/Student2/Consumer.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 78 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.11/Models/Student/Consumer.fs"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"a100b6eb7047eb54ead87d70ab3e785c0d143f2169ee8a28fb4cf830de2b82c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 3): Sharpino.Sample.FormerlySaga/Domain/Booking/Consumer.fs:60-72 | Sharpino.Sample.FormerlySaga/Domain/Rows/Consumer.fs:91-105 | Sharpino.Sample.FormerlySaga/Domain/Voucher/Consumer.fs:90-104 \u2014 \u0060Sharpino.Sample.FormerlySaga/Domain/Rows/Consumer.fs\u0060 and \u0060Sharpino.Sample.FormerlySaga/Domain/Voucher/Consumer.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 95 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Sample.FormerlySaga/Domain/Rows/Consumer.fs:91\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":"Sharpino.Sample.FormerlySaga/Domain/Booking/Consumer.fs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"2231fc7ef7100acee444a039c3c179e870e219828772a9880a785830aeb28548"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): Sharpino.Lib/AzureServiceBusBackplane.fs:51-65 | Sharpino.Lib/PgNotifyBackplane.fs:40-53 \u2014 before extracting anything, compare \u0060Sharpino.Lib/AzureServiceBusBackplane.fs\u0060 and \u0060Sharpino.Lib/PgNotifyBackplane.fs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/AzureServiceBusBackplane.fs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a2dfe944b17ad151d0dfce22789df86e80f7e11040d2fa67db31cfd8319b61b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sharpino.Lib/MemoryStorage.fs:197-211 | Sharpino.Lib/MemoryStorage.fs:283-297 \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":"Sharpino.Lib/MemoryStorage.fs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"44018bbbd5f9c07f879e5433d16752e247f5d80ec38a291628a505c4cdfdeb28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sharpino.Lib/MemoryStorage.fs:363-377 | Sharpino.Lib/MemoryStorage.fs:1100-1114 \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":"Sharpino.Lib/MemoryStorage.fs"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"85f544d6d9e1ecda164e9cc70528c11d714a08c25a30a81d564f48f238c9f8ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:1357-1371 | Sharpino.Lib/PgBinaryEventStore.fs:2822-2836 \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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":1357}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bab6ceda5f2486f2093166197cb4b3a48ae032a45410f832b26ae18643a09bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:2208-2222 | Sharpino.Lib/PgEventStore.fs:2190-2204 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgEventStore.fs:2190\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":2208}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d445027d4863fecfc9e3300581e2e8fc4441213c4379a6641673cea240b82eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:3421-3435 | Sharpino.Lib/PgEventStore.fs:3449-3463 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":3421}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b12bfe2a1c308c6601fdf9ee3c3b58bc3a08f373caf1ba3ac7e580d16c9590b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sharpino.Lib/StateView.fs:237-251 | Sharpino.Lib/StateView.fs:271-285 \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 \u0060Sharpino.Lib/StateView.fs:237\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":"Sharpino.Lib/StateView.fs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"adbb41f7b9db6ea1b5c63e23cc3faea2d5d8635c100b4b92dc6ed7ff141846b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sharpino.Sample.7/shoppingCartWithSharpino/GoodsContainer/Events.fs:8-22 | Sharpino.Sample.7/shoppingCartWithSharpinoBinary/GoodsContainer/Events.fs:7-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.7/shoppingCartWithSharpino/GoodsContainer/Events.fs"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"7138dc27cbce73650e5d01279223fae5b7e7c0bd517918fe39d642faaee0fe72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sharpino.Sample.7/shoppingCartWithSharpinoBinary/Cart/Consumer.fs:1-15 | Sharpino.Sample.7/shoppingCartWithSharpinoBinary/Goods/Consumer.fs:1-15 \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":"Sharpino.Sample.7/shoppingCartWithSharpinoBinary/Cart/Consumer.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f43d9d12f1de6667a9455e18b57f56576c7a1ffdb784a7b889992bd1067d47b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 5): Sharpino.Sample.22/TodoManager.fs:65-78 | Sharpino.Sample.24/TodoManager.fs:116-128 | Sharpino.Sample.26/TodoManager.fs:116-128 | Sharpino.Sample.27/TodoManager.fs:116-128 | Sharpino.Sample.28/TodoManager.fs:116-128 \u2014 \u0060Sharpino.Sample.22/TodoManager.fs\u0060 and \u0060Sharpino.Sample.24/TodoManager.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 98 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Sample.22/TodoManager.fs:65\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.22/TodoManager.fs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d31f4f9af51ea2356ac1873281d4b2b9e0585f45b731f16ad7dda2f01998d0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 4): Sharpino.Lib/CommandHandler.fs:3595-3607 | Sharpino.Lib/CommandHandler.fs:3821-3833 | Sharpino.Lib/CommandHandler.fs:4908-4921 | Sharpino.Lib/CommandHandler.fs:5201-5214 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":3595}}}],"partialFingerprints":{"codehealthFindingId/v1":"25317d0988033d58403660fdcbd5e23b82c7a35ba1cb0515da8fb25e9c78d529"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 3): Sharpino.Lib/CommandHandler.fs:1977-1988 | Sharpino.Lib/CommandHandler.fs:3200-3213 | Sharpino.Lib/CommandHandler.fs:3273-3285 \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 \u0060Sharpino.Lib/CommandHandler.fs:1977\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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":1977}}}],"partialFingerprints":{"codehealthFindingId/v1":"1701279a6516baae54e8f19851fe083ca8d4836d77be51442855d484ba0af08f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 3): Sharpino.Lib/CommandHandler.fs:4809-4822 | Sharpino.Lib/CommandHandler.fs:5108-5120 | Sharpino.Lib/CommandHandler.fs:5401-5413 \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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":4809}}}],"partialFingerprints":{"codehealthFindingId/v1":"afc407c32f4aa3647877d6722df9a036ccec2819a9debb903b839d19dd711c3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sharpino.Lib/CommandHandler.fs:4045-4058 | Sharpino.Lib/CommandHandler.fs:4552-4565 \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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":4045}}}],"partialFingerprints":{"codehealthFindingId/v1":"007562ec26472ea9d20f279958261cf3e131875e0c2dc702b94b6c9b1713fe33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sharpino.Lib/CommandHandler.fs:5978-5991 | Sharpino.Lib/CommandHandler.fs:6053-6066 \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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":5978}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dcb92b265e236ab65451e42f1fd8b6b355dd107668aeafb29e8a4619beb8f93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): Sharpino.Lib/MemoryStorage.fs:405-418 | Sharpino.Lib/PgEventStore.fs:888-899 \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 \u0060Sharpino.Lib/MemoryStorage.fs:405\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":"Sharpino.Lib/MemoryStorage.fs"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"213bd42e8e760d0ac57ac141c94958a268f7956f287fe11877321a2b7af652b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:146-159 | Sharpino.Lib/PgBinaryEventStore.fs:393-406 \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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"f063a1f578483afed78a3ab876ffa8bb3d4332710c16afae6dc0b764fdfd26a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:660-672 | Sharpino.Lib/PgBinaryEventStore.fs:743-756 \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 \u0060Sharpino.Lib/PgBinaryEventStore.fs:743\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"46f76e8d3ca91e33686b31fd8088cce6b10f1d82e9d971cb6f259f6a2399679c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:694-707 | Sharpino.Lib/PgBinaryEventStore.fs:785-798 \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 \u0060Sharpino.Lib/PgBinaryEventStore.fs:694\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"74aa101ed4542f059cb5bf2a6743757b29861faec50ae03b248801a5a8c16332"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sharpino.Lib/PgEventStore.fs:860-873 | Sharpino.Lib/PgEventStore.fs:952-965 \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 \u0060Sharpino.Lib/PgEventStore.fs:860\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":"Sharpino.Lib/PgEventStore.fs"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e3acdc4fde4ee7bb4140e4c79189c0fa21e2972d3f535a868f59def9662f189"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sharpino.Sample.10/Models/Account/Consumer.fs:1-14 | Sharpino.Sample.10/Models/Counter/Consumer.fs:1-14 \u2014 \u0060Sharpino.Sample.10/Models/Account/Consumer.fs\u0060 and \u0060Sharpino.Sample.10/Models/Counter/Consumer.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 40 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.10/Models/Account/Consumer.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a56c28cfb0291c79f9018e13e36e222db719621fccc29b8c2df2ee2408a0aefd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sharpino.Sample.11/Models/Course/Commands.fs:1-14 | Sharpino.Sample.12/Models/Course/Commands.fs:1-14 \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":"Sharpino.Sample.11/Models/Course/Commands.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"43ba51d4aef3d4757dfcf81726b7dcb0db8fb5df015eaf948048f460fa4f5856"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sharpino.Sample.11/Test2.fs:371-384 | Sharpino.Sample.11/Test2.fs:441-454 \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, \u0060Sharpino.Sample.11/Test2.fs:455\u0060 calls \u0060Stop\u0060 and \u0060Sharpino.Sample.11/Test2.fs:385\u0060 does not \u2014 after which the two agree again for 4 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":"Sharpino.Sample.11/Test2.fs"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c919905c3126d4ca146701f77d034886c077f04b144bf4ddd5af26a55a479a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sharpino.Sample.16/Models/Products/Commands.fs:1-14 | Sharpino.Sample.17/Models/Products/Commands.fs:1-14 \u2014 before extracting anything, compare \u0060Sharpino.Sample.16/Models/Products/Commands.fs\u0060 and \u0060Sharpino.Sample.17/Models/Products/Commands.fs\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.16/Models/Products/Commands.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d650073ccc2d66fc4a9f5875234e4940da5157eef7bfe46f4308a1882e20e8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 2): Sharpino.Sample.7/shoppingCartWithSharpino/Cart/Cart.fs:7-20 | Sharpino.Sample.7/shoppingCartWithSharpinoBinary/Cart/Cart.fs:8-18 \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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.7/shoppingCartWithSharpino/Cart/Cart.fs"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"2135e5b0f8c306055a191bd136013cdea5cbabf26803b99479d327aaa340e3c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sharpino.Sample.7/shoppingCartWithSharpino/Cart/Consumer.fs:1-14 | Sharpino.Sample.7/shoppingCartWithSharpino/Goods/Consumer.fs:1-14 \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":"Sharpino.Sample.7/shoppingCartWithSharpino/Cart/Consumer.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4befa552c5dbd45a85c0d94c1bb614af3c377d5da60f37c16a723205bb318fd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): Sharpino.Sample.17/MaterialManager.fs:23-35 | Sharpino.Sample.22/Program.fs:15-27 | Sharpino.Sample.24/Program.fs:21-33 | Sharpino.Sample.26/Program.fs:21-33 | Sharpino.Sample.27/Program.fs:21-33 | Sharpino.Sample.28/Program.fs:21-33 \u2014 \u0060Sharpino.Sample.22/Program.fs\u0060 and \u0060Sharpino.Sample.24/Program.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 275 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.17/MaterialManager.fs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"06028840e7f9a92e50e16eb1186396f74d877b8ff6a16523e9595bc64a072b05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 4): Sharpino.Lib/CommandHandler.fs:1103-1115 | Sharpino.Lib/CommandHandler.fs:3514-3524 | Sharpino.Lib/CommandHandler.fs:3744-3754 | Sharpino.Lib/CommandHandler.fs:3970-3980 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":1103}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d6011a767501971883703e5e243571cf6c301872d183c55f4435cc271ca6413"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 4): Sharpino.Lib/CommandHandler.fs:4141-4152 | Sharpino.Lib/CommandHandler.fs:4289-4300 | Sharpino.Lib/CommandHandler.fs:4438-4449 | Sharpino.Lib/CommandHandler.fs:5623-5635 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":4141}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b1e5d4897788ad77b08e7e310a3715e4e7e88cda406044afd824d416ea7b6b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): Sharpino.Lib/PgBinaryEventStore.fs:853-866 | Sharpino.Lib/PgBinaryEventStore.fs:956-968 | Sharpino.Lib/PgEventStore.fs:631-644 | Sharpino.Lib/PgEventStore.fs:740-752 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:853\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sharpino.Lib/PgBinaryEventStore.fs:868\u0060 calls \u0060AddWithValue\u0060 and \u0060Sharpino.Lib/PgBinaryEventStore.fs:970\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d47422f6e31bf9e843458d0506d519ad405b3114c9c9b4e4f7fa93195e51fed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 4): Sharpino.Lib/PgBinaryEventStore.fs:858-869 | Sharpino.Lib/PgBinaryEventStore.fs:2754-2766 | Sharpino.Lib/PgEventStore.fs:636-647 | Sharpino.Lib/PgEventStore.fs:2586-2597 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ea21d772e15c3ec0a0341b03f7361960cd194d6beaa5f64906ef2f407a991d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): Sharpino.Lib/PgBinaryEventStore.fs:2316-2328 | Sharpino.Lib/PgBinaryEventStore.fs:2358-2370 | Sharpino.Lib/PgEventStore.fs:2893-2905 | Sharpino.Lib/PgEventStore.fs:2942-2954 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":2316}}}],"partialFingerprints":{"codehealthFindingId/v1":"07cbffe0b43d1c9c32f94a7ce601576ad783bb0870b6822d75adaab552b5b386"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): Sharpino.Lib/CommandHandler.fs:1260-1272 | Sharpino.Lib/CommandHandler.fs:1959-1971 | Sharpino.Lib/CommandHandler.fs:2033-2044 \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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":1260}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cf9a32b8e46b56425e88606935647d70933d2f478221f227b992c08ea1ded8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 3): Sharpino.Lib/MemoryStorage.fs:477-489 | Sharpino.Lib/MemoryStorage.fs:502-514 | Sharpino.Lib/MemoryStorage.fs:662-672 \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":"Sharpino.Lib/MemoryStorage.fs"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd31504a00ef09239a79fc8216b39baaf9909ffc5fed56e944fa6f2a8af93a5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): Sharpino.Lib/StateView.fs:596-608 | Sharpino.Lib/StateView.fs:623-635 | Sharpino.Lib/StateView.fs:655-666 \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 \u0060Sharpino.Lib/StateView.fs:596\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/StateView.fs"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"feab580374f3acf461b68aa4e24cef9da9a3fc67a789d91f91ecd650f4f18183"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sharpino.Lib/AzureServiceBusBackplane.fs:116-128 | Sharpino.Lib/PgNotifyBackplane.fs:102-114 \u2014 before extracting anything, compare \u0060Sharpino.Lib/AzureServiceBusBackplane.fs\u0060 and \u0060Sharpino.Lib/PgNotifyBackplane.fs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/AzureServiceBusBackplane.fs:116\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/AzureServiceBusBackplane.fs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"84f8539065003d936a81a4d64ffb0eadd2f231436c18b5a2b7cba3f31a0cfc83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u201313 lines \u00D7 2): Sharpino.Lib/Cache.fs:129-141 | Sharpino.Lib/Cache.fs:463-467 \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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/Cache.fs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"393735ae798b7704a5d32c30341f24ded545134820667747a1431c97ce7dd03e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Sharpino.Lib/CommandHandler.fs:153-164 | Sharpino.Lib/CommandHandler.fs:212-224 \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 \u0060Sharpino.Lib/CommandHandler.fs:153\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb8c7ddc571e2c0b70927c888c28d0fd7b78f6ed7b4776fd95d53ebf8e052b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sharpino.Lib/CommandHandler.fs:2354-2366 | Sharpino.Lib/CommandHandler.fs:2536-2548 \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 \u0060Sharpino.Lib/CommandHandler.fs:2354\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":2354}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2b79a9f4ababda96dec50227de655887a01e3ee373225184e50e6c7b3bffa7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): Sharpino.Lib/CommandHandler.fs:2674-2686 | Sharpino.Lib/CommandHandler.fs:2780-2790 \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 \u0060Sharpino.Lib/CommandHandler.fs:2674\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":2674}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cb58a50c7453a7091a79592fa35b799b9c41727d91cd22203ea17aa158c215d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:1265-1277 | Sharpino.Lib/PgEventStore.fs:1242-1254 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:1265\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":1265}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebc89eb1823728323c15ff796129ca37afc07a110099b03b22692c17034dec02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:2202-2216 | Sharpino.Lib/PgEventStore.fs:2253-2265 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:2202\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":2202}}}],"partialFingerprints":{"codehealthFindingId/v1":"a526dd396fbf2af73a4d40a514b2772e4178039e905aa83f4a2996bed55c6ccf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:2459-2471 | Sharpino.Lib/PgEventStore.fs:2305-2317 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:2459\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":2459}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e6d0dc44fdaa1f7450ece62c2bd009212266cb3eb524f92f1c457fcb4b15de5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sharpino.Lib/PgEventStore.fs:1342-1354 | Sharpino.Lib/PgEventStore.fs:2653-2665 \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 \u0060Sharpino.Lib/PgEventStore.fs:1342\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgEventStore.fs"},"region":{"startLine":1342}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a6ca34d8aa8fdcf21323344388f92883df581f25ba80365952f41f129b9c8be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sharpino.Lib/PgEventStore.fs:2327-2339 | Sharpino.Lib/PgEventStore.fs:2350-2362 \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 \u0060Sharpino.Lib/PgEventStore.fs:2327\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":"Sharpino.Lib/PgEventStore.fs"},"region":{"startLine":2327}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ffa89b23c892c136c659037b10474d9dafda6a72db94aa2d2e1f6e21eac68ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Sharpino.Lib/StateView.fs:681-693 | Sharpino.Lib/StateView.fs:715-726 \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 \u0060Sharpino.Lib/StateView.fs:681\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/StateView.fs"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c5bc6588a5a8058d921f7c3a15daab70532ba9966f5f5434aff19ac18041f89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sharpino.Sample.11/Models/Course/Consumer.fs:3-15 | Sharpino.Sample.14/Models/Course/Consumer.fs:3-15 \u2014 before extracting anything, compare \u0060Sharpino.Sample.11/Models/Course/Consumer.fs\u0060 and \u0060Sharpino.Sample.14/Models/Course/Consumer.fs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 129 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":"Sharpino.Sample.11/Models/Course/Consumer.fs"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"36bfa70b01804aa73bf9f5b8c5d8f6bdb30a0dccf75a68bdbdd77c37e106cc42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sharpino.Sample.11/Models/Course/Course.fs:42-54 | Sharpino.Sample.14/Models/Course/Course.fs:41-53 \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 \u0060Sharpino.Sample.11/Models/Course/Course.fs:42\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":"Sharpino.Sample.11/Models/Course/Course.fs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"14ab729f04e1ce8dc8e76274595fc0183bb7d4b481fa1f3e01b89e164621da03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sharpino.Sample.16/MaterialManager.fs:106-118 | Sharpino.Sample.17/MaterialManager.fs:121-133 \u2014 \u0060Sharpino.Sample.16/MaterialManager.fs\u0060 and \u0060Sharpino.Sample.17/MaterialManager.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 107 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.16/MaterialManager.fs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c4e7f5f14e99373483956fe47ad55ce2c28f35f330adbd832fabab910e0e03a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sharpino.Sample.25/TodoManager.fs:88-100 | Sharpino.Sample.25/TodoManager.fs:112-124 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Sample.25/TodoManager.fs:88\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":"Sharpino.Sample.25/TodoManager.fs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbb6d3e853a42ce3d21c98c147efbeee8b4a07057720ef33a879b436d1e21ed6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 9): Sharpino.Sample.10/Models/Account/Consumer.fs:3-14 | Sharpino.Sample.10/Models/Counter/Consumer.fs:3-14 | Sharpino.Sample.9/models/Balance/Consumer.fs:3-14 | Sharpino.Sample.9/models/Course/Consumer.fs:3-15 | Sharpino.Sample.9/models/Item/Consumer.fs:3-15 | Sharpino.Sample.9/models/Reservation/Consumer.fs:3-15 | Sharpino.Sample.9/models/Student/Consumer.fs:3-15 | Sharpino.Sample.9/models/Teacher/Consumer.fs:3-15 | Sharpino.Sample.FormerlySaga/Domain/Booking/Consumer.fs:4-15 \u2014 \u0060Sharpino.Sample.10/Models/Account/Consumer.fs\u0060 and \u0060Sharpino.Sample.10/Models/Counter/Consumer.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 40 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.10/Models/Account/Consumer.fs"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"53a425d924b4eac7cfd486f315477421e2707c5961fc7ac135b12a79ee627171"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6): Sharpino.Lib/CommandHandler.fs:1252-1263 | Sharpino.Lib/CommandHandler.fs:1336-1347 | Sharpino.Lib/CommandHandler.fs:1951-1962 | Sharpino.Lib/CommandHandler.fs:2025-2036 | Sharpino.Lib/CommandHandler.fs:2058-2069 | Sharpino.Lib/CommandHandler.fs:2150-2161 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":1252}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f749d94098b0da92a7d2e276496921d1307aaf7713a926b553a59cd59c0a60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 5): Sharpino.Lib/StateView.fs:1006-1016 | Sharpino.Lib/StateView.fs:1046-1057 | Sharpino.Lib/StateView.fs:1088-1098 | Sharpino.Lib/StateView.fs:1157-1167 | Sharpino.Lib/StateView.fs:1216-1227 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/StateView.fs"},"region":{"startLine":1006}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1f3715bd7be3c73915c6c601b83f4227398ad3c1e2dd0de57dcf1c7ba6f65f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): Sharpino.Sample.22/TodoManager.fs:148-159 | Sharpino.Sample.24/TodoManager.fs:286-297 | Sharpino.Sample.26/TodoManager.fs:286-297 | Sharpino.Sample.27/TodoManager.fs:286-297 | Sharpino.Sample.28/TodoManager.fs:286-297 \u2014 \u0060Sharpino.Sample.22/TodoManager.fs\u0060 and \u0060Sharpino.Sample.24/TodoManager.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 98 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Sample.22/TodoManager.fs:148\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.22/TodoManager.fs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff08ac895762004267857fef96cf38f9a1b9a42447517f1d546f67768c4fc599"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): Sharpino.Lib/CommandHandler.fs:1701-1712 | Sharpino.Lib/CommandHandler.fs:1798-1809 | Sharpino.Lib/CommandHandler.fs:1894-1905 | Sharpino.Lib/CommandHandler.fs:5790-5801 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":1701}}}],"partialFingerprints":{"codehealthFindingId/v1":"4000b2e3bd48c40062223ca0e51b4ed7bd9897d0797b12433d788e5409b457b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): Sharpino.Lib/PgBinaryEventStore.fs:677-688 | Sharpino.Lib/PgBinaryEventStore.fs:765-776 | Sharpino.Lib/PgEventStore.fs:843-854 | Sharpino.Lib/PgEventStore.fs:932-943 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"91ea64b7bb5329ace8e13f5faf9babef7db293d085bbe9118a94ab503a66f718"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 4): Sharpino.Lib/PgBinaryEventStore.fs:870-880 | Sharpino.Lib/PgBinaryEventStore.fs:970-980 | Sharpino.Lib/PgEventStore.fs:648-659 | Sharpino.Lib/PgEventStore.fs:754-765 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgEventStore.fs:648\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sharpino.Lib/PgBinaryEventStore.fs:868\u0060 calls \u0060AddWithValue\u0060 and \u0060Sharpino.Lib/PgBinaryEventStore.fs:969\u0060 does not \u2014 after which the two agree again for 3 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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccaa9a2d61461b8f57ca9df904dd229968b87a6496fdf4e3313e11e707fda0e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): Sharpino.Lib/PgBinaryEventStore.fs:1213-1224 | Sharpino.Lib/PgBinaryEventStore.fs:1656-1667 | Sharpino.Lib/PgEventStore.fs:1190-1201 | Sharpino.Lib/PgEventStore.fs:1636-1647 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sharpino.Lib/PgBinaryEventStore.fs:1225\u0060 calls \u0060AddWithValue\u0060 and \u0060Sharpino.Lib/PgBinaryEventStore.fs:1668\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":1213}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee07ff4d4f73fd7c36466d8d9d1dd6935f4985f5e71f599536bd1ab97dcb1f63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 4): Sharpino.Lib/PgBinaryEventStore.fs:2325-2335 | Sharpino.Lib/PgBinaryEventStore.fs:2367-2377 | Sharpino.Lib/PgBinaryEventStore.fs:2409-2420 | Sharpino.Lib/PgEventStore.fs:2817-2828 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sharpino.Lib/PgBinaryEventStore.fs:2406\u0060 calls \u0060AddWithValue\u0060 and \u0060Sharpino.Lib/PgBinaryEventStore.fs:2323\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":2325}}}],"partialFingerprints":{"codehealthFindingId/v1":"31c492e1be4bda8e0bc885fec7899e3779a04f025a2489f6285dcb945f75e31e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): Sharpino.Sample.24/DetailsRefactor.fs:2-13 | Sharpino.Sample.26/DetailsRefactor.fs:2-13 | Sharpino.Sample.27/DetailsRefactor.fs:2-13 | Sharpino.Sample.28/DetailsRefactor.fs:2-13 \u2014 \u0060Sharpino.Sample.24/DetailsRefactor.fs\u0060 and \u0060Sharpino.Sample.26/DetailsRefactor.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 2 separate duplicated blocks between them, totalling at least 35 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.24/DetailsRefactor.fs"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b4a2a1b8fbf23f02d16e1513030c600a042925616b6bfc6fef30871177c13e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 4): Sharpino.Sample.6/Dishes/Consumer.fs:66-77 | Sharpino.Sample.6/Ingredients/Consumer.fs:69-79 | Sharpino.Sample.7/shoppingCartWithSharpino/Cart/Consumer.fs:65-76 | Sharpino.Sample.7/shoppingCartWithSharpino/Goods/Consumer.fs:60-71 \u2014 before extracting anything, compare \u0060Sharpino.Sample.6/Dishes/Consumer.fs\u0060 and \u0060Sharpino.Sample.7/shoppingCartWithSharpino/Goods/Consumer.fs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sharpino.Sample.7/shoppingCartWithSharpino/Cart/Consumer.fs:62\u0060 calls \u0060ResetFallbackAggregateStateRetriever\u0060 and \u0060Sharpino.Sample.7/shoppingCartWithSharpino/Goods/Consumer.fs:58\u0060 does not \u2014 after which the two agree again for 3 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":"Sharpino.Sample.6/Dishes/Consumer.fs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"3814040d1f205636b1c5bbfc6c3fa01ca69d571c34e2f60e8b33563423f4fa8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Sharpino.Sample.11/Models/Course/Consumer.fs:74-85 | Sharpino.Sample.14/Models/Course/Consumer.fs:74-85 | Sharpino.Sample.9/models/Course/Consumer.fs:59-70 \u2014 before extracting anything, compare \u0060Sharpino.Sample.11/Models/Course/Consumer.fs\u0060 and \u0060Sharpino.Sample.14/Models/Course/Consumer.fs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 129 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":"Sharpino.Sample.11/Models/Course/Consumer.fs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"73a67c8a25aa687bd2d021dec38a1467bc2b4b89e9682c73cf3eafda4a3d0c5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Sharpino.Lib.Core/Utils.fs:60-71 | Sharpino.Lib.Core/Utils.fs:75-85 \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 \u0060Sharpino.Lib.Core/Utils.fs:60\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":"Sharpino.Lib.Core/Utils.fs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"3287ddbf2d8a5bbe04dbcc7ed0200d6693710fd18214d4880023bfdaf386cb34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sharpino.Lib/CommandHandler.fs:366-377 | Sharpino.Lib/CommandHandler.fs:1172-1183 \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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"244dbe0bd0fbdd0230b5fdd8125529eaa32ec5e8eee129bc8fbc0580286a16d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Sharpino.Lib/CommandHandler.fs:2661-2671 | Sharpino.Lib/CommandHandler.fs:2758-2769 \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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":2661}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e53b6102d6cbd6a40a6aacf3c8f01df6b669f65e13d2c96e803d883d18f9e99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): Sharpino.Lib/CommandHandler.fs:3560-3569 | Sharpino.Lib/CommandHandler.fs:4217-4228 \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 \u0060Sharpino.Lib/CommandHandler.fs:3560\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":3560}}}],"partialFingerprints":{"codehealthFindingId/v1":"b578e1d0e87270fb4b1d56aac41b73fd1655f8b47eb11b8a5e22c29bbf8a19e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (1\u201312 lines \u00D7 5): Sharpino.Lib/CommandHandler.fs:1120-1120 | Sharpino.Lib/CommandHandler.fs:4198-4198 | Sharpino.Lib/CommandHandler.fs:4350-4361 | Sharpino.Lib/CommandHandler.fs:4499-4510 | Sharpino.Lib/CommandHandler.fs:5696-5696 \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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":1120}}}],"partialFingerprints":{"codehealthFindingId/v1":"3256e9c190f1fcd433a7065918a7307263c787653228099ff5aaf71a94c80324"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sharpino.Lib/CommandHandler.fs:5528-5539 | Sharpino.Lib/CommandHandler.fs:5753-5764 \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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":5528}}}],"partialFingerprints":{"codehealthFindingId/v1":"2093ef39564d2236b419c80d309f8dc16b403f3f26eb848553806078afefb8db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:592-603 | Sharpino.Lib/PgEventStore.fs:556-567 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"391e7c3224566ce210ddc28eab5529d5177f83ad46c440540f17b8f42864d1de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:2568-2579 | Sharpino.Lib/PgEventStore.fs:2426-2437 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":2568}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e45f6b2e31bff442c7086cef7000e0d538b71c0d1bccb2134b763387e76a8fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201312 lines \u00D7 3): Sharpino.Lib/Sanitizer.fs:32-35 | Sharpino.Lib/Sanitizer.fs:120-131 | Sharpino.Lib/Sanitizer.fs:202-213 \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 \u0060Sharpino.Lib/Sanitizer.fs:120\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/Sanitizer.fs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a462692144406e9df425ef9ca0df76e4f03884053b6456c3a2d5207e6bb4884"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201312 lines \u00D7 2): Sharpino.Lib/StateView.fs:929-940 | Sharpino.Lib/StateView.fs:953-960 \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 \u0060Sharpino.Lib/StateView.fs:929\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 that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/StateView.fs"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"8807c90244a56ee45889b73d72d1f923a7f9b85be246bf5ffe7f57ff6a4310bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sharpino.Sample.11/Test2.fs:112-123 | Sharpino.Sample.11/Test2.fs:331-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.11/Test2.fs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"34669ab4e4ecfd103f4238ab7036dc93a64c3c82064f2eb0cae4b7da6e146e6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sharpino.Sample.11/Test2.fs:269-280 | Sharpino.Sample.11/Test2.fs:483-494 \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 before the matched lines, \u0060Sharpino.Sample.11/Test2.fs:267\u0060 calls \u0060Clear\u0060 and \u0060Sharpino.Sample.11/Test2.fs:480\u0060 does not \u2014 after which the two agree again for 3 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":"Sharpino.Sample.11/Test2.fs"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eb3e0921a05b1568348d16d60be1689f37d99636f634076cb68042dd040411d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sharpino.Sample.9/models/Course/Consumer.fs:43-54 | Sharpino.Sample.9/models/Teacher/Consumer.fs:43-54 \u2014 \u0060Sharpino.Sample.9/models/Course/Consumer.fs\u0060 and \u0060Sharpino.Sample.9/models/Teacher/Consumer.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 64 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.9/models/Course/Consumer.fs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bebd1f03695fbec39058435744bf8324f210ee37d7388509f28bf53cdac024f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sharpino.Sample/App.fs:113-124 | Sharpino.Sample/App.fs:303-314 \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":"Sharpino.Sample/App.fs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d6f357a22b9e3d9b8fe25cb012d62d5a03e5acbbdf8703d4d2b317166a166f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 10): Sharpino.Sample.6/Suppliers/Consumer.fs:22-33 | Sharpino.Sample.7/shoppingCartWithSharpino/Cart/Consumer.fs:20-32 | Sharpino.Sample.7/shoppingCartWithSharpinoBinary/Cart/Consumer.fs:22-32 | Sharpino.Sample.7/shoppingCartWithSharpinoBinary/Goods/Consumer.fs:21-33 | Sharpino.Sample.9/models/Balance/Consumer.fs:20-30 | Sharpino.Sample.9/models/Course/Consumer.fs:21-31 | Sharpino.Sample.9/models/Item/Consumer.fs:21-33 | Sharpino.Sample.9/models/Reservation/Consumer.fs:21-31 | Sharpino.Sample.9/models/Student/Consumer.fs:21-31 | Sharpino.Sample.9/models/Teacher/Consumer.fs:21-31 \u2014 before extracting anything, compare \u0060Sharpino.Sample.7/shoppingCartWithSharpino/Cart/Consumer.fs\u0060 and \u0060Sharpino.Sample.7/shoppingCartWithSharpinoBinary/Cart/Consumer.fs\u0060 as WHOLE FILES: 87% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.6/Suppliers/Consumer.fs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c85512070a77fbd4d6b8753d51050e7e0895d6896e8d5d27222de98aef18fff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 9): Sharpino.Sample.22/Program.fs:71-81 | Sharpino.Sample.24/Program.fs:81-91 | Sharpino.Sample.24/Program.fs:97-107 | Sharpino.Sample.26/Program.fs:81-91 | Sharpino.Sample.26/Program.fs:97-107 | Sharpino.Sample.27/Program.fs:79-89 | Sharpino.Sample.27/Program.fs:95-105 | Sharpino.Sample.28/Program.fs:79-89 | Sharpino.Sample.28/Program.fs:95-105 \u2014 \u0060Sharpino.Sample.22/Program.fs\u0060 and \u0060Sharpino.Sample.24/Program.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 275 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.22/Program.fs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbc56183525b7c1c8637d00ba36c531c2f12cd4d242e7d4f753a94fe0d5eb921"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 7): Sharpino.Sample.8/Domain/Truck/Consumer.fs:43-52 | Sharpino.Sample.9/models/Balance/Consumer.fs:44-54 | Sharpino.Sample.9/models/Course/Consumer.fs:47-57 | Sharpino.Sample.9/models/Item/Consumer.fs:50-60 | Sharpino.Sample.9/models/Reservation/Consumer.fs:51-61 | Sharpino.Sample.9/models/Student/Consumer.fs:47-57 | Sharpino.Sample.9/models/Teacher/Consumer.fs:47-57 \u2014 before extracting anything, compare \u0060Sharpino.Sample.8/Domain/Truck/Consumer.fs\u0060 and \u0060Sharpino.Sample.9/models/Course/Consumer.fs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"Sharpino.Sample.8/Domain/Truck/Consumer.fs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"793b5b11bae5942291f21c479520f7c274e9731cd73e51349a24b5d739d49216"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): Sharpino.Lib/CommandHandler.fs:413-423 | Sharpino.Lib/CommandHandler.fs:439-449 | Sharpino.Lib/CommandHandler.fs:472-482 | Sharpino.Lib/CommandHandler.fs:505-515 | Sharpino.Lib/CommandHandler.fs:535-545 | Sharpino.Lib/CommandHandler.fs:579-589 \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 \u0060Sharpino.Lib/CommandHandler.fs:413\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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"533f6f9076323e0969dac1fce847ff02eb98b7c83b820b2620f3f8c10aaffd4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): Sharpino.Sample.22/Domain/Todo/Todo.fs:54-64 | Sharpino.Sample.24/Domain/Todo/Todo.fs:54-64 | Sharpino.Sample.25/Models/Todo/Todo.fs:62-72 | Sharpino.Sample.26/Domain/Todo/Todo.fs:54-64 | Sharpino.Sample.27/Domain/Todo/Todo.fs:54-64 | Sharpino.Sample.28/Domain/Todo/Todo.fs:54-64 \u2014 before extracting anything, compare \u0060Sharpino.Sample.22/Domain/Todo/Todo.fs\u0060 and \u0060Sharpino.Sample.24/Domain/Todo/Todo.fs\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.22/Domain/Todo/Todo.fs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"b701d03d1154909cf474a01743e8635ecad8e0be9ef8d2fddc890a9581cf7b96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): Sharpino.Lib/CommandHandler.fs:4614-4624 | Sharpino.Lib/CommandHandler.fs:4892-4902 | Sharpino.Lib/CommandHandler.fs:5185-5195 | Sharpino.Lib/CommandHandler.fs:5478-5488 | Sharpino.Lib/CommandHandler.fs:5566-5576 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":4614}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9f5d43f6f1bd5316ccd224f8ca838e989e94c4ff727922be15e6feefba03eda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): Sharpino.Sample.10/Models/Account/Consumer.fs:20-32 | Sharpino.Sample.10/Models/Counter/Consumer.fs:20-32 | Sharpino.Sample.6/Dishes/Consumer.fs:18-28 | Sharpino.Sample.7/shoppingCartWithSharpino/Goods/Consumer.fs:20-30 | Sharpino.Sample.8/Domain/Site/Consumer.fs:20-30 \u2014 \u0060Sharpino.Sample.10/Models/Account/Consumer.fs\u0060 and \u0060Sharpino.Sample.10/Models/Counter/Consumer.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 40 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.10/Models/Account/Consumer.fs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"04de72577b147fa1bf6d4a4f1ba27b22ce31261e32be2f3aef45520648967885"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): Sharpino.Sample.11/Models/Course/Consumer.fs:21-31 | Sharpino.Sample.11/Models/Student/Consumer.fs:26-37 | Sharpino.Sample.11/Models/Student2/Consumer.fs:23-34 | Sharpino.Sample.14/Models/Course/Consumer.fs:21-31 | Sharpino.Sample.14/Models/Student/Consumer.fs:26-37 \u2014 before extracting anything, compare \u0060Sharpino.Sample.11/Models/Course/Consumer.fs\u0060 and \u0060Sharpino.Sample.14/Models/Course/Consumer.fs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 129 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":"Sharpino.Sample.11/Models/Course/Consumer.fs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"b11ac50e901896dbb9d3213f57d33f359bfe3a9465fa2417cd5c1ddd76de8f72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 4): Sharpino.Lib/CommandHandler.fs:3787-3795 | Sharpino.Lib/CommandHandler.fs:4013-4020 | Sharpino.Lib/CommandHandler.fs:4368-4377 | Sharpino.Lib/CommandHandler.fs:4517-4527 \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 \u0060Sharpino.Lib/CommandHandler.fs:3787\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":3787}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d26e96e664138ba565e90aea1cfd0f8ceb39e29e49005022452a392d073e468"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 4): Sharpino.Lib/CommandHandler.fs:4205-4214 | Sharpino.Lib/CommandHandler.fs:4354-4364 | Sharpino.Lib/CommandHandler.fs:4503-4513 | Sharpino.Lib/CommandHandler.fs:5702-5710 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":4205}}}],"partialFingerprints":{"codehealthFindingId/v1":"645f50d0029a8fc196c7e69b2e826f6de1f6170562f8ade909285aec358ee469"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): Sharpino.Lib/PgBinaryEventStore.fs:2748-2763 | Sharpino.Lib/PgBinaryEventStore.fs:3373-3383 | Sharpino.Lib/PgEventStore.fs:2580-2594 | Sharpino.Lib/PgEventStore.fs:3406-3416 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:2748\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sharpino.Lib/PgBinaryEventStore.fs:2765\u0060 calls \u0060AddWithValue\u0060 and \u0060Sharpino.Lib/PgBinaryEventStore.fs:3385\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":2748}}}],"partialFingerprints":{"codehealthFindingId/v1":"30861458e44d25c27e5c181ee1984791fddfcc3ec4f98e8acac3d25f2d622332"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 4): Sharpino.Sample.11/Test2.fs:193-203 | Sharpino.Sample.11/Test2.fs:268-278 | Sharpino.Sample.11/Test2.fs:412-421 | Sharpino.Sample.11/Test2.fs:483-492 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sharpino.Sample.11/Test2.fs:280\u0060 calls \u0060Stop\u0060 and \u0060Sharpino.Sample.11/Test2.fs:204\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":"Sharpino.Sample.11/Test2.fs"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ce8f472fa4d5f694a0b2d098a6201dc1d0aa8bff03231b395d6928ea492b756"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 4): Sharpino.Sample.6/Dishes/Consumer.fs:64-74 | Sharpino.Sample.6/Ingredients/Consumer.fs:67-77 | Sharpino.Sample.7/shoppingCartWithSharpino/Goods/Consumer.fs:58-68 | Sharpino.Sample.7/shoppingCartWithSharpinoBinary/Goods/Consumer.fs:60-69 \u2014 before extracting anything, compare \u0060Sharpino.Sample.6/Dishes/Consumer.fs\u0060 and \u0060Sharpino.Sample.7/shoppingCartWithSharpino/Goods/Consumer.fs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.6/Dishes/Consumer.fs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"4691339c4180bc0040a2ebeed51079b62e45f90e4e8de93e481df66dce0245aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): Sharpino.Sample.FormerlySaga/Domain/Rows/Commands.fs:38-48 | Sharpino.Sample.FormerlySaga/Domain/Rows/Commands.fs:56-66 | Sharpino.Sample.FormerlySaga/Domain/Rows/Commands.fs:74-84 | Sharpino.Sample.FormerlySaga/Domain/Rows/Commands.fs:92-102 \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 \u0060Sharpino.Sample.FormerlySaga/Domain/Rows/Commands.fs:38\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.FormerlySaga/Domain/Rows/Commands.fs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"6555c40b0b3413258e0286d24787d3443bb2fc2876d31628878ea6b90ac277cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Sharpino.Lib.Core/Utils.fs:58-68 | Sharpino.Lib.Core/Utils.fs:73-83 | Sharpino.Lib.Core/Utils.fs:87-97 \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":"Sharpino.Lib.Core/Utils.fs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e539144f58ebfb691d3dcc3ed2e4b8de6a54083be3a0841aed2e88b1bf267e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): Sharpino.Lib/PgBinaryEventStore.fs:1541-1551 | Sharpino.Lib/PgEventStore.fs:1415-1425 | Sharpino.Lib/PgEventStore.fs:1519-1528 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":1541}}}],"partialFingerprints":{"codehealthFindingId/v1":"c519bc03e9faf21634808f31d0f019319733b7e4e7b1b091151305d4127b53db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Sharpino.Sample.11/Models/Student/Consumer.fs:26-37 | Sharpino.Sample.14/Models/Student/Consumer.fs:26-37 | Sharpino.Sample.9/models/Student/Consumer.fs:21-31 \u2014 before extracting anything, compare \u0060Sharpino.Sample.11/Models/Student/Consumer.fs\u0060 and \u0060Sharpino.Sample.14/Models/Student/Consumer.fs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 147 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":"Sharpino.Sample.11/Models/Student/Consumer.fs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecb7fb6cdb5df7499aac186bfc193ec0cbfa195288de50b0928d7bbfcb27ce19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Sharpino.Sample.FormerlySaga/Api/SeatBooking.fs:263-273 | Sharpino.Sample.FormerlySaga/Api/SeatBooking.fs:300-310 | Sharpino.Sample.FormerlySaga/Api/SeatBooking.fs:379-389 \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":"Sharpino.Sample.FormerlySaga/Api/SeatBooking.fs"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8c7c760b6747e309c3a99a166877898074c06b485fab5ce813aa0b9b1602ca1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sharpino.Lib/CommandHandler.fs:1444-1454 | Sharpino.Lib/CommandHandler.fs:1532-1542 \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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":1444}}}],"partialFingerprints":{"codehealthFindingId/v1":"b02403764f29d471d92e0e01588cb5eee6ec6755de795c1875d7ad494f2e888d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sharpino.Lib/MemoryStorage.fs:732-742 | Sharpino.Lib/MemoryStorage.fs:751-761 \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":"Sharpino.Lib/MemoryStorage.fs"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c03f66aa90358b38440c7c102d70a4eec142228cd43e6b6acb156870e616418"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sharpino.Lib/MemoryStorage.fs:911-921 | Sharpino.Lib/MemoryStorage.fs:929-939 \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":"Sharpino.Lib/MemoryStorage.fs"},"region":{"startLine":911}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d60dd49a97fdd9f67325fda2d99f56aacf10b6b3d3c8a206e6b699fd5bcefcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:455-466 | Sharpino.Lib/PgEventStore.fs:2049-2059 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"5269f135bd4ffdd71eac78ad1dea5469e918bab45fef0d385da5346f13944e76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:753-763 | Sharpino.Lib/PgEventStore.fs:920-930 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"c26b0745ab5e4c217d1552d04ab6422f1f44d7501c2e3e09460f7091efd63613"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:2526-2536 | Sharpino.Lib/PgBinaryEventStore.fs:2572-2582 \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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":2526}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ee0412fec55e09898d3af4c7224f1b3943e3ef02e4d202d934f9d2a212e4cb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Sharpino.Lib/PgEventStore.fs:829-838 | Sharpino.Lib/PgEventStore.fs:913-923 \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":"Sharpino.Lib/PgEventStore.fs"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"56fd534832697f89fb95801b8a1ff70f5d07fe44209fbae46da648f2b722f416"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sharpino.Lib/PgEventStore.fs:2001-2011 | Sharpino.Lib/PgEventStore.fs:2259-2269 \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 \u0060Sharpino.Lib/PgEventStore.fs:2001\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":"Sharpino.Lib/PgEventStore.fs"},"region":{"startLine":2001}}}],"partialFingerprints":{"codehealthFindingId/v1":"612f750141225198f4de2e74d04a7bdeb164abdfd17bea9add4ab8e76e1b6bdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sharpino.Sample.11/Models/Student/Events.fs:23-33 | Sharpino.Sample.14/Models/Student/Events.fs:22-32 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.11/Models/Student/Events.fs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5a8771d3f2085f0c84aded80c63053f7d65f5a1b280a54c99090f1b5916af99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Sharpino.Sample.11/Models/Student/Student.fs:56-65 | Sharpino.Sample.14/Models/Student/Student.fs:71-81 \u2014 before extracting anything, compare \u0060Sharpino.Sample.11/Models/Student/Student.fs\u0060 and \u0060Sharpino.Sample.14/Models/Student/Student.fs\u0060 as WHOLE FILES: 91% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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":"Sharpino.Sample.11/Models/Student/Student.fs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c94fcb08f88af73beb790340e9e896d86baf20ce79ad9502e1e75046a804b59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Sharpino.Sample.11/Test2.fs:87-97 | Sharpino.Sample.11/Test2.fs:307-316 \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":"Sharpino.Sample.11/Test2.fs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fcc3a73c53e6b085bd1cb064c730e7ad84633e6701e3bccc899106c8d5b4588"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sharpino.Sample.11/Test2.fs:244-254 | Sharpino.Sample.11/Test2.fs:459-469 \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":"Sharpino.Sample.11/Test2.fs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0b0fcfee9414ab6e6fb6438d91ccde25a77379f6b6d13c65b163af3e06e9ab8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sharpino.Sample.12/Models/Student/Events.fs:13-23 | Sharpino.Sample.9/models/Student/Event.fs:7-17 \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":"Sharpino.Sample.12/Models/Student/Events.fs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"4198f2c04c4cc1835e9fc11e736ac61d7225460614f475f33520202c3f12ba64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sharpino.Sample.3/Rows/Consumer.fs:25-35 | Sharpino.Sample.8/Domain/Truck/Consumer.fs:20-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.3/Rows/Consumer.fs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"287eda40b3c6c6ae218f7af63179ad7d90e9dd3240a70499e70fb3d9866dd4ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sharpino.Sample.FormerlySaga/Domain/Rows/Consumer.fs:3-13 | Sharpino.Sample.FormerlySaga/Domain/Voucher/Consumer.fs:3-13 \u2014 \u0060Sharpino.Sample.FormerlySaga/Domain/Rows/Consumer.fs\u0060 and \u0060Sharpino.Sample.FormerlySaga/Domain/Voucher/Consumer.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 95 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.FormerlySaga/Domain/Rows/Consumer.fs"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2c160e220c4fff909e23dd577711da2d18a0bcce70d7954d6b4ccf8121675da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 9): Sharpino.Sample.3/Rows/Consumer.fs:73-82 | Sharpino.Sample.8/Domain/Site/Consumer.fs:50-59 | Sharpino.Sample.8/Domain/Truck/Consumer.fs:42-51 | Sharpino.Sample.8/Domain/Truck/Consumer.fs:61-70 | Sharpino.Sample.9/models/Balance/Consumer.fs:43-52 | Sharpino.Sample.9/models/Course/Consumer.fs:66-75 | Sharpino.Sample.9/models/Item/Consumer.fs:49-58 | Sharpino.Sample.9/models/Item/Consumer.fs:74-83 | Sharpino.Sample.9/models/Reservation/Consumer.fs:50-59 \u2014 \u0060Sharpino.Sample.8/Domain/Site/Consumer.fs\u0060 and \u0060Sharpino.Sample.8/Domain/Truck/Consumer.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 45 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sharpino.Sample.9/models/Course/Consumer.fs:77\u0060 calls \u0060ResetAllStates\u0060, \u0060Clear\u0060 and \u0060Sharpino.Sample.8/Domain/Site/Consumer.fs:61\u0060 does not \u2014 after which the two agree again for 3 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":"Sharpino.Sample.3/Rows/Consumer.fs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"d419652e5e5857361693ec6e9e22ba976d1a24e947abc8d4a29108a7fd72e7a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): Sharpino.Sample.22/Domain/Todo/Commands.fs:14-23 | Sharpino.Sample.24/Domain/Todo/Commands.fs:14-23 | Sharpino.Sample.25/Models/Todo/Commands.fs:14-23 | Sharpino.Sample.26/Domain/Todo/Commands.fs:14-23 | Sharpino.Sample.27/Domain/Todo/Commands.fs:14-23 | Sharpino.Sample.28/Domain/Todo/Commands.fs:14-23 \u2014 before extracting anything, compare \u0060Sharpino.Sample.22/Domain/Todo/Commands.fs\u0060 and \u0060Sharpino.Sample.24/Domain/Todo/Commands.fs\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.22/Domain/Todo/Commands.fs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"0677c07d9930cc106a497ebcaaab8110c45c5353180bb88f5c9d523242fc9665"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): Sharpino.Sample.22/Domain/Todo/Events.fs:20-29 | Sharpino.Sample.24/Domain/Todo/Events.fs:20-29 | Sharpino.Sample.25/Models/Todo/Events.fs:20-29 | Sharpino.Sample.26/Domain/Todo/Events.fs:20-29 | Sharpino.Sample.27/Domain/Todo/Events.fs:20-29 | Sharpino.Sample.28/Domain/Todo/Events.fs:20-29 \u2014 before extracting anything, compare \u0060Sharpino.Sample.22/Domain/Todo/Events.fs\u0060 and \u0060Sharpino.Sample.24/Domain/Todo/Events.fs\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.22/Domain/Todo/Events.fs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"834e6f97df18da7f07ee2cdd60a92d2aa1bd2d810c3199a2c0b9eda4a083626c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): Sharpino.Lib/CommandHandler.fs:2191-2200 | Sharpino.Lib/CommandHandler.fs:2230-2239 | Sharpino.Lib/CommandHandler.fs:2319-2328 | Sharpino.Lib/CommandHandler.fs:2364-2373 | Sharpino.Lib/CommandHandler.fs:2546-2555 \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 \u0060Sharpino.Lib/CommandHandler.fs:2191\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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":2191}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e418b772eda3467a9b7fb956c64ea73c4ca131fd166a4c465bed75324d8b56a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 4): Sharpino.Lib/CommandHandler.fs:4166-4175 | Sharpino.Lib/CommandHandler.fs:4314-4323 | Sharpino.Lib/CommandHandler.fs:4463-4472 | Sharpino.Lib/CommandHandler.fs:5660-5668 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sharpino.Lib/CommandHandler.fs:5671\u0060 calls \u0060fun\u0060 and \u0060Sharpino.Lib/CommandHandler.fs:4177\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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":4166}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cdd1ad1fee3a8bc29edfd684018a0783983e879c88fc48384075273fe5c5611"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): Sharpino.Lib/MemoryStorage.fs:480-489 | Sharpino.Lib/MemoryStorage.fs:505-514 | Sharpino.Lib/MemoryStorage.fs:663-672 | Sharpino.Lib/MemoryStorage.fs:687-696 \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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/MemoryStorage.fs"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"938b907365cb2291ccebc7a2d2c835847cf762606b28296ec28c9bd5d93fb41d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): Sharpino.Lib/PgBinaryEventStore.fs:179-188 | Sharpino.Lib/PgBinaryEventStore.fs:281-292 | Sharpino.Lib/PgEventStore.fs:194-203 | Sharpino.Lib/PgEventStore.fs:297-308 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:179\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"66c9552d301bf80dad6b54cd7cb9af4aee585ff975d6b71e1dfcffdedbff8774"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 4): Sharpino.Lib/PgBinaryEventStore.fs:448-457 | Sharpino.Lib/PgBinaryEventStore.fs:513-520 | Sharpino.Lib/PgBinaryEventStore.fs:552-559 | Sharpino.Lib/PgBinaryEventStore.fs:2866-2873 \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. 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 that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sharpino.Lib/PgBinaryEventStore.fs:445\u0060 calls \u0060AddWithValue\u0060 and \u0060Sharpino.Lib/PgBinaryEventStore.fs:2863\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"407d333bddf5dcb9c76fe8ac251be42bf877e19dbad653f4d26d81618859903b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Sharpino.Lib/CommandHandler.fs:2422-2431 | Sharpino.Lib/CommandHandler.fs:2470-2479 | Sharpino.Lib/CommandHandler.fs:2517-2526 \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 \u0060Sharpino.Lib/CommandHandler.fs:2422\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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":2422}}}],"partialFingerprints":{"codehealthFindingId/v1":"20baa0bb2518647978ea4fcb26d9d4e808c4967abac356424863ba021ed09902"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Sharpino.Lib/CommandHandler.fs:2906-2915 | Sharpino.Lib/CommandHandler.fs:3187-3196 | Sharpino.Lib/CommandHandler.fs:3260-3269 \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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":2906}}}],"partialFingerprints":{"codehealthFindingId/v1":"8af35d2f2cef4b8c96c26cb5439be6f692fa7b9bd91718d438c0ddee66a98996"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Sharpino.Lib/MemoryStorage.fs:911-920 | Sharpino.Lib/MemoryStorage.fs:929-938 | Sharpino.Lib/MemoryStorage.fs:959-968 \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":"Sharpino.Lib/MemoryStorage.fs"},"region":{"startLine":911}}}],"partialFingerprints":{"codehealthFindingId/v1":"90eea370a65ef29334d34246049163aab8ac12d0eccfcab488c8f35c5c6cb00f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Sharpino.Sample.11/Test2.fs:80-89 | Sharpino.Sample.11/Test2.fs:151-160 | Sharpino.Sample.11/Test2.fs:223-232 \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":"Sharpino.Sample.11/Test2.fs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcf8d6be057111919c3bdb46f1b54ae600a0b8fc80b784b81df389546ed64294"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Sharpino.Sample.11/Test2.fs:299-308 | Sharpino.Sample.11/Test2.fs:370-379 | Sharpino.Sample.11/Test2.fs:440-449 \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":"Sharpino.Sample.11/Test2.fs"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"511450aace728355bde61b381bd6650a790bab36021e2ecaee32ecd40fc37bdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sharpino.Lib/CommandHandler.fs:1199-1208 | Sharpino.Lib/CommandHandler.fs:1619-1628 \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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":1199}}}],"partialFingerprints":{"codehealthFindingId/v1":"3873c6c1bfa6d1be400424c3d5f02755140aa1bc8755a0ac140d96a5e736cf69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sharpino.Lib/CommandHandler.fs:2288-2297 | Sharpino.Lib/CommandHandler.fs:2304-2313 \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 \u0060Sharpino.Lib/CommandHandler.fs:2288\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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":2288}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cb542744bcfabc31d7a37225477d00f70b21638dd295fba046a91f637150f2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sharpino.Lib/CommandHandler.fs:4070-4079 | Sharpino.Lib/CommandHandler.fs:4577-4586 \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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":4070}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d78568560479874593be447d9a3aa3fe34607ed4ee1bcc785aee7f51a0d1e14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:604-613 | Sharpino.Lib/PgEventStore.fs:568-577 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"58854c2447d015b9f9a8cd008f741a82b1b171a68d481cb11c41cb19522d7ba4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sharpino.Lib/StateView.fs:949-958 | Sharpino.Lib/StateView.fs:973-982 \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 \u0060Sharpino.Lib/StateView.fs:949\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":"Sharpino.Lib/StateView.fs"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"c64755e62a1c1897cafba031dcad02f483b012730a1486efed87150ad4d80036"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sharpino.Sample.11/Models/Course/Events.fs:21-30 | Sharpino.Sample.14/Models/Course/Events.fs:23-32 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.11/Models/Course/Events.fs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"13fc5836869f92dd697b27a7195c6b8531fc4f442e6b13824bca27fe0a24eeea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sharpino.Sample.7/shoppingCartWithSharpino/Cart/Events.fs:14-23 | Sharpino.Sample.7/shoppingCartWithSharpinoBinary/Cart/Events.fs:12-21 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.7/shoppingCartWithSharpino/Cart/Events.fs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dec7a4fb370b2d1d4e0b18c2294ac37b0ce7f4d1d9f39de1d2f53edf120707f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u201310 lines \u00D7 2): Sharpino.Sample.FormerlySaga/Api/SeatBooking.fs:184-193 | Sharpino.Sample.FormerlySaga/Api/SeatBooking.fs:209-214 \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 \u0060Sharpino.Sample.FormerlySaga/Api/SeatBooking.fs:184\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 that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.FormerlySaga/Api/SeatBooking.fs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad2bdc4e2411e9156cf34a35701632ef899cc3715822d8e2bdb91d11713e711c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sharpino.Sample/App.fs:92-101 | Sharpino.Sample/App.fs:109-118 \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 \u0060Sharpino.Sample/App.fs:92\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":"Sharpino.Sample/App.fs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c25e029c93ad845a73f8c6ed08abb8bef4a9aee62b62d5aeb7e9aac8550fa02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 16): Sharpino.Lib/PgBinaryEventStore.fs:122-130 | Sharpino.Lib/PgBinaryEventStore.fs:438-444 | Sharpino.Lib/PgBinaryEventStore.fs:501-507 | Sharpino.Lib/PgBinaryEventStore.fs:1033-1039 | Sharpino.Lib/PgBinaryEventStore.fs:2095-2102 | Sharpino.Lib/PgBinaryEventStore.fs:2170-2176 | Sharpino.Lib/PgBinaryEventStore.fs:2561-2567 | Sharpino.Lib/PgBinaryEventStore.fs:2857-2863 | Sharpino.Lib/PgEventStore.fs:137-145 | Sharpino.Lib/PgEventStore.fs:457-463 | Sharpino.Lib/PgEventStore.fs:1004-1010 | Sharpino.Lib/PgEventStore.fs:2032-2038 | Sharpino.Lib/PgEventStore.fs:2151-2157 | Sharpino.Lib/PgEventStore.fs:2226-2232 | Sharpino.Lib/PgEventStore.fs:2419-2425 | Sharpino.Lib/PgEventStore.fs:2683-2689 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sharpino.Lib/PgBinaryEventStore.fs:510\u0060 calls \u0060AddWithValue\u0060 and \u0060Sharpino.Lib/PgBinaryEventStore.fs:447\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"61956b8b4eacee53c2e487e5e48f4fc13d7380c148cb5728a5f2c10cdc5530a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 11): Sharpino.Lib/CommandHandler.fs:1191-1199 | Sharpino.Lib/CommandHandler.fs:1247-1255 | Sharpino.Lib/CommandHandler.fs:1331-1339 | Sharpino.Lib/CommandHandler.fs:1437-1445 | Sharpino.Lib/CommandHandler.fs:1525-1533 | Sharpino.Lib/CommandHandler.fs:1611-1619 | Sharpino.Lib/CommandHandler.fs:1923-1931 | Sharpino.Lib/CommandHandler.fs:1946-1954 | Sharpino.Lib/CommandHandler.fs:2020-2028 | Sharpino.Lib/CommandHandler.fs:2053-2061 | Sharpino.Lib/CommandHandler.fs:2145-2153 \u2014 all 11 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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":1191}}}],"partialFingerprints":{"codehealthFindingId/v1":"73e5d38bbd5548e449970aa423fdf7409d9470ffa2c94c3ddc53a380a31cb9e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 10): Sharpino.Sample.11/Test2.fs:76-84 | Sharpino.Sample.11/Test2.fs:147-155 | Sharpino.Sample.11/Test2.fs:182-190 | Sharpino.Sample.11/Test2.fs:219-227 | Sharpino.Sample.11/Test2.fs:257-265 | Sharpino.Sample.11/Test2.fs:296-304 | Sharpino.Sample.11/Test2.fs:367-375 | Sharpino.Sample.11/Test2.fs:401-409 | Sharpino.Sample.11/Test2.fs:437-445 | Sharpino.Sample.11/Test2.fs:472-480 \u2014 all 10 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sharpino.Sample.11/Test2.fs:86\u0060 calls \u0060Clear\u0060 and \u0060Sharpino.Sample.11/Test2.fs:306\u0060 does not \u2014 after which the two agree again for 4 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":"Sharpino.Sample.11/Test2.fs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"52b8f03cd1f6b914dd11940a1e9a15d7a696efec88a745785d9a1da40e59f61a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 8): Sharpino.Lib/CommandHandler.fs:3359-3367 | Sharpino.Lib/CommandHandler.fs:3581-3589 | Sharpino.Lib/CommandHandler.fs:3807-3815 | Sharpino.Lib/CommandHandler.fs:4032-4040 | Sharpino.Lib/CommandHandler.fs:4098-4106 | Sharpino.Lib/CommandHandler.fs:4240-4248 | Sharpino.Lib/CommandHandler.fs:4389-4397 | Sharpino.Lib/CommandHandler.fs:4539-4547 \u2014 all 8 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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":3359}}}],"partialFingerprints":{"codehealthFindingId/v1":"80132e0a0fec262d651724f25ef8a807e06f66a14d825b6f47d39401a94cda53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 7): Sharpino.Lib/CommandHandler.fs:4612-4620 | Sharpino.Lib/CommandHandler.fs:4890-4898 | Sharpino.Lib/CommandHandler.fs:5183-5191 | Sharpino.Lib/CommandHandler.fs:5476-5484 | Sharpino.Lib/CommandHandler.fs:5526-5534 | Sharpino.Lib/CommandHandler.fs:5564-5572 | Sharpino.Lib/CommandHandler.fs:5751-5759 \u2014 all 7 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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":4612}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec4ceca06aa4fea2176c776bff36f41a5faa1df4449de3dd5301c84d2e8ed9f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): Sharpino.Lib/CommandHandler.fs:1700-1708 | Sharpino.Lib/CommandHandler.fs:1797-1805 | Sharpino.Lib/CommandHandler.fs:1893-1901 | Sharpino.Lib/CommandHandler.fs:5789-5797 | Sharpino.Lib/CommandHandler.fs:5865-5873 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":1700}}}],"partialFingerprints":{"codehealthFindingId/v1":"2586ffbfefe706a3ffe4ebcbfdd2402492fd44811f9fa206b537a98e51f4b164"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): Sharpino.Lib/CommandHandler.fs:4210-4218 | Sharpino.Lib/CommandHandler.fs:4360-4368 | Sharpino.Lib/CommandHandler.fs:4509-4517 | Sharpino.Lib/CommandHandler.fs:5711-5719 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":4210}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a14de3ecf0b10497cf9dd748da39450338a2c0c90bdd91ecb3c8968c3bed81b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): Sharpino.Lib/PgBinaryEventStore.fs:180-190 | Sharpino.Lib/PgEventStore.fs:195-205 | Sharpino.Lib/PgEventStore.fs:829-837 | Sharpino.Lib/PgEventStore.fs:914-922 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dc72c91c9e1c3ff88f4ef11f4d27c357218832593d80465be0fc4147be6eba0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): Sharpino.Lib/StateView.fs:139-147 | Sharpino.Lib/StateView.fs:182-190 | Sharpino.Lib/StateView.fs:220-228 | Sharpino.Lib/StateView.fs:254-262 \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 \u0060Sharpino.Lib/StateView.fs:139\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":"Sharpino.Lib/StateView.fs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"79eb5e1566ff0db2f26809e959d34a838c49f3caced30327b038f71077ba6557"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): Sharpino.Lib/AzureServiceBusBackplane.fs:54-61 | Sharpino.Lib/MqttBackplane.fs:34-42 | Sharpino.Lib/PgNotifyBackplane.fs:42-49 \u2014 before extracting anything, compare \u0060Sharpino.Lib/AzureServiceBusBackplane.fs\u0060 and \u0060Sharpino.Lib/PgNotifyBackplane.fs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/AzureServiceBusBackplane.fs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"404e45c60f32c79316b1b008336cd84590d56c149bbe08d03b748c95a5efe25c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sharpino.Lib/CommandHandler.fs:2405-2413 | Sharpino.Lib/CommandHandler.fs:2453-2461 | Sharpino.Lib/CommandHandler.fs:2500-2508 \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 \u0060Sharpino.Lib/CommandHandler.fs:2405\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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":2405}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1cab72a5342637967adf1f5a832898363e56ba89f216771ae34d96b1186531e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): Sharpino.Lib/PgEventStore.fs:470-478 | Sharpino.Lib/PgEventStore.fs:518-525 | Sharpino.Lib/PgEventStore.fs:2694-2701 \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 \u0060Sharpino.Lib/PgEventStore.fs:470\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgEventStore.fs"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"71c0f9320e2e84443e09396eced57636e9cba38d3e92ddc9a4dd399a43953288"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sharpino.Sample.12/Models/Student/Commands.fs:14-22 | Sharpino.Sample.9/models/Student/Commands.fs:15-23 | Sharpino.Sample.9/models/Teacher/Commands.fs:17-25 \u2014 before extracting anything, compare \u0060Sharpino.Sample.12/Models/Student/Commands.fs\u0060 and \u0060Sharpino.Sample.9/models/Student/Commands.fs\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 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.12/Models/Student/Commands.fs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed09ff52d3787b5e46318b836d189aa22af0c527921482e4a93bf3993ee3dc8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sharpino.Sample.FormerlySaga/Domain/Booking/Consumer.fs:41-49 | Sharpino.Sample.FormerlySaga/Domain/Rows/Consumer.fs:42-50 | Sharpino.Sample.FormerlySaga/Domain/Voucher/Consumer.fs:42-50 \u2014 \u0060Sharpino.Sample.FormerlySaga/Domain/Rows/Consumer.fs\u0060 and \u0060Sharpino.Sample.FormerlySaga/Domain/Voucher/Consumer.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 95 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.FormerlySaga/Domain/Booking/Consumer.fs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"498a2fe5c0c841e0cf58be93c03605de542b117be603437e7abde9c4a82b11ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sharpino.Lib/Cache.fs:312-320 | Sharpino.Lib/Cache.fs:566-574 \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":"Sharpino.Lib/Cache.fs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"6902eee2970595b8df1c18198b9eb3fc509be460a3b072c495777b0606841ebe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Sharpino.Lib/CommandHandler.fs:886-894 | Sharpino.Lib/CommandHandler.fs:1087-1094 \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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"58453a4f7b3eb3a3ed7f36572b417697e923bb5f531297df2dc547bfb52a000b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sharpino.Lib/CommandHandler.fs:2237-2245 | Sharpino.Lib/CommandHandler.fs:2506-2514 \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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":2237}}}],"partialFingerprints":{"codehealthFindingId/v1":"318c09056fb13a9795570221cb75baafe2f936c233facc8b03ff9f8c4ed1fe6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sharpino.Lib/CommandHandler.fs:2758-2766 | Sharpino.Lib/CommandHandler.fs:2850-2858 \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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":2758}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e00a4b01e37dcfc3bb281a59dd9ecf6beb1147f8d3db31afadc59c3bce5cbf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sharpino.Lib/CommandHandler.fs:2982-2990 | Sharpino.Lib/CommandHandler.fs:3113-3121 \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 \u0060Sharpino.Lib/CommandHandler.fs:2982\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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":2982}}}],"partialFingerprints":{"codehealthFindingId/v1":"619bb57d5e7ea01b7447e1b71e88e6538a9456f763c3dad190b61bd8cab83911"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sharpino.Lib/CommandHandler.fs:4116-4124 | Sharpino.Lib/CommandHandler.fs:5588-5596 \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 \u0060Sharpino.Lib/CommandHandler.fs:4116\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sharpino.Lib/CommandHandler.fs:5599\u0060 calls \u0060traverseResultM\u0060 and \u0060Sharpino.Lib/CommandHandler.fs:4126\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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":4116}}}],"partialFingerprints":{"codehealthFindingId/v1":"149605f0ab3f28519baa748f9d23790d7da1d958d4c44b8c4552960aff191f53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sharpino.Lib/MemoryStorage.fs:83-91 | Sharpino.Lib/MemoryStorage.fs:147-155 \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":"Sharpino.Lib/MemoryStorage.fs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c51df143b80c3117d941d700d5e141f6cb68e0c1de9f7b42d32a3343a75d818"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:22-30 | Sharpino.Lib/PgEventStore.fs:23-31 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9e7e325f732be9dac95cfa1c0e221a74dcc3df66a10b3186f6652a04d2e3889"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:939-947 | Sharpino.Lib/PgEventStore.fs:721-729 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:939\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sharpino.Lib/PgEventStore.fs:720\u0060 calls \u0060NewGuid\u0060 and \u0060Sharpino.Lib/PgBinaryEventStore.fs:937\u0060 does not \u2014 after which the two agree again for 3 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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c7ebbb0cec5831a9c41a007f72ac6656f8ab93db25fbe1a2fc4234a4cefca32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:2514-2522 | Sharpino.Lib/PgBinaryEventStore.fs:2813-2821 \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 \u0060Sharpino.Lib/PgBinaryEventStore.fs:2514\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":2514}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6fb9e842c588cabd1714a028eac48d9e7b535e6488a28a417b891e5bfa519b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sharpino.Lib/RabbitMq.fs:196-204 | Sharpino.Lib/RabbitMq.fs:255-263 \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 \u0060Sharpino.Lib/RabbitMq.fs:196\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":"Sharpino.Lib/RabbitMq.fs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"eae849b54ab8f0d64c76c6c72a8544b9f6545fbef6e6641715ddeaab833b29eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sharpino.Lib/StateView.fs:455-463 | Sharpino.Lib/StateView.fs:495-503 \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. 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":"Sharpino.Lib/StateView.fs"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"b19b962b27277a22e2b1e8b379de0d9ded408600f96aa46003271e9d25a5026c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sharpino.Lib/StateView.fs:609-617 | Sharpino.Lib/StateView.fs:636-644 \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":"Sharpino.Lib/StateView.fs"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1d3042e456c80059053f68b4d5e6a932561df97220ed4d0b7e17b6211a2efe6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sharpino.Lib/StateView.fs:667-675 | Sharpino.Lib/StateView.fs:694-702 \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":"Sharpino.Lib/StateView.fs"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"00f97cda80b357cf590b43d3bf9a057936fe594465cd8925f117b42bbb4c26bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sharpino.Sample.11/Models/Course/Course.fs:62-70 | Sharpino.Sample.14/Models/Course/Course.fs:69-77 \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":"Sharpino.Sample.11/Models/Course/Course.fs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"98bea78d7ce7fb6b3d046e70c8ea9903ed9413aad962eede9fa19b152711d6b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sharpino.Sample.11/Models/Student/Commands.fs:13-21 | Sharpino.Sample.14/Models/Student/Commands.fs:16-24 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.11/Models/Student/Commands.fs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ce117ff790a533eed0ec4c22af12478c91f1647f86292e36f2485bfcd8f6b93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sharpino.Sample.12/Models/Course/Commands.fs:17-25 | Sharpino.Sample.9/models/Course/Commands.fs:15-23 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.12/Models/Course/Commands.fs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"31135d1dd39abd634312c549ec0af0c17ba072fcc9bdccceb54aed045bdd76e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 26): Sharpino.Lib/CommandHandler.fs:1684-1691 | Sharpino.Lib/CommandHandler.fs:1781-1788 | Sharpino.Lib/CommandHandler.fs:1877-1884 | Sharpino.Lib/CommandHandler.fs:2897-2904 | Sharpino.Lib/CommandHandler.fs:3178-3185 | Sharpino.Lib/CommandHandler.fs:3251-3258 | Sharpino.Lib/CommandHandler.fs:3322-3329 | Sharpino.Lib/CommandHandler.fs:3350-3357 | Sharpino.Lib/CommandHandler.fs:3572-3579 | Sharpino.Lib/CommandHandler.fs:3798-3805 | Sharpino.Lib/CommandHandler.fs:4023-4030 | Sharpino.Lib/CommandHandler.fs:4061-4068 | Sharpino.Lib/CommandHandler.fs:4089-4096 | Sharpino.Lib/CommandHandler.fs:4231-4238 | Sharpino.Lib/CommandHandler.fs:4380-4387 | Sharpino.Lib/CommandHandler.fs:4530-4537 | Sharpino.Lib/CommandHandler.fs:4568-4575 | Sharpino.Lib/CommandHandler.fs:4596-4603 | Sharpino.Lib/CommandHandler.fs:4874-4881 | Sharpino.Lib/CommandHandler.fs:5167-5174 | Sharpino.Lib/CommandHandler.fs:5460-5467 | Sharpino.Lib/CommandHandler.fs:5510-5517 | Sharpino.Lib/CommandHandler.fs:5548-5555 | Sharpino.Lib/CommandHandler.fs:5735-5742 | Sharpino.Lib/CommandHandler.fs:5773-5780 | Sharpino.Lib/CommandHandler.fs:5849-5856 \u2014 all 26 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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":1684}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd6929ebc6fa4a6dc2eee33e0104d84cef9c3f12d1acdea967aac8e3ca0bfeb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 20): Sharpino.Lib/PgBinaryEventStore.fs:120-129 | Sharpino.Lib/PgBinaryEventStore.fs:436-443 | Sharpino.Lib/PgBinaryEventStore.fs:499-506 | Sharpino.Lib/PgBinaryEventStore.fs:1031-1038 | Sharpino.Lib/PgBinaryEventStore.fs:2168-2175 | Sharpino.Lib/PgBinaryEventStore.fs:2316-2323 | Sharpino.Lib/PgBinaryEventStore.fs:2358-2365 | Sharpino.Lib/PgBinaryEventStore.fs:2398-2405 | Sharpino.Lib/PgBinaryEventStore.fs:2559-2566 | Sharpino.Lib/PgBinaryEventStore.fs:2855-2862 | Sharpino.Lib/PgEventStore.fs:135-144 | Sharpino.Lib/PgEventStore.fs:455-462 | Sharpino.Lib/PgEventStore.fs:1002-1009 | Sharpino.Lib/PgEventStore.fs:2030-2037 | Sharpino.Lib/PgEventStore.fs:2149-2156 | Sharpino.Lib/PgEventStore.fs:2417-2424 | Sharpino.Lib/PgEventStore.fs:2681-2688 | Sharpino.Lib/PgEventStore.fs:2806-2813 | Sharpino.Lib/PgEventStore.fs:2893-2900 | Sharpino.Lib/PgEventStore.fs:2942-2949 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sharpino.Lib/PgBinaryEventStore.fs:445\u0060 calls \u0060AddWithValue\u0060 and \u0060Sharpino.Lib/PgBinaryEventStore.fs:2324\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"0926eed231a055ab60e40858067e721d4e70a8df3436e49e75e4f3855d95d403"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 13): Sharpino.Lib/CommandHandler.fs:3361-3368 | Sharpino.Lib/CommandHandler.fs:3583-3590 | Sharpino.Lib/CommandHandler.fs:3809-3816 | Sharpino.Lib/CommandHandler.fs:4034-4041 | Sharpino.Lib/CommandHandler.fs:4100-4107 | Sharpino.Lib/CommandHandler.fs:4242-4249 | Sharpino.Lib/CommandHandler.fs:4391-4398 | Sharpino.Lib/CommandHandler.fs:4541-4548 | Sharpino.Lib/CommandHandler.fs:4617-4623 | Sharpino.Lib/CommandHandler.fs:4895-4901 | Sharpino.Lib/CommandHandler.fs:5188-5194 | Sharpino.Lib/CommandHandler.fs:5481-5487 | Sharpino.Lib/CommandHandler.fs:5569-5575 \u2014 all 13 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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":3361}}}],"partialFingerprints":{"codehealthFindingId/v1":"867c2d8a8f77b54521b64ee881d0d044b8bcd81e73408203396b17e6cbb48b54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 12): Sharpino.Lib/CommandHandler.fs:1692-1699 | Sharpino.Lib/CommandHandler.fs:1789-1796 | Sharpino.Lib/CommandHandler.fs:1885-1892 | Sharpino.Lib/CommandHandler.fs:4604-4611 | Sharpino.Lib/CommandHandler.fs:4882-4889 | Sharpino.Lib/CommandHandler.fs:5175-5182 | Sharpino.Lib/CommandHandler.fs:5468-5475 | Sharpino.Lib/CommandHandler.fs:5518-5525 | Sharpino.Lib/CommandHandler.fs:5556-5563 | Sharpino.Lib/CommandHandler.fs:5743-5750 | Sharpino.Lib/CommandHandler.fs:5781-5788 | Sharpino.Lib/CommandHandler.fs:5857-5864 \u2014 all 12 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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":1692}}}],"partialFingerprints":{"codehealthFindingId/v1":"f27c8340412b02fe87c8c11ffcb4ab2f9c3012515e57469166a32288a95840ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 10): Sharpino.Lib/CommandHandler.fs:3358-3365 | Sharpino.Lib/CommandHandler.fs:3580-3587 | Sharpino.Lib/CommandHandler.fs:3806-3813 | Sharpino.Lib/CommandHandler.fs:4031-4038 | Sharpino.Lib/CommandHandler.fs:4069-4076 | Sharpino.Lib/CommandHandler.fs:4097-4104 | Sharpino.Lib/CommandHandler.fs:4239-4246 | Sharpino.Lib/CommandHandler.fs:4388-4395 | Sharpino.Lib/CommandHandler.fs:4538-4545 | Sharpino.Lib/CommandHandler.fs:4576-4583 \u2014 all 10 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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":3358}}}],"partialFingerprints":{"codehealthFindingId/v1":"888eb54a7bb2404cbc95972bc70c9a4f1f9abce68c3b29e3d74b766627c69216"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 8): Sharpino.Lib/CommandHandler.fs:2195-2202 | Sharpino.Lib/CommandHandler.fs:2234-2241 | Sharpino.Lib/CommandHandler.fs:2323-2330 | Sharpino.Lib/CommandHandler.fs:2368-2375 | Sharpino.Lib/CommandHandler.fs:2408-2415 | Sharpino.Lib/CommandHandler.fs:2456-2463 | Sharpino.Lib/CommandHandler.fs:2503-2510 | Sharpino.Lib/CommandHandler.fs:2550-2557 \u2014 all 8 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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":2195}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff68161a8824ef24047313b015b86b089d6e84fbb230af2b3bfbf25a64872e83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 7): Sharpino.Sample.FormerlySaga/Api/SeatBooking.fs:178-185 | Sharpino.Sample.FormerlySaga/Api/SeatBooking.fs:203-210 | Sharpino.Sample.FormerlySaga/Api/SeatBooking.fs:256-263 | Sharpino.Sample.FormerlySaga/Api/SeatBooking.fs:293-300 | Sharpino.Sample.FormerlySaga/Api/SeatBooking.fs:325-332 | Sharpino.Sample.FormerlySaga/Api/SeatBooking.fs:372-379 | Sharpino.Sample.FormerlySaga/Api/SeatBooking.fs:405-412 \u2014 all 7 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":"Sharpino.Sample.FormerlySaga/Api/SeatBooking.fs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"288ef88df46aae8ea48b45b36dfe53e20843a165ad1ec4c703346dfbde01115e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): Sharpino.Lib/StateView.fs:55-62 | Sharpino.Lib/StateView.fs:139-146 | Sharpino.Lib/StateView.fs:182-189 | Sharpino.Lib/StateView.fs:220-227 | Sharpino.Lib/StateView.fs:254-261 \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 \u0060Sharpino.Lib/StateView.fs:55\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":"Sharpino.Lib/StateView.fs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"7255792359b808a549459d024fea08ee8b67c892675d12b386b1bb792972af04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): Sharpino.Lib/CommandHandler.fs:2905-2912 | Sharpino.Lib/CommandHandler.fs:3186-3193 | Sharpino.Lib/CommandHandler.fs:3259-3266 | Sharpino.Lib/CommandHandler.fs:3330-3337 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":2905}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0a120cb7149335ba4925aef69cea7a77835c59f70b7581b7be8093364dd6335"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): Sharpino.Lib/CommandHandler.fs:4151-4158 | Sharpino.Lib/CommandHandler.fs:4299-4306 | Sharpino.Lib/CommandHandler.fs:4448-4455 | Sharpino.Lib/CommandHandler.fs:5638-5645 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sharpino.Lib/CommandHandler.fs:5648\u0060 calls \u0060fun\u0060 and \u0060Sharpino.Lib/CommandHandler.fs:4160\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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":4151}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9b8023cfe4c6d6f6baef0895b6f46bec93e9f221c3fd0d181eb422dd032de69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): Sharpino.Lib/CommandHandler.fs:4160-4167 | Sharpino.Lib/CommandHandler.fs:4308-4315 | Sharpino.Lib/CommandHandler.fs:4457-4464 | Sharpino.Lib/CommandHandler.fs:5650-5657 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":4160}}}],"partialFingerprints":{"codehealthFindingId/v1":"971d2171ff10dc36f9faa3d77e5d11742a393def5b5fa938682b707d136de05e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): Sharpino.Lib/PgBinaryEventStore.fs:693-700 | Sharpino.Lib/PgBinaryEventStore.fs:784-791 | Sharpino.Lib/PgEventStore.fs:859-866 | Sharpino.Lib/PgEventStore.fs:951-958 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec1ae8d2b80dfec4533e7b3853727c184c0f27093039d5f5d6aaa090ed9f2be0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): Sharpino.Lib/PgBinaryEventStore.fs:960-970 | Sharpino.Lib/PgBinaryEventStore.fs:3378-3385 | Sharpino.Lib/PgEventStore.fs:744-754 | Sharpino.Lib/PgEventStore.fs:3411-3418 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":960}}}],"partialFingerprints":{"codehealthFindingId/v1":"950cce0ab25ae40e6eec8183ba897fafbd18e21135d7654e11e5106589124f6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Sharpino.Lib/CommandHandler.fs:2570-2577 | Sharpino.Lib/CommandHandler.fs:2707-2714 | Sharpino.Lib/CommandHandler.fs:2793-2800 \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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":2570}}}],"partialFingerprints":{"codehealthFindingId/v1":"384482f64e5f329e5dcbbb792fc084c686d55724a140f2d9a8b6c130cfa76594"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Sharpino.Lib/CommandHandler.fs:3312-3319 | Sharpino.Lib/CommandHandler.fs:3562-3569 | Sharpino.Lib/CommandHandler.fs:4221-4228 \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 \u0060Sharpino.Lib/CommandHandler.fs:3312\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":3312}}}],"partialFingerprints":{"codehealthFindingId/v1":"07e4a900b39c486d06babc22ef296ff9c52be52be396fc4592f8ed31636f3dd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): Sharpino.Lib/CommandHandler.fs:927-934 | Sharpino.Lib/CommandHandler.fs:1145-1151 \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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":927}}}],"partialFingerprints":{"codehealthFindingId/v1":"43195b98b4984fbe175131a9ad01ad548503e812f5fd87ad5a2c8d56c1a3c21b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sharpino.Lib/CommandHandler.fs:2689-2696 | Sharpino.Lib/CommandHandler.fs:2880-2887 \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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":2689}}}],"partialFingerprints":{"codehealthFindingId/v1":"a49bbcdba8381b4cb0dfe823b3ea0b4519a46cc7f5ffbfc80a7828c681eb51cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): Sharpino.Lib/MemoryStorage.fs:1136-1142 | Sharpino.Lib/MemoryStorage.fs:1150-1157 \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":"Sharpino.Lib/MemoryStorage.fs"},"region":{"startLine":1136}}}],"partialFingerprints":{"codehealthFindingId/v1":"67df66044ced9f1f29c288bae2240f6be3316d212fb13b95abd266f4d0df2da4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:468-477 | Sharpino.Lib/PgEventStore.fs:482-489 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:468\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae5a90e0c5a77cc8e5c454759078c5baa3c964a2c8da09c4a54d118f2000968b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:1008-1014 | Sharpino.Lib/PgBinaryEventStore.fs:1043-1050 \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. 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 that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":1008}}}],"partialFingerprints":{"codehealthFindingId/v1":"054104653ee3e22ff819e9985a0dce2ec03dc601d9f84c8426c2f2d04c0156b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:1226-1233 | Sharpino.Lib/PgEventStore.fs:1203-1210 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":1226}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a38ed8b8c156f6a29ebdf906b151f100b136c1726d6d514b4204faf207afc35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sharpino.Lib/StateView.fs:88-95 | Sharpino.Lib/StateView.fs:107-114 \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":"Sharpino.Lib/StateView.fs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bcc8441b31ef9147da155f0519025414497b769530796b8e3bd43d845ce7e58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sharpino.Lib/StateView.fs:584-591 | Sharpino.Lib/StateView.fs:728-735 \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":"Sharpino.Lib/StateView.fs"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea5b84e08ade43deccef4de7ee82c0f700c8c8d178beda6e31645e38343a9213"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sharpino.Lib/StateView.fs:794-801 | Sharpino.Lib/StateView.fs:858-865 \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":"Sharpino.Lib/StateView.fs"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eb8d9364ad2de96ef89c75f405b294254f29c9e1d558d1efaf79f47c908d6fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sharpino.Sample.FormerlySaga/Domain/Rows/Consumer.fs:64-71 | Sharpino.Sample.FormerlySaga/Domain/Voucher/Consumer.fs:63-70 \u2014 \u0060Sharpino.Sample.FormerlySaga/Domain/Rows/Consumer.fs\u0060 and \u0060Sharpino.Sample.FormerlySaga/Domain/Voucher/Consumer.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 95 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.FormerlySaga/Domain/Rows/Consumer.fs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd809628626da40fed9ed3c5bf187e8034397a3d96f5dcf2227e04270bb629fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 20): Sharpino.Lib/PgBinaryEventStore.fs:353-359 | Sharpino.Lib/PgBinaryEventStore.fs:682-689 | Sharpino.Lib/PgBinaryEventStore.fs:770-777 | Sharpino.Lib/PgBinaryEventStore.fs:857-867 | Sharpino.Lib/PgBinaryEventStore.fs:959-969 | Sharpino.Lib/PgBinaryEventStore.fs:1763-1776 | Sharpino.Lib/PgBinaryEventStore.fs:1877-1887 | Sharpino.Lib/PgBinaryEventStore.fs:2754-2764 | Sharpino.Lib/PgBinaryEventStore.fs:3046-3053 | Sharpino.Lib/PgBinaryEventStore.fs:3378-3384 | Sharpino.Lib/PgEventStore.fs:366-372 | Sharpino.Lib/PgEventStore.fs:635-645 | Sharpino.Lib/PgEventStore.fs:743-753 | Sharpino.Lib/PgEventStore.fs:848-855 | Sharpino.Lib/PgEventStore.fs:937-944 | Sharpino.Lib/PgEventStore.fs:1750-1763 | Sharpino.Lib/PgEventStore.fs:1871-1881 | Sharpino.Lib/PgEventStore.fs:2586-2595 | Sharpino.Lib/PgEventStore.fs:3075-3082 | Sharpino.Lib/PgEventStore.fs:3411-3417 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sharpino.Lib/PgBinaryEventStore.fs:2765\u0060 calls \u0060AddWithValue\u0060 and \u0060Sharpino.Lib/PgBinaryEventStore.fs:360\u0060 does not \u2014 after which the two agree again for 3 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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"da229a99f5e549d948d7134f380f11e30ae93a5c8d7d6ec43c2158dde27504fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 18): Sharpino.Lib/PgBinaryEventStore.fs:121-129 | Sharpino.Lib/PgBinaryEventStore.fs:437-443 | Sharpino.Lib/PgBinaryEventStore.fs:500-506 | Sharpino.Lib/PgBinaryEventStore.fs:1032-1038 | Sharpino.Lib/PgBinaryEventStore.fs:2094-2101 | Sharpino.Lib/PgBinaryEventStore.fs:2169-2175 | Sharpino.Lib/PgBinaryEventStore.fs:2399-2405 | Sharpino.Lib/PgBinaryEventStore.fs:2560-2566 | Sharpino.Lib/PgBinaryEventStore.fs:2856-2862 | Sharpino.Lib/PgEventStore.fs:136-144 | Sharpino.Lib/PgEventStore.fs:456-462 | Sharpino.Lib/PgEventStore.fs:1003-1009 | Sharpino.Lib/PgEventStore.fs:2031-2037 | Sharpino.Lib/PgEventStore.fs:2150-2156 | Sharpino.Lib/PgEventStore.fs:2225-2231 | Sharpino.Lib/PgEventStore.fs:2418-2424 | Sharpino.Lib/PgEventStore.fs:2682-2688 | Sharpino.Lib/PgEventStore.fs:2807-2813 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sharpino.Lib/PgBinaryEventStore.fs:446\u0060 calls \u0060AddWithValue\u0060 and \u0060Sharpino.Lib/PgBinaryEventStore.fs:2865\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"21c185c213738e8380496c6382f2d13bf57a4b615b07755e2f6794caac3550b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): Sharpino.Lib/CommandHandler.fs:2569-2575 | Sharpino.Lib/CommandHandler.fs:2688-2694 | Sharpino.Lib/CommandHandler.fs:2706-2712 | Sharpino.Lib/CommandHandler.fs:2792-2798 | Sharpino.Lib/CommandHandler.fs:2879-2885 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":2569}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b26118cee57d1a712328dfaf340fc6ff6b9f3373b32c1a2777e9cd45cf3e88c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20137 lines \u00D7 5): Sharpino.Lib/PgBinaryEventStore.fs:2325-2329 | Sharpino.Lib/PgBinaryEventStore.fs:2367-2371 | Sharpino.Lib/PgBinaryEventStore.fs:2409-2413 | Sharpino.Lib/PgEventStore.fs:2817-2821 | Sharpino.Lib/PgEventStore.fs:2902-2908 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sharpino.Lib/PgBinaryEventStore.fs:2406\u0060 calls \u0060AddWithValue\u0060 and \u0060Sharpino.Lib/PgBinaryEventStore.fs:2323\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":2325}}}],"partialFingerprints":{"codehealthFindingId/v1":"a87a698904b52ae9867c8c593da5bac79ddac0fddf26a672ed455f6740c3b242"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 4): Sharpino.Lib/CommandHandler.fs:4072-4078 | Sharpino.Lib/CommandHandler.fs:4579-4585 | Sharpino.Lib/CommandHandler.fs:5531-5536 | Sharpino.Lib/CommandHandler.fs:5756-5761 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":4072}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e7e4b0106d96b509c2efbf9e3948c0f53833ee56d5e0148c125ed32259d0aa9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): Sharpino.Lib/CommandHandler.fs:4175-4181 | Sharpino.Lib/CommandHandler.fs:4323-4329 | Sharpino.Lib/CommandHandler.fs:4472-4478 | Sharpino.Lib/CommandHandler.fs:5671-5677 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":4175}}}],"partialFingerprints":{"codehealthFindingId/v1":"270362957a6d332450becad36d67ac9c6fd296509227797cafba7bab231da51c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): Sharpino.Lib/StateView.fs:821-827 | Sharpino.Lib/StateView.fs:857-863 | Sharpino.Lib/StateView.fs:889-895 | Sharpino.Lib/StateView.fs:913-919 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/StateView.fs"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"2166a72b5fccc9ba1b0fd9d2c876e51c9d1360336e82f06ac11589cc590f49e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Sharpino.Lib/CommandHandler.fs:270-276 | Sharpino.Lib/CommandHandler.fs:307-313 | Sharpino.Lib/CommandHandler.fs:346-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"90054067bdc7343a01f3155cde7c3ef4513d10c280afc815318726eae6161d7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Sharpino.Lib/StateView.fs:583-589 | Sharpino.Lib/StateView.fs:727-733 | Sharpino.Lib/StateView.fs:753-759 \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":"Sharpino.Lib/StateView.fs"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"44e3d899bcd6d7e6150a632b345b8a245b7b8b7393dc1bddb88dc986b3453923"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Sharpino.Lib/StateView.fs:794-800 | Sharpino.Lib/StateView.fs:822-828 | Sharpino.Lib/StateView.fs:858-864 \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":"Sharpino.Lib/StateView.fs"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4e8a0777324a36086d0396033c360e196ea8ef8267ec099ee4ed35689021cfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sharpino.Lib/Cache.fs:674-680 | Sharpino.Lib/Cache.fs:736-742 \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 \u0060Sharpino.Lib/Cache.fs:674\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":"Sharpino.Lib/Cache.fs"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"a662b8899a6668d51c4774dbaf060e4c5043e1ed2f4a02cc540f65ac976f8d40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): Sharpino.Lib/CommandHandler.fs:98-104 | Sharpino.Sample.9/Commons.fs:56-61 \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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"512be3e0c9220916c31020d9578d65c49d0cdad3d5a5588c8a417a3a9037dc3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sharpino.Lib/CommandHandler.fs:919-925 | Sharpino.Lib/CommandHandler.fs:1126-1134 \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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"39cbe619b54f300f4768944210c63edeec1030bd3f84444a066723e9aa14083d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sharpino.Lib/CommandHandler.fs:1279-1285 | Sharpino.Lib/CommandHandler.fs:1372-1378 \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 \u0060Sharpino.Lib/CommandHandler.fs:1279\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sharpino.Lib/CommandHandler.fs:1380\u0060 calls \u0060eventStore\u0060 and \u0060Sharpino.Lib/CommandHandler.fs:1287\u0060 does not \u2014 after which the two agree again for 3 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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":1279}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ccdfeb66f3740afb2ca014c40e60e1830b903c1712183cf3b9d83eea3a413d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sharpino.Lib/CommandHandler.fs:1770-1777 | Sharpino.Lib/CommandHandler.fs:1867-1873 \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 \u0060Sharpino.Lib/CommandHandler.fs:1770\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":1770}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bab9927c5b71106f845629ff8476ba208debe923b32e4738ba2614fa8e0a7b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20137 lines \u00D7 3): Sharpino.Lib/CommandHandler.fs:779-782 | Sharpino.Lib/CommandHandler.fs:3218-3224 | Sharpino.Lib/CommandHandler.fs:3290-3296 \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 \u0060Sharpino.Lib/CommandHandler.fs:779\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aee7c6399f3c5bdb68f3b334b15634fe173f6b8644ce3bf94c42060a426f452"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20137 lines \u00D7 9): Sharpino.Lib/CommandHandler.fs:1495-1496 | Sharpino.Lib/CommandHandler.fs:1584-1585 | Sharpino.Lib/CommandHandler.fs:2650-2651 | Sharpino.Lib/CommandHandler.fs:2754-2755 | Sharpino.Lib/CommandHandler.fs:2846-2847 | Sharpino.Lib/CommandHandler.fs:4189-4192 | Sharpino.Lib/CommandHandler.fs:4338-4344 | Sharpino.Lib/CommandHandler.fs:4487-4493 | Sharpino.Lib/CommandHandler.fs:5691-5692 \u2014 all 9 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 that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":1495}}}],"partialFingerprints":{"codehealthFindingId/v1":"10b5de9a04b97cf5a5c1006ee3994f75ca9149227db333a61e9db01a311a5289"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:668-675 | Sharpino.Lib/PgEventStore.fs:835-841 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dfba7cad8ae64a44727235ca15b05dcec2aef2349e1abe1b8bb2a4e8706e73a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:3478-3484 | Sharpino.Lib/PgEventStore.fs:3506-3512 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:3478\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":3478}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6b93430f2c7976d6b7c326ab0a6370588a3fa1f943fa384da9a350e6314667b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sharpino.Lib/RabbitMq.fs:215-221 | Sharpino.Lib/RabbitMq.fs:277-283 \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 \u0060Sharpino.Lib/RabbitMq.fs:215\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":"Sharpino.Lib/RabbitMq.fs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"01911b7e669e21ab54fcb66d05eff15aea99e52097811f927a2e7c4af394c221"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sharpino.Lib/StateView.fs:440-446 | Sharpino.Lib/StateView.fs:548-554 \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":"Sharpino.Lib/StateView.fs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"e17b8e1e0980a440cb9a342c9ae8752da634ba1be5357de122c9c58b9882714d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20137 lines \u00D7 4): Sharpino.Lib/StateView.fs:853-856 | Sharpino.Lib/StateView.fs:963-965 | Sharpino.Lib/StateView.fs:1023-1029 | Sharpino.Lib/StateView.fs:1192-1198 \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 \u0060Sharpino.Lib/StateView.fs:1023\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/StateView.fs"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"14d6c76dc36c4c299d0858aa6757156fcc58a5252b105c1c59fa05c604812425"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sharpino.Sample.11/Models/Course/Consumer.fs:98-104 | Sharpino.Sample.14/Models/Course/Consumer.fs:98-104 \u2014 before extracting anything, compare \u0060Sharpino.Sample.11/Models/Course/Consumer.fs\u0060 and \u0060Sharpino.Sample.14/Models/Course/Consumer.fs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 129 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":"Sharpino.Sample.11/Models/Course/Consumer.fs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"88dc1a81dc06dcfeabd9f45144d90f4121112e4214ff5811b93383c5cc616cf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sharpino.Sample.7/shoppingCartWithSharpino/GoodsContainer/GoodsContainer.fs:33-39 | Sharpino.Sample.7/shoppingCartWithSharpinoBinary/GoodsContainer/GoodsContainer.fs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.7/shoppingCartWithSharpino/GoodsContainer/GoodsContainer.fs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0e8ce1f92335752f67e9a851cf139b64caeb7ba6477265a4aa202543ecae042"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 7): Sharpino.Lib/CommandHandler.fs:4213-4218 | Sharpino.Lib/CommandHandler.fs:4363-4368 | Sharpino.Lib/CommandHandler.fs:4512-4517 | Sharpino.Lib/CommandHandler.fs:4853-4858 | Sharpino.Lib/CommandHandler.fs:5146-5151 | Sharpino.Lib/CommandHandler.fs:5439-5444 | Sharpino.Lib/CommandHandler.fs:5714-5719 \u2014 all 7 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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":4213}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d23ac358e40522b95219449b69f5cec802810e978b1c594cb1c1a74b906e77b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): Sharpino.Lib/CommandHandler.fs:637-642 | Sharpino.Lib/CommandHandler.fs:1196-1201 | Sharpino.Lib/CommandHandler.fs:1442-1447 | Sharpino.Lib/CommandHandler.fs:1530-1535 | Sharpino.Lib/CommandHandler.fs:1616-1621 | Sharpino.Lib/CommandHandler.fs:1928-1933 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f3504c41323af3a691d7fdcac591df25cbe846f41c72b26727a2434052775be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): Sharpino.Lib/CommandHandler.fs:266-271 | Sharpino.Lib/CommandHandler.fs:303-308 | Sharpino.Lib/CommandHandler.fs:342-347 | Sharpino.Lib/CommandHandler.fs:362-367 | Sharpino.Lib/CommandHandler.fs:1168-1173 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"29a82f75f97a5584edf384047d908c29de0b8fcbd729fadca6e74abd7d9cbe95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): Sharpino.Lib/StateView.fs:440-445 | Sharpino.Lib/StateView.fs:479-484 | Sharpino.Lib/StateView.fs:548-553 | Sharpino.Lib/StateView.fs:609-614 | Sharpino.Lib/StateView.fs:636-641 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/StateView.fs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"df813640441fa216c8dbb28db96b8f5a0c1e43db90dec965b512905daecc8a92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): Sharpino.Lib/StateView.fs:603-608 | Sharpino.Lib/StateView.fs:630-635 | Sharpino.Lib/StateView.fs:661-666 | Sharpino.Lib/StateView.fs:688-693 | Sharpino.Lib/StateView.fs:721-726 \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 \u0060Sharpino.Lib/StateView.fs:603\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/StateView.fs"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd39b679b93f7aeed703af5368bf345ba12542059fde04672c50bea9625caf61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Sharpino.Lib/StateView.fs:794-799 | Sharpino.Lib/StateView.fs:822-827 | Sharpino.Lib/StateView.fs:858-863 | Sharpino.Lib/StateView.fs:914-919 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/StateView.fs"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"749d196cc781628d1beb0a0d1b1cd116b5449073857ac915187b1345f4678160"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20136 lines \u00D7 4): Sharpino.Lib/StateView.fs:966-970 | Sharpino.Lib/StateView.fs:1072-1077 | Sharpino.Lib/StateView.fs:1141-1146 | Sharpino.Lib/StateView.fs:1199-1204 \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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/StateView.fs"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4aff0a3679f45ea1d641ff7ab23496dafa7b7d48fbd661cf65a19445a290b6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sharpino.Lib/Cache.fs:237-242 | Sharpino.Lib/Cache.fs:312-317 | Sharpino.Lib/Cache.fs:566-571 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sharpino.Lib/Cache.fs:244\u0060 calls \u0060DetailsCacheKey\u0060, \u0060Trigger\u0060 and \u0060Sharpino.Lib/Cache.fs:318\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":"Sharpino.Lib/Cache.fs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"34ca11fabffc967f7d10522fc4f3ef7625068f1848219161af4f1b22a0088ffc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sharpino.Lib/CommandHandler.fs:97-102 | Sharpino.Lib/CommandHandler.fs:114-119 | Sharpino.Sample.9/Commons.fs:55-60 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfad7f817c848ea6405878b1d47e69016a43868c8b3b3c0281bb2ecae8ff7070"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sharpino.Lib/CommandHandler.fs:933-938 | Sharpino.Lib/CommandHandler.fs:2776-2782 | Sharpino.Lib/CommandHandler.fs:2865-2870 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sharpino.Lib/CommandHandler.fs:2784\u0060 calls \u0060commands\u0060 and \u0060Sharpino.Lib/CommandHandler.fs:2873\u0060 does not \u2014 after which the two agree again for 3 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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"74f5ecba86e2caceddeddcff2cc9aceebc84f6ea74e759c489f6c0c8dc2c158e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sharpino.Lib/CommandHandler.fs:3552-3557 | Sharpino.Lib/CommandHandler.fs:3779-3784 | Sharpino.Lib/CommandHandler.fs:4005-4010 \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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":3552}}}],"partialFingerprints":{"codehealthFindingId/v1":"71b6992b49cc4d2762b836d29d2f583a2cdf82e6be064fdb9dca8af06ddfb8aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sharpino.Lib/StateView.fs:313-318 | Sharpino.Lib/StateView.fs:371-376 | Sharpino.Lib/StateView.fs:1242-1247 \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":"Sharpino.Lib/StateView.fs"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"5359dc8546683ea4936d156da41a16c701e515fbc82373558af45d4924a89ee5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sharpino.Lib/StateView.fs:312-317 | Sharpino.Lib/StateView.fs:343-348 | Sharpino.Lib/StateView.fs:370-375 \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 \u0060Sharpino.Lib/StateView.fs:312\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":"Sharpino.Lib/StateView.fs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d1cfe0387a5d207d73d8308fcf9b3e0130290f8d23f2d897951a1149406c5d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sharpino.Lib/Cache.fs:259-264 | Sharpino.Lib/Cache.fs:590-595 \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":"Sharpino.Lib/Cache.fs"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"148efa018e7812423d29497259a355be2924d366ebda607bfba3d2ec64278f8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sharpino.Lib/Cache.fs:704-709 | Sharpino.Lib/Cache.fs:744-749 \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":"Sharpino.Lib/Cache.fs"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"49c0e582fdb5fcd1f7758715b0881a8334073c91ebe600742f6e37c748c17c6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sharpino.Lib/CommandHandler.fs:1714-1719 | Sharpino.Lib/CommandHandler.fs:1811-1816 \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 \u0060Sharpino.Lib/CommandHandler.fs:1714\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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":1714}}}],"partialFingerprints":{"codehealthFindingId/v1":"a69c6a4365068e0eec0b000ea747f57d804ff3caa681ce46705d78f0cd6e46e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sharpino.Lib/CommandHandler.fs:3237-3242 | Sharpino.Lib/CommandHandler.fs:3309-3314 \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 \u0060Sharpino.Lib/CommandHandler.fs:3237\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sharpino.Lib/CommandHandler.fs:3244\u0060 calls \u0060Obsolete\u0060 and \u0060Sharpino.Lib/CommandHandler.fs:3316\u0060 does not \u2014 after which the two agree again for 4 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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":3237}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7d4af0f8b7e77e7aa0dc15f24d42d2652dc5f567139421a853029729f17d382"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sharpino.Lib/CommandHandler.fs:5993-5998 | Sharpino.Lib/CommandHandler.fs:6068-6073 \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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":5993}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b2c1dc30072983a28365812c89e70635c6f7718032949aa8427b878b6778fed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:1351-1356 | Sharpino.Lib/PgBinaryEventStore.fs:2486-2491 \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 \u0060Sharpino.Lib/PgBinaryEventStore.fs:1351\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":1351}}}],"partialFingerprints":{"codehealthFindingId/v1":"3907531c02ccd1ced1aedb0fcaf6fd0789a5bc57a656a2775c41d0937a838bef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sharpino.Lib/Sanitizer.fs:37-42 | Sharpino.Lib/Sanitizer.fs:133-138 \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":"Sharpino.Lib/Sanitizer.fs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"62ac8b3825ee8592bed3784b696f5375b31fb998999e9d6ae191880fda2bc155"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sharpino.Lib/Sanitizer.fs:154-159 | Sharpino.Lib/Sanitizer.fs:215-220 \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":"Sharpino.Lib/Sanitizer.fs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"da0f0d8e49dd17a9931968e24b88240b453762bf5fca238413a9a760cca87c6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sharpino.Lib/StateView.fs:883-888 | Sharpino.Lib/StateView.fs:907-912 \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 \u0060Sharpino.Lib/StateView.fs:883\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":"Sharpino.Lib/StateView.fs"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf5048fc4f61946888b7030087236e7fefa4d8001dcb9086f958d024d039a0c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 43): Sharpino.Lib/CommandHandler.fs:628-632 | Sharpino.Lib/CommandHandler.fs:1190-1194 | Sharpino.Lib/CommandHandler.fs:1246-1250 | Sharpino.Lib/CommandHandler.fs:1330-1334 | Sharpino.Lib/CommandHandler.fs:1436-1440 | Sharpino.Lib/CommandHandler.fs:1524-1528 | Sharpino.Lib/CommandHandler.fs:1610-1614 | Sharpino.Lib/CommandHandler.fs:1679-1683 | Sharpino.Lib/CommandHandler.fs:1776-1780 | Sharpino.Lib/CommandHandler.fs:1872-1876 | Sharpino.Lib/CommandHandler.fs:1922-1926 | Sharpino.Lib/CommandHandler.fs:1945-1949 | Sharpino.Lib/CommandHandler.fs:2019-2023 | Sharpino.Lib/CommandHandler.fs:2052-2056 | Sharpino.Lib/CommandHandler.fs:2144-2148 | Sharpino.Lib/CommandHandler.fs:2564-2568 | Sharpino.Lib/CommandHandler.fs:2683-2687 | Sharpino.Lib/CommandHandler.fs:2701-2705 | Sharpino.Lib/CommandHandler.fs:2787-2791 | Sharpino.Lib/CommandHandler.fs:2874-2878 | Sharpino.Lib/CommandHandler.fs:2892-2896 | Sharpino.Lib/CommandHandler.fs:3173-3177 | Sharpino.Lib/CommandHandler.fs:3246-3250 | Sharpino.Lib/CommandHandler.fs:3317-3321 | Sharpino.Lib/CommandHandler.fs:3345-3349 | Sharpino.Lib/CommandHandler.fs:3567-3571 | Sharpino.Lib/CommandHandler.fs:3793-3797 | Sharpino.Lib/CommandHandler.fs:4018-4022 | Sharpino.Lib/CommandHandler.fs:4056-4060 | Sharpino.Lib/CommandHandler.fs:4084-4088 | Sharpino.Lib/CommandHandler.fs:4226-4230 | Sharpino.Lib/CommandHandler.fs:4375-4379 | Sharpino.Lib/CommandHandler.fs:4525-4529 | Sharpino.Lib/CommandHandler.fs:4563-4567 | Sharpino.Lib/CommandHandler.fs:4591-4595 | Sharpino.Lib/CommandHandler.fs:4869-4873 | Sharpino.Lib/CommandHandler.fs:5162-5166 | Sharpino.Lib/CommandHandler.fs:5455-5459 | Sharpino.Lib/CommandHandler.fs:5505-5509 | Sharpino.Lib/CommandHandler.fs:5543-5547 | Sharpino.Lib/CommandHandler.fs:5730-5734 | Sharpino.Lib/CommandHandler.fs:5768-5772 | Sharpino.Lib/CommandHandler.fs:5844-5848 \u2014 all 43 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 \u0060Sharpino.Lib/CommandHandler.fs:628\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sharpino.Lib/CommandHandler.fs:1773\u0060 calls \u0060command\u0060 and \u0060Sharpino.Lib/CommandHandler.fs:5841\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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"6482973e29838227107412969b229b7ddeb45e98b8c93944049f4e17a6d648f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 32): Sharpino.Lib/CommandHandler.fs:1254-1258 | Sharpino.Lib/CommandHandler.fs:1338-1342 | Sharpino.Lib/CommandHandler.fs:1687-1691 | Sharpino.Lib/CommandHandler.fs:1784-1788 | Sharpino.Lib/CommandHandler.fs:1880-1884 | Sharpino.Lib/CommandHandler.fs:1953-1957 | Sharpino.Lib/CommandHandler.fs:2027-2031 | Sharpino.Lib/CommandHandler.fs:2060-2064 | Sharpino.Lib/CommandHandler.fs:2152-2156 | Sharpino.Lib/CommandHandler.fs:2900-2904 | Sharpino.Lib/CommandHandler.fs:3181-3185 | Sharpino.Lib/CommandHandler.fs:3254-3258 | Sharpino.Lib/CommandHandler.fs:3325-3329 | Sharpino.Lib/CommandHandler.fs:3353-3357 | Sharpino.Lib/CommandHandler.fs:3575-3579 | Sharpino.Lib/CommandHandler.fs:3801-3805 | Sharpino.Lib/CommandHandler.fs:4026-4030 | Sharpino.Lib/CommandHandler.fs:4064-4068 | Sharpino.Lib/CommandHandler.fs:4092-4096 | Sharpino.Lib/CommandHandler.fs:4234-4238 | Sharpino.Lib/CommandHandler.fs:4383-4387 | Sharpino.Lib/CommandHandler.fs:4533-4537 | Sharpino.Lib/CommandHandler.fs:4571-4575 | Sharpino.Lib/CommandHandler.fs:4599-4603 | Sharpino.Lib/CommandHandler.fs:4877-4881 | Sharpino.Lib/CommandHandler.fs:5170-5174 | Sharpino.Lib/CommandHandler.fs:5463-5467 | Sharpino.Lib/CommandHandler.fs:5513-5517 | Sharpino.Lib/CommandHandler.fs:5551-5555 | Sharpino.Lib/CommandHandler.fs:5738-5742 | Sharpino.Lib/CommandHandler.fs:5776-5780 | Sharpino.Lib/CommandHandler.fs:5852-5856 \u2014 all 32 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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":1254}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9daff797d0ca2072a55f517d56cd510d8666ee3c29cf715aaad880d6df13ad6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 15): Sharpino.Lib/CommandHandler.fs:1346-1350 | Sharpino.Lib/CommandHandler.fs:1695-1699 | Sharpino.Lib/CommandHandler.fs:1792-1796 | Sharpino.Lib/CommandHandler.fs:1888-1892 | Sharpino.Lib/CommandHandler.fs:2068-2072 | Sharpino.Lib/CommandHandler.fs:2160-2164 | Sharpino.Lib/CommandHandler.fs:4607-4611 | Sharpino.Lib/CommandHandler.fs:4885-4889 | Sharpino.Lib/CommandHandler.fs:5178-5182 | Sharpino.Lib/CommandHandler.fs:5471-5475 | Sharpino.Lib/CommandHandler.fs:5521-5525 | Sharpino.Lib/CommandHandler.fs:5559-5563 | Sharpino.Lib/CommandHandler.fs:5746-5750 | Sharpino.Lib/CommandHandler.fs:5784-5788 | Sharpino.Lib/CommandHandler.fs:5860-5864 \u2014 all 15 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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":1346}}}],"partialFingerprints":{"codehealthFindingId/v1":"5204cfdd4ee2dbc47a259eb9971f99917ff82afc8082f1f074060c9e93c2a880"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 12): Sharpino.Lib/CommandHandler.fs:636-640 | Sharpino.Lib/CommandHandler.fs:1195-1199 | Sharpino.Lib/CommandHandler.fs:1251-1255 | Sharpino.Lib/CommandHandler.fs:1335-1339 | Sharpino.Lib/CommandHandler.fs:1441-1445 | Sharpino.Lib/CommandHandler.fs:1529-1533 | Sharpino.Lib/CommandHandler.fs:1615-1619 | Sharpino.Lib/CommandHandler.fs:1927-1931 | Sharpino.Lib/CommandHandler.fs:1950-1954 | Sharpino.Lib/CommandHandler.fs:2024-2028 | Sharpino.Lib/CommandHandler.fs:2057-2061 | Sharpino.Lib/CommandHandler.fs:2149-2153 \u2014 all 12 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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"57cfddd899d47c8aacb2e983538a2048cc0b36a7566209740343e4eccab0da8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 12): Sharpino.Lib/PgBinaryEventStore.fs:447-451 | Sharpino.Lib/PgBinaryEventStore.fs:511-516 | Sharpino.Lib/PgBinaryEventStore.fs:551-555 | Sharpino.Lib/PgBinaryEventStore.fs:2105-2109 | Sharpino.Lib/PgBinaryEventStore.fs:2180-2184 | Sharpino.Lib/PgBinaryEventStore.fs:2865-2869 | Sharpino.Lib/PgEventStore.fs:467-471 | Sharpino.Lib/PgEventStore.fs:515-519 | Sharpino.Lib/PgEventStore.fs:2041-2045 | Sharpino.Lib/PgEventStore.fs:2161-2165 | Sharpino.Lib/PgEventStore.fs:2235-2239 | Sharpino.Lib/PgEventStore.fs:2691-2695 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sharpino.Lib/PgBinaryEventStore.fs:508\u0060 calls \u0060AddWithValue\u0060 and \u0060Sharpino.Lib/PgBinaryEventStore.fs:444\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2bf46580e6addc8c87b761612651616f48a53a5d8ffc490a69affbea6f91864"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 8): Sharpino.Lib/PgBinaryEventStore.fs:446-450 | Sharpino.Lib/PgBinaryEventStore.fs:510-515 | Sharpino.Lib/PgBinaryEventStore.fs:2104-2108 | Sharpino.Lib/PgBinaryEventStore.fs:2407-2411 | Sharpino.Lib/PgEventStore.fs:466-470 | Sharpino.Lib/PgEventStore.fs:2040-2044 | Sharpino.Lib/PgEventStore.fs:2234-2238 | Sharpino.Lib/PgEventStore.fs:2815-2819 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sharpino.Lib/PgBinaryEventStore.fs:508\u0060 calls \u0060AddWithValue\u0060 and \u0060Sharpino.Lib/PgBinaryEventStore.fs:444\u0060 does not \u2014 after which the two agree again for 3 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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d92bf931fde4de0b31c4b2eeabe319bfa3ae83c060340b0ea6655f96616ba2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 8): Sharpino.Sample.FormerlySaga/Api/SeatBooking.fs:180-184 | Sharpino.Sample.FormerlySaga/Api/SeatBooking.fs:205-209 | Sharpino.Sample.FormerlySaga/Api/SeatBooking.fs:227-231 | Sharpino.Sample.FormerlySaga/Api/SeatBooking.fs:258-262 | Sharpino.Sample.FormerlySaga/Api/SeatBooking.fs:295-299 | Sharpino.Sample.FormerlySaga/Api/SeatBooking.fs:327-331 | Sharpino.Sample.FormerlySaga/Api/SeatBooking.fs:374-378 | Sharpino.Sample.FormerlySaga/Api/SeatBooking.fs:407-411 \u2014 all 8 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":"Sharpino.Sample.FormerlySaga/Api/SeatBooking.fs"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"b98b1b5fa6fe3f06883c1dac836d6a67cebb9e41ed49e06250fa1e7f25f0a417"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): Sharpino.Lib/CommandHandler.fs:159-163 | Sharpino.Lib/CommandHandler.fs:218-222 | Sharpino.Lib/CommandHandler.fs:2195-2199 | Sharpino.Lib/CommandHandler.fs:2234-2238 | Sharpino.Lib/CommandHandler.fs:2323-2327 | Sharpino.Lib/CommandHandler.fs:2368-2372 | Sharpino.Lib/CommandHandler.fs:2550-2554 \u2014 all 7 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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"53560df63a482fb143b01aaee7f8f5869b045464fa0a9ba60411d541c8cc78d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): Sharpino.Lib/CommandHandler.fs:930-934 | Sharpino.Lib/CommandHandler.fs:1147-1151 | Sharpino.Lib/CommandHandler.fs:2773-2779 | Sharpino.Lib/CommandHandler.fs:4851-4856 | Sharpino.Lib/CommandHandler.fs:5144-5149 | Sharpino.Lib/CommandHandler.fs:5437-5442 \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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ac87101ac37aa20b5981f9dc32de6c31cb08bdab1a87132f450e4f07d3f0e75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): Sharpino.Lib/PgBinaryEventStore.fs:2325-2329 | Sharpino.Lib/PgBinaryEventStore.fs:2367-2371 | Sharpino.Lib/PgBinaryEventStore.fs:2409-2413 | Sharpino.Lib/PgEventStore.fs:2817-2821 | Sharpino.Lib/PgEventStore.fs:2902-2906 | Sharpino.Lib/PgEventStore.fs:2951-2955 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sharpino.Lib/PgBinaryEventStore.fs:2406\u0060 calls \u0060AddWithValue\u0060 and \u0060Sharpino.Lib/PgBinaryEventStore.fs:2323\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":2325}}}],"partialFingerprints":{"codehealthFindingId/v1":"3271ff167d10e4e959ac5a8fe0f88590d2d6ea8143645b8c7a43d32476308bbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): Sharpino.Lib/StateView.fs:821-825 | Sharpino.Lib/StateView.fs:857-861 | Sharpino.Lib/StateView.fs:889-893 | Sharpino.Lib/StateView.fs:913-917 | Sharpino.Lib/StateView.fs:992-996 | Sharpino.Lib/StateView.fs:1030-1034 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/StateView.fs"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"44b992436ba513f1f4804a38cfe16507f27f94a9314739f98970b2f676b85b42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): Sharpino.Lib/CommandHandler.fs:187-191 | Sharpino.Lib/Sanitizer.fs:37-41 | Sharpino.Lib/Sanitizer.fs:133-137 | Sharpino.Lib/Sanitizer.fs:154-158 | Sharpino.Lib/Sanitizer.fs:215-219 \u2014 there are 5 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"b77004ad6a6fb0b77242b045c824ddb1ed511f9bce39c4a43da823cf19697f81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Sharpino.Lib/CommandHandler.fs:84-88 | Sharpino.Lib/CommandHandler.fs:132-136 | Sharpino.Lib/Sanitizer.fs:150-154 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b1807dcffecde342e9615526bd4d3d0415408797074f86b179e307e8004c448"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Sharpino.Lib/CommandHandler.fs:639-643 | Sharpino.Lib/CommandHandler.fs:722-726 | Sharpino.Lib/CommandHandler.fs:958-962 \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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc91aa962e5f49462d8791500d756a177b467b471827ca28607faa71f022a1d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Sharpino.Lib/CommandHandler.fs:930-934 | Sharpino.Lib/CommandHandler.fs:1147-1151 | Sharpino.Lib/CommandHandler.fs:1155-1159 \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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6fc76a9cc712700052e0fe00adadc80753f90c5ea1b5cc28d0688e3a5d2609d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (1\u20135 lines \u00D7 4): Sharpino.Lib/CommandHandler.fs:1428-1432 | Sharpino.Lib/CommandHandler.fs:1768-1773 | Sharpino.Lib/CommandHandler.fs:1865-1870 | Sharpino.Lib/CommandHandler.fs:2137-2137 \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 \u0060Sharpino.Lib/CommandHandler.fs:1428\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 that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sharpino.Lib/CommandHandler.fs:2137\u0060 calls \u0060events3\u0060 and \u0060Sharpino.Lib/CommandHandler.fs:1773\u0060 does not \u2014 after which the two agree again for 3 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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":1428}}}],"partialFingerprints":{"codehealthFindingId/v1":"88edc442729ed27d0a56d3fdaf1483bb738c333ef9485fa4b084222642bbd127"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Sharpino.Lib/StateView.fs:452-456 | Sharpino.Lib/StateView.fs:492-496 | Sharpino.Lib/StateView.fs:560-564 \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":"Sharpino.Lib/StateView.fs"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"48e3ec5a73d761756378ac3ce9b2318e7aee1448aa85e572686bd9f9b34b1567"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Sharpino.Sample.16/MaterialManager.fs:104-108 | Sharpino.Sample.16/MaterialManager.fs:143-147 | Sharpino.Sample.17/MaterialManager.fs:119-123 \u2014 \u0060Sharpino.Sample.16/MaterialManager.fs\u0060 and \u0060Sharpino.Sample.17/MaterialManager.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 107 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.16/MaterialManager.fs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fef9d61ea193610c8d09e0afb6a70eece32a3495bb2251183eb9f3ac54efafd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sharpino.Lib/CommandHandler.fs:264-268 | Sharpino.Lib/Sanitizer.fs:148-152 \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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"594b72f0159e76de07bb3f2dce6861fba6c2a2e1359d020c471396f1ee016ae7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (1\u20135 lines \u00D7 6): Sharpino.Lib/CommandHandler.fs:1323-1327 | Sharpino.Lib/CommandHandler.fs:1427-1427 | Sharpino.Lib/CommandHandler.fs:1767-1767 | Sharpino.Lib/CommandHandler.fs:1864-1864 | Sharpino.Lib/CommandHandler.fs:2012-2016 | Sharpino.Lib/CommandHandler.fs:2136-2136 \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 \u0060Sharpino.Lib/CommandHandler.fs:1323\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 that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sharpino.Lib/CommandHandler.fs:1422\u0060 calls \u0060newState3\u0060 and \u0060Sharpino.Lib/CommandHandler.fs:1318\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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":1323}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fa6f15f9a7fecff782ca463059ed8e4e612b4cd4ded1f3f0f9affee4886b23e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20135 lines \u00D7 4): Sharpino.Lib/CommandHandler.fs:1413-1414 | Sharpino.Lib/CommandHandler.fs:1753-1757 | Sharpino.Lib/CommandHandler.fs:1850-1854 | Sharpino.Lib/CommandHandler.fs:2120-2121 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sharpino.Lib/CommandHandler.fs:1416\u0060 calls \u0060Memoize2\u0060 and \u0060Sharpino.Lib/CommandHandler.fs:1760\u0060 does not \u2014 after which the two agree again for 3 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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":1413}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1e098985746d4ef621d2cecd71ad7e2b2b037bf334beceb69cbda7aa3830be0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sharpino.Lib/CommandHandler.fs:1998-2002 | Sharpino.Lib/CommandHandler.fs:2122-2126 \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 before the matched lines, \u0060Sharpino.Lib/CommandHandler.fs:2120\u0060 calls \u0060Memoize2\u0060 and \u0060Sharpino.Lib/CommandHandler.fs:1996\u0060 does not \u2014 after which the two agree again for 3 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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":1998}}}],"partialFingerprints":{"codehealthFindingId/v1":"8617d315f2dc363c4e686e0aafad9c5181cc411cde276290bbf6af72d0c2925d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 3): Sharpino.Lib/MemoryStorage.fs:1019-1023 | Sharpino.Lib/MemoryStorage.fs:1041-1045 | Sharpino.Lib/MemoryStorage.fs:1074-1076 \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 that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sharpino.Lib/MemoryStorage.fs:1045\u0060 calls \u0060collect\u0060 and \u0060Sharpino.Lib/MemoryStorage.fs:1076\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":"Sharpino.Lib/MemoryStorage.fs"},"region":{"startLine":1019}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b0aac84e303960983d1373ca9d2327dd1471651819053ecc54c0a0249e3db9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sharpino.Lib/StateView.fs:163-167 | Sharpino.Lib/StateView.fs:204-208 \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":"Sharpino.Lib/StateView.fs"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe0b064542bff632db4428dc1d9b93d3996e93543ce9b60b5eea61283d10d3c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): Sharpino.Sample.15/Models/Course/Events.fs:1-30 | Sharpino.Sample.15/Models/Student/Events.fs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.15/Models/Course/Events.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a17c3040c1e320274608e709eed16b59d3c5a9b5d547746a12ea71beef3b434"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:1706-1739 | Sharpino.Lib/PgEventStore.fs:1691-1724 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":1706}}}],"partialFingerprints":{"codehealthFindingId/v1":"553db520f5ed8894a8aef170926097eccc59eaf252ca670eaccb4c971a41d937"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:1798-1820 | Sharpino.Lib/PgEventStore.fs:1790-1815 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:1798\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":1798}}}],"partialFingerprints":{"codehealthFindingId/v1":"8038450f2f558f94de3025e5cf36118f349e8731078bedcbe93613ab022f25f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 8): Sharpino.Lib/PgBinaryEventStore.fs:1797-1812 | Sharpino.Lib/PgBinaryEventStore.fs:1908-1923 | Sharpino.Lib/PgBinaryEventStore.fs:2776-2791 | Sharpino.Lib/PgBinaryEventStore.fs:2926-2941 | Sharpino.Lib/PgEventStore.fs:1786-1807 | Sharpino.Lib/PgEventStore.fs:1904-1925 | Sharpino.Lib/PgEventStore.fs:2608-2623 | Sharpino.Lib/PgEventStore.fs:2751-2766 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:1797\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":1797}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdb613aa7a76dd5d4fb84e31e311d96ae3dde5fe703cdcf2e65a8d927a15e1c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:1235-1253 | Sharpino.Lib/PgEventStore.fs:1212-1230 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:1235\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":1235}}}],"partialFingerprints":{"codehealthFindingId/v1":"d33b93655eae66f1c52f2a382b8028d598f88f26ff689637ed742da45df994b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): Sharpino.Sample.11/Models/Student/Consumer.fs:60-74 | Sharpino.Sample.11/Models/Student2/Consumer.fs:57-72 | Sharpino.Sample.14/Models/Student/Consumer.fs:60-74 | Sharpino.Sample.6/Dishes/Consumer.fs:44-58 \u2014 \u0060Sharpino.Sample.11/Models/Student/Consumer.fs\u0060 and \u0060Sharpino.Sample.11/Models/Student2/Consumer.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 78 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Sample.11/Models/Student/Consumer.fs:60\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":"Sharpino.Sample.11/Models/Student/Consumer.fs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee47ba150541e0d1f829c3b9f9a3dd85177ea94b69f47b39d875a2864f91919a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:2189-2200 | Sharpino.Lib/PgEventStore.fs:2170-2184 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:2189\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":2189}}}],"partialFingerprints":{"codehealthFindingId/v1":"414b170a39b264767b738fb15557bcd54b188d23bf8de132d0469b857851c380"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sharpino.Lib/PgBinaryEventStore.fs:882-894 | Sharpino.Lib/PgEventStore.fs:662-674 \u2014 before extracting anything, compare \u0060Sharpino.Lib/PgBinaryEventStore.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 as WHOLE FILES: this scan already matched 110 separate duplicated blocks between them, totalling at least 2436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/PgBinaryEventStore.fs:882\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"c83bd334d8efc1129d7573ddada46b0ce65b7921d38626b729af3f588eb0e890"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Sharpino.Lib/CommandHandler.fs:3371-3383 | Sharpino.Lib/CommandHandler.fs:3601-3611 | Sharpino.Lib/CommandHandler.fs:3827-3837 \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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":3371}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b81e1522e62ca2d5e1cedf81efb3ca8dfea493734bca69226bfa8b4afb422d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): Sharpino.Sample.9/models/Reservation/Consumer.fs:80-92 | Sharpino.Sample.9/models/Student/Consumer.fs:81-93 | Sharpino.Sample.9/models/Teacher/Consumer.fs:80-92 \u2014 \u0060Sharpino.Sample.9/models/Reservation/Consumer.fs\u0060 and \u0060Sharpino.Sample.9/models/Student/Consumer.fs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 65 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Sample.9/models/Reservation/Consumer.fs:80\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":"Sharpino.Sample.9/models/Reservation/Consumer.fs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"c50171c0a7a3ae33c3fd7206086c4436610f6471724985d4678342154ff2d06e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sharpino.Sample.11/Test2.fs:161-172 | Sharpino.Sample.11/Test2.fs:380-391 \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":"Sharpino.Sample.11/Test2.fs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6713ebc94932c3a886474bb6fb1f1d27b67d1d37acc1ddd693a8c29bcf50db9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sharpino.Lib/CommandHandler.fs:4254-4264 | Sharpino.Lib/CommandHandler.fs:4403-4413 \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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":4254}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d07b6aaef3e61bdbbe36b196995467481975eaf458212103fe864c07dd8f746"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sharpino.Lib/PgEventStore.fs:807-817 | Sharpino.Lib/PgEventStore.fs:898-908 \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 \u0060Sharpino.Lib/PgEventStore.fs:807\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":"Sharpino.Lib/PgEventStore.fs"},"region":{"startLine":807}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5eb699816471f921ebdc8007365cd077a46725e4a78216767b3e838dd14469b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sharpino.Lib/PgEventStore.fs:2008-2016 | Sharpino.Lib/PgEventStore.fs:2084-2093 \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 \u0060Sharpino.Lib/PgEventStore.fs:2008\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgEventStore.fs"},"region":{"startLine":2008}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d112b33a3d67c9ec3d84bdffdf379bad76949b192c643f2e7d6246872ad97da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): Sharpino.Sample.11/Test2.fs:169-178 | Sharpino.Sample.11/Test2.fs:206-215 | Sharpino.Sample.11/Test2.fs:388-397 | Sharpino.Sample.11/Test2.fs:424-433 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.11/Test2.fs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e31fe48402ea682d045aa2e1843340acc52eb18ab9a4f25bb0a07b9e0dc05eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sharpino.Lib/MemoryStorage.fs:248-257 | Sharpino.Lib/MemoryStorage.fs:271-280 \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":"Sharpino.Lib/MemoryStorage.fs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"e41820c48e0ae87ca8574d87ad0404e55975ab3a4bb5f629b3f185161b3ea6ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sharpino.Lib/CommandHandler.fs:281-289 | Sharpino.Lib/CommandHandler.fs:316-324 \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 \u0060Sharpino.Lib/CommandHandler.fs:281\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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"88a508224ac5edc9f3debf410937bfa83e28d30a393982f0af4a4d26c222a0c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sharpino.Lib/AzureServiceBusBackplane.fs:75-82 | Sharpino.Lib/PgNotifyBackplane.fs:86-93 \u2014 before extracting anything, compare \u0060Sharpino.Lib/AzureServiceBusBackplane.fs\u0060 and \u0060Sharpino.Lib/PgNotifyBackplane.fs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sharpino.Lib/AzureServiceBusBackplane.fs:75\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":"Sharpino.Lib/AzureServiceBusBackplane.fs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ebf9071a2ee28360b2a1c97866a7d886c558498e0728e11ba9ab0e2f9847d3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sharpino.Sample/App.fs:271-278 | Sharpino.Sample/App.fs:296-303 \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":"Sharpino.Sample/App.fs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"98abc1be79cb81c0ac5ab43f56aaa5a4c0164d6b9e0b704951fec936181bdc18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sharpino.Lib/StateView.fs:865-871 | Sharpino.Lib/StateView.fs:896-902 \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 \u0060Sharpino.Lib/StateView.fs:865\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":"Sharpino.Lib/StateView.fs"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"1238fa92d821ba5c2c276ed8e5c15dfac83e4d4246a87e5b780babc8262baea6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sharpino.Lib/AzureServiceBusBackplane.fs:44-48 | Sharpino.Lib/PgNotifyBackplane.fs:34-38 \u2014 before extracting anything, compare \u0060Sharpino.Lib/AzureServiceBusBackplane.fs\u0060 and \u0060Sharpino.Lib/PgNotifyBackplane.fs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/AzureServiceBusBackplane.fs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"973521642b93f897ef6f3a95e9eb86a04373a98d375d5f142859da5f322e3f73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sharpino.Lib/Cache.fs:148-153 | Sharpino.Lib/Cache.fs:472-477 \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 before the matched lines, \u0060Sharpino.Lib/Cache.fs:142\u0060 calls \u0060SetupBackplane\u0060, \u0060activateBackplane\u0060 and \u0060Sharpino.Lib/Cache.fs:468\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":"Sharpino.Lib/Cache.fs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e3fd5c14a99d2fcc175699561c7be07fcbaa4ada44ac34d3b7e68b5d40ac0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sharpino.Lib/CommandHandler.fs:1228-1232 | Sharpino.Lib/CommandHandler.fs:1661-1665 \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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":1228}}}],"partialFingerprints":{"codehealthFindingId/v1":"ece84900f7f24fd486d8b469f7394f25f2c3379b5ded0a3d2a5e6274c8452a08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sharpino.Lib/CommandHandler.fs:5881-5885 | Sharpino.Lib/CommandHandler.fs:5939-5943 \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":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":5881}}}],"partialFingerprints":{"codehealthFindingId/v1":"84ddd278bf44636ec08fff65163a9be6a931aee2e039d1582bbd093aec374d94"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MemoryStorage (LCOM4 14): MemoryStorage\u0027s methods fall into 14 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 14 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":"Sharpino.Lib/MemoryStorage.fs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf1c74d78ca0047efd194e294c9dae322347b1287fa1916c56256ccf77677c9b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PgBinaryStore (LCOM4 4): PgBinaryStore\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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"668dc243b67e6d64fa950c81d8c50963cd2e11c949d44dab283b008f36c33c1c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PgEventStore (LCOM4 4): PgEventStore\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":"Sharpino.Lib/PgEventStore.fs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7851174ecfd97448f2bd4517e726dc5295552f4ba149c8b5397c84d34c5b7ab"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CourseManager (LCOM4 4): CourseManager\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":"Sharpino.Sample.11/CourseManager.fs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e2217332e586d15f8150c1c57e76f3322161abfbd200ad3c20517c26f2ef174"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CourseManager (LCOM4 4): CourseManager\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":"Sharpino.Sample.14/CourseManager.fs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3c3e7f83e3ec50075268c219bf8f428d2d395735fe04a0d93c0579008a03c37"}},{"ruleId":"D12","level":"note","message":{"text":"Outdated (npm): js-tokens: js-tokens 4.0.0 \u2192 10.0.0 available."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d6e74d6d6de5fd9962be1ee89e9a1f826010bb13c72bd030582e1eaef537aa79"}},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fb3b53e7fcf45d441f43d496435b5845f201fb4ea3038c63c84b645bb7f1090e"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"aa9cd4617c5c592fff1e2789637c4bef33fa27df030856f57848ddba78e1c788"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8eceb8ab961d15c4438083c2108f3109b92468619e0315ae88f1e2d246470f06"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cb7fbc5713ba2ef38e010f0dc5b07efaa42aff03200ba45d0976d23625a758ab"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"36752eeb56455ff4084d7f841671970b119f32a1d690f87d4174851eeb546bc5"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1bd7ceea4b3092b20e83810aecf29f650a880f1e4140fc4d61bb7010b10dc9d9"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f8c67ae0162bed0243b50a0056ec4e490162fc64d6ab7faab0ae6c09f17e52fb"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fb827882662696ec844f50f8bfa35308f154845bed92b5cc1907f7eded20506b"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sharpino.Lib/Cache.fs: Sharpino.Lib/Cache.fs changed 3 times in last 90 days, max cyclomatic complexity 19 in AggregateCache3.SetupL2AndBackplane at line 462. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 19:40:21 \u002B01:00\u0027 --until=\u00272026-11-08 19:40:21 \u002B01:00\u0027 --full-history --no-merges -- Sharpino.Lib/Cache.fs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/Cache.fs"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f208ef5d0c8b766face507a5e3f1291d7909222a5e47b6e27bece4628cc3d2"}},{"ruleId":"D27","level":"note","message":{"text":"Scattered collaborators: 96 % of calls cross a namespace and only 7 % of collaborators are co-located \u2014 group each feature\u0027s code into a vertical slice so a call\u0027s collaborators sit together."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5aad4a4530bac3928d3a065a664be89d023ecfc865f9bf79ac05754b3bffe322"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d055aa5f03d5928acd5c64767b4904db2b5a564bd4977c16b6e30d41bc9dcfe8"},"properties":{"commitSha":"e5cf0b9eaa9fcb594a892fbbd3cbdb8646d582f0"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"499078bc77bdc6348ead8ef3aa7edeffed5d4f103a5ef433ca723716b30f75cc"},"properties":{"commitSha":"e5cf0b9eaa9fcb594a892fbbd3cbdb8646d582f0"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fa10deec545a498d9f8b94365669319d76dfe915664e6be27d3e0f8bca5fedb2"},"properties":{"commitSha":"f11139ec549df432b4a438672f1adbd0fee91dda"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"559f26db0320fc9cd33d5c262077b8782286240901513cf83824b6ce3eea1df4"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08: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":"2ab6c36f9ba2959809d6b740f8a18ff7828f8fb8bf1e55a125029d888bdd3b3f"},"properties":{"dependency":{"package":"System.Drawing.Common","version":"5.0.0","advisory":"[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":"03b31df8570933308505a1624e4fd5ee0390537c65b94f5898a4ad85f2c0b177"},"properties":{"dependency":{"package":"System.Formats.Asn1","version":"5.0.0","advisory":"[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":"b2ff724d8653fe6eb796abe77ea9adc083b2b2f1389ca1c1c55109e06af64260"},"properties":{"dependency":{"package":"System.Security.Cryptography.Pkcs","version":"9.0.4","advisory":"[GHSA redacted]","aliases":["[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":"c7357e914a6cbfa775a74231ed40319733e79e6b197c1362d173cdf8f65107e1"},"properties":{"dependency":{"package":"System.Security.Cryptography.Pkcs","version":"9.0.18","advisory":"[GHSA redacted]","aliases":["[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":"4cd61ce6674bb4c75147740d09ac976044476356580c3aa3cd200b5bcc32f876"},"properties":{"dependency":{"package":"browserslist","version":"4.22.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE 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":"b4d3d91fcaefb067cbeed2a723b604276552318b2fd3ed0c48abfcd7cf677375"},"properties":{"dependency":{"package":"nanoid","version":"3.3.7","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE 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":"9c4beb1fbe2962730f1c1bddda24817ce05d6f5be5dc224134c289fd2854791b"},"properties":{"dependency":{"package":"postcss","version":"8.4.34","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE 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":"d65ba8839629c3e60ed0c734e30d4cc9462b6a0cfe4bc643a2526c0c0597814b"},"properties":{"dependency":{"package":"rollup","version":"3.29.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE 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":"77b27d7d908aa71d8928b7f4c1a993b3c611224cd694bf8b5f08a198d9386e64"},"properties":{"dependency":{"package":"source-map-js","version":"1.0.2","advisory":"[GHSA redacted]","aliases":["[CVE 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":"4b3234ffcef30533fdf2065306328eb3c9daaa046f1bfedc70708ace5a06b646"},"properties":{"dependency":{"package":"vite","version":"4.5.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"test-or-tooling","file":"Sharpino.Sample.Client/vite.config.js","line":1}}}},{"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":"0d9eec6fa3579d9bfbc2acea0c4ea50af890d1da3d401368bce67e90fc79514a"},"properties":{"dependency":{"package":"Microsoft.IdentityModel.JsonWebTokens","version":"6.8.0","advisory":"[GHSA redacted]","reachability":{"kind":"unknown"}}}},{"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":"6263a56fe3a70af87a269967837af0dd5b722c97091869d8433487b538f5d47f"},"properties":{"dependency":{"package":"System.IdentityModel.Tokens.Jwt","version":"6.8.0","advisory":"[GHSA redacted]","reachability":{"kind":"unknown"}}}},{"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":"18062f7f1f43f0c4c2d428527a8a40926e55f7496aecd3f3d2e69a9cd30d98aa"},"properties":{"dependency":{"package":"@babel/helpers","version":"7.23.9","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5b9d1ea6bfadf759c11e186ec8d0d980d885534403eec2d0adb0073247bc46b3"},"properties":{"dependency":{"package":"esbuild","version":"0.18.20","advisory":"[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":"93f699ae5a2e1d69df1f588d062a2fd8122f699ff99a430996bd800c6ae83a6e"},"properties":{"dependency":{"package":"log4net","version":"3.2.0","advisory":"[GHSA redacted]","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"9cfb852c23fba376c9c5f868e69c0e9ab77daa5209ad9e2410fec7aef2b0a643"},"properties":{"dependency":{"package":"@babel/core","version":"7.23.9","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":"8de8133132fdbe54739f753fe603f09b8575a68ca1174dff7898499820cdb013"},"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":"716e9b0234081c1313af3c8a0857e98a8bde7e8fe192fb0e6dcacef328f80cca"},"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":"dcbcf2e4705177b2157cac8db80a19064d973bf93a90829153f96c89e8c13197"},"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":"2e3bd353cc9cfce283ad2b5f97be031317d6dc174abdddf35141ba6195a080d4"},"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":"f563de321d3dfa3d18a3b21038b31f377f5fc0d3f08297e6e0dc19500ce86e63"},"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":"18268825f6e8e82e5e619676a89841a4d9702148c0bd51903428833a91877fd2"},"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":"704287af49dd0e3bfded8ca617d904e7953d2e7c45995ea9387389ea11123111"},"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":"31c0ec2aa774bb9361a38ce39c5c23f3532aeec892a48b9fbc664fa077b5496c"},"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":"3a30a9ef146e57bd9285dcd1ae0be53a7b1cd633e46eff90fc89bcc5100d7bfc"},"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":"0062112908ef52d490ebb1db9c691aa88420edd2076c7c62fd31591a05cc2c66"},"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":"627406f743b168c438686a1d78626156f091fc7b871208e0d45ac626d0e7d5ed"},"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":"71974abbb6faf1337f09572c3960bbf44d169022d5737d2bc3df33e19a79ba67"},"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":"adf4f7c4c43c59df5a68ad28837ec4530026e10f8014f5f1ca4abbfa6ee2c248"},"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":"507177b961c6c0389361f57c1c283fdaccee637cc19db9a6f061bbb300d5fd2a"},"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":"D35","level":"warning","message":{"text":"Change coupling clique: Categories.fs, Tags.fs, Todos.fs: 3 files \u2014 \u0060Sharpino.Sample/Domain/Categories/Categories.fs\u0060, \u0060Sharpino.Sample/Domain/Tags/Tags.fs\u0060, \u0060Sharpino.Sample/Domain/Todos/Todos.fs\u0060 \u2014 all change together with no explicit dependency: a fully-connected co-change clique, not 3 separate couplings. They share one concern (thin parallel siblings over a common abstraction), so extract the shared part into ONE unit and the whole clique\u0027s coupling clears at once \u2014 you do not need to break each pair individually."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample/Domain/Categories/Categories.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdb70b3f491287eb52a7a4cb0c3272c0bcda51fe84043b4575e8fd5f89e82cb2"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: Context.fs \u2194 Context.fs: \u0060Sharpino.Sample/Domain/Categories/Context.fs\u0060 and \u0060Sharpino.Sample/Domain/Tags/Context.fs\u0060 change together 77% of the time (17 of the 22 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 17 shared commits counted here, the most recent 3 are \u0060c95b9d86\u0060 refactor samples; \u0060a7f8d64e\u0060 wip; \u0060d9af08cf\u0060 refactor naming \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample/Domain/Categories/Context.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2b559d0eef34ea43d9790f39ce350168a17deb57b7712d49657395705479c6b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: CommandHandler.fs \u2194 MemoryStorage.fs: \u0060Sharpino.Lib/CommandHandler.fs\u0060 and \u0060Sharpino.Lib/MemoryStorage.fs\u0060 change together 59% of the time (51 of the 87 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 51 shared commits counted here, the most recent 3 are \u006045470694\u0060 sanytize events on event store; \u00606ceddf45\u0060 added new async multi stream stuff; \u0060d36e4f4d\u0060 added new async eventstore\u002Bcommands \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b89b3f881c102aca66bc9c793530b3ad19ec649ef8126ea33eef5265f49c682f"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: CommandHandler.fs \u2194 PgEventStore.fs: \u0060Sharpino.Lib/CommandHandler.fs\u0060 and \u0060Sharpino.Lib/PgEventStore.fs\u0060 change together 51% of the time (71 of the 140 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 71 shared commits counted here, the most recent 3 are \u006045470694\u0060 sanytize events on event store; \u0060ddd62a8c\u0060 mailboxprocessor \u002B r/w separate connections; \u00601ace3260\u0060 Improve\u0026fix lock 4 high concurrency \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/CommandHandler.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb709964873a34743497eb29b3dd2968c2e0a6ffa375cfe6f4937af1d0343fd1"}},{"ruleId":"AX8","level":"error","message":{"text":"Production project references a test project: Sharpino.Sample.2 \u2192 Sharpino.Lib: \u0060Sharpino.Sample.2\u0060 (production) references the test project \u0060Sharpino.Lib\u0060. Production must never depend on test code \u2014 it pulls a unit-test framework and test fixtures into the shipped product and inverts the only correct direction (tests depend on production, never the reverse). Move any shared helper into a production support library, or invert the reference."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.2/Sharpino.Sample.2.fsproj"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c8c2d694638f72b1b780bef09fceaa61251e15f03ba8b4b16db0b3b9eae51da"}},{"ruleId":"AX8","level":"error","message":{"text":"Production project references a test project: Sharpino.Sample.6 \u2192 Sharpino.Lib: \u0060Sharpino.Sample.6\u0060 (production) references the test project \u0060Sharpino.Lib\u0060. Production must never depend on test code \u2014 it pulls a unit-test framework and test fixtures into the shipped product and inverts the only correct direction (tests depend on production, never the reverse). Move any shared helper into a production support library, or invert the reference."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.6/Sharpino.Sample.6.fsproj"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa71928b0c5c3b1798f00ddb870fc590638fabe5e7fef80593cb07143baddb3c"}},{"ruleId":"AX8","level":"error","message":{"text":"Production project references a test project: Sharpino.Sample.FormerlySaga \u2192 Sharpino.Lib: \u0060Sharpino.Sample.FormerlySaga\u0060 (production) references the test project \u0060Sharpino.Lib\u0060. Production must never depend on test code \u2014 it pulls a unit-test framework and test fixtures into the shipped product and inverts the only correct direction (tests depend on production, never the reverse). Move any shared helper into a production support library, or invert the reference."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Sample.FormerlySaga/Sharpino.Sample.FormerlySaga.fsproj"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cf6d0c3521af6afe8db05a965110df5b6ead843c15a867e74e79cadfe38e407"}},{"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":"M3","level":"note","message":{"text":"No src/ separation: Production code isn\u0027t grouped under a src/ folder \u2014 it\u0027s spread across several top-level directories, so there\u0027s no one place that says \u0027this is the product\u0027."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"fdf7f5b24e313364d10170a5c2542959902fe0d26ed70edef3eaa10ec5bcdb1d"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: Sharpino.Lib.Core/README.md links to \u0060Sharpino.Lib.Core/Core.fs\u0060, but \u0060Sharpino.Lib.Core/Sharpino.Lib.Core/Core.fs\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":"Sharpino.Lib.Core/README.md"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f1e7676ad24d14a5349e95cda2eda2b18e032c9e3ee8c25ffa537f1fa2a0730"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: Sharpino.Lib.Core/README.md links to \u0060Sharpino.Lib/CommandHandler.fs\u0060, but \u0060Sharpino.Lib.Core/Sharpino.Lib/CommandHandler.fs\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":"Sharpino.Lib.Core/README.md"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"e55a2694eaa18143f786ae9da64345019266a01892d672e59c59ed7aa63853db"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: Sharpino.Lib.Core/README.md links to \u0060Sharpino.Lib/PgEventStore.fs\u0060, but \u0060Sharpino.Lib.Core/Sharpino.Lib/PgEventStore.fs\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":"Sharpino.Lib.Core/README.md"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e00c51de350c13abdd4d57fb9ad02a668aa3cad5d9dda7bdb8ec78a16cd50fe"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: Sharpino.Lib.Core/README.md links to \u0060Sharpino.Lib/MemoryStorage.fs\u0060, but \u0060Sharpino.Lib.Core/Sharpino.Lib/MemoryStorage.fs\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":"Sharpino.Lib.Core/README.md"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"451a5260242f2e8c36c490ff213df0d8d2ba304810b50a7fee81057365858362"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: Sharpino.Lib.Core/README.md links to \u0060Sharpino.Lib/Cache.fs\u0060, but \u0060Sharpino.Lib.Core/Sharpino.Lib/Cache.fs\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":"Sharpino.Lib.Core/README.md"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"18b3ff85b8b9ed49d41fc00935eda1d3bdaeaae5c9ec0c83648cb5924a9e38f7"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: Sharpino.Lib.Core/README.md links to \u0060CONTRIBUTING.md\u0060, but \u0060Sharpino.Lib.Core/CONTRIBUTING.md\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":"Sharpino.Lib.Core/README.md"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"e02f6b848a74a82872f552e18129d86453030b96eb4fe0b2ce6129b4ef978e0f"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: Sharpino.Lib/README.md links to \u0060Sharpino.Lib.Core/Core.fs\u0060, but \u0060Sharpino.Lib/Sharpino.Lib.Core/Core.fs\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":"Sharpino.Lib/README.md"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a296d673d2de1e43ed3e5df41b7e01cce0baba7aeb6144cac90e8204f311fd"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: Sharpino.Lib/README.md links to \u0060Sharpino.Lib/CommandHandler.fs\u0060, but \u0060Sharpino.Lib/Sharpino.Lib/CommandHandler.fs\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":"Sharpino.Lib/README.md"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0e8a00688234a343de76b27b5b1ce08785a81b9683be01df9b77ffc3d089dcf"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: Sharpino.Lib/README.md links to \u0060Sharpino.Lib/PgEventStore.fs\u0060, but \u0060Sharpino.Lib/Sharpino.Lib/PgEventStore.fs\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":"Sharpino.Lib/README.md"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ffa4565c7f71b479e2f46ba8e6aa9529e7f4a9f458e916072e7c56756f2fafe"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: Sharpino.Lib/README.md links to \u0060Sharpino.Lib/MemoryStorage.fs\u0060, but \u0060Sharpino.Lib/Sharpino.Lib/MemoryStorage.fs\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":"Sharpino.Lib/README.md"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"a458617a97c083580f66af6b15cd80da6170e966334e5b08e215779f0dede50c"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: Sharpino.Lib/README.md links to \u0060Sharpino.Lib/Cache.fs\u0060, but \u0060Sharpino.Lib/Sharpino.Lib/Cache.fs\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":"Sharpino.Lib/README.md"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3a2d73b58281c4d8b592d28a39d8d4463e3966c360f610e75d924ec5ba10244"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: Sharpino.Lib/README.md links to \u0060CONTRIBUTING.md\u0060, but \u0060Sharpino.Lib/CONTRIBUTING.md\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":"Sharpino.Lib/README.md"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"8288300363419296827f60747a3711de00d753a0fe6db54c8ffc51d1a944fd42"}},{"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":"P2","level":"note","message":{"text":"Logging is not universal: Only 8/15 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060.\u0060, \u0060Sharpino.Sample.22\u0060, \u0060Sharpino.Sample.24\u0060, \u0060Sharpino.Sample.26\u0060, \u0060Sharpino.Sample.27\u0060 and 2 more."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add \u0060semgrep --config=auto\u0060 plus gitleaks for committed secrets (F# is not a CodeQL language and has no language-specific SAST engine) \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":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060Sharpino.Lib.Core/Sharpino.Lib.Core.fsproj\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":"Sharpino.Lib.Core/Sharpino.Lib.Core.fsproj"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"12e8136b1d954ae7bed241ca03eba723a21be7926f2c735365f568399013d9ab"}},{"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":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060transaction\u0060 holds an async function that calls .GetAwaiter().GetResult() \u2014 a blocking call inside async code stalls the thread-pool thread the workflow runs on, and every continuation queued behind it for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":1856}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba600c723057da0e0e1d707b02dda73f8f12039e9b94a63eafbe5fe0b334120c"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060transaction\u0060 holds an async function that calls .GetAwaiter().GetResult() \u2014 a blocking call inside async code stalls the thread-pool thread the workflow runs on, and every continuation queued behind it for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":2737}}}],"partialFingerprints":{"codehealthFindingId/v1":"c08cf9f6aee5504774bf7ecceb39b8a997a2ac632b5d211d2923de9c936ea83b"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060transaction\u0060 holds an async function that calls .GetAwaiter().GetResult() \u2014 a blocking call inside async code stalls the thread-pool thread the workflow runs on, and every continuation queued behind it for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":3361}}}],"partialFingerprints":{"codehealthFindingId/v1":"9714a448cfedec9a6fed0e773c4d98ff482bed7e664d5659388270a6fc93d173"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060transaction\u0060 holds an async function that calls .GetAwaiter().GetResult() \u2014 a blocking call inside async code stalls the thread-pool thread the workflow runs on, and every continuation queued behind it for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgEventStore.fs"},"region":{"startLine":1850}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8265119505a23ccc25c5b73b5633c1842cea62c9b2b40eeb9d60738a6313e38"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060transaction\u0060 holds an async function that calls .GetAwaiter().GetResult() \u2014 a blocking call inside async code stalls the thread-pool thread the workflow runs on, and every continuation queued behind it for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgEventStore.fs"},"region":{"startLine":2570}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5542852464ec4030df87fe8a02851ff2b9323142f2744ba2ce9bec3e8f90761"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060transaction\u0060 holds an async function that calls .GetAwaiter().GetResult() \u2014 a blocking call inside async code stalls the thread-pool thread the workflow runs on, and every continuation queued behind it for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sharpino.Lib/PgEventStore.fs"},"region":{"startLine":3394}}}],"partialFingerprints":{"codehealthFindingId/v1":"56cc9ca23cc5535560a23b1b88ab07564101c18d7e19c42158f8aa7bb06c151c"}},{"ruleId":"SC1","level":"warning","message":{"text":"NuGet dependencies are not locked: No packages.lock.json and no central package management \u2014 restores aren\u0027t reproducible or pinned (SSDF PW.4.4). Enable \u003CRestorePackagesWithLockFile\u003Etrue\u003C/RestorePackagesWithLockFile\u003E (commit the lockfile) or adopt Directory.Packages.props. Advisory \u2014 never scored."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0a97b4f69ccac509400ece7eedefb06d3ede0522cd4d8bcb5c068bea719545a6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060correlationId.IsSome || causationId.IsSome\u0060 appears character-identically in 2 files \u2014 Sharpino.Lib/PgBinaryEventStore.fs, Sharpino.Lib/PgEventStore.fs. 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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d1c7aa71a8aa30ff7d6a83e2892e3f20bc2773c2b9afd19dc36007c5b1f13ff"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lastEventId.IsNone \u0026\u0026 eventId \u003C\u003E 0 || (lastEventId.IsSome \u0026\u0026 lastEventId.Value \u003C\u003E eventId)\u0060 appears character-identically in 2 files \u2014 Sharpino.Lib/PgBinaryEventStore.fs, Sharpino.Lib/PgEventStore.fs. 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":"Sharpino.Lib/PgBinaryEventStore.fs"},"region":{"startLine":1289}}}],"partialFingerprints":{"codehealthFindingId/v1":"d50750d9dff36351e61bd9b9313801916f4e785324dae6a242fdf30283122be3"}}],"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-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-540","guid":"1a9db5db-e5bb-ae5d-935a-d1b4e9ee080b","name":"Inclusion of Sensitive Information in Source Code","shortDescription":{"text":"Inclusion of Sensitive Information in Source Code"},"helpUri":"https://cwe.mitre.org/data/definitions/540.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-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.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":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"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":"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":43,"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."]}]}