{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D18","name":"Solution Shape","shortDescription":{"text":"Solution Shape"},"helpUri":"https://codehealth.canine.dev/dimensions/D18"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D23","name":"Boundary Type-Coupling","shortDescription":{"text":"Boundary Type-Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D23"},{"id":"D24","name":"Comment Value","shortDescription":{"text":"Comment Value"},"helpUri":"https://codehealth.canine.dev/dimensions/D24"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"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"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"DrawableCanvasEx.OnResizeElement (cyclomatic 19): DrawableCanvasEx.OnResizeElement has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/SD.Infrastructure.WPF/CustomControls/DrawableCanvasEx.cs"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"1def4a03f8ebb1dfc16f98b91a21668ce55610ec1f4917b0ff3ad1976fdf38b2"}},{"ruleId":"D1","level":"warning","message":{"text":"CanvasEx.OnItemsSourceChanged (cyclomatic 17): CanvasEx.OnItemsSourceChanged has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/SD.Infrastructure.Avalonia/CustomControls/CanvasEx.cs"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4d7069ba2da33780977110d6550da559a6a204dab02d4f4aae4390c5a3caac5"}},{"ruleId":"D1","level":"warning","message":{"text":"CanvasEx.OnShapeItemsChanged (cyclomatic 17): CanvasEx.OnShapeItemsChanged has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/SD.Infrastructure.Avalonia/CustomControls/CanvasEx.cs"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"b45bec9c0b51cc6f3af99d39ae9608f4db9d1225107bee8db399541807debbe3"}},{"ruleId":"D1","level":"warning","message":{"text":"CanvasEx.OnItemsSourceChanged (cyclomatic 17): CanvasEx.OnItemsSourceChanged has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/SD.Infrastructure.WPF/CustomControls/CanvasEx.cs"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"c058a6b7a79298117fd374afa2fdddd5d770ab4f1999dce12130f9194fe96ef7"}},{"ruleId":"D1","level":"warning","message":{"text":"CanvasEx.OnShapeItemsChanged (cyclomatic 17): CanvasEx.OnShapeItemsChanged has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/SD.Infrastructure.WPF/CustomControls/CanvasEx.cs"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"b812b2dda149d8ca0f150feed6eee316ebff6e9c4f6797a5d6413eb4eda6b0ab"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowExtension.TypifyParameters (cyclomatic 16): WorkflowExtension.TypifyParameters has cyclomatic complexity 16 (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/SD.Infrastructure/WorkflowBase/WorkflowExtension.cs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"6415a27b31c919a9b9f0ba3158831a8d1a6f50d5e91daf52c03479cd723a39d6"}},{"ruleId":"D2","level":"warning","message":{"text":"CanvasEx.OnItemsSourceChanged (cognitive 36): CanvasEx.OnItemsSourceChanged has cognitive complexity 36 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/SD.Infrastructure.Avalonia/CustomControls/CanvasEx.cs"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"1844949303cf3d7f988d8e7128e706054f5a627dac1addb4974d358193c6bac9"}},{"ruleId":"D2","level":"warning","message":{"text":"CanvasEx.OnShapeItemsChanged (cognitive 36): CanvasEx.OnShapeItemsChanged has cognitive complexity 36 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/SD.Infrastructure.Avalonia/CustomControls/CanvasEx.cs"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1ab1b96349dd3983bcb1c6e9c02c3be4c8a79fc5cf9cb7d8b0784d2acce302c"}},{"ruleId":"D2","level":"warning","message":{"text":"CanvasEx.OnItemsSourceChanged (cognitive 36): CanvasEx.OnItemsSourceChanged has cognitive complexity 36 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/SD.Infrastructure.WPF/CustomControls/CanvasEx.cs"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"67c7bc059063dd80ed965706ee9ad1aa8438fd9deef34afc5530401093928c50"}},{"ruleId":"D2","level":"warning","message":{"text":"CanvasEx.OnShapeItemsChanged (cognitive 36): CanvasEx.OnShapeItemsChanged has cognitive complexity 36 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/SD.Infrastructure.WPF/CustomControls/CanvasEx.cs"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"80f0aae9bcf61b678d6e6868714f344d65056fce9bbda9a68df8dc2571793064"}},{"ruleId":"D2","level":"warning","message":{"text":"DrawableCanvasEx.OnResizeElement (cognitive 31): DrawableCanvasEx.OnResizeElement has cognitive complexity 31 (threshold 15). 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/SD.Infrastructure.WPF/CustomControls/DrawableCanvasEx.cs"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cdb83838a0c1ac8b3b7c6563541b3b0bae5f3cbf01bfe884b4287561457c493"}},{"ruleId":"D2","level":"warning","message":{"text":"BusyExtension.GlobalIdle (cognitive 21): BusyExtension.GlobalIdle has cognitive complexity 21 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/SD.Infrastructure.Avalonia.Caliburn/Extensions/BusyExtension.cs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"40ce8b5ff7b641e3abb1b94b15aad198ed7f821cb562c0d48961b8ab6fb4dec9"}},{"ruleId":"D2","level":"warning","message":{"text":"DrawableCanvasEx.OnCanvasMouseMove (cognitive 20): DrawableCanvasEx.OnCanvasMouseMove has cognitive complexity 20 (threshold 15). 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/SD.Infrastructure.WPF/CustomControls/DrawableCanvasEx.cs"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a9c452502f3dcf505fa52003e757c0e8c0a57048ba3d26d9d4f0f0c3b5cba0b"}},{"ruleId":"D2","level":"warning","message":{"text":"EFUnitOfWorkProvider.GetEntityHistories (cognitive 20): EFUnitOfWorkProvider.GetEntityHistories has cognitive complexity 20 (threshold 15). 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/SD.Infrastructure.Repository.EntityFrameworkCore/EFUnitOfWorkProvider.cs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"7442d13e4826191dbecde522e391392268934b9c96ac6b4cffda18fa282fcd3a"}},{"ruleId":"D2","level":"warning","message":{"text":"EFEntityRepositoryProvider.ExecuteSqlQuery (cognitive 19): EFEntityRepositoryProvider.ExecuteSqlQuery has cognitive complexity 19 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/SD.Infrastructure.Repository.EntityFrameworkCore/EFEntityRepositoryProvider.cs"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc8df0207125adea5d5a043e4b63a2d9faa1f9ef5b93110e08d9ef5e646ad1b2"}},{"ruleId":"D2","level":"warning","message":{"text":"EFEntityRepositoryProvider.ExecuteSqlQueryAsync (cognitive 19): EFEntityRepositoryProvider.ExecuteSqlQueryAsync has cognitive complexity 19 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/SD.Infrastructure.Repository.EntityFrameworkCore/EFEntityRepositoryProvider.cs"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"722c87b472872671e7a5d2282646009b42636f96a5607cc774b1559f0bb7ef06"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MongoRepositoryProvider: TooManyMethods \u2014 446 significant lines (blank, comment-only and punctuation-only lines excluded), 99 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/SD.Infrastructure.Repository.MongoDB/MongoRepositoryProvider.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf9c9286fac3ec142c81db2a8a6bb22c7933de8aed06f194b70ca42136cabffc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: EFEntityRepositoryProvider: TooManyMethods \u2014 298 significant lines (blank, comment-only and punctuation-only lines excluded), 72 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/SD.Infrastructure.Repository.EntityFrameworkCore/EFEntityRepositoryProvider.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f538be8b8260e5b30453dbc7de9d0b24e4d6fdaa9deb5f6ec12e072984df197"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: CustomControls/DrawableCanvasEx.cs: FileTooLong \u2014 907 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/SD.Infrastructure.WPF/CustomControls/DrawableCanvasEx.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcb5112c989e54b70ff8cf2f075c87773bee3fbc3edea1bb67e7ce62379f413d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: EFUnitOfWorkProvider: TooManyMethods \u2014 432 significant lines (blank, comment-only and punctuation-only lines excluded), 54 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/SD.Infrastructure.Repository.EntityFrameworkCore/EFUnitOfWorkProvider.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbd00943f0355a608deaa076d738459fe46f4aee576356980eaf2d575bef6e2d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: EFAggRootRepositoryProvider: TooManyMethods \u2014 242 significant lines (blank, comment-only and punctuation-only lines excluded), 43 methods. The type holds no instance state, so there is no shared data to group its members by. To reduce it, split it by area instead: give each cohesive family of members its own smaller type, so no one type has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/SD.Infrastructure.Repository.EntityFrameworkCore/EFAggRootRepositoryProvider.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e188c3f81d1feba1e376cf8cdd458a0f2d74edbe37945bf900c1f6e134daa50"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DrawableCanvasEx: TooManyMethods \u2014 891 significant lines (blank, comment-only and punctuation-only lines excluded), 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/SD.Infrastructure.WPF/CustomControls/DrawableCanvasEx.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cceee0554bb05114edd4f3a30ba79efa660716e72511a2d47f86fdee184ed9cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): src/SD.Infrastructure.CrontabBase/Aspects/RunningAspect.cs:108-132 | src/SD.Infrastructure.SignalR.Client/Extensions/HubConnectionExtension.cs:145-168 | src/SD.Infrastructure.WWF/Base/WorkflowApplicationProxy.cs:375-398 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/SD.Infrastructure.CrontabBase/Aspects/RunningAspect.cs:108\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/SD.Infrastructure.CrontabBase/Aspects/RunningAspect.cs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ec22e0422eb1d81c5d1088f2ad0a6cd3a15b4bb8c085fbf3cabf4f518651f77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/SD.Infrastructure.Maui/Converters/BooleanDescriptionConverter.cs:40-60 | src/SD.Infrastructure.WPF/Converters/BooleanDescriptionConverter.cs:42-62 \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/SD.Infrastructure.Maui/Converters/BooleanDescriptionConverter.cs:40\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/SD.Infrastructure.Maui/Converters/BooleanDescriptionConverter.cs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e2ec7a071e720a60c803dd955db42599fece89161edae29b916a6b9f689fba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/SD.Infrastructure.WPF/Extensions/ShapeExtension.cs:508-526 | src/SD.Infrastructure.WPF/Extensions/ShapeExtension.cs:564-582 \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/SD.Infrastructure.WPF/Extensions/ShapeExtension.cs:508\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/SD.Infrastructure.WPF/Extensions/ShapeExtension.cs"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e2c1abadb02a66203c06933c23a26c5eeaa569f4c843ca8406d2eb6d2402adc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/SD.Infrastructure.WPF/UserControls/ImageCompareViewer.xaml.cs:150-166 | src/SD.Infrastructure.WPF/UserControls/ImageViewer.xaml.cs:99-115 \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/SD.Infrastructure.WPF/UserControls/ImageCompareViewer.xaml.cs:150\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/SD.Infrastructure.WPF/UserControls/ImageCompareViewer.xaml.cs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"24c7ac92eddb19db3909fec215b26129a6832bde1d0c3ba87de379389584cd0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/SD.Infrastructure.WPF/Visual2Ds/RectangleVisual2D.cs:158-174 | src/SD.Infrastructure.WPF/Visual2Ds/RotatedRectangleVisual2D.cs:273-289 \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/SD.Infrastructure.WPF/Visual2Ds/RectangleVisual2D.cs:158\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/SD.Infrastructure.WPF/Visual2Ds/RectangleVisual2D.cs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ce1eb7e8712bf6a1b51b74d753d2ce7414062b006c6a450f782c9179724445b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/SD.Infrastructure.Avalonia/Visual2Ds/RectangleVisual2D.cs:156-171 | src/SD.Infrastructure.Avalonia/Visual2Ds/RotatedRectangleVisual2D.cs:274-289 \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/SD.Infrastructure.Avalonia/Visual2Ds/RectangleVisual2D.cs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b8349359152278986fa99a585487e305e8bf92307c89fd6453c193b43ae67f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/SD.Infrastructure.Avalonia/Commands/AsyncRelayCommand\u0060.cs:55-71 | src/SD.Infrastructure.Avalonia/Commands/RelayCommand\u0060.cs:53-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 \u0060src/SD.Infrastructure.Avalonia/Commands/AsyncRelayCommand\u0060.cs:55\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/SD.Infrastructure.Avalonia/Commands/AsyncRelayCommand\u0060.cs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"722942bad67b82544ca7407b7bf8f386f5d4524f9d01c74379bbcb3e8cd3f1a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/SD.Infrastructure.WPF/CustomControls/DrawableCanvasEx.cs:1763-1777 | src/SD.Infrastructure.WPF/CustomControls/DrawableCanvasEx.cs:1819-1833 \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/SD.Infrastructure.WPF/CustomControls/DrawableCanvasEx.cs:1763\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/SD.Infrastructure.WPF/CustomControls/DrawableCanvasEx.cs"},"region":{"startLine":1763}}}],"partialFingerprints":{"codehealthFindingId/v1":"7458001f7fae040f07f303ea60b4ac1277f94d2d47aa8092ea030ca136f14f54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/SD.Infrastructure.Avalonia/Visual2Ds/RotatedRectangleVisual2D.cs:272-285 | src/SD.Infrastructure.WPF/Visual2Ds/RotatedRectangleVisual2D.cs:271-284 \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/SD.Infrastructure.Avalonia/Visual2Ds/RotatedRectangleVisual2D.cs:272\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/SD.Infrastructure.Avalonia/Visual2Ds/RotatedRectangleVisual2D.cs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"4955f0c1b5c6f02550e903918f6810410d30492ac4df47012543277e02218c02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/SD.Infrastructure.SignalR.Client.Receiver/Program.cs:13-25 | src/SD.Infrastructure.SignalR.Client.Sender/Program.cs:13-25 \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/SD.Infrastructure.SignalR.Client.Receiver/Program.cs:13\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/SD.Infrastructure.SignalR.Client.Receiver/Program.cs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"345e96d44cab7f8331aeae5134311ce1bbd9563bdd3a1e4bd25abe1c97d77fb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): src/SD.Infrastructure.WPF/CustomControls/DrawableCanvasEx.cs:1069-1080 | src/SD.Infrastructure.WPF/CustomControls/DrawableCanvasEx.cs:1095-1106 | src/SD.Infrastructure.WPF/CustomControls/DrawableCanvasEx.cs:1121-1132 | src/SD.Infrastructure.WPF/CustomControls/DrawableCanvasEx.cs:1147-1158 | src/SD.Infrastructure.WPF/CustomControls/DrawableCanvasEx.cs:1173-1184 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/SD.Infrastructure.WPF/CustomControls/DrawableCanvasEx.cs:1069\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/SD.Infrastructure.WPF/CustomControls/DrawableCanvasEx.cs"},"region":{"startLine":1069}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f87d149fe310e85ccebaafaef9b241dc8c00b06dfb0bc3bd4da7826a3963229"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/SD.Infrastructure.Avalonia/CustomControls/CanvasEx.cs:735-746 | src/SD.Infrastructure.WPF/CustomControls/CanvasEx.cs:748-759 \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/SD.Infrastructure.Avalonia/CustomControls/CanvasEx.cs"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3ffa5eb93220f349f00846c38ab0a1c3e8d99e68b967f28bd77b3f4473b0454"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/SD.Infrastructure.WPF/CustomControls/DrawableCanvasEx.cs:510-521 | src/SD.Infrastructure.WPF/CustomControls/DrawableCanvasEx.cs:533-544 \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/SD.Infrastructure.WPF/CustomControls/DrawableCanvasEx.cs:510\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/SD.Infrastructure.WPF/CustomControls/DrawableCanvasEx.cs"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecaf2f98c3efc17468b6ccf23224a963322aaf61dd1c5276109ce99d3c4841c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/SD.Infrastructure.WPF/CustomControls/DrawableCanvasEx.cs:892-903 | src/SD.Infrastructure.WPF/CustomControls/DrawableCanvasEx.cs:918-929 \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/SD.Infrastructure.WPF/CustomControls/DrawableCanvasEx.cs:892\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/SD.Infrastructure.WPF/CustomControls/DrawableCanvasEx.cs"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"223d0246fcd3cdd0f9bf71fbd44c3a358387b0e995e6247b1343589fe1f6e479"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/SD.Infrastructure.WPF/UserControls/ImageCompareViewer.xaml.cs:186-197 | src/SD.Infrastructure.WPF/UserControls/ImageViewer.xaml.cs:135-146 \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/SD.Infrastructure.WPF/UserControls/ImageCompareViewer.xaml.cs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"59885c851120128ce376463cf15e8b365b3cbab266cb57b1f1e8e5381ef5d4aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 7): src/SD.Infrastructure.WPF/CustomControls/DrawableCanvasEx.cs:1015-1025 | src/SD.Infrastructure.WPF/CustomControls/DrawableCanvasEx.cs:1041-1051 | src/SD.Infrastructure.WPF/CustomControls/DrawableCanvasEx.cs:1067-1077 | src/SD.Infrastructure.WPF/CustomControls/DrawableCanvasEx.cs:1093-1103 | src/SD.Infrastructure.WPF/CustomControls/DrawableCanvasEx.cs:1119-1129 | src/SD.Infrastructure.WPF/CustomControls/DrawableCanvasEx.cs:1145-1155 | src/SD.Infrastructure.WPF/CustomControls/DrawableCanvasEx.cs:1171-1181 \u2014 all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/SD.Infrastructure.WPF/CustomControls/DrawableCanvasEx.cs:1015\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/SD.Infrastructure.WPF/CustomControls/DrawableCanvasEx.cs"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9b904aca43b11dfc6f393202e676dd16da5d6c9db31a9d730bdeb08f1e1bcea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/SD.Infrastructure.Avalonia/CustomControls/CanvasEx.cs:697-707 | src/SD.Infrastructure.WPF/CustomControls/CanvasEx.cs:710-720 \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/SD.Infrastructure.Avalonia/CustomControls/CanvasEx.cs:697\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/SD.Infrastructure.Avalonia/CustomControls/CanvasEx.cs"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"207ca4b4992ca6ab20a21ac3dc3dd41696c36ad1f67846c690963301ef230916"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/SD.Infrastructure.WPF.Caliburn/Base/OneActiveConductorBase.cs:47-56 | src/SD.Infrastructure.WPF.Caliburn/Base/ScreenBase.cs:41-50 \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/SD.Infrastructure.WPF.Caliburn/Base/OneActiveConductorBase.cs:47\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/SD.Infrastructure.WPF.Caliburn/Base/OneActiveConductorBase.cs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"3345253128a1615e6b55d03ff1e8dff605195e81fd58020e2e1df9b3d6137007"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/SD.Infrastructure.Avalonia/Visual2Ds/PointVisual2D.cs:144-153 | src/SD.Infrastructure.Avalonia/Visual2Ds/RectangleVisual2D.cs:135-143 | src/SD.Infrastructure.Avalonia/Visual2Ds/RotatedRectangleVisual2D.cs:250-259 \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/SD.Infrastructure.Avalonia/Visual2Ds/PointVisual2D.cs:144\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/SD.Infrastructure.Avalonia/Visual2Ds/PointVisual2D.cs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d9b29cac5416c138b8dd067233151730d9b8281779c57cf44c19b23b1cc62f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/SD.Infrastructure.WPF/Visual2Ds/PointVisual2D.cs:140-149 | src/SD.Infrastructure.WPF/Visual2Ds/RectangleVisual2D.cs:137-145 | src/SD.Infrastructure.WPF/Visual2Ds/RotatedRectangleVisual2D.cs:249-258 \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/SD.Infrastructure.WPF/Visual2Ds/PointVisual2D.cs:140\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/SD.Infrastructure.WPF/Visual2Ds/PointVisual2D.cs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"e980346eddb95bf376cefb7d1aac0b848d2201f11ca53094b42eb85e298f0f34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/SD.Infrastructure/Shapes/PolygonL.cs:120-128 | src/SD.Infrastructure/Shapes/PolylineL.cs:120-128 \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/SD.Infrastructure/Shapes/PolygonL.cs:120\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/SD.Infrastructure/Shapes/PolygonL.cs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"89fa71371d616ceb7194ad5bdb964c399e2d7fd20ef97a8a583a05cbb1386fd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/SD.Infrastructure.WPF/CustomControls/DrawableCanvasEx.cs:1738-1748 | src/SD.Infrastructure.WPF/CustomControls/DrawableCanvasEx.cs:1796-1804 \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/SD.Infrastructure.WPF/CustomControls/DrawableCanvasEx.cs:1738\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/SD.Infrastructure.WPF/CustomControls/DrawableCanvasEx.cs"},"region":{"startLine":1738}}}],"partialFingerprints":{"codehealthFindingId/v1":"628370d3cdf71eaeaffe5759b62aa6556f22a7713540dc276482f8eb5aae45b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/SD.Infrastructure.SignalR.Client/Extensions/HubConnectionExtension.cs:71-79 | src/SD.Infrastructure.SignalR.Client/Extensions/HubConnectionExtension.cs:97-105 \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/SD.Infrastructure.SignalR.Client/Extensions/HubConnectionExtension.cs:71\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/SD.Infrastructure.SignalR.Client/Extensions/HubConnectionExtension.cs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e06854409f04246ee8dda1a3f71be165567c2f36bc04e88693343d6e100b18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/SD.Infrastructure.WPF.3D/Visual3Ds/GridLinesVisual3D.cs:258-265 | src/SD.Infrastructure.WPF.3D/Visual3Ds/GridLinesVisual3D.cs:286-293 \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/SD.Infrastructure.WPF.3D/Visual3Ds/GridLinesVisual3D.cs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"64c1b9c86712f9d2a62dda0e1287ae2fa0b2c8f122617a6db50b52761fac8433"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/SD.Infrastructure/Shapes/RotatedRectangleL.cs:128-134 | src/SD.Infrastructure/Shapes/RotatedRectangleL.cs:147-153 \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/SD.Infrastructure/Shapes/RotatedRectangleL.cs:128\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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/SD.Infrastructure/Shapes/RotatedRectangleL.cs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"275f2999bf2397c4d42b18bf6d93f5caeff99d99bc7bdec6f33e6404f3f14429"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/SD.Infrastructure/Shapes/RotatedRectangleL.cs:166-172 | src/SD.Infrastructure/Shapes/RotatedRectangleL.cs:185-191 \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/SD.Infrastructure/Shapes/RotatedRectangleL.cs:166\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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/SD.Infrastructure/Shapes/RotatedRectangleL.cs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"071e0f63f69e55af96808c5f2da0264a9904668c41bf5a4178bdcf9d1c58fb73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/SD.Infrastructure.Avalonia/Extensions/ColorExtension.cs:18-24 | src/SD.Infrastructure.WPF/Extensions/ColorExtension.cs:18-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/SD.Infrastructure.Avalonia/Extensions/ColorExtension.cs:18\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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/SD.Infrastructure.Avalonia/Extensions/ColorExtension.cs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"a494b01dd04ff9c9cb7ddf9b8572ae76c71e33e2c00d5a967a2f78e662a6b550"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/SD.Infrastructure.WPF.3D/Extensions/TransformExtension.cs:60-66 | src/SD.Infrastructure.WPF.3D/Extensions/TransformExtension.cs:67-73 \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/SD.Infrastructure.WPF.3D/Extensions/TransformExtension.cs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b8e198bd14353ffd067f85bdf1010480d76fd19f2aa6b8dc7702a12e2a049b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/SD.Infrastructure.Avalonia.Caliburn/Base/OneActiveConductorBase.cs:123-127 | src/SD.Infrastructure.WPF.Caliburn/Base/OneActiveConductorBase.cs:264-268 \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/SD.Infrastructure.Avalonia.Caliburn/Base/OneActiveConductorBase.cs:123\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/SD.Infrastructure.Avalonia.Caliburn/Base/OneActiveConductorBase.cs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5f662e553e46e1b7654e353198f591ba5508067d7c805b0d5fef071eedda348"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: SD.Infrastructure.Repository.EntityFrameworkCore(net8.0): SD.Infrastructure.Repository.EntityFrameworkCore(net8.0): abstractness 0.80, instability 1.00, distance 0.80 \u2014 zone of uselessness \u2014 abstract and unstable, so it\u0027s likely unused."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"84627bf9711acd22ee89a0e49c5fad08156f641275e964e8e6cb4b9a9c1a6000"}},{"ruleId":"D8","level":"warning","message":{"text":"Coverage not measured: The test suite couldn\u0027t be built/run in-image and no coverage report is committed, so line coverage was not measured \u2014 and it is EXCLUDED from the score rather than scored on a LoC-ratio proxy. No coverage collector was found in your CI either, so there is no existing report to hand us: add a coverage collector to your test run and commit (or publish) its Cobertura/OpenCover/lcov output anywhere in the repo, or make the suite runnable in-image, and real coverage will be measured."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"62e63e619c28f057e129f2997c965d32a457366a9ce18ca019ffb6bdfba85c99"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: TestConfigurations: Test method exercises code but verifies nothing \u2014 add an assertion."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/SD.Infrastructure.CrontabBase.Tests/TestCases/ConfigurationTests.cs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"32d08aeaaec5e6a648aa373450f24cc2702c36c43c93c0201413858b4fc26370"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: TestCrontabSetting: Test method exercises code but verifies nothing \u2014 add an assertion."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/SD.Infrastructure.CrontabBase.Tests/TestCases/ConfigurationTests.cs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"47040ba06a3b1edc7d257786712a46b96fcb3fdf4a12ab9133f92b24a2d8c50c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: TestCrontabConfiguration: Test method exercises code but verifies nothing \u2014 add an assertion."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/SD.Infrastructure.CrontabBase.Tests/TestCases/ScheduleTests.cs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"15849f8be066e88e3b295b4ce99c8a275829da97f2f37845848ba84f05b0d363"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: TestHelloWorld: Test method exercises code but verifies nothing \u2014 add an assertion."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/SD.Infrastructure.CrontabBase.Tests/TestCases/ScheduleTests.cs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"4baa89130eca3fbb6793e73bbe8bcb2b105be750a7bed79faf57efb03fc8dd53"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: TestRecoverCrontabs: Test method exercises code but verifies nothing \u2014 add an assertion."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/SD.Infrastructure.CrontabBase.Tests/TestCases/ScheduleTests.cs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aff1bca1085d2d2b3f5ec321094ed09edd86ab332d171612920b9d7aa07deaa"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: TestRegisterSqlCommand: Test method exercises code but verifies nothing \u2014 add an assertion."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/SD.Infrastructure.Repository.EntityFrameworkCore.Tests/TestCases/RegisterSqlTests.cs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"f11dccec1dacec2368001f6a7b2dd0242673ee56b0ed040ce05babda791eaea5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: TestApplicationId: Test method exercises code but verifies nothing \u2014 add an assertion."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/SD.Infrastructure.Tests/TestCases/ConfigurationTests.cs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee711da08ce4813a40ff6a87c7fa61785e54f84756000b07a10408ef48df6047"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 25 significant file(s) lose their only recent owner: src/SD.Infrastructure.WPF/CustomControls/DrawableCanvasEx.cs, src/SD.Infrastructure.WPF/CustomControls/CanvasEx.cs, src/SD.Infrastructure.WPF/Extensions/ShapeExtension.cs, src/SD.Infrastructure.WPF.3D/Visual3Ds/GridLinesVisual3D.cs, src/SD.Infrastructure.WPF/Visual2Ds/RotatedRectangleVisual2D.cs, src/SD.Infrastructure.Avalonia/Attachers/GridExpander.cs, src/SD.Infrastructure.WPF/Visual2Ds/RectangleVisual2D.cs, src/SD.Infrastructure.WPF/Visual2Ds/GridLinesVisual2D.cs (\u002B17 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4dfd576731387dca535e515fa017056ba14a4f578e84182fb857bf45135c9824"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO \u5BFC\u51FA\u5B9E\u65F6\u6D88\u606F \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/SD.Infrastructure.Avalonia.Caliburn/Base/OneActiveConductorBase.cs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9f94d42247b3d42c615c444e2e31528da2a8b8dc41ae1c2cf3d0a8ba89d9e01"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 12 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/SD.Infrastructure.Avalonia.Caliburn/Base/OneActiveConductorBase.cs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fc922c07daacd60e6af31b4e81d934fce3c142196f0fec1c2fd451538f3ff6e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO \u8C03\u8BD5 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/SD.Infrastructure.Maui.Caliburn/Base/OneActiveConductorBase.cs"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2157fe3f14c3971f61db9a8c6826318036ef4e33862038d726fa04cab331084"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO \u8C03\u8BD5 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/SD.Infrastructure.Maui.Caliburn/Base/ScreenBase.cs"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec1a467cb446a7cc2ae9aa9336da5964f42e4ef04e3b1e46149d99a531010b80"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO \u6CE8\u610F\u8C03\u8BD5 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/SD.Infrastructure.Maui.Caliburn/Extensions/NavigationExtension.cs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b14bda60b75167f58c39f54573b0be0bafa0a2b29c299c021a0d6f0d961e423"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO \u6CE8\u610F\u8C03\u8BD5 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/SD.Infrastructure.Maui.Caliburn/Extensions/NavigationExtension.cs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"31f4cb06d874927791da51cdb2744b98b9d5532f58283229e47b2d81b5fc520d"}},{"ruleId":"D18","level":"note","message":{"text":"Thin analysable surface across projects: 4 project(s) carry only a thin slice of real code (e.g. \u0060SD.Infrastructure.StubAppService(net462)\u0060 with 11 significant line(s)). The mean analysable-surface weight is 23 %, lowering Solution Shape by about 6.17 point(s). Consolidate thin projects or grow them into substantial, well-scoped assemblies."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dd0b92fd965c2065080f16843920964ee00f7696ea03d87cdf61aed4cd2c746a"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found at common paths; consider documenting architectural decisions in Docs/ADL/ or similar."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d2bea044ff79d7d275f5a91a6e2f548586178eaf480274c33960ad020c854631"}},{"ruleId":"D23","level":"note","message":{"text":"Bounded contexts not declared: At 31k LoC across 60 projects the codebase is both large and multi-module, so explicit bounded contexts are needed. Name this codebase\u0027s bounded contexts (\u22652 module groups, e.g. per subsystem) so cross-boundary type coupling can be assessed. Declare them in \u0060.codehealth/config.yaml\u0060 at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it \u2014 e.g. \u0060architecture:\u0060 \u2192 \u0060contexts:\u0060 \u2192 \u0060Billing: [\u0022src/billing\u0022, \u0022Acme.Billing\u0022]\u0060, \u0060Catalog: [\u0022src/catalog\u0022, \u0022Acme.Catalog\u0022]\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1c7e276c9c682731f01819ed5378b90ca320cde1b583c90920172911598362b3"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022\u8BBE\u7F6E\u5149\u6807\u0022 \u2014 trim - Mouse/this already say this"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/SD.Infrastructure.Avalonia/CustomControls/CanvasEx.cs"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"311d3f83bc07e6cba2f9849047a69923a60d417c77de7f0ea2b2f8f9232ae18a"}},{"ruleId":"D26","level":"note","message":{"text":"Split SD.Infrastructure: Generic catch-all name at 6k LoC and 80 types across 17 namespaces is a sprawling grab-bag. Suggested: by namespace: SD.IO, SD.Caching, SD.Messaging"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"2de0960a40c87c614da60e1ac7c02a5fe21cb4a7936fe6395bfa48327be22000"}},{"ruleId":"D26","level":"note","message":{"text":"Split SD.Infrastructure.Avalonia: Generic catch-all name at 6k LoC and 53 types across 11 namespaces is a sprawling grab-bag. Suggested: by namespace: SD.IO, SD.Caching, SD.Messaging"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"f86f2403601bf317eeffc6581b23a1d5f6fa603043535ab077b969a39daf3870"}},{"ruleId":"D26","level":"note","message":{"text":"Split SD.Infrastructure.WPF: Generic catch-all name at 7k LoC and 42 types across 11 namespaces is a sprawling grab-bag. Suggested: by namespace: SD.IO, SD.Caching, SD.Messaging"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"86cabe03a567e115a437bb49e17c80fe9eb24e7fb308c657501b6c16d535e379"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: EFEntityRepositoryProvider.cs \u2194 EFUnitOfWorkProvider.cs: \u0060src/SD.Infrastructure.Repository.EntityFrameworkCore/EFEntityRepositoryProvider.cs\u0060 and \u0060src/SD.Infrastructure.Repository.EntityFrameworkCore/EFUnitOfWorkProvider.cs\u0060 change together 57% of the time (12 of the 21 commits that touched the less-changed of the two, renames followed). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/SD.Infrastructure.Repository.EntityFrameworkCore/EFEntityRepositoryProvider.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6c48550b91c46834448c12a30be7812b06c4f456874895d95a9b26c31ddf52f"}}],"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-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-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}}}]}