{"$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":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"Form1.Timer_SendDataToPLC_Tick (cyclomatic 38): Form1.Timer_SendDataToPLC_Tick has cyclomatic complexity 38 (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":"TcJoy .NET Project/TcJoy/Form1.vb"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd56b118bb5a324169b3e5e399f1b9ed710ac2e98afa16f8fb8a4718cc647822"}},{"ruleId":"D1","level":"warning","message":{"text":"Form1.Timer_HealthCheck_Tick_Slow (cyclomatic 37): Form1.Timer_HealthCheck_Tick_Slow has cyclomatic complexity 37 (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":"TcJoy .NET Project/TcJoy/Form1.vb"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"232cf5ae1a550587dcbcbe64b137abfb64449d649cacfd8d3981643a86c11c45"}},{"ruleId":"D1","level":"warning","message":{"text":"Ads_Link.AdsNotificationCallback (cyclomatic 18): Ads_Link.AdsNotificationCallback has cyclomatic complexity 18 (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":"TcJoy .NET Project/TcJoy/Ads_Link.vb"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d3da1ace173cdeca308777ae38a7cfeb8c8733c832280b01c23dc5d7f6b9abb"}},{"ruleId":"D2","level":"warning","message":{"text":"Form1.Timer_HealthCheck_Tick_Slow (cognitive 131): Form1.Timer_HealthCheck_Tick_Slow has cognitive complexity 131 (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":"TcJoy .NET Project/TcJoy/Form1.vb"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"638c65845ebaf3c8f6faa209943b0e05cc4fe833a88d96330963ab097c6b100e"}},{"ruleId":"D2","level":"warning","message":{"text":"Form1.Timer_SendDataToPLC_Tick (cognitive 31): Form1.Timer_SendDataToPLC_Tick has cognitive complexity 31 (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":"TcJoy .NET Project/TcJoy/Form1.vb"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c73e5c48081d4415134d15fdec4a8c27d7c8d932084d97dd477f24fcc3c52c4"}},{"ruleId":"D2","level":"warning","message":{"text":"Ads_Link.AdsNotificationCallback (cognitive 25): Ads_Link.AdsNotificationCallback has cognitive complexity 25 (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":"TcJoy .NET Project/TcJoy/Ads_Link.vb"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f179717a06b86c78c16555a26646fc31b8b0657e62cd6ceeddaa199bbd6e7c"}},{"ruleId":"D2","level":"warning","message":{"text":"Form1.ConnectToPLC (cognitive 16): Form1.ConnectToPLC has cognitive complexity 16 (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":"TcJoy .NET Project/TcJoy/Form1.vb"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"a699fb736d0123b91966ebd6068d5ad10fec9e6eefc951b55e133731d8fcad75"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Form1: ClassTooLong \u2014 733 significant lines (blank, comment-only and punctuation-only lines excluded), 19 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":"TcJoy .NET Project/TcJoy/Form1.vb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"596074859a43e9a70f72484572ef3a39780bbcfbc7cef3cec4777e992425df66"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: TcJoy/Form1.vb: FileTooLong \u2014 738 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":"TcJoy .NET Project/TcJoy/Form1.vb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a12d97a2219d6ee955460c6641d0b449f2939531bcd095f9460749f29e290af4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): TcJoy .NET Project/TcJoy/Ads_Link.vb:255-267 | TcJoy .NET Project/TcJoy/Ads_Link.vb:283-295 \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":"TcJoy .NET Project/TcJoy/Ads_Link.vb"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d68c3eddb9390ec9a9738fb15bf526d073df00a00e7a0f2552f37840693a665"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: J2i.Net.XInputWrapper: J2i.Net.XInputWrapper: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0d0338eec4d62abbd01201f8dbff3ef432a334f42768433a51a72a3a1cea0c06"}},{"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":"single-maintainer \u2014 knowledge-concentration (bus factor) risk: single-maintainer \u2014 knowledge-concentration (bus factor) risk (1 author(s) across 32 commit(s) sampled)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b4b49d961df742f0e507f4cc5c8094fb077ba0391a27fd015d18320865187719"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: \u0027 TODO: Any todos in code \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060\u0027 REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"TcJoy .NET Project/TcJoy/Form1.vb"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f6c2834452fc18832ba8f62cff72d7e592ed02782d92c631289452fa35c5d94"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: \u0027 TODO: Fix help tab, add help text/btns on plc settings \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060\u0027 REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"TcJoy .NET Project/TcJoy/Form1.vb"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7dc5f21527db568274049072e26bf68c6874147ad403b9ba5a2b238a031665d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: \u0027 TODO: Add donate link and possibly \u0027nag\u0027 screen \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060\u0027 REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"TcJoy .NET Project/TcJoy/Form1.vb"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5065db600192cb9b324c6f9d7320c0681f8851cd6f357090798929597ec7867"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: \u0027 TODO: Make howto video \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060\u0027 REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"TcJoy .NET Project/TcJoy/Form1.vb"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"62825b84baa1fa5c67c2d5d3978f40f904e5944cd24f4a59155dd01ffbeea36a"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: \u0027 Hack a faster response from dumb animated progress bars. \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":"TcJoy .NET Project/TcJoy/Form1.vb"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"f99b45eda087dedffe4a1be429d33b01780ffe6b7ffefb850c3087c517a3324b"}},{"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":"TcJoy .NET Project/TcJoy/Form1.vb"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a8edbd9963972a02cf076a067103f2fdaef50528f4691d00166bd546fd6db16"}},{"ruleId":"D18","level":"warning","message":{"text":"Monorepo: only 1 of 2 solutions was scored: This repository contains 2 .NET solutions, but a scan analyzes ONE. Every score, lens, and finding here reflects only \u0060TcJoy .NET Project/TcJoy.sln\u0060 \u2014 the other 1 (\u0060TcJoy TwinCAT Project/TcJoy TwinCAT Project.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":"a714c749a7ed0270f25ef54f0d77846abefb01ce5214d0fe8c64e4324d302faf"}},{"ruleId":"D19","level":"note","message":{"text":"The watchdog functionality is described but no concrete settings or fail-safe behavior is shown in text.: Describe how to set the watchdog timer in the Settings section and what happens if it expires, with a code snippet showing the setting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b46d1a513426b41ce01a125790103ea05f403aff567551288e15dcea520643"}},{"ruleId":"D19","level":"warning","message":{"text":"Low XML-doc coverage: J2i.Net.XInputWrapper: J2i.Net.XInputWrapper: 0 % XML-doc coverage (0/98)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"J2i.Net.XInputWrapper/J2i.Net.XInputWrapper.csproj"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ac2301128dfa71b910b5cbdf667c5e8e5c9d7d725df81dff8b224f43eab1119"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022[in] Index of the gamer associated with the device\u0022 \u2014 delete - XInputGetState/pSetState/pGetBatteryInformation already states this"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"J2i.Net.XInputWrapper/XInput.cs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"a76975a6020690a4ae9c886a6dddd212c1fb1335bc4492760e5cbc607d58b30e"}}],"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}}}]}