{"$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":"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"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"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":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"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"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"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"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"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"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"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"},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF1","name":"Benchmark discipline","shortDescription":{"text":"Benchmark discipline"},"helpUri":"https://codehealth.canine.dev/dimensions/PF1"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"PreTrainedTokenizer.applyChatTemplate (cyclomatic 28): PreTrainedTokenizer.applyChatTemplate has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Tokenizers/Tokenizer.swift"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"0addb5c0abe3dae1ea5e8b185c40582c57d1b122ff44ffd016cf5af46d620878"}},{"ruleId":"D1","level":"warning","message":{"text":"DownloadProgressBridge.emitIfNeeded (cyclomatic 22): DownloadProgressBridge.emitIfNeeded has cyclomatic complexity 22 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Hub/HubApi.swift"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca29ff3a116ff6be0057e3b0b9d5802c8c2f6f09103cb1f98c30c45e83755313"}},{"ruleId":"D1","level":"warning","message":{"text":"Data.== (cyclomatic 21): Data.== has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Hub/Config.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d0233e07fa43e5e9123d502278b5a0810cc21324e2d4046a6496d4646f93d6"}},{"ruleId":"D1","level":"warning","message":{"text":"BPETokenizer.bpe (cyclomatic 19): BPETokenizer.bpe has cyclomatic complexity 19 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Tokenizers/BPETokenizer.swift"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"19238f9e1d44e926aa02638d1551f4d7f96a4a131eeff01c1ed2051a751ff813"}},{"ruleId":"D1","level":"warning","message":{"text":"Config.convertToBinaryDistinctKeys (cyclomatic 18): Config.convertToBinaryDistinctKeys has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Hub/Config.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"244021ca5c4eeb99e7231d4df152639ce7ff855e207862ae31c89168ca191873"}},{"ruleId":"D1","level":"warning","message":{"text":"UnicodeScalar.isCJKUnifiedIdeograph (cyclomatic 16): UnicodeScalar.isCJKUnifiedIdeograph has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Tokenizers/Normalizer.swift"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"32062400de23e99c3b9ceb6404a9415e3e0bd2a3791223d838907bb955396f17"}},{"ruleId":"D2","level":"warning","message":{"text":"PreTrainedTokenizer.applyChatTemplate (cognitive 45): PreTrainedTokenizer.applyChatTemplate has cognitive complexity 45 (threshold 15). Drivers by points: if/else 21 (36 pts), boolean chains 6, loops 2 (3 pts) (nesting depth added 16). 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":"Sources/Tokenizers/Tokenizer.swift"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"4675811fc8afa36af9d18da44a8171d0c6b13460874c9174c0f85a9dabc4c1d1"}},{"ruleId":"D2","level":"warning","message":{"text":"RedirectDelegate.urlSession (cognitive 30): RedirectDelegate.urlSession has cognitive complexity 30 (threshold 15). Drivers by points: if/else 6 (21 pts), loops 1 (7 pts), boolean chains 2 (nesting depth added 21). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Hub/HubApi.swift"},"region":{"startLine":1360}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2e6c0be438d94bc244f0018f4252fb2771631b119d5b65b0924419ad8a148e2"}},{"ruleId":"D2","level":"warning","message":{"text":"LanguageModelConfigurationFromHub.loadConfig (cognitive 25): LanguageModelConfigurationFromHub.loadConfig has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 2, error handling 2 (nesting depth added 10). 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":"Sources/Hub/Hub.swift"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"107863402552132c4d56aa315bab029793f0f9f373d6f9fe5275b386f440279c"}},{"ruleId":"D2","level":"warning","message":{"text":"BPETokenizer.bpe (cognitive 25): BPETokenizer.bpe has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 4, loops 4, ternaries 2 (4 pts) (nesting depth added 7). Of this number, 21 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. 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":"Sources/Tokenizers/BPETokenizer.swift"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1083bc369bac0b6423016f52420bf3ead30b9c96e39543f14f56bcef726997d"}},{"ruleId":"D2","level":"warning","message":{"text":"HubApi.snapshot (cognitive 23): HubApi.snapshot has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 2 (3 pts) (nesting depth added 12). 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":"Sources/Hub/HubApi.swift"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b8c842efb278c823ef470365d924f6f8bb1307213dfb7f285068de2817f869e"}},{"ruleId":"D2","level":"warning","message":{"text":"DownloadProgressBridge.emitIfNeeded (cognitive 23): DownloadProgressBridge.emitIfNeeded has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 15, if/else 6, ternaries 1 (2 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Hub/HubApi.swift"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"360bf3a31d8c8d5a7b4c7f0b1cece6957bb3b4c88d1db3e44d9475b81e49446c"}},{"ruleId":"D2","level":"warning","message":{"text":"Data.== (cognitive 20): Data.== has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (18 pts), match/switch 2 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Hub/Config.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d88de28389370e8b45ba77560ea35bc9d09306dee2bc915a02822514773f564"}},{"ruleId":"D2","level":"warning","message":{"text":"Config.convertToBinaryDistinctKeys (cognitive 19): Config.convertToBinaryDistinctKeys has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 5, match/switch 1 (2 pts) (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":"Sources/Hub/Config.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5162774dd065b30e95e8cea3d947f464284f8cefb7530249ca0e89c8828485c"}},{"ruleId":"D2","level":"warning","message":{"text":"TokenLattice.viterbi (cognitive 18): TokenLattice.viterbi has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 4 (7 pts), boolean chains 1 (nesting depth added 9). 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":"Sources/Tokenizers/TokenLattice.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d0dd05b1ef6551d0c807d75092a94177aad176ceb68f1c4b19742d3a2b5b2c1"}},{"ruleId":"D2","level":"warning","message":{"text":"Generation.createLogitsProcessorList (cognitive 17): Generation.createLogitsProcessorList has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 2 (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":"Sources/Generation/Generation.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"e377109f6376478386950e0f9c282a1128435e5ba99ce2a0e04a81fcfad8058a"}},{"ruleId":"D2","level":"warning","message":{"text":"HubApi.readDownloadMetadata (cognitive 17): HubApi.readDownloadMetadata has cognitive complexity 17 (threshold 15). Drivers by points: error handling 4 (10 pts), if/else 3 (7 pts) (nesting depth added 10). 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":"Sources/Hub/HubApi.swift"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fa59f302239cc6749fcc5e009a2d4dce7671e93193cc41da1cee6f22f5ed896"}},{"ruleId":"D2","level":"warning","message":{"text":"BinaryDistinctString.decodeUTF16 (cognitive 16): BinaryDistinctString.decodeUTF16 has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 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":"Sources/Hub/BinaryDistinct.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d35b56a47f97a4e252099b0030c0217740a6cb4bd9ed4928582b71df6391ff4"}},{"ruleId":"D2","level":"warning","message":{"text":"YYJSONParser.convertToConfig (cognitive 16): YYJSONParser.convertToConfig has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Hub/YYJSONParser.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"41acce2d667fe68eb14504ba404cdb0c1fab9f64e2bbce88d3f9950764435f94"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Config: TooManyMethods \u2014 56 methods. The bar is 30 methods; this is 26 over it, 1.87\u00D7 the bar. 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":"Sources/Hub/Config.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"11639f65f1990dc13fb23a03fe0e2628efefe6b968c360af835421e134e6abdc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Hub/HubApi.swift: FileTooLong \u2014 829 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 329 over it, 1.66\u00D7 the bar. 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":"Sources/Hub/HubApi.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3efc10fe1e15191d99d865e24a00146be6c1a35cba62b2cd55b1833aaa59ed41"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HubApi: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. 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":"Sources/Hub/HubApi.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"939a344b014bc37210c1dc59debb9a6ac4e8819588676328be57e612049eb5e9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Hub/Config.swift: FileTooLong \u2014 515 significant lines (blank, comment-only and punctuation-only lines excluded), about 71% of them inside a single declaration: Config (19-648). The bar is 500 significant lines; this is 15 over it, 1.03\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Hub/Config.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"39dbbcefc4a4d4f8cc209a6c8342ab9cf964888e50daa3a5fa87a56de98148a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/Tokenizers/Decoder.swift:55-71 | Sources/Tokenizers/PreTokenizer.swift:144-159 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Tokenizers/Decoder.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"22aabb8eb12bafb85e316b07dba991d3cadf969b15fa79ead773f9eb47a696c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/Tokenizers/Normalizer.swift:471-484 | Sources/Tokenizers/String\u002BPreTokenization.swift:18-30 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Tokenizers/Normalizer.swift"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"35f65444e9afc174ea75ff274f91b073e16e2eb3201fcda904de4e9f9d1cd5d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/Tokenizers/Tokenizer.swift:927-938 | Sources/Tokenizers/Tokenizer.swift:948-958 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Tokenizers/Tokenizer.swift"},"region":{"startLine":927}}}],"partialFingerprints":{"codehealthFindingId/v1":"3151dbf4039f19f8cf4b30763815d1f6985220bf77358d10faa2d7e39c6c5eec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/Tokenizers/PreTokenizer.swift:50-59 | Sources/Tokenizers/PreTokenizer.swift:284-295 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Tokenizers/PreTokenizer.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5be36601f5edc19a3a702a10a193fcd23859ebf3be2b28bd31a42e807b98df0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): Sources/Generation/LogitsWarper/MinPLogitsWarper.swift:32-42 | Sources/Generation/LogitsWarper/TopKLogitsWarper.swift:27-38 | Sources/Generation/LogitsWarper/TopPLogitsWarper.swift:30-41 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Generation/LogitsWarper/MinPLogitsWarper.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c3ba221defbb8bec81b59a09bd75526ef5149fad3606d9d72754036236c35e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/Tokenizers/Tokenizer.swift:409-427 | Sources/Tokenizers/Tokenizer.swift:739-751 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Tokenizers/Tokenizer.swift"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"88051514080641739b26b962e2097cedfe8e1527c931779cb2071418247c5568"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/Hub/BinaryDistinct.swift:255-258 | Sources/Hub/BinaryDistinct.swift:261-264 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Hub/BinaryDistinct.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"359195454bb61863e91e7f639bd14afe170e6a06cc9a23868a6ba8961160af2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 4\u002B corresponding lines): Sources/Hub/HubApi.swift:985-988 | Sources/Hub/HubApi.swift:995-998 | Sources/Hub/HubApi.swift:1001-1004 | Sources/Hub/HubApi.swift:1011-1014 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Hub/HubApi.swift"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"f486906953e6d6f65b8835fa9a203fa707073d4691b72ec01cfbd23b7cee1f91"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/Hub/HubApi.swift:978-983 | Sources/Hub/HubApi.swift:1006-1009 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Hub/HubApi.swift"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a73a0e6ca586d2444323fb2516f7de470f6c969a00c9e0b3aa7d7c7578a3a03"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/Tokenizers/BertTokenizer.swift:184-196 | Sources/Tokenizers/Normalizer.swift:228-237 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Tokenizers/BertTokenizer.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc7cbfdc8d91679df8f7840e1ef0bac2eea2acf40677f1323c11b592e38e87f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): Sources/Hub/HubApi.swift:1260-1264 | Sources/Hub/HubApi.swift:1270-1272 | Sources/Hub/HubApi.swift:1279-1281 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Hub/HubApi.swift"},"region":{"startLine":1260}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb6a6cf8d7860520c399ec0b628560c93e144c9824b60e8b0151f2921d96f01c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/Hub/HubApi.swift:990-993 | Sources/Hub/HubApi.swift:1256-1258 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Hub/HubApi.swift"},"region":{"startLine":990}}}],"partialFingerprints":{"codehealthFindingId/v1":"30ce57bd842ad0b64cb12f90b2b7fde46248476b072c1b388265b814bdbbd5bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/Generation/LogitsWarper/RepetitionPenaltyLogitsProcessor.swift:33-38 | Sources/Generation/LogitsWarper/TemperatureLogitsWarper.swift:23-28 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Generation/LogitsWarper/RepetitionPenaltyLogitsProcessor.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"97cc9e22c3a5b06e7a3c5e685c9c1b26f53aa023382de896ea6be4fb12e8f61b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/Tokenizers/BertTokenizer.swift:241-256 | Sources/Tokenizers/Normalizer.swift:239-252 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Tokenizers/BertTokenizer.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3bf7c8383484fb8acdba6db120bab835ebd12debb4d0b84598a66211f9c0f4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): Sources/Hub/HubApi.swift:651-657 | Sources/Hub/HubApi.swift:659-666 \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 \u0060Sources/Hub/HubApi.swift:659\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Hub/HubApi.swift"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b29f3c8343604c29fc1b644441967d4381e384161282ec19504dbbf8600fe1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Tokenizers/Tokenizer.swift:990-996 | Sources/Tokenizers/Tokenizer.swift:999-1005 \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":"Sources/Tokenizers/Tokenizer.swift"},"region":{"startLine":990}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d2db74b33bf704bbb61385131c79bcd4e3e2a80c5c52442ff8afd22e3cb6917"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: Hub: Hub: abstractness 0.08, instability 0.00, distance 0.92 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"fbc2544b15d479a21bb01fdf0fbaeccefc83d6e8f11c453ba71425faa6d7ba5c"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testCustomEndpointDownload: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/HubTests/HubApiTests.swift"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"549ad16c21eb0a42e6c1165812f31f61708de6f545e34a604146aff2f628723f"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: byteLevelPreTokenizerMicro: No conventional assertion call was detected, and 15 of 16 tests in \u0060Benchmarks\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Benchmarks/BPEPreTokenizeBenchmarkTests.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"27f1e23b7038ba863d6b1e52ec94b513b3345f6963d206101a3fde671a418afa"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: bpeTokenizerHelperMicro: No conventional assertion call was detected, and 15 of 16 tests in \u0060Benchmarks\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Benchmarks/BPEPreTokenizeBenchmarkTests.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"63d539b951b245ff937d75fb5ebdcaffdcb9976cd50e8ad7647cc963345ca333"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: encodeThroughput: No conventional assertion call was detected, and 15 of 16 tests in \u0060Benchmarks\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Benchmarks/BPEPreTokenizeBenchmarkTests.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"38099069092f69c9d1615c84bd9e6065299fea86a2cb7b6efb9066d5ba1c85a7"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: encodeThroughput: No conventional assertion call was detected, and 15 of 16 tests in \u0060Benchmarks\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Benchmarks/BPETokenizerBenchmarkTests.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"944c1a68bbe7295b99e5452ed026c349d39ce37e05a2918296b39aa00e635376"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: bpeMergeInnerLoop: No conventional assertion call was detected, and 15 of 16 tests in \u0060Benchmarks\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Benchmarks/BPETokenizerBenchmarkTests.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc29fc35f451eb88d8e1cd2d23a78cfac74ba4af8a4c23081914eb26cfc1675e"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: compareParsingSpeed: No conventional assertion call was detected, and 15 of 16 tests in \u0060Benchmarks\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Benchmarks/JSONParserBenchmarkTests.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c72131de5a7f8bfb9ddfa63c60bf12a54d600ac06a629ca88892a409b73a003"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: compareTokenizerLoadingSpeed: No conventional assertion call was detected, and 15 of 16 tests in \u0060Benchmarks\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Benchmarks/JSONParserBenchmarkTests.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"e51d538fe087486bc5654b5509b9c2738a6d65314637fa4348b912b5f948bdf4"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: bertPreTokenizer: No conventional assertion call was detected, and 15 of 16 tests in \u0060Benchmarks\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Benchmarks/PreTokenizeBenchmarkTests.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"3abfd9ac98a6e1929b08d87de9590e45329b430a63b0babdfc7766269bced5fe"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: whitespacePreTokenizer: No conventional assertion call was detected, and 15 of 16 tests in \u0060Benchmarks\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Benchmarks/PreTokenizeBenchmarkTests.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"187d0786a6fde940aa0668e4834a465390fe34d103f9575e269a449d05cab0cd"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: punctuationPreTokenizer: No conventional assertion call was detected, and 15 of 16 tests in \u0060Benchmarks\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Benchmarks/PreTokenizeBenchmarkTests.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"a19077e7787510c1146f641a5a99ca02cdc0a78f032729bd8e23d949642a565a"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: digitsPreTokenizer: No conventional assertion call was detected, and 15 of 16 tests in \u0060Benchmarks\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Benchmarks/PreTokenizeBenchmarkTests.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0eeaa0b43d96eca4d74c095a4290b4b5fa4c66fee846e67df47e2594ec5cb90"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: unigramTokenizeMicro: No conventional assertion call was detected, and 15 of 16 tests in \u0060Benchmarks\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Benchmarks/UnigramTokenizerBenchmarkTests.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"14343b37ccb3ae1e6532450ceb748f0f023db7fb72930e76203be9b4ec51b6bb"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: unigramTokenizeScaling: No conventional assertion call was detected, and 15 of 16 tests in \u0060Benchmarks\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Benchmarks/UnigramTokenizerBenchmarkTests.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"59144e154f7da575214b397dc9caf282c16a09d19f414881d2ac3e4b10fa1e5e"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: trieCommonPrefixSearchMicro: No conventional assertion call was detected, and 15 of 16 tests in \u0060Benchmarks\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Benchmarks/UnigramTokenizerBenchmarkTests.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"b005bbb18f998dcd9e0ca690af2d5cc886d463a3c010e9db2d385c0bdfe9589d"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: encodeThroughput: No conventional assertion call was detected, and 15 of 16 tests in \u0060Benchmarks\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Benchmarks/UnigramTokenizerBenchmarkTests.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"2431e5fc97f7880b3abb3e13d8d72ef6d8552d4825add2c9cfcd429f54a11981"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testTemperatureWarper: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GenerationTests/LogitsProcessorTests.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"af42bd0b32d4ccb48b42d695e9f18db1ee08bbeafee33c2cd8bf12bb7cc26ecd"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testTemperatureWarperWithDifferentValues: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GenerationTests/LogitsProcessorTests.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"53e2b89554797270b2267648dc63c800a4bd6a4c71a66961149770c0e4fa4426"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: missingVocabThrowsFirst: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/TokenizersTests/BPEMergesTests.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ba4be960e089c77e53b6ea02f25eeb3f098b907046d873064700f29ad488c21"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: malformedPrecompiledCharsmap: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/TokenizersTests/NormalizerTests.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"746140aa8d304fc2c3652e1cc2813268f19e5dad13de16e7ab15ad6eca8347a5"}},{"ruleId":"D11","level":"error","message":{"text":"Test declared unreliable: deepSeekQwenChatTemplate: This test is disabled or skipped with a reason naming unreliability \u2014 the repository\u0027s own words: \u0022Disabled due to race condition with TokenizerTests.deepSeekPostProcessor\u0022. A test that is skipped for flakiness is neither passing nor protecting the code it covers; either stabilise it or delete it, but do not leave it disabled indefinitely. (Found by reading the repository\u0027s own test source \u2014 the suite itself was not re-run, since the reliability runner does not support this ecosystem.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/TokenizersIntegrationTests/ChatTemplateTests.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a45fa293a96fb4b49e7bc03197e718868d2fc2a0aae7297f66de773af19ed5f"}},{"ruleId":"D12","level":"warning","message":{"text":"No Package.resolved committed (Benchmarks/Package.swift): Benchmarks/Package.swift declares 1 dependency and no \u0060.library\u0060 product, so it is an APPLICATION \u2014 but no \u0060Package.resolved\u0060 is committed beside it. Nothing records the versions a working build resolved to, so \u0060swift build\u0060 re-resolves against whatever each dependency\u0027s git host serves today and two builds of this commit are not guaranteed to be the same build. Build once and commit the resulting \u0060Package.resolved\u0060. (A published LIBRARY correctly omits its resolution \u2014 SwiftPM ignores a library\u0027s \u0060Package.resolved\u0060 when the package is consumed \u2014 which is why this is asked only of a package that ships no \u0060.library\u0060 product.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"17c769728f7f146eccfbc00c7a0d3cad4ef135f633696acfdfcef4ab06f29bf3"}},{"ruleId":"D12","level":"warning","message":{"text":"No Package.resolved committed (Examples/transformers-cli/Package.swift): Examples/transformers-cli/Package.swift declares 1 dependency and no \u0060.library\u0060 product, so it is an APPLICATION \u2014 but no \u0060Package.resolved\u0060 is committed beside it. Nothing records the versions a working build resolved to, so \u0060swift build\u0060 re-resolves against whatever each dependency\u0027s git host serves today and two builds of this commit are not guaranteed to be the same build. Build once and commit the resulting \u0060Package.resolved\u0060. (A published LIBRARY correctly omits its resolution \u2014 SwiftPM ignores a library\u0027s \u0060Package.resolved\u0060 when the package is consumed \u2014 which is why this is asked only of a package that ships no \u0060.library\u0060 product.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a1d6678e14713c9e370f7ccbbc1ff61fc6b557bfe4e71bda9a4af77499667c1b"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 1 significant file(s) lose their only recent owner: Sources/Hub/BinaryDistinct.swift. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"90b43f18184aa9b1a88a47f7f39cf9f9c63cfd1fa9e88783364f1d729c2e5e3d"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 1 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (2 single-owned of 30 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 30 of the 32 production source files in this repository met that bar). They are anonymized user #2 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: Benchmarks/Benchmarks/TokenizerBenchmarks/TokenizerBenchmarks.swift."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: test combinations with/without lowercase \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/TokenizersTests/NormalizerTests.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"aae41bc8878694bb47c4455fde1b7074d4258ef7dfc749fb9190914f21060983"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: different sections on \u003Cs\u003E \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/TokenizersTests/PreTokenizerTests.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"be4f3181b14609773f3459d3d16f425025125b599d44825b2dbcfe865d643e8f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: use a specific revision for these tests \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/HubTests/HubApiTests.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"c14202e1e03496bfdb8c7abed2248fdf0aa735a277e0caedb6d014f50910d448"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: not sure if we need to include \u0060addedTokens\u0060 in all the decoder initializers (and the protocol) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Tokenizers/Decoder.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"934be6b43ed893cf17be2ca9a4b73178718b220b14eccf3ec866e492157f8980"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: the reference implementations have a few more clones here: verify \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Tokenizers/TokenLattice.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"8925ce7c358c7133916793f5f03d61dbf7f64c55365af60ab8d772e7e8114f87"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: support lstrip, rstrip, normalized, etc. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Tokenizers/Tokenizer.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca8c8493fed583d7907be0555a71c39295fb71e9d8fb57f138a1b978a3a0b287"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: /// Hack for Llama tokenizers, see https://github.com/huggingface/transformers/blob/bcb841f0073fcd7a4fb88ea8064313c17dcab04a/src/transformers/models/llama/tokenization_llama_fast.py#L181 \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":"Sources/Tokenizers/Tokenizer.swift"},"region":{"startLine":969}}}],"partialFingerprints":{"codehealthFindingId/v1":"536fd7aeff3f1aeb12696013046a8772b6a57c568dbed02b4a781b95d889aedf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: maybe store the scores here if it\u0027s helpful? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Tokenizers/Trie.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bd64e32dfe9bfac77898f3d15a5e15f269f59db53d765d4d91f0d7778a83757"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Infer scalar type from cache or model I/O descriptors \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Models/LanguageModel.swift"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f559814cd8a54d75713c616d7a9a1705dd11881fe9c7de7d57de6942926b31f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Infer scalar type from cache or model I/O descriptors \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Models/LanguageModel.swift"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f75fb80b582f56e15cea309daf7ed55f0abf182670289dc051759f09098f0fe"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060resolveHubClientRepoID\u0060 spells \u0060ID\u0060 where 46 names in the project spell it \u0060Id\u0060: 46 of 48 names in project Generation spell the token \u0060Id\u0060 (46 of 48; unit: names in project Generation containing \u0060Id\u0060). Peers: GenerationConfig.padTokenId (Sources/Generation/GenerationConfig.swift:51); GenerationConfig.bosTokenId (Sources/Generation/GenerationConfig.swift:54); GenerationConfig.eosTokenId (Sources/Generation/GenerationConfig.swift:57); HubApi.hubRepoIdCache (Sources/Hub/HubApi.swift:119); LanguageModel.bosTokenId (Sources/Models/LanguageModel.swift:397). Rename to \u0060resolveHubClientRepoId\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Hub/HubApi.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"80b34ff7cc242f68f2f78bc23835dcec4f2b464c9e6a7ffad9ca864326fafaae"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060HubRepoIDCacheActor\u0060 spells \u0060ID\u0060 where 46 names in the project spell it \u0060Id\u0060: 46 of 48 names in project Generation spell the token \u0060Id\u0060 (46 of 48; unit: names in project Generation containing \u0060Id\u0060). Peers: GenerationConfig.padTokenId (Sources/Generation/GenerationConfig.swift:51); GenerationConfig.bosTokenId (Sources/Generation/GenerationConfig.swift:54); GenerationConfig.eosTokenId (Sources/Generation/GenerationConfig.swift:57); HubApi.hubRepoIdCache (Sources/Hub/HubApi.swift:119); LanguageModel.bosTokenId (Sources/Models/LanguageModel.swift:397). Rename to \u0060HubRepoIdCacheActor\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Hub/HubApi.swift"},"region":{"startLine":1425}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3d0c689ec36b0c05b18d0020cb94215c65bb886b5a24cd3b8aa1432f1dd17cf"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d5b8f11381d61a58459ffc7c595fd52d09c03c711894a63a9578043d2338412b"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e9b79a42c1353f66f0a4d39600ecafc51a05b89031e98896312f2acc981a4331"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 3 of 30 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 30 of the 32 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: Sources/Hub/YYJSONParser.swift, Sources/Generation/LogitsWarper/MinPLogitsWarper.swift, Sources/Generation/LogitsWarper/RepetitionPenaltyLogitsProcessor.swift. Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Hub/YYJSONParser.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab007de1b1b28722fe98752ed6844e35afdafcd3535a3fa0a35769a2a522fc66"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Generation/LogitsWarper/MinPLogitsWarper.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0dd86869f6d808ed74472843757005ab078606fd954862778e0654ba05f45d2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Generation/LogitsWarper/RepetitionPenaltyLogitsProcessor.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a56ea51900d00f88d3fe4c7708aecd52a10aa9874292a3556ae14d31c5ed69fa"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add CodeQL\u0027s Swift pack (Swift/Xcode) (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 1 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/ci.yml"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"Dependabot does not watch pip: \u0060.github/dependabot.yml\u0060 schedules updates, but no \u0060package-ecosystem\u0060 entry covers \u0060pip\u0060, which this tree depends on \u2014 so those dependencies get no update pull requests and no advisory pressure, however complete the dep-scan credit looks. Add the missing entry to the \u0060updates:\u0060 list."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/dependabot.yml"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf68ee1ea2969cbbdae4336ca738b5320c565628ea6ee894219d523831dd0f17"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Hub/Config.swift"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"916e430fc2e5cef3a197ac2a58da1a050d5c377d20ed06a3451118eeafdf1dc0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Hub/Config.swift"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cb2f460cb6685a46101d6182a6842a7c0403f3e390941b8470278b4a6981e15"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Hub/Config.swift"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"500e7ffa23b1e53192a67d9e3e9aecab167bc6b07e82aec1bd8b4b165cbc585f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Hub/Config.swift"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"49d2a1a16f4ea0db54bfe3ce899eeff92cbe3b8b2a8b850840adafc1d556f55d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Hub/Config.swift"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"4df7b31a4d194a31917c9311afa3acb1a52177f6b563959e95132940f7411142"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Hub/Config.swift"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"412bc69301b73fe6d6aaf7d33e4647e232001cf429d38927bd677188e482ff06"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Hub/Config.swift"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee15bfb8db331e1304cd76bce04f23751b45146565c5e63c842e044fd34f2094"}}],"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-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"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-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"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-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]}],"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":2,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}