{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}]},{"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":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"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":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}]},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31"},{"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":"D2","level":"warning","message":{"text":"GetConversationsQueryHandler.HandleAsync (cognitive 28): GetConversationsQueryHandler.HandleAsync has cognitive complexity 28 (threshold 15)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SyncChat.API/Features/Conversations/GetConversations/GetConversationsQuery.cs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"b87ec3eb5de428252aa7c4c6421281dde9c0ec58113be323b278212ed74d0107"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): SyncChat.API/Features/ConversationMembers/RemoveMemberFromConversation/RemoveConversationMemberCommand.cs:118-131 | SyncChat.API/Features/ConversationMembers/RemoveMemberFromConversation/RemoveConversationMemberCommand.cs:142-155"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SyncChat.API/Features/ConversationMembers/RemoveMemberFromConversation/RemoveConversationMemberCommand.cs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"bba3a16544ac79aca85a2aff10e71acf8345446b04dff0acb8d3a78b4408de25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): SyncChat.API/Features/Messages/SendMediaMessage/SendMediaMessageCommand.cs:131-142 | SyncChat.API/Features/Messages/SendMessage/SendMessageCommand.cs:107-118"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SyncChat.API/Features/Messages/SendMediaMessage/SendMediaMessageCommand.cs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a7b3f2bff4808936fecb3b2326fc9089fa1cefb5fa07fd593bf29cd59297df2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): SyncChat.API/Features/Notifications/NotificationHub.cs:103-112 | SyncChat.API/Features/Notifications/NotificationHub.cs:117-126"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SyncChat.API/Features/Notifications/NotificationHub.cs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"2261a96f5575c7ef80101379a66a97ce95832e6181320fa651cad7f030a2971c"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: SyncChat.API: SyncChat.API: abstractness 0.11, instability 0.00, distance 0.89 \u2014 zone of pain \u2014 concrete and heavily depended-on, so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"42a1e1f10886b7fecd1949d19a577e59164657c5d95780a952d74dcc7096e9ae"}},{"ruleId":"D8","level":"warning","message":{"text":"Coverage not measured \u2014 test suite did not build: Coverage NOT MEASURED: the repo\u0027s own test suite did not build (a C#/MSBuild compiler error in the test code), so no coverage could be collected. It is excluded from the score rather than counted as a near-zero defect. Fix the test build, or commit the Cobertura/OpenCover/lcov report your CI already produces, and real coverage will be measured."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8beb176c604706486df63d2215f767f50520c8d949b1d464345de14ded442c69"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: Handler_ShouldReturnFailure_WhenResetTokenNotFound: Test method exercises code but verifies nothing \u2014 add an assertion."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SyncChat.Test/Features/Auth/PasswordReset/PasswordResetCompleteTests.cs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"e56e55403107edfb481d034a418e0f15478dd24cc2beafc2480722b295271409"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: SendEmailAsync_ShouldLogInformation_WhenEmailIsSent: Test method exercises code but verifies nothing \u2014 add an assertion."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SyncChat.Test/Infrastructure/Notifications/SmtpEmailServiceTests.cs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"28821964537746ea739cd8e3f1cd5effcb4583388dbfcb6035b313291f796334"}},{"ruleId":"D16","level":"note","message":{"text":"Small-team knowledge concentration: 33 file(s) are concentrated to one author \u2014 the ambient state with 2 active author(s), not 33 separate risks. The signal becomes meaningful as ownership spreads; no per-file action implied now."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8aa75b6daa18f1b578387fa04036c50b3163d47f957c8f5601bf083ed4489b0c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Make configurable \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":"SyncChat.API/Features/MediaManagement/InitiateUpload/InitiateUploadCommand.cs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"5146bfcff5ac091c9e2667af027a1a21be6e77bb4480ba21d880a0bdefefaff7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: no dynamic \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":"SyncChat.API/Infrastructure/Outbox/OutboxDispatcher.cs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff2f80e7be90c259c21fc814ee96e2439450e9873ebd00a84fb258f6dad7611e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: or ,bearer \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":"SyncChat.API/Infrastructure/Security/BearerSecuritySchemeTransformer.cs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"213a7dc66aa40c3e2db8cb8716e17b7da1365f019ab586c280f89550b5b977a4"}},{"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":"D26","level":"note","message":{"text":"Split SyncChat.API: A 74-namespace API project at 69k LoC is a sprawling grab-bag. Suggested: by namespace: Chat, Authentication, Messaging, Presence"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"254a3832144c58a6797b1740aa300b12dc077c8a19969801fdf4a5e49314cd1a"}},{"ruleId":"D31","level":"note","message":{"text":"Low IaC: DS-0026: No HEALTHCHECK defined"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SyncChat.API/Dockerfile"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e35475a1a68afc1c27b05127a621a19a96ab94da6ea3eda7fd4bbd993a023c8f"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 5 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than listed individually (5 orphaned of 33 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-1395","name":"Dependency on Vulnerable Third-Party Component"},{"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}}}]}