{"$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":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"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":"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"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"App.update (cyclomatic 46): App.update has cyclomatic complexity 46 (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":"examples/Elmish.Console.Elements/App.fs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c3ac5d7486268b960757b2380c4603d22400ecb084e915d913dd6b2859e144f"}},{"ruleId":"D1","level":"warning","message":{"text":"App.view (cyclomatic 27): App.view has cyclomatic complexity 27 (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":"examples/Elmish.Console.Elements/App.fs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eadd18c7364ed32d8ae47078405a6fd3b8cf1bdba1a38691049be96d88dadc2"}},{"ruleId":"D2","level":"warning","message":{"text":"App.update (cognitive 43): App.update has cognitive complexity 43 (threshold 15). Drivers by points: match/switch 43 (nesting depth added 25). 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":"examples/Elmish.Console.Elements/App.fs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdf80ba8365fb8dcd4dd841045e8d2a9e417e3e20555a726b57fe0a9296e23d2"}},{"ruleId":"D2","level":"warning","message":{"text":"Differ.update (cognitive 22): Differ.update has cognitive complexity 22 (threshold 15). Drivers by points: if/else 21, match/switch 1 (nesting depth added 10). 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":"src/Terminal.Gui.Elmish/TreeDiff.fs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a195cd71e65cb28d286c1170a3d5677b205513076338e278c97a64994120f95"}},{"ruleId":"D2","level":"warning","message":{"text":"App.view (cognitive 17): App.view has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 17 (nesting depth added 8). 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":"examples/Elmish.Console.Elements/App.fs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"7624c474a6891012aaa18a015104da91cf2f16d161d5904afba1a099bd69e34b"}},{"ruleId":"D2","level":"warning","message":{"text":"ProgramModule.runWith (cognitive 16): ProgramModule.runWith has cognitive complexity 16 (threshold 15). Drivers by points: error handling 6, match/switch 6, if/else 2, loops 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Terminal.Gui.Elmish/ElmishImplementation/program.fs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"aee7e541ebb50f1311991fc5e04ff01a7e5557ce0934c9ec755dab5eed1dade2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Terminal.Gui.Elmish/Elements.fs: FileTooLong \u2014 1850 significant lines (blank, comment-only and punctuation-only lines excluded). 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":"src/Terminal.Gui.Elmish/Elements.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ac52d4ffbae96c84dcf726b456e4496cf5c306c6689f0e1d97b1a4f77c406a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): examples/Elmish.Console.Elements/Counter.fs:82-95 | examples/Elmish.Console.Elements/MessageBoxes.fs:121-134 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/Elmish.Console.Elements/Counter.fs:82\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":"examples/Elmish.Console.Elements/Counter.fs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4e66d25333c34979bd533e36a2dc0c042110856279237688aaed2af7699e4cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): examples/Elmish.Console.Elements/MessageBoxes.fs:115-128 | examples/Elmish.Console.Elements/Wizard.fs:94-107 \u2014 before extracting anything, compare \u0060examples/Elmish.Console.Elements/MessageBoxes.fs\u0060 and \u0060examples/Elmish.Console.Elements/Wizard.fs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 57 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 \u0060examples/Elmish.Console.Elements/MessageBoxes.fs:115\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":"examples/Elmish.Console.Elements/MessageBoxes.fs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"aed98f37928f7c77f132c31c08258ef6db7de01da36f99b06681904372a0b992"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/Terminal.Gui.Elmish/Elements.fs:908-921 | src/Terminal.Gui.Elmish/Elements.fs:2082-2095 \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":"src/Terminal.Gui.Elmish/Elements.fs"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"9559af6afe0365b7482a7ac7a4f56bb4c749923cb7478ae03c582017e10646f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 27): src/Terminal.Gui.Elmish/Elements.fs:806-819 | src/Terminal.Gui.Elmish/Elements.fs:858-870 | src/Terminal.Gui.Elmish/Elements.fs:987-999 | src/Terminal.Gui.Elmish/Elements.fs:1046-1058 | src/Terminal.Gui.Elmish/Elements.fs:1104-1116 | src/Terminal.Gui.Elmish/Elements.fs:1187-1199 | src/Terminal.Gui.Elmish/Elements.fs:1250-1262 | src/Terminal.Gui.Elmish/Elements.fs:1301-1315 | src/Terminal.Gui.Elmish/Elements.fs:1353-1365 | src/Terminal.Gui.Elmish/Elements.fs:1425-1437 | src/Terminal.Gui.Elmish/Elements.fs:1471-1483 | src/Terminal.Gui.Elmish/Elements.fs:1573-1585 | src/Terminal.Gui.Elmish/Elements.fs:1661-1673 | src/Terminal.Gui.Elmish/Elements.fs:1712-1724 | src/Terminal.Gui.Elmish/Elements.fs:1772-1784 | src/Terminal.Gui.Elmish/Elements.fs:1890-1902 | src/Terminal.Gui.Elmish/Elements.fs:1934-1946 | src/Terminal.Gui.Elmish/Elements.fs:2020-2032 | src/Terminal.Gui.Elmish/Elements.fs:2186-2198 | src/Terminal.Gui.Elmish/Elements.fs:2231-2243 | src/Terminal.Gui.Elmish/Elements.fs:2315-2327 | src/Terminal.Gui.Elmish/Elements.fs:2378-2390 | src/Terminal.Gui.Elmish/Elements.fs:2449-2461 | src/Terminal.Gui.Elmish/Elements.fs:2493-2505 | src/Terminal.Gui.Elmish/Elements.fs:2537-2549 | src/Terminal.Gui.Elmish/Elements.fs:2581-2593 | src/Terminal.Gui.Elmish/Elements.fs:2625-2637 \u2014 all 27 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 \u0060src/Terminal.Gui.Elmish/Elements.fs:806\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/Terminal.Gui.Elmish/Elements.fs"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"236b947c69e0faff1a6894c41ff30f98cd336c8094f7f0f334914902c154be0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): examples/Elmish.Console.Elements/MessageBoxes.fs:100-112 | examples/Elmish.Console.Elements/Wizard.fs:79-91 \u2014 before extracting anything, compare \u0060examples/Elmish.Console.Elements/MessageBoxes.fs\u0060 and \u0060examples/Elmish.Console.Elements/Wizard.fs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 57 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 \u0060examples/Elmish.Console.Elements/MessageBoxes.fs:100\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":"examples/Elmish.Console.Elements/MessageBoxes.fs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab699a77a9fe87c0fddd08588422741a18ad1e2806c1249c556e3f802767b2d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): examples/Elmish.Console.Elements/MessageBoxes.fs:47-58 | examples/Elmish.Console.Elements/Wizard.fs:27-38 \u2014 before extracting anything, compare \u0060examples/Elmish.Console.Elements/MessageBoxes.fs\u0060 and \u0060examples/Elmish.Console.Elements/Wizard.fs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 57 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":"examples/Elmish.Console.Elements/MessageBoxes.fs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d76e3c6a4a076f4e7f456de37b064f0b419e2847283ffd61568b19571ad5fbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): examples/Elmish.Console.Elements/TextView.fs:49-59 | examples/Elmish.Console.Elements/ScrollView.fs:57-67 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/Elmish.Console.Elements/TextView.fs:49\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":"examples/Elmish.Console.Elements/TextView.fs"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"aace0fdcf7ea89be40b36f6e4926e7ffc316dd1e5617b69be941e6234233729e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 7): examples/Elmish.Console.Elements/TextFields.fs:45-53 | examples/Elmish.Console.Elements/RadioCheck.fs:48-56 | examples/Elmish.Console.Elements/TextView.fs:52-60 | examples/Elmish.Console.Elements/ListView.fs:45-53 | examples/Elmish.Console.Elements/ScrollView.fs:60-68 | examples/Elmish.Console.Elements/MessageBoxes.fs:99-107 | examples/Elmish.Console.Elements/Wizard.fs:78-86 \u2014 before extracting anything, compare \u0060examples/Elmish.Console.Elements/MessageBoxes.fs\u0060 and \u0060examples/Elmish.Console.Elements/Wizard.fs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 57 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 \u0060examples/Elmish.Console.Elements/TextFields.fs:45\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/Elmish.Console.Elements/TextFields.fs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"714abda575f80123b5da34f95b629e58909f4c53c301428a6226f6ced9f99eff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): examples/Elmish.Console.Elements/MessageBoxes.fs:64-72 | examples/Elmish.Console.Elements/Wizard.fs:44-52 \u2014 before extracting anything, compare \u0060examples/Elmish.Console.Elements/MessageBoxes.fs\u0060 and \u0060examples/Elmish.Console.Elements/Wizard.fs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 57 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 \u0060examples/Elmish.Console.Elements/MessageBoxes.fs:64\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":"examples/Elmish.Console.Elements/MessageBoxes.fs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"843af1f86ccf54151f47873628f8fac3ff66006b3bedf4a824de493ff22c2927"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/Terminal.Gui.Elmish/Elements.fs:922-929 | src/Terminal.Gui.Elmish/Elements.fs:2096-2104 \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":"src/Terminal.Gui.Elmish/Elements.fs"},"region":{"startLine":922}}}],"partialFingerprints":{"codehealthFindingId/v1":"19e29d0863386624c4b78c747c771ec89055fccb9a52e17edefc173053682f8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/Terminal.Gui.Elmish/Interop.fs:19-25 | src/Terminal.Gui.Elmish/Interop.fs:37-43 \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":"src/Terminal.Gui.Elmish/Interop.fs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"d02a7d636812597d2fa36cc0b0ff6ae437b42f497a95f8a9698a5bb4fefc519f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/Terminal.Gui.Elmish/Elements.fs:42-48 | src/Terminal.Gui.Elmish/Elements.fs:203-209 \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 \u0060src/Terminal.Gui.Elmish/Elements.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":"src/Terminal.Gui.Elmish/Elements.fs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"200aea415c32ea779084d3b3dc7354942c8d51e79aaeca9635278c2ebdf7f3e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/Terminal.Gui.Elmish/Props.fs:74-80 | src/Terminal.Gui.Elmish/Props.fs:193-200 \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":"src/Terminal.Gui.Elmish/Props.fs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"17d9beb0eddb88933bd89337161109e81e5040cd721a6559b5696e1b5b19533e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/Terminal.Gui.Elmish/Props.fs:127-133 | src/Terminal.Gui.Elmish/Props.fs:182-188 \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":"src/Terminal.Gui.Elmish/Props.fs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d4e1bce0deebf68b2795b3abd2ad23394349c4791444b4049cc2fc06fb3ed41"}},{"ruleId":"D8","level":"warning","message":{"text":"Tests outside the analyzed solution: 1 .NET test project(s) exist on disk but aren\u0027t in the .NET solution that was analyzed (e.g. ElmishConsoleTest01.fsproj), so coverage couldn\u0027t be measured. If this .NET code is part of the product, add those projects to the solution or point CodeHealth at a solution that includes them; if it is a client/compatibility harness beside a product written in another language, nothing is wrong here and this row can be ignored."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9bbf3fd9fe5590433d3b265987494e8a79d1799b1dd6615c762d187e439e659e"}},{"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":"D16","level":"warning","message":{"text":"dormant codebase \u2014 no living knowledge left to concentrate: All 6 significant source file(s) were last meaningfully changed so long ago that no living knowledge remains \u2014 nothing since has been substantial enough to re-establish ownership (a broad, mechanical sweep that touches many files shallowly does not count, and neither does no activity at all). There is no concentration to measure, so the bus factor is not scored. This is not a clean bill: nobody currently holds working knowledge of this code (see D34 Knowledge Freshness)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"569d55ea5cb0330f13c125b289d07e5abdfcceac947a2c2645277937942e7d5f"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Terminal.Gui.Elmish/Elements.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ab54baf7f7ce8ca39a92d98026c55b2972c2798ded76096b8552083290b0982"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Terminal.Gui.Elmish/Props.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a57b678aad47a9b786d884a3a70998235ea27eedcad8db6dc95a6724a69f797e"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 5 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than listed individually (7 orphaned of 7 analysed files in total, counted over production source files of roughly 100 lines or more, excluding tests, vendored, generated and example/demo trees, largest first)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}}],"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}}}]}