{"$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":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"}]}},"results":[{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46 lines \u00D7 2): src/OrderTaking/PlaceOrder.Implementation(without effects).fs:144-189 | src/OrderTaking/PlaceOrder.Implementation.fs:84-129 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/OrderTaking/PlaceOrder.Implementation(without effects).fs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"a85bac696b59d7d2608b8b4d0f9761364d4d14c77281e4351d708db886ea8f6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): src/OrderTaking/Result.fs:29-67 | src/OrderTakingEvolved/Result.fs:29-67 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/OrderTaking/Result.fs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"60fec989bf5de6731897f0b6a7c7b6e7b61133da41637d7acf5a564c2228d747"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): src/OrderTaking/PlaceOrder.Dto.fs:153-190 | src/OrderTakingEvolved/PlaceOrder.Dto.fs:169-206 \u2014 \u0060src/OrderTaking/PlaceOrder.Dto.fs\u0060 and \u0060src/OrderTakingEvolved/PlaceOrder.Dto.fs\u0060 are the same file name in two sibling directories, 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 135 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 \u0060src/OrderTaking/PlaceOrder.Dto.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/OrderTaking/PlaceOrder.Dto.fs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2ca805c70a38c2af514458f40aa60cb33e0e87c3d6b8374d50718709649603e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): src/OrderTaking/Common.SimpleTypes.fs:129-164 | src/OrderTakingEvolved/Common.SimpleTypes.fs:140-175 \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":"src/OrderTaking/Common.SimpleTypes.fs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"af651eee335dd665cbe38682def828ef6402083539b8af9bf4527042f572c02a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): src/OrderTaking/PlaceOrder.Dto.fs:283-318 | src/OrderTakingEvolved/PlaceOrder.Dto.fs:321-356 \u2014 \u0060src/OrderTaking/PlaceOrder.Dto.fs\u0060 and \u0060src/OrderTakingEvolved/PlaceOrder.Dto.fs\u0060 are the same file name in two sibling directories, 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 135 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 \u0060src/OrderTaking/PlaceOrder.Dto.fs:283\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":"src/OrderTaking/PlaceOrder.Dto.fs"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a53485651add34c7bfaa435189023265607c195a0974e00f6f48c4572fe879a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): src/OrderTaking/PlaceOrder.PublicTypes.fs:88-121 | src/OrderTakingEvolved/PlaceOrder.PublicTypes.fs:93-126 \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":"src/OrderTaking/PlaceOrder.PublicTypes.fs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a927a44b99c018871f77a69db6a7643a48495dca90edda09f4b5cc401b36803"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): src/OrderTaking/PlaceOrder.Implementation(without effects).fs:396-425 | src/OrderTaking/PlaceOrder.Implementation.fs:389-419 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/OrderTaking/PlaceOrder.Implementation(without effects).fs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"e83b39ec0f5f3f2ca81561de0fb38803719491cb2ba2309bd9c56abfe80de444"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): src/OrderTaking/Result.fs:264-291 | src/OrderTakingEvolved/Result.fs:261-288 \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 \u0060src/OrderTaking/Result.fs:264\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":"src/OrderTaking/Result.fs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"d515943228cca31320309cc068f612f1cf70b532369fb576ad36166b984ca417"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): src/OrderTaking/Common.SimpleTypes.fs:193-219 | src/OrderTakingEvolved/Common.SimpleTypes.fs:237-263 \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":"src/OrderTaking/Common.SimpleTypes.fs"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bd53c71f991d345174bba506ce9c70addcc63e0ca29b44ebde1df9770c2ff63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): src/OrderTaking/PlaceOrder.Api.fs:70-96 | src/OrderTakingEvolved/PlaceOrder.Api.fs:100-126 \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":"src/OrderTaking/PlaceOrder.Api.fs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"09d57b2c6ebc5454f8d1a0242dfe72034ba8cc689479f2ab218989725e8572f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): src/OrderTaking/PlaceOrder.Api.fs:16-41 | src/OrderTakingEvolved/PlaceOrder.Api.fs:17-41 \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":"src/OrderTaking/PlaceOrder.Api.fs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"4055b296b6f48cee7852eb596adc8a24ad7b768980fadcaba5e532589b469ace"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/OrderTaking/PlaceOrder.Dto.fs:331-354 | src/OrderTakingEvolved/PlaceOrder.Dto.fs:369-392 \u2014 \u0060src/OrderTaking/PlaceOrder.Dto.fs\u0060 and \u0060src/OrderTakingEvolved/PlaceOrder.Dto.fs\u0060 are the same file name in two sibling directories, 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 135 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 \u0060src/OrderTaking/PlaceOrder.Dto.fs:331\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":"src/OrderTaking/PlaceOrder.Dto.fs"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2cb9862d8d0ddce4b21acfaecf567eccfd948c36bb0581f05f31b06d255994e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): src/OrderTaking/Common.SimpleTypes.fs:36-58 | src/OrderTakingEvolved/Common.SimpleTypes.fs:45-67 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/OrderTaking/Common.SimpleTypes.fs:36\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":"src/OrderTaking/Common.SimpleTypes.fs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"61d06c5e5233a63a49676642169169627849ed0bbbdcf5f6b245b56a66129ba4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): src/OrderTaking/PlaceOrder.Implementation(without effects).fs:349-371 | src/OrderTaking/PlaceOrder.Implementation.fs:342-364 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. 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":"src/OrderTaking/PlaceOrder.Implementation(without effects).fs"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e1a8c40f1828674b7759fd2074ae37bfe2071c6e73682c7782bf34485fd6bea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): src/OrderTaking/PlaceOrder.Implementation.fs:200-222 | src/OrderTakingEvolved/PlaceOrder.Implementation.fs:114-136 \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":"src/OrderTaking/PlaceOrder.Implementation.fs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7419be88dbb6ae22c843e1d84901e9f10140d5115a42f5b0f82af86f54251e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/OrderTaking/PlaceOrder.Implementation.fs:244-263 | src/OrderTakingEvolved/PlaceOrder.Implementation.fs:158-177 \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 \u0060src/OrderTaking/PlaceOrder.Implementation.fs:244\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":"src/OrderTaking/PlaceOrder.Implementation.fs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2750efb257ff7d194fe026247635bb38bf85da923bd3875dba545bf6d4e7ef9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/OrderTaking/PlaceOrder.Implementation.fs:147-162 | src/OrderTakingEvolved/PlaceOrder.Implementation.fs:51-66 \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 \u0060src/OrderTaking/PlaceOrder.Implementation.fs:147\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":"src/OrderTaking/PlaceOrder.Implementation.fs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d16c29d1edeffcdc5f000daa19633c27e19c9e4f42fbac621622887c4277434"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/OrderTaking/PlaceOrder.Implementation.fs:288-302 | src/OrderTakingEvolved/PlaceOrder.Implementation.fs:207-221 \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 \u0060src/OrderTaking/PlaceOrder.Implementation.fs:288\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":"src/OrderTaking/PlaceOrder.Implementation.fs"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"35ce4722911db93306d2013158f973274ac56d99fb5e497d256008cd02ea707b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/OrderTaking/PlaceOrder.Dto.fs:216-229 | src/OrderTakingEvolved/PlaceOrder.Dto.fs:246-259 \u2014 \u0060src/OrderTaking/PlaceOrder.Dto.fs\u0060 and \u0060src/OrderTakingEvolved/PlaceOrder.Dto.fs\u0060 are the same file name in two sibling directories, 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 135 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 \u0060src/OrderTaking/PlaceOrder.Dto.fs:216\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":"src/OrderTaking/PlaceOrder.Dto.fs"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbbceee3a226764a62855f364ba67c5b54d7e55acecbad8837cf27ad613461d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/OrderTaking/PlaceOrder.Implementation.fs:130-142 | src/OrderTakingEvolved/PlaceOrder.Implementation.fs:28-40 \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 \u0060src/OrderTaking/PlaceOrder.Implementation.fs:130\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":"src/OrderTaking/PlaceOrder.Implementation.fs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"c523e8cc751f0030de2cc108b0d8ae814e889a109ed737ba5762c6cea2e802b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/OrderTaking/PlaceOrder.Dto.fs:62-71 | src/OrderTakingEvolved/PlaceOrder.Dto.fs:66-75 \u2014 \u0060src/OrderTaking/PlaceOrder.Dto.fs\u0060 and \u0060src/OrderTakingEvolved/PlaceOrder.Dto.fs\u0060 are the same file name in two sibling directories, 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 135 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 \u0060src/OrderTaking/PlaceOrder.Dto.fs:62\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":"src/OrderTaking/PlaceOrder.Dto.fs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"0446d566615caabd15ab0bdfcb5734b0603f10df3ac94831c79bc329f066bd0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/OrderTaking/PlaceOrder.Dto.fs:121-127 | src/OrderTakingEvolved/PlaceOrder.Dto.fs:131-137 \u2014 \u0060src/OrderTaking/PlaceOrder.Dto.fs\u0060 and \u0060src/OrderTakingEvolved/PlaceOrder.Dto.fs\u0060 are the same file name in two sibling directories, 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 135 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 \u0060src/OrderTaking/PlaceOrder.Dto.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":"src/OrderTaking/PlaceOrder.Dto.fs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"3772c8ed337ad5472e017380a13f822e2be0b4ff8b948401dccb166cb0671f41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/OrderTaking/PlaceOrder.Dto.fs:146-151 | src/OrderTakingEvolved/PlaceOrder.Dto.fs:160-165 \u2014 \u0060src/OrderTaking/PlaceOrder.Dto.fs\u0060 and \u0060src/OrderTakingEvolved/PlaceOrder.Dto.fs\u0060 are the same file name in two sibling directories, 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 135 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 \u0060src/OrderTaking/PlaceOrder.Dto.fs:146\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":"src/OrderTaking/PlaceOrder.Dto.fs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"9acae13a85e8657b7ba350d477337a42c8b26ba80fd4a868e378a0acd7acd458"}},{"ruleId":"D8","level":"error","message":{"text":"No automated tests: No automated tests \u2014 no test code was found in this repository. Untested code is the largest single risk to changing it safely."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3132564c6310e5d01a231f252a02d5d2f5a542c0a8fa29a14c89693f1e3df871"}},{"ruleId":"D9","level":"note","message":{"text":"No tests found: No test suite could be collected \u2014 nothing here references a test framework (Expecto, or xUnit/NUnit through FsUnit or Unquote), so there were no discoverable tests to count. Tests written as plain executables or shell/PowerShell harnesses are not collectible this way and are not scored here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c9bf64cbb5a4ae13d6bcd01fa3bc8d2879d860c73bc67f176ee3c2cecb8adce3"}},{"ruleId":"D12","level":"warning","message":{"text":"Deprecated: System.Text.Json: System.Text.Json 5.0.2 \u2014 Other,Legacy"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8a6a65526e46fb8d8813441732af55aa62711bac9f9735a45701166739cfdf08"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":0,"secretScannerRunsExcluded":0}}}]}