{"$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":"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":"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":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"}]}},"results":[{"ruleId":"D2","level":"warning","message":{"text":"LineChartKt.tryDrawPathPoints (cognitive 20): LineChartKt.tryDrawPathPoints has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13, boolean chains 4, match/switch 2, loops 1 (nesting depth added 5). 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":"features/chart/src/commonMain/kotlin/com/mathroda/chart/common/internal/linechart/LineChart.kt"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"cafb91f2774dbceba7d5aaa95c4f11363467bea4749702e531f8ec2ae073a8c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): features/favorite-coins/src/commonMain/kotlin/com/mathroda/favorites/components/authed_users/FavoriteCoinsAuthedUsers.kt:90-119 | features/favorite-coins/src/commonMain/kotlin/com/mathroda/favorites/components/premium_users/FavoriteCoinsPremiumUsers.kt:86-110 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060features/favorite-coins/src/commonMain/kotlin/com/mathroda/favorites/components/authed_users/FavoriteCoinsAuthedUsers.kt:90\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":"features/favorite-coins/src/commonMain/kotlin/com/mathroda/favorites/components/authed_users/FavoriteCoinsAuthedUsers.kt"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"c28434a2570c2535a2eb07abe64166e97ff08b4d62260a37b201c6bbe230c063"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): auth/forgot-password/src/commonMain/kotlin/com/mathroda/BasicForgotPasswordScreen.kt:82-97 | auth/signin/src/commonMain/kotlin/com/mathroda/signin_screen/BasicSignIn.kt:104-118 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060auth/forgot-password/src/commonMain/kotlin/com/mathroda/BasicForgotPasswordScreen.kt:82\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":"auth/forgot-password/src/commonMain/kotlin/com/mathroda/BasicForgotPasswordScreen.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"caf36253548dcd4d398b355c386036fd86bb87d34b5eb80597ff9d0aa55cfc3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): features/coins/src/commonMain/kotlin/com/mathroda/coins/components/CoinsScreenState.kt:34-49 | features/news/src/commonMain/kotlin/com/mathroda/news/components/NewsScreenState.kt:37-51 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060features/coins/src/commonMain/kotlin/com/mathroda/coins/components/CoinsScreenState.kt:34\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":"features/coins/src/commonMain/kotlin/com/mathroda/coins/components/CoinsScreenState.kt"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"644c7d3e6d6246602943bd93f97871a34764ef5b379fd5ba66745d66151f068c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): features/common/src/commonMain/kotlin/com/mathroda/common/components/CustomDialog.kt:103-117 | features/common/src/commonMain/kotlin/com/mathroda/common/components/CustomDialogSignOut.kt:81-95 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060features/common/src/commonMain/kotlin/com/mathroda/common/components/CustomDialog.kt:103\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":"features/common/src/commonMain/kotlin/com/mathroda/common/components/CustomDialog.kt"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"d56616bc409e62af2dcd3b502f46e153c0d22e5149d5fb0c33a11e47327f4603"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): auth/signin/src/commonMain/kotlin/com/mathroda/signin_screen/BasicSignIn.kt:194-207 | auth/signup/src/commonMain/kotlin/com/mathroda/signup/BasicSignUpScreen.kt:194-207 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060auth/signin/src/commonMain/kotlin/com/mathroda/signin_screen/BasicSignIn.kt:194\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":"auth/signin/src/commonMain/kotlin/com/mathroda/signin_screen/BasicSignIn.kt"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"8253a296231d662fd46dd6172f1111fe9bf6f66f12d5b2aba9a0859e2c834f65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): auth/signup/src/commonMain/kotlin/com/mathroda/signup/BasicSignUpScreen.kt:122-135 | auth/signup/src/commonMain/kotlin/com/mathroda/signup/BasicSignUpScreen.kt:140-153 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060auth/signup/src/commonMain/kotlin/com/mathroda/signup/BasicSignUpScreen.kt:122\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":"auth/signup/src/commonMain/kotlin/com/mathroda/signup/BasicSignUpScreen.kt"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1866878d19c95002815b32cebfea4c6908d510b7951ebbdc5783ae1b60d74f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): features/common/src/commonMain/kotlin/com/mathroda/common/components/CustomDialog.kt:73-86 | features/common/src/commonMain/kotlin/com/mathroda/common/components/CustomDialogSignOut.kt:48-64 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060features/common/src/commonMain/kotlin/com/mathroda/common/components/CustomDialog.kt:73\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":"features/common/src/commonMain/kotlin/com/mathroda/common/components/CustomDialog.kt"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"f74d9b5632a0d2a9b079e3c20f5d86a1f922d3ead3a0695be1530991ea3771ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): features/favorite-coins/src/commonMain/kotlin/com/mathroda/favorites/components/authed_users/FavoriteCoinsAuthedUsers.kt:62-75 | features/favorite-coins/src/commonMain/kotlin/com/mathroda/favorites/components/premium_users/FavoriteCoinsPremiumUsers.kt:61-73 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060features/favorite-coins/src/commonMain/kotlin/com/mathroda/favorites/components/authed_users/FavoriteCoinsAuthedUsers.kt:62\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":"features/favorite-coins/src/commonMain/kotlin/com/mathroda/favorites/components/authed_users/FavoriteCoinsAuthedUsers.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"1927809b496a244ff01d0dec3af36e52543a73dfb094d817ec603b56f7079e67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): features/profile/src/commonMain/kotlin/com/mathroda/profile/drawer/DrawerFooter.kt:118-130 | features/profile/src/commonMain/kotlin/com/mathroda/profile/drawer/DrawerFooter.kt:147-159 \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 \u0060features/profile/src/commonMain/kotlin/com/mathroda/profile/drawer/DrawerFooter.kt:118\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":"features/profile/src/commonMain/kotlin/com/mathroda/profile/drawer/DrawerFooter.kt"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"7439c4edd27056b87811e8a8a0d739da2fa72682cc3916e096e7ec6bc84b90d1"}},{"ruleId":"D16","level":"warning","message":{"text":"dormant codebase \u2014 no living knowledge left to concentrate: All 60 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":"D19","level":"note","message":{"text":"There is no dedicated Built With or License section in the visible text.: Add a \u0027Built With\u0027 list (Kotlin/Android, Jetpack Compose, Retrofit, Room, Coil, etc.) and a License statement for the project\u0027s open-source license."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5736b621a5434288c653d3b0e2f6a33371780a198a2ed560a3c5fd485de80cc"}},{"ruleId":"D34","level":"note","message":{"text":"Dormant codebase: 60 of 60 significant files have no living knowledge \u2014 the codebase as a whole is dormant, not 60 separate risks. Re-engage owners or document before change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4c69f1e54b7dd6fe9029dd02df6ba8f8145b789f2f18dbdaa086c40ded49dba6"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: FirebaseRepository.kt \u2194 FavoriteCoinsViewModel.kt: \u0060core-datasource/src/commonMain/kotlin/com.mathroda.datasource/firebase/FirebaseRepository.kt\u0060 (context core-datasource) and \u0060features/favorite-coins/src/commonMain/kotlin/com/mathroda/favorites/FavoriteCoinsViewModel.kt\u0060 (context features) sit in DIFFERENT parts of the tree yet change together 57% of the time (8 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core-datasource/src/commonMain/kotlin/com.mathroda.datasource/firebase/FirebaseRepository.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e610026a64edf922902475e8253878f2e746c96ad950d3cad37f4877cbdb06c"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: DashCoinApplication.kt \u2194 Constants.kt: \u0060androidApp/src/main/java/com/mathroda/dashcoin/DashCoinApplication.kt\u0060 and \u0060core/src/commonMain/kotlin/com/mathroda/core/util/Constants.kt\u0060 change together 50% of the time (7 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"androidApp/src/main/java/com/mathroda/dashcoin/DashCoinApplication.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5097f06f1690b915b02ea02d738d432574ff02992fdd45babc9a704152e57f06"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: DashCoinApi.kt \u2194 Coin.kt: \u0060core-network/src/commonMain/kotlin/com.mathroda/network/DashCoinApi.kt\u0060 and \u0060core-network/src/commonMain/kotlin/com.mathroda/network/dto/Coin.kt\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core-network/src/commonMain/kotlin/com.mathroda/network/DashCoinApi.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7d76330a9e498887ae061a229e1ea73d31c1dd6fa44cd75dde73a7bed2cb57b"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":0,"secretScannerRunsExcluded":0}}}]}