{"$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":"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"]}]},{"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":"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"]}]},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29"},{"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":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/eShopOnWinUI.Presentation/Helpers/TitleBarHelper.cs:24-33 | src/eShopOnWinUI.Presentation/Helpers/TitleBarHelper.cs:52-61"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/eShopOnWinUI.Presentation/Helpers/TitleBarHelper.cs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4aa062a328189b30a635e22f2165c9805ffef96e170d613b16084f6d7477707"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: eShopOnWinUI.Domain: eShopOnWinUI.Domain: abstractness 0.25, instability 0.00, distance 0.75 \u2014 zone of pain \u2014 concrete and heavily depended-on, so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ef05e866a6c2c75224f41ccfe733ce94ce225033880cb630f1b06fc832102ac7"}},{"ruleId":"D10","level":"error","message":{"text":"No assertions (empty test): Test1: Test method has an empty body \u2014 it asserts nothing and exercises no code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Inventory.Application.UnitTests/UnitTest1.cs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"617def2fd5857e38becc2749eac89b15fd83276fe4e7bff6e37ae12d2117749c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Display the query execution speed. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: PROJ-123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/eShopOnWinUI.Application/CQRS/Decorators/QueryDiagnostics/DiagnosticQueryHandlerDecorator.cs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"c89b608d14c0d7f5d4fd9a043e44a0be01b7680e059e4248d6e4181bf99aeb3d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Move products deactivation to the domain \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: PROJ-123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/eShopOnWinUI.Application/Features/Product/DeleteProducts.cs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5274dbd04c0c7c972bb60870f74bdbc1ba272cbdd9ae0112cc6c76b76d4a4a6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Load product price from some service here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: PROJ-123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/eShopOnWinUI.Application/Features/Product/GetProductById.cs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"b040fded41f9c83c19084501d914878fa8f9d3b3685bbce4a4d390af6aa2ede1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Use mapping here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: PROJ-123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/eShopOnWinUI.Application/Features/Product/GetProductById.cs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"b040fded41f9c83c19084501d914878fa8f9d3b3685bbce4a4d390af6aa2ede1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add unique guid identifier for the future idempotence retrying mechanism. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: PROJ-123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/eShopOnWinUI.Domain/SeedWork/Events/DomainEventBase.cs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"677892077bc4a20295ce228fd168f1b9255828bcdff6cfab643f75ddd5e02aa0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Move it to the Order stage \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: PROJ-123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/eShopOnWinUI.Domain/Warehouses/Warehouse.cs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"28ad7ce56affb5947400d87b15c0e4e87777f66d3a8e85d45614f1dd8eb30225"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Log and handle exceptions as appropriate. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: PROJ-123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/eShopOnWinUI.Infrastructure/App.xaml.cs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a9811f68759062e33f58c3e5630c27aecebb4e5dc1088f993953ce588c2be01"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Use lastParameterUsed to prevent navigation to the same page with the same arguments \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: PROJ-123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/eShopOnWinUI.Infrastructure/Services/Navigation/NavigationService.cs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"8892cd683a792e40e950a6b232b8c189217c7a107bfc30d17cf6f6415ea4628e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Throw an error, if navigation has failed \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: PROJ-123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/eShopOnWinUI.Infrastructure/Services/Navigation/NavigationService.cs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"8892cd683a792e40e950a6b232b8c189217c7a107bfc30d17cf6f6415ea4628e"}},{"ruleId":"D17","level":"warning","message":{"text":"CommentedOutCode: 7 consecutive commented-code lines"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/eShopOnWinUI.Infrastructure/Services/ThemeSelector/ThemeSelectorService.cs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"54e955dbdbc9dda03a7e3508b3bb782e207ca2ac7ece108dac1891d9c96e26e0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Inject INavigationService automatically, not using Ioc. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: PROJ-123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/eShopOnWinUI.Presentation/Behaviors/NavigationViewHeaderBehavior.cs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"396e8d5b5fe7f0725a33102b4c2e29d62d4c6cf7c7762e3990fa92a9fb4493e5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Inject INavigationService automatically, not using Ioc. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: PROJ-123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/eShopOnWinUI.Presentation/Behaviors/NavigationViewHeaderBehavior.cs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"396e8d5b5fe7f0725a33102b4c2e29d62d4c6cf7c7762e3990fa92a9fb4493e5"}},{"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":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 8 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than listed individually (8 orphaned of 8 analysed files in total)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-798","name":"Use of Hard-coded Credentials"}]}],"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}}}]}