{"$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"]}]},{"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":"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":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"}]}},"results":[{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: Domain: 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":"706800fd37c7da4c1814bf4eaa84705d3da40e9ff88d663eede6e55d04fe8709"}},{"ruleId":"D8","level":"note","message":{"text":"No tests \u2014 template/sample: This repo declares itself a template / kata / sample; tests are deferred to the application built from it, so coverage is not scored here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e5ca94717741d80f619caad143078fae4342c89e6107210846d2f8d1d28343db"}},{"ruleId":"D9","level":"note","message":{"text":"No tests found: No test projects found in the repository."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c9bf64cbb5a4ae13d6bcd01fa3bc8d2879d860c73bc67f176ee3c2cecb8adce3"}},{"ruleId":"D16","level":"warning","message":{"text":"single-maintainer \u2014 knowledge-concentration (bus factor) risk: single-maintainer \u2014 knowledge-concentration (bus factor) risk (1 author(s) across 2 commit(s) sampled)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b4b49d961df742f0e507f4cc5c8094fb077ba0391a27fd015d18320865187719"}},{"ruleId":"D18","level":"warning","message":{"text":"Monorepo: only 1 of 3 solutions was scored: This repository contains 3 .NET solutions, but a scan analyzes ONE. Every score, lens, and finding here reflects only \u0060WebApp/WebApp.sln\u0060 \u2014 the other 2 (\u0060Domain/Domain.sln\u0060, \u0060PgRepository/PgRepository.sln\u0060) were not analyzed and are not represented in the headline. To cover them, scan each solution as its own target and group them in a Solution or Product for a portfolio roll-up. If a secondary solution is an archived or vendored tree, declare it \u2014 \u0060.gitattributes\u0060 (\u0060path/** linguist-vendored\u0060) or \u0060.editorconfig\u0060 (\u0060[path/**] generated_code = true\u0060) \u2014 to exclude it from discovery the same way generated code is."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"447bb11e4227696119972b805fcb72d3ced918b47fcda508d1efcfafe347e404"}},{"ruleId":"D18","level":"note","message":{"text":"Thin analysable surface across projects: 1 project(s) carry only a thin slice of real code (e.g. \u0060WebApp\u0060 with 19 significant line(s)). The mean analysable-surface weight is 74 %, lowering Solution Shape by about 2.1 point(s). Consolidate thin projects or grow them into substantial, well-scoped assemblies."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dd0b92fd965c2065080f16843920964ee00f7696ea03d87cdf61aed4cd2c746a"}},{"ruleId":"D19","level":"note","message":{"text":"No architecture or domain description, so the Clean Architecture claim is unverifiable from this single file.: Document the clean-architecture pattern (domain events, repositories, services) with an outline and a brief overview of each layer."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0d5171d2920cd7b085b5dbcb49ac571fef91cd43d0a50791e8c769afe50d8b3"}},{"ruleId":"D21","level":"note","message":{"text":"The identifier for a book is referred to as \u0027ID\u0027 in some places (e.g., Domain.Entities.Book.ID) and \u0027Id\u0027 or \u0027bookID\u0027 in others (e.g., WebApp.RecID, WebApp.Routes.GetBookTitle, Domain.IRepository.GetBook(int)). Specifically, the parameter name varies between \u0027id\u0027, \u0027ID\u0027, and \u0027bookID\u0027.: Standardize on \u0027Id\u0027 or \u0027ID\u0027 for the book identifier across all entities, repositories, and method signatures. (symbols: Domain.Entities.Book.ID, PgRepository.Models.Book.ID, Domain.IRepository.GetBook(int), Domain.UseCases.GetBookTitle(int), Domain.IRepository.GetBook(int))"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"16c2526c7710b5831365832154fcf51e2f174867d37f24f062db298979945288"}},{"ruleId":"D21","level":"note","message":{"text":"The concept of retrieving or exposing the book\u0027s title is named \u0027Title\u0027 as a property, but \u0027GetBookTitle\u0027 as a method. While this is a common pattern (property vs method), the inconsistency lies in the parameter naming for the book identifier used to fetch the title: \u0027RecID\u0027 vs \u0027int id\u0027 vs \u0027int ID\u0027.: Ensure the parameter name for the book identifier is consistent (e.g., \u0027bookId\u0027 or \u0027id\u0027) across all methods and properties related to book retrieval. (symbols: PgRepository.Models.Book.Title, WebApp.Routes.GetBookTitle(WebApp.RecID), Domain.UseCases.GetBookTitle(int))"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"666787b878a6dd1e3ba9d346c2ca810a3189aa46523fe689005dc130f477fb4b"}},{"ruleId":"D24","level":"note","message":{"text":"misleading comment: \u0022! \u0422\u043E\u043B\u044C\u043A\u043E \u0434\u043B\u044F \u0442\u0435\u0441\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F, \u043D\u0435 \u0434\u043B\u044F Production\u0022 \u2014 Remove - the comment is a misdirection; this is production-ready code. The ! only test annotation was added by hand and contradicts the real intent."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PgRepository/Context.cs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2bc953cb186a6e1ee116766be32df974eb0a335a8c5c873acd2b36209ae8937"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022\u041F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u0435 \u043A\u043D\u0438\u0433\u0438 \u0438\u0437 \u0411\u0414\u0022 \u2014 Delete - \u0027\u041F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u0435 \u043A\u043D\u0438\u0433\u0438\u0027 is the obvious intent; the comment restates it verbatim."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PgRepository/Repository.cs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"af1234b8c291c01b8a665dbc4e062bdb7e08ccf8a0a29bf22c72aa0278c4201d"}},{"ruleId":"D30","level":"error","message":{"text":"High CVE: Microsoft.Extensions.Caching.Memory 6.0.0: Microsoft.Extensions.Caching.Memory 6.0.0 (transitive) has a High advisory; affects 2 projects \u2014 one upgrade fixes all. https://github.com/advisories/[GHSA redacted]"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"f731ad12a73ffc98e36af5ede2fa695a0c9b4540e95dea58f51d97f6da68570b"}},{"ruleId":"D30","level":"error","message":{"text":"High CVE: Npgsql 6.0.3: Npgsql 6.0.3 (transitive) has a High advisory; affects 2 projects \u2014 one upgrade fixes all. https://github.com/advisories/[GHSA redacted]"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a3e8a6f7350b4c3d9c6d81536cd5358881487b3b8d3248cad9912cf7c4c531a5"}}],"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}}}]}