{"$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":"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":"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":"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":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"VirtualDom.updateRoot (cyclomatic 18): VirtualDom.updateRoot 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":"src/Avalonia.FuncUI/VirtualDom/VirtualDom.fs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"e32aa2e6374aec0496c80e9c3e43c1bde30fcc0485db977f56d4b3859ca9df9f"}},{"ruleId":"D1","level":"warning","message":{"text":"Patcher.patchContentMultiple (cyclomatic 18): Patcher.patchContentMultiple 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":"src/Avalonia.FuncUI/VirtualDom/VirtualDom.Patcher.fs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"78abbf23e1ebf0416c095f65674513d75a557759230e5429c0bcc154712441a0"}},{"ruleId":"D1","level":"warning","message":{"text":"VirtualDom.updateBorderRoot (cyclomatic 17): VirtualDom.updateBorderRoot has cyclomatic complexity 17 (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":"src/Avalonia.FuncUI/VirtualDom/VirtualDom.fs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3235862a02013f150cd334ad5a91caacc5dd40ec067b8b8503f8ddcaa641bf7"}},{"ruleId":"D1","level":"warning","message":{"text":"Reflector.fullTypeName (cyclomatic 17): Reflector.fullTypeName has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Avalonia.FuncUI.Diagnostics/Lib/Lib.Reflector.fs"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa91644ce0e54383b3099d84d75e8a889bce743b5e1a90aa734d0b1a11e9d5d9"}},{"ruleId":"D2","level":"warning","message":{"text":"Patcher.patchContentMultiple (cognitive 24): Patcher.patchContentMultiple has cognitive complexity 24 (threshold 15). Drivers by points: match/switch 13, if/else 9, loops 2 (nesting depth added 10). 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/Avalonia.FuncUI/VirtualDom/VirtualDom.Patcher.fs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6918be85b767b0d7f3bec4909fa78defd581a5914bde29f37271cbdab9408ae"}},{"ruleId":"D2","level":"warning","message":{"text":"Reflector.fullTypeName (cognitive 21): Reflector.fullTypeName has cognitive complexity 21 (threshold 15). Drivers by points: if/else 21 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Avalonia.FuncUI.Diagnostics/Lib/Lib.Reflector.fs"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"9704082a4e86c94e104ead9d4a37fbf5cfa2bf8e23f2e768e8fa8008ce5eb1ff"}},{"ruleId":"D2","level":"warning","message":{"text":"Setters.iList (cognitive 18): Setters.iList has cognitive complexity 18 (threshold 15). Drivers by points: loops 9, if/else 5, match/switch 4 (nesting depth added 10). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Avalonia.FuncUI/Helpers.fs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"6922c6289c04a60c9b12ed61cdc82aaca25d94e8e4eedcd52f1eb10daeb826ec"}},{"ruleId":"D2","level":"warning","message":{"text":"VirtualDom.updateRoot (cognitive 18): VirtualDom.updateRoot has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 15, if/else 2, boolean chains 1 (nesting depth added 7). 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/Avalonia.FuncUI/VirtualDom/VirtualDom.fs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"05a2cfb047b2b7322c9782a5705f8523e91da8605bed02ce92b0017484a6051b"}},{"ruleId":"D2","level":"warning","message":{"text":"Patcher.patchProperty (cognitive 17): Patcher.patchProperty has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 17 (nesting depth added 10). 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/Avalonia.FuncUI/VirtualDom/VirtualDom.Patcher.fs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b161cb92e69cca19c9bf825be688a57b548dc735151e352c91035b653610cc0"}},{"ruleId":"D2","level":"warning","message":{"text":"VirtualDom.updateBorderRoot (cognitive 16): VirtualDom.updateBorderRoot has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 13, if/else 2, boolean chains 1 (nesting depth added 6). 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/Avalonia.FuncUI/VirtualDom/VirtualDom.fs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"f482faf692dde3fb3076c5b249357d3df10085a16bf8b4202907c8d6eb29eb00"}},{"ruleId":"D2","level":"warning","message":{"text":"Patcher.patchContentSingle (cognitive 16): Patcher.patchContentSingle has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 10, if/else 6 (nesting depth added 6). 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/Avalonia.FuncUI/VirtualDom/VirtualDom.Patcher.fs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c0c098ba0f53d7dfcc2d576bbfa8a81f56d7349bf962f4143880373b5bc26b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TextBox: TooManyMethods \u2014 48 methods. 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":"src/Avalonia.FuncUI/DSL/TextBox.fs"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"dec86555a0fb75d73b57cb9c33c929e279b46a90dce2ed716f25e8c65f9c3ab4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ContentPresenter: TooManyMethods \u2014 42 methods. 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":"src/Avalonia.FuncUI/DSL/Base/ContentPresenter.fs"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3aa9571b88948fabbae3a502ae8dbd8fffc57fcf534c7a4cbf841ee590ee06a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TextPresenter: TooManyMethods \u2014 32 methods. 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":"src/Avalonia.FuncUI/DSL/Base/TextPresenter.fs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3a9115191d222e16faa53d6af086d4efaed755a3b15b1f09e412a50dfbbafbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 4): src/Avalonia.FuncUI.Benchmarks/Scenarios/Diffing/GameOfLife.fs:161-182 | src/Avalonia.FuncUI.Benchmarks/Scenarios/Diffing/GameOfLife.fs:315-336 | src/Avalonia.FuncUI.Benchmarks/Scenarios/Diffing/GameOfLife.fs:469-490 | src/Avalonia.FuncUI/VirtualDom/VirtualDom.Differ.fs:119-140 \u2014 there are 4 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 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Avalonia.FuncUI.Benchmarks/Scenarios/Diffing/GameOfLife.fs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"21cef6f8f3f64d55de609251ab922c66fcbbf76d27d2b80f05d205b270e44b94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/Examples/Examples.Presso/Main.fs:7-28 | src/Examples/Elmish/Examples.Elmish.Presso/Main.fs:4-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":"src/Examples/Examples.Presso/Main.fs"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"4431c378c71256fee763e71d669ae05326d9adc5d90cbfc7cd0492d398bc7dc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/Examples/Examples.DrawingApp/Program.fs:127-146 | src/Examples/Examples.EnvApp/Program.fs:100-119 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Examples/Examples.DrawingApp/Program.fs:127\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/Examples/Examples.DrawingApp/Program.fs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bb9b535a146c3a98f9d7dd1a651699bd4450ddfb1bdd50526eb3d2c6ec1b57d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/Avalonia.FuncUI.ControlCatalog/Avalonia.FuncUI.ControlCatalog/Views/Tabs/SpinnerDemo.fs:11-29 | src/Avalonia.FuncUI.ControlCatalog/Avalonia.FuncUI.ControlCatalog/Views/Tabs/ToolTipDemo.fs:11-29 \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/Avalonia.FuncUI.ControlCatalog/Avalonia.FuncUI.ControlCatalog/Views/Tabs/SpinnerDemo.fs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"64086990e90f029d8b00350476216bcd1e6345a01e9c87b1bf80eb6957491b44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/Examples/Examples.DrawingApp/Program.fs:184-201 | src/Examples/Examples.EnvApp/Program.fs:157-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Examples/Examples.DrawingApp/Program.fs:184\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/Examples/Examples.DrawingApp/Program.fs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"c23cfafd3f1d4d9705d8487c25c66c02368eed83083ccdbaf312b1dd91a9fd26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/Examples/Examples.InlineText/Program.fs:14-30 | src/Examples/Examples.SettingFocus/Program.fs:82-98 \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/Examples/Examples.InlineText/Program.fs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc072f7d74b1088f5063ded88c261670ef4485ca498f7673ed9a0ec170fb3dc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): src/Avalonia.FuncUI.Benchmarks/Scenarios/Diffing/GameOfLife.fs:63-78 | src/Avalonia.FuncUI.Benchmarks/Scenarios/Diffing/GameOfLife.fs:213-228 | src/Avalonia.FuncUI.Benchmarks/Scenarios/Diffing/GameOfLife.fs:367-382 \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 \u0060src/Avalonia.FuncUI.Benchmarks/Scenarios/Diffing/GameOfLife.fs:63\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/Avalonia.FuncUI.Benchmarks/Scenarios/Diffing/GameOfLife.fs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"7389d298a50fead489b56dcdf079151a451d006bc7bea879a2bb61b706c7affe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): src/Avalonia.FuncUI.Benchmarks/Scenarios/Diffing/GameOfLife.fs:273-288 | src/Avalonia.FuncUI.Benchmarks/Scenarios/Diffing/GameOfLife.fs:427-442 | src/Avalonia.FuncUI/VirtualDom/VirtualDom.Differ.fs:77-92 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Avalonia.FuncUI.Benchmarks/Scenarios/Diffing/GameOfLife.fs:273\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/Avalonia.FuncUI.Benchmarks/Scenarios/Diffing/GameOfLife.fs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"8359593c845c376065e47e45c5323afcb890f159c1ba4d203b3414268f7edd84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/Examples/Examples.Presso/Main.fs:211-226 | src/Examples/Elmish/Examples.Elmish.Presso/Main.fs:180-195 \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/Examples/Examples.Presso/Main.fs:211\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":"src/Examples/Examples.Presso/Main.fs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ec5fc17f1e6929b831d49b2eaa23c3f60e82bd051f7dd920d69fb82aa051d9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/Examples/Examples.Presso/Lib/Library.fs:1-15 | src/Examples/Elmish/Examples.Elmish.Presso/Lib/Library.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":"src/Examples/Examples.Presso/Lib/Library.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"728b372de88c5db293b21e339fec33901e6c8f2e645e2bfa44a73602b3d7621d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/Avalonia.FuncUI/DSL/AttrBuilder.fs:230-243 | src/Avalonia.FuncUI/DSL/AttrBuilder.fs:258-271 \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/Avalonia.FuncUI/DSL/AttrBuilder.fs:230\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/Avalonia.FuncUI/DSL/AttrBuilder.fs"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7f602e2b87248143405dfbeb027ca04e99f374c7821f0d7ac92bfbc591b1c5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): src/Examples/Examples.DrawingApp/Program.fs:236-249 | src/Examples/Examples.EnvApp/Program.fs:218-231 | src/Examples/Examples.InlineText/Program.fs:28-40 | src/Examples/Examples.Presso/Program.fs:30-43 | src/Examples/Examples.SettingFocus/Program.fs:96-108 | src/Examples/Elmish/Examples.Elmish.Presso/Program.fs:38-51 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 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 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Examples/Examples.DrawingApp/Program.fs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a0b6988caef3b912aa1477bd055f4e5ad9d8b989b131d9c4c9319a697ae7d25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): src/Examples/Examples.CounterApp/Program.fs:23-35 | src/Examples/Elmish/Examples.Elmish.ClockApp/Program.fs:59-71 | src/Examples/Elmish/Examples.Elmish.CounterApp/Program.fs:32-44 | src/Examples/Elmish/Examples.Elmish.GameOfLife/Program.fs:47-59 | src/Examples/Experimental/Examples.Experimental.ViewModelComponent.CounterApp/Program.fs:83-95 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 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 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Examples/Examples.CounterApp/Program.fs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eff36695f9a0115759564bbfb18a3feb66dc9b9e90596e763a828a8eef25195"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/Examples/Examples.TodoApp/Program.fs:337-350 | src/Examples/Examples.TodoApp/Program.fs:375-387 \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/Examples/Examples.TodoApp/Program.fs:337\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/Examples/Examples.TodoApp/Program.fs"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b692cad69ef3913c5cd5942a449b5395d375c6f24b021fb3f471e530a58e550"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): src/Avalonia.FuncUI.ControlCatalog/Avalonia.FuncUI.ControlCatalog/Views/Tabs/ContextMenuDemo.fs:10-21 | src/Avalonia.FuncUI.ControlCatalog/Avalonia.FuncUI.ControlCatalog/Views/Tabs/StylesDemo.fs:13-24 | src/Avalonia.FuncUI.ControlCatalog/Avalonia.FuncUI.ControlCatalog/Views/Tabs/WindowMenuDemo.fs:10-21 \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/Avalonia.FuncUI.ControlCatalog/Avalonia.FuncUI.ControlCatalog/Views/Tabs/ContextMenuDemo.fs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"09f5a34783e5da9c45594be6085a6c80a209a173d1761038c41c83d6ba7efbdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/Avalonia.FuncUI/VirtualDom/VirtualDom.fs:30-41 | src/Avalonia.FuncUI/VirtualDom/VirtualDom.fs:63-75 \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/Avalonia.FuncUI/VirtualDom/VirtualDom.fs:63\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/Avalonia.FuncUI/VirtualDom/VirtualDom.fs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3422ec8d2af376bcfd226c9bf70f817c3bd1d9d5819a6d3879055649912545d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/Avalonia.FuncUI/DataTemplateView.fs:76-87 | src/Avalonia.FuncUI/DataTemplateView.fs:123-134 \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/Avalonia.FuncUI/DataTemplateView.fs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"e36dbd5250a00a545e70ac78ff813e66f64ca07483e60da48b14c258cb20101f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/Avalonia.FuncUI.ControlCatalog/Avalonia.FuncUI.ControlCatalog/Views/Tabs/SpinnerDemo.fs:68-80 | src/Avalonia.FuncUI.ControlCatalog/Avalonia.FuncUI.ControlCatalog/Views/Tabs/ToolTipDemo.fs:68-79 \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 \u0060src/Avalonia.FuncUI.ControlCatalog/Avalonia.FuncUI.ControlCatalog/Views/Tabs/SpinnerDemo.fs:68\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/Avalonia.FuncUI.ControlCatalog/Avalonia.FuncUI.ControlCatalog/Views/Tabs/SpinnerDemo.fs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dd0f468f49a7ebe469805f6308e583acf01bce3acfda64b40c6424e88af62bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/Examples/Examples.ChordParser/Program.fs:17-27 | src/Examples/Examples.ContactBook/Program.fs:17-27 | src/Examples/Experimental/Examples.Experimental.ViewModelComponent.CounterApp/Program.fs:78-88 \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":"src/Examples/Examples.ChordParser/Program.fs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ebb2f89205c425d10915173a8173ef68392d9a67ce70b2e88d3b35a8da0a951"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/Examples/Examples.Canvas/Program.fs:19-29 | src/Examples/Elmish/Examples.Elmish.Tetris/Program.fs:53-63 \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/Examples/Examples.Canvas/Program.fs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce4702dde2e3a4d173ed651555ae940949e75a9ee8c6de9548bd7128c7480a56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/Examples/Examples.GeneticAlgorithm/Lib/Fitness.fs:7-17 | src/Examples/Examples.GeneticAlgorithm/Lib/Fitness.fs:24-34 \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/Examples/Examples.GeneticAlgorithm/Lib/Fitness.fs"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"70423f57070b81c96969c10b558cf518187306e2817c4dfc47abc59bf2ce90c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/Avalonia.FuncUI/Components/State/State.Adapters.fs:154-163 | src/Avalonia.FuncUI/Components/State/State.Adapters.fs:219-229 \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/Avalonia.FuncUI/Components/State/State.Adapters.fs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1dec3e2003029c9e65bccbfc108675c48d895ede18feb3de89fa1b874e5e5fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/Avalonia.FuncUI/DSL/AttrBuilder.fs:175-184 | src/Avalonia.FuncUI/DSL/AttrBuilder.fs:206-215 \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/Avalonia.FuncUI/DSL/AttrBuilder.fs:175\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/Avalonia.FuncUI/DSL/AttrBuilder.fs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf93ff55da96120b58e9e63b9485130f84d52a13943f7ad3508473122de4de6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/Avalonia.FuncUI.Benchmarks/Scenarios/Diffing/GameOfLife.fs:262-270 | src/Avalonia.FuncUI.Benchmarks/Scenarios/Diffing/GameOfLife.fs:416-424 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Avalonia.FuncUI.Benchmarks/Scenarios/Diffing/GameOfLife.fs:262\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/Avalonia.FuncUI.Benchmarks/Scenarios/Diffing/GameOfLife.fs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"f490f958773a08706d67323dd769c58c3f07527edece24f75b9872b1b13d469b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/Avalonia.FuncUI/Components/State/State.Adapters.fs:67-75 | src/Avalonia.FuncUI/Components/State/State.Adapters.fs:86-94 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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/Avalonia.FuncUI/Components/State/State.Adapters.fs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"583f548faf4070fc6224fd6a1532d8ee191c4200a29c57259bcc1068162377d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/Avalonia.FuncUI/Components/State/State.Adapters.fs:167-175 | src/Avalonia.FuncUI/Components/State/State.Adapters.fs:237-245 \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/Avalonia.FuncUI/Components/State/State.Adapters.fs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"092dd2b9dfa01784b458910cd9445136a3790ab88b8926f4f0cb55855b530c1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): src/Examples/Examples.Presso/Main.fs:125-132 | src/Examples/Examples.Presso/Main.fs:144-151 | src/Examples/Examples.Presso/Main.fs:162-169 | src/Examples/Examples.Presso/Main.fs:180-187 \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 \u0060src/Examples/Examples.Presso/Main.fs:125\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/Examples/Examples.Presso/Main.fs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"185e9c768a9f8e2b33fc1f66ba76a56ffd48490127e2037e30e518a9e5527146"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/Avalonia.FuncUI/DSL/Flyout.fs:124-131 | src/Avalonia.FuncUI/DSL/Flyout.fs:182-189 \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/Avalonia.FuncUI/DSL/Flyout.fs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"31ea59b4ed7579f0ef1654d19c73911db783d48674b98f98450ac154663dd608"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/Avalonia.FuncUI/Components/State/State.Adapters.fs:185-193 | src/Avalonia.FuncUI/Components/State/State.Adapters.fs:253-259 \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/Avalonia.FuncUI/Components/State/State.Adapters.fs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"e64708f5f5e9cc7814ad933843e35624e9911007f465d9fc0fe6f34fba30b700"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/Avalonia.FuncUI/Experimental/Experimental.EnvironmentState.fs:54-60 | src/Avalonia.FuncUI/Experimental/Experimental.EnvironmentState.fs:63-69 \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/Avalonia.FuncUI/Experimental/Experimental.EnvironmentState.fs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"39c50717e096b583e3790c90d4db47e4ffeeda0a2b18936420fedbd0f9d87ca9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/Avalonia.FuncUI/DSL/Primitives/Track.fs:58-63 | src/Avalonia.FuncUI/DSL/Primitives/Track.fs:72-77 \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/Avalonia.FuncUI/DSL/Primitives/Track.fs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac6ef8a406f98bacb27a95b8a57e07a5f8633a7257bf6039b18708fb8b061bb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/Avalonia.FuncUI/DSL/Flyout.fs:138-143 | src/Avalonia.FuncUI/DSL/Flyout.fs:193-198 \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/Avalonia.FuncUI/DSL/Flyout.fs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e0ea97eb9b5771e7340e73a534584f804a9a5dd4ca682a8ee056be2c01097b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/Avalonia.FuncUI/DSL/Base/StyledElement.fs:127-131 | src/Avalonia.FuncUI/DSL/Base/StyledElement.fs:140-144 | src/Avalonia.FuncUI/DSL/Base/StyledElement.fs:166-170 \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 \u0060src/Avalonia.FuncUI/DSL/Base/StyledElement.fs:127\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/Avalonia.FuncUI/DSL/Base/StyledElement.fs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"226bd999f47a74af7075f84fadd3fe99ac597ebfc1ff20dfdd87499f35354bf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/Avalonia.FuncUI/DSL/Flyout.fs:27-31 | src/Avalonia.FuncUI/DSL/Flyout.fs:40-44 | src/Avalonia.FuncUI/DSL/Flyout.fs:86-90 \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 \u0060src/Avalonia.FuncUI/DSL/Flyout.fs:27\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/Avalonia.FuncUI/DSL/Flyout.fs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"f927afca430db66bb27e08b3cf821f4662056952f3642f850e711d03d413a75d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/Avalonia.FuncUI/DSL/AutoCompleteBox.fs:99-103 | src/Avalonia.FuncUI/DSL/AutoCompleteBox.fs:125-129 \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/Avalonia.FuncUI/DSL/AutoCompleteBox.fs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee15ee05f98d3292dcb05b83d69a597be35fcbf243a79b12e37646f17355f9d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/Avalonia.FuncUI/DSL/AutoCompleteBox.fs:111-115 | src/Avalonia.FuncUI/DSL/ComboBox.fs:31-36 \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/Avalonia.FuncUI/DSL/AutoCompleteBox.fs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"623321c9a5bdbf4b691207a0ba310a1809b1310fce5fd10731bd270cf9505653"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/Avalonia.FuncUI/DSL/AutoCompleteBox.fs:137-141 | src/Avalonia.FuncUI/DSL/ComboBox.fs:17-22 \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/Avalonia.FuncUI/DSL/AutoCompleteBox.fs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bfea6d020e79774a30a0d5b4a517a9942a709270a27828f890e3e8225d29020"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/Avalonia.FuncUI.Elmish/ElmishHook.fs:34-38 | src/Avalonia.FuncUI.Elmish/ElmishHook.fs:100-104 \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/Avalonia.FuncUI.Elmish/ElmishHook.fs:34\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/Avalonia.FuncUI.Elmish/ElmishHook.fs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"c16f9d2b49839a4ceea25af1aa08e37c19a98e3c979849a7ea66b19d5071d520"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/Examples/Elmish/Examples.Elmish.Tetris/Tetris.Core.fs:194-198 | src/Examples/Elmish/Examples.Elmish.Tetris/Tetris.Core.fs:227-231 \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/Examples/Elmish/Examples.Elmish.Tetris/Tetris.Core.fs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"01928498888d1bf5dcb1e2dcc057fe1479c16fac9f3ee15bec530c86bbf01e9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): src/Avalonia.FuncUI/DSL/Primitives/HeaderedItemsControl.fs:1-28 | src/Avalonia.FuncUI/DSL/Primitives/HeaderedSelectingItemsControl.fs:1-27 \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/Avalonia.FuncUI/DSL/Primitives/HeaderedItemsControl.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6fb0a46b4eb46151d3a04256b242ebccb912c7a876529bd416d51985f0d17a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/Avalonia.FuncUI/DSL/Shapes/Rectangle.fs:1-17 | src/Avalonia.FuncUI/DSL/Shapes/Sector.fs:1-17 \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/Avalonia.FuncUI/DSL/Shapes/Rectangle.fs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f12cf9e351b93fa39fbcbe026fab3ea8bbef3a174e4397c7f77f2689ee91e11"}},{"ruleId":"D8","level":"warning","message":{"text":"Coverage not measured \u2014 no coverage collector is wired up: Coverage NOT MEASURED: the test suite built and its tests PASSED, but the run produced no coverage data \u2014 \u0060--collect:\u0022XPlat Code Coverage\u0022\u0060 found no data collector, which is what a test project with no \u0060coverlet.collector\u0060 PackageReference does. Nothing is wrong with the suite or the build; there is simply no coverage instrumentation wired up. Add a \u0060coverlet.collector\u0060 PackageReference to the test project(s) (or commit the Cobertura/OpenCover/lcov report your CI produces) and real coverage will be measured. It is excluded from the score rather than counted as a near-zero defect."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"62e63e619c28f057e129f2997c965d32a457366a9ce18ca019ffb6bdfba85c99"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 9 significant file(s) lose their only recent owner: src/Avalonia.FuncUI/DSL/Base/StyledElement.fs, src/Avalonia.FuncUI/DSL/Flyout.fs, src/Avalonia.FuncUI/DSL/AutoCompleteBox.fs, src/Avalonia.FuncUI.ControlCatalog/Avalonia.FuncUI.ControlCatalog/Views/Tabs/DatePickerDemo.fs, src/Avalonia.FuncUI/DSL/Base/InputElement.fs, src/Avalonia.FuncUI/DSL/Primitives/Popup.fs, src/Avalonia.FuncUI.ControlCatalog/Avalonia.FuncUI.ControlCatalog/Views/Tabs/DragDropDemo.fs, src/Avalonia.FuncUI.ControlCatalog/Avalonia.FuncUI.ControlCatalog/Views/MainView.fs (\u002B1 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e65c20768c684e84ce2c07d0ddc3eb10fd5f21ea7c323e7e6f63262d5e14349d"}},{"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":"1f6c12d6105dcbf80340a81f9a86b18ef5a4cc172248d15aa8b41e736ba1ffc4"},"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"}}]},{"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":"b77e42fec07929a0116312916167e5f18080b7ce132cecd39fdee14491461028"},"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"}}]},{"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":"9797b3a239517e6e848741cc4f6bacd4814022cc6af58022cd744ba927f84057"},"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"}}]},{"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":"05f330675deeb88c21ec7f2dd3f4de8173fb290e9fde3aa99cccdb28cf128799"},"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"}}]},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 16 of 85 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 100 lines or more, excluding tests, vendored, generated and example/demo trees, largest first). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 largest first: src/Avalonia.FuncUI.ControlCatalog/Avalonia.FuncUI.ControlCatalog/Views/Tabs/GridSplitterDemo.fs, src/Avalonia.FuncUI/DSL/Base/TextPresenter.fs, src/Avalonia.FuncUI.ControlCatalog/Avalonia.FuncUI.ControlCatalog/Views/Tabs/AttachedEventDemo.fs (and 13 more). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D36","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":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"}},{"ruleId":"D36","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":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"}},{"ruleId":"D36","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":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"}},{"ruleId":"D36","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":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"}},{"ruleId":"D36","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":"9658270ba49f37ed04e99ab1263b6393cd42aed8bdfb7aafd9fa1070f5491895"}},{"ruleId":"D36","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":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"}}],"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-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-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":"CWE-353","shortDescription":{"text":"CWE-353"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.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-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":10,"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."]}]}