{"$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":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"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":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"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"},{"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":"MarkdownDocument.Parse (cyclomatic 61): MarkdownDocument.Parse has cyclomatic complexity 61 (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/Notepads.Controls/MarkdownTextBlock/Markdown/MarkdownDocument.cs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaa6c4cf68a6ad520fd6a2b20998e4d49ea1ff913407bff001f8fe1295ba0683"}},{"ruleId":"D1","level":"warning","message":{"text":"HyperlinkInline.ParseEmailAddress (cyclomatic 32): HyperlinkInline.ParseEmailAddress has cyclomatic complexity 32 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/HyperlinkInline.cs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7901d90624f89933cae3239c16f7bc96408676a78c1535e119724f44d203b29"}},{"ruleId":"D1","level":"warning","message":{"text":"Common.FindNextInlineElement (cyclomatic 31): Common.FindNextInlineElement has cyclomatic complexity 31 (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/Notepads.Controls/MarkdownTextBlock/Markdown/Helpers/Common.cs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"19844db4a7671a6ce07b43d41dfd8c0b93df4eed46d7dd63a4552e61b56a539e"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownLinkInline.Parse (cyclomatic 29): MarkdownLinkInline.Parse has cyclomatic complexity 29 (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/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/MarkdownLinkInline.cs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf78afee243c638befbe3338083ff479ca03cfb2beb4b5386642cf4c6ebf45d3"}},{"ruleId":"D1","level":"warning","message":{"text":"CodeBlock.Parse (cyclomatic 25): CodeBlock.Parse has cyclomatic complexity 25 (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/Notepads.Controls/MarkdownTextBlock/Markdown/Blocks/CodeBlock.cs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"075f2bf74431944e0c9208bf6751d45b26835f9842292eb77e1a542b7a2cff50"}},{"ruleId":"D1","level":"warning","message":{"text":"LinkReferenceBlock.Parse (cyclomatic 25): LinkReferenceBlock.Parse has cyclomatic complexity 25 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function, or replace a long branch ladder over a single value with a data-driven lookup or dispatch table."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Notepads.Controls/MarkdownTextBlock/Markdown/Blocks/LinkReferenceBlock.cs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"1896de46868dbd865fc7a6f8342971f79b1db72964c71f81963d93de312ab473"}},{"ruleId":"D1","level":"warning","message":{"text":"TableRow.ParseContents (cyclomatic 25): TableRow.ParseContents has cyclomatic complexity 25 (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/Notepads.Controls/MarkdownTextBlock/Markdown/Blocks/TableBlock.cs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"adca798e012c81fc9d2904924d2519134298595c9e5333654efeec6b3265712e"}},{"ruleId":"D1","level":"warning","message":{"text":"NotepadsCore.Sets_Drop (cyclomatic 24): NotepadsCore.Sets_Drop has cyclomatic complexity 24 (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/Notepads/Core/NotepadsCore.cs"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"d09567af246aa2afe6d4b328c7e586be014066f8d36117803c8ff6467ef61498"}},{"ruleId":"D1","level":"warning","message":{"text":"SideBySideDiffViewer.RenderDiff (cyclomatic 24): SideBySideDiffViewer.RenderDiff has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 2 of the 24 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 178, 233, 196, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Notepads/Controls/DiffViewer/SideBySideDiffViewer.xaml.cs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8258f5f4a31335c68d015fb3aec19b86462889a6482c1bb4ee77e449abcec92"}},{"ruleId":"D1","level":"warning","message":{"text":"SetsView.SetsView_SizeChanged (cyclomatic 24): SetsView.SetsView_SizeChanged has cyclomatic complexity 24 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. 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/Notepads.Controls/SetsView/SetsView.HeaderLayout.cs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"c412583580dd21d60e37e1fdd90ebb7c1aba78f2931665ff187e85ba5621bb55"}},{"ruleId":"D1","level":"warning","message":{"text":"ImageInline.Parse (cyclomatic 23): ImageInline.Parse has cyclomatic complexity 23 (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/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/ImageInline.cs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b31b33f9ba985e8974726079c07b49d6c996b65f3475cb169178a42ef8c2c14"}},{"ruleId":"D1","level":"warning","message":{"text":"TextEditorCore.RemoveIndentation (cyclomatic 22): TextEditorCore.RemoveIndentation has cyclomatic complexity 22 (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/Notepads/Controls/TextEditor/TextEditorCore.Indentation.cs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"01976296b2ac43385533eef198941b9d486b8b796d1a31fe8c5048559afc2d55"}},{"ruleId":"D1","level":"warning","message":{"text":"TableBlock.Parse (cyclomatic 20): TableBlock.Parse has cyclomatic complexity 20 (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/Notepads.Controls/MarkdownTextBlock/Markdown/Blocks/TableBlock.cs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ded70273d9eb0c0194b93fb08b98b50582a1cda79ab33b5580e8e6801507088"}},{"ruleId":"D1","level":"warning","message":{"text":"NotepadsMainPage.Sets_Loaded (cyclomatic 18): NotepadsMainPage.Sets_Loaded has cyclomatic complexity 18 (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/Notepads/Views/MainPage/NotepadsMainPage.xaml.cs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"18a3b2141bda5103df8f576e7456407c5e23688b0fddd433bc93418e2ce1605c"}},{"ruleId":"D1","level":"warning","message":{"text":"YamlHeaderBlock.Parse (cyclomatic 17): YamlHeaderBlock.Parse 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/Notepads.Controls/MarkdownTextBlock/Markdown/Blocks/YamlHeaderBlock.cs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"6027c61dc48ed82cd4956b8bcb8d2c82a3d880bac7026734d7e974703f7666b3"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionManager.SaveSessionAsync (cyclomatic 16): SessionManager.SaveSessionAsync has cyclomatic complexity 16 (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/Notepads/Core/SessionManager.cs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"4695b0d7acd8fc6260f50ac1deb74ddf9feced210500b16c7a52791e472b5ff9"}},{"ruleId":"D1","level":"warning","message":{"text":"SuperscriptTextInline.Parse (cyclomatic 16): SuperscriptTextInline.Parse has cyclomatic complexity 16 (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/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/SuperscriptTextInline.cs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"1df7002aa9e34b668ddca6fd3996185f3de9e9d242fc1d778a9d329e34d81bb0"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownDocument.Parse (cognitive 143): MarkdownDocument.Parse has cognitive complexity 143 (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/Notepads.Controls/MarkdownTextBlock/Markdown/MarkdownDocument.cs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"87227db5104a0b1c3c81ee0f39734ebfd2be97b08685023a72a6ad50ebfe72f1"}},{"ruleId":"D2","level":"warning","message":{"text":"SetsView.SetsView_SizeChanged (cognitive 75): SetsView.SetsView_SizeChanged has cognitive complexity 75 (threshold 15). Of this number, 73 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. 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/Notepads.Controls/SetsView/SetsView.HeaderLayout.cs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d036eb8355495a4d919615dbd72fc35fd63c36238a1111dbe89c031b96ad39"}},{"ruleId":"D2","level":"warning","message":{"text":"CodeBlock.Parse (cognitive 69): CodeBlock.Parse has cognitive complexity 69 (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/Notepads.Controls/MarkdownTextBlock/Markdown/Blocks/CodeBlock.cs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3281c6fe92a97ce1858604afa73f202788c631348155833d0ff43026a993cb6"}},{"ruleId":"D2","level":"warning","message":{"text":"SideBySideDiffViewer.RenderDiff (cognitive 57): SideBySideDiffViewer.RenderDiff has cognitive complexity 57 (threshold 15). Most of this is not in the body itself: 1 of the 57 points is its own statement and the rest belongs to 6 function literals inside it that branch (lines 178, 233, 196, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Notepads/Controls/DiffViewer/SideBySideDiffViewer.xaml.cs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f2880393e249cdf66848301bb36dc26b08503b8f884dc1d274f6fb3561e285a"}},{"ruleId":"D2","level":"warning","message":{"text":"ListBlock.Parse (cognitive 56): ListBlock.Parse has cognitive complexity 56 (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/Notepads.Controls/MarkdownTextBlock/Markdown/Blocks/ListBlock.cs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5222d66fc1c31c054bd06d0339da6a4045d9831a959b5cf3903f1a294f5c878"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownLinkInline.Parse (cognitive 53): MarkdownLinkInline.Parse has cognitive complexity 53 (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/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/MarkdownLinkInline.cs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"225c497114522a6d93e5d86be854d0153d84b5fae31949bc9da19bd5a4a54064"}},{"ruleId":"D2","level":"warning","message":{"text":"Common.FindNextInlineElement (cognitive 51): Common.FindNextInlineElement has cognitive complexity 51 (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/Notepads.Controls/MarkdownTextBlock/Markdown/Helpers/Common.cs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1c3b67398030d8297587fd152ef01678a6eb85cde9741c84d3ebc9ef3b54c5e"}},{"ruleId":"D2","level":"warning","message":{"text":"TextEditorCore.RemoveIndentation (cognitive 43): TextEditorCore.RemoveIndentation has cognitive complexity 43 (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/Notepads/Controls/TextEditor/TextEditorCore.Indentation.cs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3e981f619d142bc07c025d8708010496555c521a8e5b81593f94a54f9f6f270"}},{"ruleId":"D2","level":"warning","message":{"text":"TableRow.ParseContents (cognitive 39): TableRow.ParseContents has cognitive complexity 39 (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/Notepads.Controls/MarkdownTextBlock/Markdown/Blocks/TableBlock.cs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"adf21c71d23284198bf1e66ef13f3ced068716b1e0f150308b4654dfd5cc3931"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageInline.Parse (cognitive 36): ImageInline.Parse 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/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/ImageInline.cs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b14c347e4fc549338d304cfbdac21c63917334ab851987360c8fa6e9ee1331c"}},{"ruleId":"D2","level":"warning","message":{"text":"Common.ParseLines (cognitive 35): Common.ParseLines has cognitive complexity 35 (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/Notepads.Controls/MarkdownTextBlock/Markdown/Helpers/Common.cs"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"97a48b011f75c34e785f779fa2f34275bd855af887c1ced9266bde890377db5b"}},{"ruleId":"D2","level":"warning","message":{"text":"NotepadsCore.Sets_Drop (cognitive 29): NotepadsCore.Sets_Drop has cognitive complexity 29 (threshold 15). 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/Notepads/Core/NotepadsCore.cs"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"d790293d972bc445726e22be4fc79d0399d01f00279773dc55110e25803ae074"}},{"ruleId":"D2","level":"warning","message":{"text":"LinkReferenceBlock.Parse (cognitive 28): LinkReferenceBlock.Parse has cognitive complexity 28 (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/Notepads.Controls/MarkdownTextBlock/Markdown/Blocks/LinkReferenceBlock.cs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"70d21488450fd87a706cf7f05d94cf90c5621d75ab6e871bd1758ad50a014112"}},{"ruleId":"D2","level":"warning","message":{"text":"TableBlock.Parse (cognitive 27): TableBlock.Parse has cognitive complexity 27 (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/Notepads.Controls/MarkdownTextBlock/Markdown/Blocks/TableBlock.cs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"48f09da6ada885672d99475fae99afd55cd3e9b796b8cb05278f7e1be638d70c"}},{"ruleId":"D2","level":"warning","message":{"text":"SuperscriptTextInline.Parse (cognitive 27): SuperscriptTextInline.Parse has cognitive complexity 27 (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/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/SuperscriptTextInline.cs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"68ebe7e75bef788c93ffb1fd23278d45f801479c3d20174c8f7a7c0b34f86449"}},{"ruleId":"D2","level":"warning","message":{"text":"TextRunInline.Parse (cognitive 26): TextRunInline.Parse has cognitive complexity 26 (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/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/TextRunInline.cs"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"404d3ce27d33278321e0255233ee5ce6f74282220bc4af380b8478608aeefd8a"}},{"ruleId":"D2","level":"warning","message":{"text":"HyperlinkInline.ParseEmailAddress (cognitive 25): HyperlinkInline.ParseEmailAddress has cognitive complexity 25 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/HyperlinkInline.cs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"58f730453e2dda951c8f74990715faa66997f5e1ef7bffebdde0d1ec74552bc6"}},{"ruleId":"D2","level":"warning","message":{"text":"TextEditorCore.TryFindNextAndSelect (cognitive 24): TextEditorCore.TryFindNextAndSelect has cognitive complexity 24 (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/Notepads/Controls/TextEditor/TextEditorCore.FindAndReplace.cs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce71c428461bbef5bbdce729faff85919019e912c92a46d1baec103c61867b67"}},{"ruleId":"D2","level":"warning","message":{"text":"TextEditorCore.TryFindPreviousAndSelect (cognitive 24): TextEditorCore.TryFindPreviousAndSelect has cognitive complexity 24 (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/Notepads/Controls/TextEditor/TextEditorCore.FindAndReplace.cs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"59c57d9f334b6852b0d4bd5d9823a58c88a55c59246f1db9d2998261b5e2e5b1"}},{"ruleId":"D2","level":"warning","message":{"text":"NotepadsMainPage.Sets_Loaded (cognitive 24): NotepadsMainPage.Sets_Loaded has cognitive complexity 24 (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/Notepads/Views/MainPage/NotepadsMainPage.xaml.cs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"5557c9eb401088e9080d97cfc0622a99022c035f2e755036c55da64296386796"}},{"ruleId":"D2","level":"warning","message":{"text":"YamlHeaderBlock.Parse (cognitive 24): YamlHeaderBlock.Parse has cognitive complexity 24 (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/Notepads.Controls/MarkdownTextBlock/Markdown/Blocks/YamlHeaderBlock.cs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"42c13c224f79e179dafd87b96bc831ee545153b7dcda44ebca1b4e944f704549"}},{"ruleId":"D2","level":"warning","message":{"text":"FileSystemUtility.AnalyzeAndGuessEncoding (cognitive 21): FileSystemUtility.AnalyzeAndGuessEncoding has cognitive complexity 21 (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/Notepads/Utilities/FileSystemUtility.cs"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"46b3f756a31663c94f7c909d41eff4807f20fa2b88fdf560a51654bb6684db55"}},{"ruleId":"D2","level":"warning","message":{"text":"GridSplitter.VerticalMove (cognitive 21): GridSplitter.VerticalMove has cognitive complexity 21 (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/Notepads.Controls/GridSplitter/GridSplitter.Events.cs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dd4a88cc1bbd9aec2f6d80f3e39aaf3c991dee32aae8515494e5126ab34277b"}},{"ruleId":"D2","level":"warning","message":{"text":"GridSplitter.HorizontalMove (cognitive 21): GridSplitter.HorizontalMove has cognitive complexity 21 (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/Notepads.Controls/GridSplitter/GridSplitter.Events.cs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"71bfbadea5d8c9a89b1d83e32c85cbc59ac5220a29cca0eadc80eabfcbc00626"}},{"ruleId":"D2","level":"warning","message":{"text":"Common.SkipQuoteCharacters (cognitive 21): Common.SkipQuoteCharacters has cognitive complexity 21 (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/Notepads.Controls/MarkdownTextBlock/Markdown/Helpers/Common.cs"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"146d271e719a10cf886160845778c7aab10482318876b047f8b353fb0ac2415c"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionManager.SaveSessionAsync (cognitive 20): SessionManager.SaveSessionAsync has cognitive complexity 20 (threshold 15). 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Notepads/Core/SessionManager.cs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c1fba800da1dfbc3c3747cdbf860e8cb501bc1eace138c959a7140ab371a553"}},{"ruleId":"D2","level":"warning","message":{"text":"NotepadsMainPage.SaveAsync (cognitive 18): NotepadsMainPage.SaveAsync has cognitive complexity 18 (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/Notepads/Views/MainPage/NotepadsMainPage.IO.cs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"abd25d4863f1a929dab6125bc356c3a40d9202f5a0cc3f4441602b7a9fb5f686"}},{"ruleId":"D2","level":"warning","message":{"text":"ListBlock.ReplaceStringBuilders (cognitive 18): ListBlock.ReplaceStringBuilders has cognitive complexity 18 (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/Notepads.Controls/MarkdownTextBlock/Markdown/Blocks/ListBlock.cs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffe168db0c2e9c68d65c3e748b3064abd826cac493417d8aa1c9cf08704fb757"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownTable.MeasureOverride (cognitive 18): MarkdownTable.MeasureOverride has cognitive complexity 18 (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/Notepads.Controls/MarkdownTextBlock/Markdown/Render/MarkdownTable.cs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"7834000f966c3df8efbe8c2878308238ba7968674e3b98baecf0b766483485f1"}},{"ruleId":"D2","level":"warning","message":{"text":"NotepadsCore.Sets_DragOver (cognitive 17): NotepadsCore.Sets_DragOver has cognitive complexity 17 (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/Notepads/Core/NotepadsCore.cs"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"f194c423bf477ca14f5e69a87f67de67b8a9cefaa60ed7b46f1fe3b0d2c32d6b"}},{"ruleId":"D2","level":"warning","message":{"text":"ListBlock.ParseItemPreamble (cognitive 17): ListBlock.ParseItemPreamble has cognitive complexity 17 (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/Notepads.Controls/MarkdownTextBlock/Markdown/Blocks/ListBlock.cs"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"08f04a51b7148ba0bf2821f2b602ca4477d742dcdaf8729acfa75d97d8282757"}},{"ruleId":"D2","level":"warning","message":{"text":"FileSystemUtility.GetAbsolutePathFromCommandLine (cognitive 16): FileSystemUtility.GetAbsolutePathFromCommandLine has cognitive complexity 16 (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/Notepads/Utilities/FileSystemUtility.cs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5244b3fae6bc83b06a9c4c87fb592169282ed280bdb3d84bc78f395b0d35d29"}},{"ruleId":"D2","level":"warning","message":{"text":"FileSystemUtility.RemoveExecutableNameOrPathFromCommandLineArgs (cognitive 16): FileSystemUtility.RemoveExecutableNameOrPathFromCommandLineArgs has cognitive complexity 16 (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/Notepads/Utilities/FileSystemUtility.cs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2f766cc86966eed48cbfa668bd5b483ede4f2ce7afeda739de5e44bc42e216f"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownRenderer.AllTextIsSuperscript (cognitive 16): MarkdownRenderer.AllTextIsSuperscript has cognitive complexity 16 (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/Notepads.Controls/MarkdownTextBlock/Markdown/Render/MarkdownRenderer.cs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7a2e64fa55556607061d4a90dd69326b92172eb6654b97fa18cecc80cd38570"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TextEditorCore: TooManyMethods \u2014 1197 significant lines (blank, comment-only and punctuation-only lines excluded), 100 methods, declared across 12 files: TextEditor/TextEditorCore.cs (53), TextEditor/TextEditorCore.ExternalEventListener.cs (11), TextEditor/TextEditorCore.FindAndReplace.cs (10), TextEditor/TextEditorCore.LineNumbers.cs (8), \u002B8 more file(s). 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/Notepads/Controls/TextEditor/TextEditorCore.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"85da4ab80e3248e4373aa98c4d1afd339efa4c40d3f921b3e96a2a0dc166cb4d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NotepadsMainPage: TooManyMethods \u2014 945 significant lines (blank, comment-only and punctuation-only lines excluded), 81 methods, declared across 7 files: MainPage/NotepadsMainPage.StatusBar.cs (33), MainPage/NotepadsMainPage.xaml.cs (23), MainPage/NotepadsMainPage.IO.cs (12), MainPage/NotepadsMainPage.Theme.cs (4), \u002B3 more file(s). 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/Notepads/Views/MainPage/NotepadsMainPage.StatusBar.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"19547e895be9a328339f223550ffd7eb8bb9dae3dbbaa19115e452c339be952e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TextEditor: TooManyMethods \u2014 585 significant lines (blank, comment-only and punctuation-only lines excluded), 65 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/Notepads/Controls/TextEditor/TextEditor.xaml.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"48b744310355066fe91e06d20a611fa1a6b4c51406a32504fb667013e24e71e4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: EmojiInline: ClassTooLong \u2014 854 significant lines (blank, comment-only and punctuation-only lines excluded), 3 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/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/EmojiInline.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a80599e846cf7e06585fc9a94a78f606c851c96cd844029b524d4efabbb6f8f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MarkdownTextBlock: ClassTooLong \u2014 833 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods, declared across 3 files: MarkdownTextBlock/MarkdownTextBlock.Methods.cs (9), MarkdownTextBlock/MarkdownTextBlock.cs (5), MarkdownTextBlock/MarkdownTextBlock.Events.cs (4). 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/Notepads.Controls/MarkdownTextBlock/MarkdownTextBlock.Methods.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2e5a1d9beecf225d21e90e5405a0a9edf43707b579e5578b592304814fd5383"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NotepadsCore: TooManyMethods \u2014 433 significant lines (blank, comment-only and punctuation-only lines excluded), 49 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/Notepads/Core/NotepadsCore.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c839f42e8b8df250cf1857283f7c38cee86a86aeaf7a8dfb8fcd54a1c278d15d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MarkdownRenderer: ClassTooLong \u2014 649 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods, declared across 3 files: Render/MarkdownRenderer.Inlines.cs (12), Render/MarkdownRenderer.Blocks.cs (9), Render/MarkdownRenderer.cs (8). 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/Notepads.Controls/MarkdownTextBlock/Markdown/Render/MarkdownRenderer.Inlines.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"24f903d109076973ebe5e10dab0a72f203041c6fb07101a5b39296e08dd4f9f2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SetsView: TooManyMethods \u2014 453 significant lines (blank, comment-only and punctuation-only lines excluded), 39 methods, declared across 4 files: SetsView/SetsView.cs (24), SetsView/SetsView.HeaderLayout.cs (6), SetsView/SetsView.ItemSources.cs (5), SetsView/SetsView.Properties.cs (4). 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/Notepads.Controls/SetsView/SetsView.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bfc7c2a8dc7fb20c4f2e445af9a4c71d8e1d04a8845fc592ff7187e5af91478"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: TextEditor/TextEditor.xaml.cs: FileTooLong \u2014 615 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/Notepads/Controls/TextEditor/TextEditor.xaml.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"12be45531f99b69b79f1cee014e7ee99377013631b23a58296e16e0493b1a45b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GridSplitter: TooManyMethods \u2014 473 significant lines (blank, comment-only and punctuation-only lines excluded), 35 methods, declared across 4 files: GridSplitter/GridSplitter.Helper.cs (14), GridSplitter/GridSplitter.Events.cs (8), GridSplitter/GridSplitter.cs (8), GridSplitter/GridSplitter.Options.cs (5). 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/Notepads.Controls/GridSplitter/GridSplitter.Helper.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddca4680a2aff9998e46dea9dcbcdb3861b2fae7a99f3fec69f1c8ff3c782efa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): src/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/BoldItalicTextInline.cs:67-101 | src/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/BoldTextInline.cs:62-90 \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. 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/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/BoldItalicTextInline.cs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"57bf5a45a0aea071937459636f01cce3941e8de7f1a8c5438b06df19f86fad67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/Notepads/Controls/TextEditor/TextEditorCore.FindAndReplace.cs:268-284 | src/Notepads/Controls/TextEditor/TextEditorCore.FindAndReplace.cs:305-321 \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/Notepads/Controls/TextEditor/TextEditorCore.FindAndReplace.cs:268\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/Notepads/Controls/TextEditor/TextEditorCore.FindAndReplace.cs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"82c8e2e7b2604537a260c7cc44d6b1f0795d262fbeb080f8c25d430645bbb2e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/Notepads/Controls/TextEditor/TextEditorCore.Indentation.cs:74-90 | src/Notepads/Controls/TextEditor/TextEditorCore.Indentation.cs:197-213 \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/Notepads/Controls/TextEditor/TextEditorCore.Indentation.cs:74\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/Notepads/Controls/TextEditor/TextEditorCore.Indentation.cs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"b913a5562168dcdaae77ec9e55f4bf236bc04d48ce8c158429190cfab08ea63e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/HyperlinkInline.cs:206-222 | src/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/HyperlinkInline.cs:258-274 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/HyperlinkInline.cs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"34332b2a22c5de9ecb8f2dd17a20ffa3065ef0193862b38100e1d83224d72eaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/HyperlinkInline.cs:346-361 | src/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/HyperlinkInline.cs:371-386 \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/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/HyperlinkInline.cs:346\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/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/HyperlinkInline.cs"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4f6eaad3071cd04e58b968bf37369ed3b99c487fab8af3209f37186d3d4fedc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/Notepads/Controls/Print/PrintArgs.cs:437-448 | src/Notepads/Controls/Print/PrintArgs.cs:456-467 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Notepads/Controls/Print/PrintArgs.cs"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ffc53ba974f082b0998a54c6d39fb7f57fcc5021335c03f4207352198f37814"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/Notepads/Extensions/StringExtensions.cs:34-44 | src/Notepads/Extensions/StringExtensions.cs:56-66 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Notepads/Extensions/StringExtensions.cs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9ccfe96a6272dffedaa7a961e4ec6626fab0b65b75e0cff400a7c54b5be3f6e"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: Notepads.Controls: Notepads.Controls: abstractness 0.18, instability 0.00, distance 0.82 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"f6e8cb9084feeea3830b6daaeab625c7db807bfa3f71ef41eec85d8d3c590d0a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: GoToControl (LCOM4 7): GoToControl\u0027s methods form 7 groups that share no state and don\u0027t call each other \u2014 a sign it may have several responsibilities. Review whether it splits into focused classes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Notepads/Controls/GoTo/GoToControl.xaml.cs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcc03d60a08b059615f635837f08abd643d73321bb3a3d42f720af7a06670008"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: FindAndReplaceControl (LCOM4 6): FindAndReplaceControl\u0027s methods form 6 groups that share no state and don\u0027t call each other \u2014 a sign it may have several responsibilities. Review whether it splits into focused classes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Notepads/Controls/FindAndReplace/FindAndReplaceControl.xaml.cs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"699e3a9575dcdbd24eecb308254b0739996649439b6c9f983875f77578041ff2"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: TextAndEditorSettingsPage (LCOM4 6): TextAndEditorSettingsPage\u0027s methods form 6 groups that share no state and don\u0027t call each other \u2014 a sign it may have several responsibilities. Review whether it splits into focused classes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Notepads/Views/Settings/TextAndEditorSettingsPage.xaml.cs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1cadf7d305e6850349e9eaee3bc571723ac204a5c082aa6892df64a86b1d948"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: TextEditor (LCOM4 4): TextEditor\u0027s methods form 4 groups that share no state and don\u0027t call each other \u2014 a sign it may have several responsibilities. Review whether it splits into focused classes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Notepads/Controls/TextEditor/TextEditor.xaml.cs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"d40a062582ae67ab09000fbb1fce90dbf61c322b00c9a77a9c2cafb9727e8be6"}},{"ruleId":"D8","level":"error","message":{"text":"No automated tests: No automated tests \u2014 no test code was found in this repository. Untested code is the largest single risk to changing it safely."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3132564c6310e5d01a231f252a02d5d2f5a542c0a8fa29a14c89693f1e3df871"}},{"ruleId":"D9","level":"note","message":{"text":"No tests found: No test suite could be collected \u2014 nothing here references a test framework (xUnit, NUnit or MSTest), so there were no discoverable tests to count. Tests written as plain executables or shell/PowerShell harnesses are not collectible this way and are not scored here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c9bf64cbb5a4ae13d6bcd01fa3bc8d2879d860c73bc67f176ee3c2cecb8adce3"}},{"ruleId":"D16","level":"warning","message":{"text":"dormant codebase \u2014 no living knowledge left to concentrate: All 65 significant source file(s) were last meaningfully changed so long ago that no living knowledge remains \u2014 nothing since has been substantial enough to re-establish ownership (a broad, mechanical sweep that touches many files shallowly does not count, and neither does no activity at all). There is no concentration to measure, so the bus factor is not scored. This is not a clean bill: nobody currently holds working knowledge of this code (see D34 Knowledge Freshness)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"569d55ea5cb0330f13c125b289d07e5abdfcceac947a2c2645277937942e7d5f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This doesn\u0027t stop the multiple calls if we\u0027re in our faked \u0027White\u0027 HighContrast Mode below. \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/Notepads.Controls/Helpers/ThemeListener.cs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"919e09ce6406ad2fc6d70936ba8d51f3d39f2b0f423ed179cb82d85bae3412df"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Not sure if HighContrastScheme names are localized? \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/Notepads.Controls/Helpers/ThemeListener.cs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"8af418455f7cebaadb00731a0afef712bf9d6ab5227e05ac7848df3f810d014f"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK: in case end \u003C start happens \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Notepads.Controls/MarkdownTextBlock/Markdown/Inlines/TextRunInline.cs"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"48c6812069c1f30dadd6e0b5f6c358c19dca19719efa728b85965b5782023141"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK: Superscript is not allowed within a hyperlink.  But if we switch it around, so \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Notepads.Controls/MarkdownTextBlock/Markdown/Render/MarkdownRenderer.Inlines.cs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"f702c12228b135e2ac21cdf72ba4e03c7eb94a672bfb49b48eeb029ced59861b"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // THE HACK IS ON! \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Notepads.Controls/MarkdownTextBlock/Markdown/Render/MarkdownRenderer.Inlines.cs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"84d6265d53c665de59a7b407e1e52d5b3e661796599b03cb201cccd9e3591d30"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or \u2014 where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Notepads.Controls/MarkdownTextBlock/Markdown/Render/MarkdownRenderer.Inlines.cs"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"a61c779a56a6040914cb2939de9df45ab327315b3898d8a060145cbaf1329a32"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or \u2014 where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Notepads/Core/NotepadsCore.cs"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c090ecec76e4138d4200e7677b624614e2c1727fa22a28e5c704a736e90b4ea"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or \u2014 where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Notepads/Services/ThemeSettingsService.cs"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4809d25b9c27c697c8cc1d0fd2ac1900ab90e7b38b390cfe1be47f807eb0d16"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or \u2014 where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Notepads/Utilities/SessionUtility.cs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cfd8560825f2ea50665693571e1630831ca702de116a4763b05723a5f31970e"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Narrow the catch to the exception you actually expect, record it through whatever this codebase already uses to report problems, or \u2014 where swallowing really is correct, as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 write down WHY in a comment on the catch. The comment has to give the reason: a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all and leaves this row in place. Any of the three makes the decision reviewable; all three clear this row."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Notepads/Views/MainPage/NotepadsMainPage.IO.cs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e694712d5f71fd08ef78bcde2cbbfedee40289c5ec8c9bd2427031694967749"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: we can skip this step if none of the column widths changed, and just re-use \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/Notepads.Controls/MarkdownTextBlock/Markdown/Render/MarkdownTable.cs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"377e44ef0c8b627c5e0ae5e0ff228ddaa09ba394381532cbe09de0061e8c5433"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 5 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Notepads.Controls/MarkdownTextBlock/MarkdownTextBlock.Methods.cs"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb1b78907628efdf76b01a3dcbb9bbdeffffc663830b48d8545ea751cb0b83d"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 7 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Notepads.Controls/MarkdownTextBlock/MarkdownTextBlock.cs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"52f9baf681d6e5179648250bd03b747b116f8fac83184e28ac9b814bb1156ccd"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 7 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Notepads.Controls/MarkdownTextBlock/MarkdownTextBlock.cs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"b752f65677c087d545113c8432926689abf14c12a305a9892466d65da7a49c5f"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 7 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Notepads/Controls/TextEditor/TextEditorCore.cs"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"243ce94b64006151e00d8a4ff362c5f6795793c8d9b88bf528c999c7d751e734"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 3 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Notepads.Controls/MarkdownTextBlock/MarkdownTextBlock.cs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fbc384f00cbcaadec8a933181984b1dae0bc435c2642dd7d0a37631d7b52a3c"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 3 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Notepads/Services/AnalyticsService.cs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"62fa13c31f93e8f6b9d3619dedd691c8b5cf58ebe5b846adef6328677281200e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Consolidate this logic with above better? \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/Notepads.Controls/SetsView/SetsView.HeaderLayout.cs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"913df1324ffe8083442075d952112856c4aaa969e90651c0aeb8f26d1ab30428"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //// TODO: If it\u0027s less, should we move the selected set to only be the one shown by default? \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/Notepads.Controls/SetsView/SetsView.HeaderLayout.cs"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"96283d525e45adacba9e1dd87d23ce4ebcbed3d597bf26fe7e02c2756e563218"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Should this be based on SetsWidthMode \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/Notepads.Controls/SetsView/SetsView.cs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"529801f98f67ff26cc222d3abb0ee9b16bf05ceec1bb67e10168333ed274ad00"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK: Simulate left most and right most (tab) edge shadow \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Notepads.Controls/SetsView/SetsView.cs"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1c5f710c88d85b5411a5562741439e56d39f6a57632e2a1e10f508a5dd19992"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Load state from previously suspended application \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/Notepads/App.xaml.cs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"21a9b5226c900d6daf88c4db1895a9cc7768a7c9298dc7739f079f853e903f52"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 10 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Notepads/App.xaml.cs"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eb77bb850dcbb097518df23f6f5760f64c493ee7891060dd313d4f7fc928750"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 6 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Notepads/Controls/Markdown/MarkdownExtensionView.xaml.cs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"018efc9d19c92f33bacb2026127a0545d551cab9170c5e86b1e5a5bb33ac4385"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Use Content Dialog to display error message \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/Notepads/Core/TabContextFlyout.cs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbbd86ca7fd678e0a0a71474a20d42cf49f44dc104b5d72df7c3c871180f09db"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Use Content Dialog to display error message \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/Notepads/Views/MainPage/NotepadsMainPage.IO.cs"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"549470c234ef88dfb093c442a43839c566c923b7dec0d869b596eac8279c07a8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Simplify this to use a single line, reduce complexity of properties by all the callers \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/Notepads/Services/AnalyticsService.cs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e224c75e0979d55b50c631e0ac85be72ea62b63be958903867e34f415ecdcd"}},{"ruleId":"D17","level":"error","message":{"text":"NoWarnInCsproj repeated 21 times in 2 files: The identical NoWarnInCsproj (\u00602008\u0060) appears 21 times in 2 files \u2014 one decision applied repeatedly (e.g. the same rule silenced on every overload of a fluent API), not 21 independent debts. Decide it once \u2014 at the type or project level, or by fixing the underlying pattern \u2014 rather than occurrence-by-occurrence. (Every occurrence still counts toward the score and metrics.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Notepads/Notepads.csproj"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc39d22b249f292ed59aaafa489a4a6fad3608bd3849569db17d8d4859e168fd"}},{"ruleId":"D19","level":"warning","message":{"text":"Low XML-doc coverage: Notepads: Notepads: 3 % XML-doc coverage (18/585)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Notepads/Notepads.csproj"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c95fa21c8569bab8a68cf5a32ba3df1125cdcea3ffc9c63997141d5ce3beae31"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Licensed to the .NET Foundation under one or more agreements.\u0022 \u2014 keep as license header, but duplicate in file-level comments; no action needed"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Notepads.Controls/DropShadowPanel/DropShadowPanel.Properties.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e221c967508b43b949aad81421ba74625165d4d1e72792d46d3c26c55c21758d"}},{"ruleId":"D26","level":"note","message":{"text":"Split Notepads: A \u0027Notepads\u0027 project at 14k LoC and 95 types across 19 unrelated namespaces is a sprawling grab-bag. Suggested: by namespace: NotePadEditor, NotePadHistory, NotePadSync"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7e4e1f09614b690f99b120f53d033c33cad14b60920bf93e9036e02d2db65b43"}},{"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":"d5b8f11381d61a58459ffc7c595fd52d09c03c711894a63a9578043d2338412b"},"taxa":[{"id":"CWE-829","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":"f33d6a196cc65eb82f2fbb1dc4f25d8b84e5121e158172c3f066e651a0f537a2"},"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":"aa84aa04c795491fd1a99a92067abcc66187a7900ca26052880e505993fd14f0"},"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":"c362326fa4cb2bd08f84f84b028c18e3b5a3c891aa3dcbdf4770720fc9315e31"},"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":"3f24cd2d7437babffa17560a4abd3ebb43f76493c23e407417ec053405a413cb"},"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":"2a8d94bd3b980afef8bed2dfd67c650d9a6330ef00a612f28ef953d51b38f785"},"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":"2d9986f27ad2d60bd9d970d80788f676017c491307207d0941ac89e2daf3ef06"},"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":"c19d3f28a3903147b5d9eeba94fbecbe601186b3f891ff8318443bd12c79248e"},"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":"dcfbdf42dc4db8840e38f437a84318b407338b1f6d6f1d69aa1ee424439bee63"},"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":"63deb62b4f8221243ecb222720906f745e53f615f467fa7b5e7db8e1dde3e8a3"},"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":"262c8917888e41802823342d64479fa664756e31bdbbdff75c2e9988f2d40166"},"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":"21fb7b0f0caacef12f470df760ea77b743af471f50708245a694360ae88f4d96"},"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":"0681dd88b9415b7f96ac5487fb738e97ead8da8adba3a1d59de0ef452c8d7ea3"},"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":"b57167e68b491bcee8e1598a618c1c1537f82cc52961202cabea3c9e45fa476d"},"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":"b098db1ece5319f24ada5e45b4efb90f4f55701b65f6b5be7e2a11b0aa0bce17"},"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":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Notepads/Controls/Print/PrintArgs.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"df5beda2c04a23b780ac5ccaa0a1951bf90352dcb3dd673c619897351abe63d9"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 2 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than listed individually (3 orphaned of 115 analysed files in total, counted over production source files of roughly 100 lines or more, excluding tests, vendored, generated and example/demo trees, largest first)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"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":"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"}}],"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-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"CWE-829","shortDescription":{"text":"CWE-829"},"helpUri":"https://cwe.mitre.org/data/definitions/829.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":19,"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."]}]}