{"$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":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D22","name":"Internal API Consistency","shortDescription":{"text":"Internal API Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D22"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"id":"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":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"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":"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":"ES1","name":"Fold determinism","shortDescription":{"text":"Fold determinism"},"helpUri":"https://codehealth.canine.dev/dimensions/ES1"},{"id":"ES2","name":"Immutable events","shortDescription":{"text":"Immutable events"},"helpUri":"https://codehealth.canine.dev/dimensions/ES2"},{"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":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P8","name":"Schema migrations","shortDescription":{"text":"Schema migrations"},"helpUri":"https://codehealth.canine.dev/dimensions/P8"},{"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":"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":"serenity::client::dispatch::update_cache_with_event (cyclomatic 79): serenity::client::dispatch::update_cache_with_event has cyclomatic complexity 79 (threshold 15). 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. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/dispatch.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"c12b919cbb615bc8cadd1db24eddc03928142de886ce5c660beb84edbdcc99e1"}},{"ruleId":"D1","level":"warning","message":{"text":"EventVisitor::visit_map (cyclomatic 32): EventVisitor::visit_map has cyclomatic complexity 32 (threshold 15). 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. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"voice-model/src/event/mod.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"d19615a5f9ab95737a256402d7fc4c7beab501a69569558946de905973e582b9"}},{"ruleId":"D1","level":"warning","message":{"text":"StandardFramework::dispatch (cyclomatic 31): StandardFramework::dispatch has cyclomatic complexity 31 (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":"src/framework/standard/mod.rs"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1e7da38277165947f0d279c4a99aacbac291f2a9ddb91aca0c85a680db27347"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageUpdateEvent::apply_to_message (cyclomatic 29): MessageUpdateEvent::apply_to_message has cyclomatic complexity 29 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/model/event.rs"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0f2d8a6d5ec38c0a3490f844be4243dfdfa3cb3029fdb3a243565a46fa92bff"}},{"ruleId":"D1","level":"warning","message":{"text":"StandardFramework::should_fail (cyclomatic 21): StandardFramework::should_fail 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":"src/framework/standard/mod.rs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6abc4eaafbf473cc5588db543081f0dabddaf0d55a1af0010df83182f816f29"}},{"ruleId":"D1","level":"warning","message":{"text":"serenity::framework::standard::parse::permissions_in (cyclomatic 16): serenity::framework::standard::parse::permissions_in has cyclomatic complexity 16 (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":"src/framework/standard/parse/mod.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"5992e37bbfe99f29adadfe1d1e6ac0eaa595151f78e2bd76b9789b89c4e6b24a"}},{"ruleId":"D1","level":"warning","message":{"text":"serenity::framework::standard::parse::check_discrepancy (cyclomatic 16): serenity::framework::standard::parse::check_discrepancy has cyclomatic complexity 16 (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":"src/framework/standard/parse/mod.rs"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3b33d496eed133841d0570404c5eec899defc71c638a8f96150b9e2ede3c3a9"}},{"ruleId":"D2","level":"warning","message":{"text":"StandardFramework::dispatch (cognitive 58): StandardFramework::dispatch has cognitive complexity 58 (threshold 15). Drivers by points: if/else 24 (50 pts), boolean chains 3, loops 1 (3 pts), match/switch 2 (nesting depth added 28). 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":"src/framework/standard/mod.rs"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"4085917f83918d2cd446f4396f782215c5458d4e7f86bc52e64f53a2dae94490"}},{"ruleId":"D2","level":"warning","message":{"text":"serenity::framework::standard::help_commands::nested_commands_search (cognitive 44): serenity::framework::standard::help_commands::nested_commands_search has cognitive complexity 44 (threshold 15). Drivers by points: if/else 12 (33 pts), loops 3 (6 pts), match/switch 1 (4 pts), boolean chains 1 (nesting depth added 27). 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":"src/framework/standard/help_commands.rs"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"76d38db9c98ec8e5bd11d8e2347ed5474d571b9cd092fa0bc48229c5f3df2545"}},{"ruleId":"D2","level":"warning","message":{"text":"serenity::utils::content_safe::clean_mentions (cognitive 38): serenity::utils::content_safe::clean_mentions has cognitive complexity 38 (threshold 15). Drivers by points: if/else 8 (32 pts), match/switch 1 (5 pts), loops 1 (nesting depth added 28). 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":"src/utils/content_safe.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cdc777f9877f7c1c355d908f1f028c359f69e1db1f9cdd7d790a05ac63d4b1e"}},{"ruleId":"D2","level":"warning","message":{"text":"StandardFramework::should_fail (cognitive 34): StandardFramework::should_fail has cognitive complexity 34 (threshold 15). Drivers by points: if/else 14 (24 pts), match/switch 2 (6 pts), boolean chains 2, loops 2 (nesting depth added 14). 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":"src/framework/standard/mod.rs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"c546110e56f219c1aa5e9cece0846c4887eb543b486d072fc14d5ceb8556f4d8"}},{"ruleId":"D2","level":"warning","message":{"text":"serenity::framework::standard::parse::permissions_in (cognitive 31): serenity::framework::standard::parse::permissions_in has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (23 pts), loops 4 (7 pts), boolean chains 1 (nesting depth added 14). 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":"src/framework/standard/parse/mod.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"dceda5c7d06623b01b2dd2ac80d732c6e2b6dcd95ab40cbef1a35f5a91472615"}},{"ruleId":"D2","level":"warning","message":{"text":"ShardRunner::run (cognitive 29): ShardRunner::run has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (18 pts), match/switch 2 (6 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 17). 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":"src/gateway/bridge/shard_runner.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c4d2971edcccc1ce63b95d34c338465f147e85e9a69062da5ef32c868d6da8"}},{"ruleId":"D2","level":"warning","message":{"text":"TicketCounter::take (cognitive 28): TicketCounter::take has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14 (28 pts) (nesting depth added 14). 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":"src/framework/standard/structures/buckets.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0b410375f3dd510c7ec6bd6f4a6f4fee665121dbb73b7786b979762e3ec6736"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageUpdateEvent::apply_to_message (cognitive 28): MessageUpdateEvent::apply_to_message has cognitive complexity 28 (threshold 15). Drivers by points: if/else 28. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/model/event.rs"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b22a9596485b9130aa10151e84a70242e9cc4a634800af80813ae9785d3afa1"}},{"ruleId":"D2","level":"warning","message":{"text":"command_attr::help (cognitive 24): command_attr::help has cognitive complexity 24 (threshold 15). Drivers by points: if/else 17 (22 pts), loops 2 (nesting depth added 5). Most of this is not in the body itself: 10 of the 24 points are its own statements and the rest belongs to one function item inside it that branches (produce_strike_text). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"command_attr/src/lib.rs"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"831b0d38b040b7083f1708c35b1237714fba5e39f946cc7288910ed3502358af"}},{"ruleId":"D2","level":"warning","message":{"text":"serenity::framework::standard::parse::command (cognitive 24): serenity::framework::standard::parse::command has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (16 pts), match/switch 2 (5 pts), loops 2 (3 pts) (nesting depth added 14). Of this number, 21 points are the body\u0027s own statements and 3 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":"src/framework/standard/parse/mod.rs"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed77f99308ac7cfcff7cf33b151b2bced8b28aed34dae4339c063d4c0cdc0dde"}},{"ruleId":"D2","level":"warning","message":{"text":"serenity::utils::parse_quotes (cognitive 24): serenity::utils::parse_quotes has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 2, loops 1 (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":"src/utils/mod.rs"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"6209be934706116778ce5c9afa4d4ffdc41e56353da863632276a8d55202fd9a"}},{"ruleId":"D2","level":"warning","message":{"text":"serenity::utils::content_safe::clean_mention (cognitive 22): serenity::utils::content_safe::clean_mention has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (21 pts), match/switch 1 (nesting depth added 12). 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":"src/utils/content_safe.rs"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"905c06d11d204fd97918ca9cca60383d9d3fa8a70522e5258e2d37b173ea34ec"}},{"ruleId":"D2","level":"warning","message":{"text":"serenity::utils::parse_emoji (cognitive 22): serenity::utils::parse_emoji has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 2 (6 pts), boolean chains 2 (nesting depth added 11). 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":"src/utils/mod.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"02e7556c08ea8fcea49fcfa42559b139a773132f701ce049bced673ac2250011"}},{"ruleId":"D2","level":"warning","message":{"text":"ComponentInteractionCollector::stream (cognitive 20): ComponentInteractionCollector::stream has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (18 pts), match/switch 2 (nesting depth added 6). 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. This shape REPEATS in the file: one other method here (ModalInteractionCollector::stream) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/collector.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d7895e1289b856ebbc82b6e1f04151f5984ab5efcb203617319b689d50c2efe"}},{"ruleId":"D2","level":"warning","message":{"text":"ModalInteractionCollector::stream (cognitive 20): ModalInteractionCollector::stream has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (18 pts), match/switch 2 (nesting depth added 6). 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. This shape REPEATS in the file: one other method here (ComponentInteractionCollector::stream) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/collector.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bbe0486e94f8f375d18fb3994959eedf8efdb880bc529a5e73438e67ba787a6"}},{"ruleId":"D2","level":"warning","message":{"text":"serenity::framework::standard::help_commands::create_customised_help_data (cognitive 20): serenity::framework::standard::help_commands::create_customised_help_data has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 1 (3 pts), match/switch 1 (2 pts) (nesting depth added 8). 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":"src/framework/standard/help_commands.rs"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f15c9edfe19aadfbccdc4c8f1d11a138f13376cbf6ab3a1984d682ba16d27c3"}},{"ruleId":"D2","level":"warning","message":{"text":"Guild::user_permissions_in_ (cognitive 19): Guild::user_permissions_in_ has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), match/switch 1 (3 pts), loops 1 (2 pts) (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":"src/model/guild/mod.rs"},"region":{"startLine":2024}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d562e2268b4415e22593f3c0fe5a5d1bc21cd9339b52bbc9eb50a62fe92fed9"}},{"ruleId":"D2","level":"warning","message":{"text":"serenity::framework::standard::help_commands::nested_group_command_search (cognitive 19): serenity::framework::standard::help_commands::nested_group_command_search has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 8). 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":"src/framework/standard/help_commands.rs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"f72b9f93241961005be85be893c141623fd3362001ab998bf24034fedb61e68f"}},{"ruleId":"D2","level":"warning","message":{"text":"serenity::framework::standard::parse::check_discrepancy (cognitive 19): serenity::framework::standard::parse::check_discrepancy has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 7, match/switch 1 (2 pts) (nesting depth added 4). 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":"src/framework/standard/parse/mod.rs"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"ced20c58ba80f6d4805cdfe421661fce2dcbf109c1b1432f9145476d66aab3bd"}},{"ruleId":"D2","level":"warning","message":{"text":"ReactionCollector::stream (cognitive 17): ReactionCollector::stream has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 pts), match/switch 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":"src/collector.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"9389ef4c5160b88a099accf110be85ad99d204a7075d8f8ddd43a7ca2aa6a256"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Http: ClassTooLong \u2014 3081 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 206 methods, 3 blocks, lines 197-5268. The bar is 400 significant lines; this is 2681 over it, 7.70\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":"src/http/client.rs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4f38c93953592051cc96e022fd79dc59f460e8c2b83f04d13e5cb30ac851e8c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Http: TooManyMethods \u2014 206 methods. The bar is 30 methods; this is 176 over it, 6.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":"src/http/client.rs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"f65d629a866644e5d81c906ef498f9d10e1ff2c28ca54e983df0d8ddf85845a5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: http/client.rs: FileTooLong \u2014 3189 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 97% of them inside a single declaration: Http (3 blocks, 197-5268). The bar is 500 significant lines; this is 2689 over it, 6.38\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":"src/http/client.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b473fe683fbc8c4ec5807b497b5c27d43490a96de34c8ace2efdcbd339f9b3b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Guild: TooManyMethods \u2014 113 methods. The bar is 30 methods; this is 83 over it, 3.77\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":"src/model/guild/mod.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"623ba33547c28312078aa1104f28b55027a945bcb764c8e1093ed2cae9b50ce4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GuildId: TooManyMethods \u2014 102 methods, declared across 2 files: guild/guild_id.rs (99), model/id.rs (3). The bar is 30 methods; this is 72 over it, 3.40\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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":"src/model/id.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"d851d547ffc33e74f63e4bff665d1cb1d482caca4a9985c31cf80dcc59f572dc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PartialGuild: TooManyMethods \u2014 84 methods. The bar is 30 methods; this is 54 over it, 2.80\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":"src/model/guild/partial_guild.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"5592ec47f2433be6b41329f5ee44a0f842d2bde4c2f1d4aac8c8c3a15fefca37"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: serenity::client::dispatch::update_cache_with_event: FunctionTooLong \u2014 serenity::client::dispatch::update_cache_with_event runs 271 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 171 over it, 2.71\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/client/dispatch.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"6864269e637a849eeca798c38c428dd746ede9cbc12f1ed74528318a21ce54ee"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: guild/mod.rs: FileTooLong \u2014 1230 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 79% of them inside a single declaration: Guild (2 blocks, 111-2643). The bar is 500 significant lines; this is 730 over it, 2.46\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":"src/model/guild/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c08ebc97f979f196a9dafd4f5928e7d2ba521e8dbbf39e4c7f5419c8d1f997a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Guild: ClassTooLong \u2014 975 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 113 methods, 2 blocks, lines 111-2643. The bar is 400 significant lines; this is 575 over it, 2.44\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":"src/model/guild/mod.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fb02d75c9f601a787309e1f24acafc7c9e3b48e12e2c063df19790e7f5e28a6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ChannelId: TooManyMethods \u2014 59 methods, declared across 2 files: channel/channel_id.rs (56), model/id.rs (3). The bar is 30 methods; this is 29 over it, 1.97\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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":"src/model/id.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"cef7edf50d7864a5ad2745a487c36374be8d866a1f82c4d207faca21df0157da"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: command_attr::help: FunctionTooLong \u2014 command_attr::help runs 185 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 85 over it, 1.85\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"command_attr/src/lib.rs"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed566799970914efcce0dc6b80ada57f5a9b38085527db56a74dcbd2889a86d2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: standard/help_commands.rs: FileTooLong \u2014 856 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 356 over it, 1.71\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":"src/framework/standard/help_commands.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"25a020af3c8e1b63d3ed591cb1a456cfb32a3dc09d52a487be3cc44a0a7ce3a1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Guild: TooManyFields \u2014 51 stored fields beside 113 methods. The bar is 30 stored fields; this is 21 over it, 1.70\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/model/guild/mod.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1a2a2327fe7d1cf62ef9668c0cfe81fd3d1e0a362d74413da6b1af0bd4fae3d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: model/event.rs: FileTooLong \u2014 809 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 309 over it, 1.62\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":"src/model/event.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a411fa0cc19f74e6306a0b245a48cad3a36d2b29f6acaa1ed483ad6883cd947b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PartialGuild: ClassTooLong \u2014 618 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 84 methods, 5 blocks, lines 40-1720. The bar is 400 significant lines; this is 218 over it, 1.55\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":"src/model/guild/partial_guild.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed07fb2d7c761a2f37e58735cfd49a8f5965712114381a7f46c5ff3e7a60b579"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GuildChannel: TooManyMethods \u2014 45 methods. The bar is 30 methods; this is 15 over it, 1.50\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":"src/model/channel/guild_channel.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9f5916edf13238c865634099dd995ace9af5e034c6829498d9d6cb385e5a529"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MessageBuilder: TooManyMethods \u2014 44 methods. The bar is 30 methods; this is 14 over it, 1.47\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":"src/utils/message_builder.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"83996596ad12194bbcb864d73a1c0af862986e2138e08d550984cad79f8142f8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: guild/guild_id.rs: FileTooLong \u2014 699 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 88% of them inside a single declaration: GuildId (11 blocks, 42-1883). The bar is 500 significant lines; this is 199 over it, 1.40\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":"src/model/guild/guild_id.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1260d15c1b0a3efe5a84c05d09dea16997145e70b9abd99c9ca5b673f96662d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: channel/message.rs: FileTooLong \u2014 692 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 192 over it, 1.38\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":"src/model/channel/message.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb82b1a33f111ae2316e9c69e617a30ec8a4241a7cd972d969110c95bc3e0041"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: PartialGuild: TooManyFields \u2014 40 stored fields beside 84 methods. The bar is 30 stored fields; this is 10 over it, 1.33\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/model/guild/partial_guild.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"d73c235f4b115d3c271fdb26aeb58b7bfc7790c6cb1eebd8a9d4ecba0a408af1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: guild/partial_guild.rs: FileTooLong \u2014 652 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 95% of them inside a single declaration: PartialGuild (5 blocks, 40-1720). The bar is 500 significant lines; this is 152 over it, 1.30\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":"src/model/guild/partial_guild.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"81cb52ccbb6ed445e298bcdf848511e486dc5747a76a5f33b974b8af68a843da"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Message: TooManyMethods \u2014 37 methods. The bar is 30 methods; this is 7 over it, 1.23\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":"src/model/channel/message.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2e5fdb3edbc82c06f8955875134e02837eb1936893b2d9cf50f414235bd7b7e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Message: TooManyFields \u2014 35 stored fields beside 37 methods. The bar is 30 stored fields; this is 5 over it, 1.17\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/model/channel/message.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7d2388e80c2e393d3d169a03e84104cb95fe4af4e74dbac1736989383900c63"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Cache: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\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":"src/cache/mod.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e4769d2225925df1a3b96f7ee7cd3adcdbd0da7c3546163b6fe39fa113eced6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: GuildChannel: TooManyFields \u2014 32 stored fields beside 45 methods. The bar is 30 stored fields; this is 2 over it, 1.07\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/model/channel/guild_channel.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8d2aba0da6a81e1e1d7b01df30618173e17da2c9d9bc1d59b2588d2eaf8d415"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: MessageUpdateEvent: TooManyFields \u2014 32 stored fields beside 1 method. The bar is 30 stored fields; this is 2 over it, 1.07\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/model/event.rs"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6a4f9b9133af0288c99d75ef6e5b989c6d546801ff86eee9f57224b5afbfe2a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: command_attr::command: FunctionTooLong \u2014 command_attr::command runs 106 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"command_attr/src/lib.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a04be6c3c8f195437ce3e2ca95bde5fe5f0e3284bed35c5ed9a943eebeb97f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src/http/client.rs:2181-2210 | src/http/client.rs:3808-3843 | src/http/client.rs:3921-3944 | src/http/client.rs:4047-4070 | src/http/client.rs:4845-4871 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 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. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/http/client.rs"},"region":{"startLine":2181}}}],"partialFingerprints":{"codehealthFindingId/v1":"92cd8df6de022df44b73e9ea372f2f45d23b99b526d7cb58bf93e0567be8e109"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): command_attr/src/lib.rs:96-234 | command_attr/src/lib.rs:279-529 | command_attr/src/lib.rs:614-734 | command_attr/src/lib.rs:747-815 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 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. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"command_attr/src/lib.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa0f9a4902947706ecf68f4687d9c03aa8bdd3a7dccce5fbfda47e3614cbcde9"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): command_attr/src/lib.rs:96-234 | command_attr/src/lib.rs:279-529 | command_attr/src/lib.rs:747-815 | command_attr/src/lib.rs:916-958 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 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. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"command_attr/src/lib.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9d757f3767e25287962c8266e2fe7544fd460125368cab2fd09bc8a15546923"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/framework/standard/structures/buckets.rs:196-217 | src/framework/standard/structures/buckets.rs:241-262 \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":"src/framework/standard/structures/buckets.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"a094fe8f7765794628f14e1c76adddf995d1f4018ab0c90dbb590636229f3dd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): src/http/client.rs:2113-2128 | src/http/client.rs:4751-4767 \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":"src/http/client.rs"},"region":{"startLine":2113}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5deeb655f242c78118b9e2585a05acbc9d000d5448ba0108a4eed3f980ed2dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/model/guild/mod.rs:1126-1141 | src/model/guild/partial_guild.rs:789-804 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/model/guild/mod.rs"},"region":{"startLine":1126}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c0f569b6191dce815a98f6ea9015e018e057a713be94c92d50645351e92e40b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/gateway/bridge/shard_manager.rs:305-319 | src/gateway/bridge/shard_queuer.rs:210-224 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/gateway/bridge/shard_manager.rs"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e919d560d34524ef791dbc536e302fc15f86783b0c68d8f07979d74e261cc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/builder/edit_message.rs:64-77 | src/builder/edit_webhook_message.rs:50-63 \u2014 before extracting anything, compare \u0060src/builder/edit_message.rs\u0060 and \u0060src/builder/edit_webhook_message.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/builder/edit_message.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"df09ba825cafb70c15bae45f1d44a3a2b99f892c22d89547639f69200396030d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/http/client.rs:2159-2172 | src/http/client.rs:3884-3897 \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":"src/http/client.rs"},"region":{"startLine":2159}}}],"partialFingerprints":{"codehealthFindingId/v1":"235e0971ec92d4ec15503927bb8331d92834291a2bcb67362c42652ba8cfcc48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/http/client.rs:2257-2270 | src/http/client.rs:4084-4097 \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":"src/http/client.rs"},"region":{"startLine":2257}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d5b20ec5876c102271f9d04e4a42be7d06ebcbb5b9ad01e3562411c39514c37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): src/http/client.rs:2198-2210 | src/http/client.rs:3831-3843 | src/http/client.rs:3932-3944 | src/http/client.rs:4058-4070 | src/http/client.rs:4859-4871 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/http/client.rs"},"region":{"startLine":2198}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c99cf3b0eef1a06a8abade404a685aa6b7dcd1f4db5b60a1483541c81ad4325"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): command_attr/src/structures.rs:153-165 | command_attr/src/structures.rs:252-264 \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":"command_attr/src/structures.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf7edc6de1dd7b54108651366e11f3529ed1d50da7bc4f7d4a557d0e6ec9b2ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/framework/standard/args.rs:790-802 | src/framework/standard/args.rs:833-845 \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":"src/framework/standard/args.rs"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"82ec38ef34471987d444e86fa5bdeba871de0f03014e604e31e107a43e0a0f2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/model/invite.rs:100-112 | src/model/invite.rs:324-336 \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":"src/model/invite.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"42ca32bad0b53d072c60760ee8371831d3b8d1085162800389d6217637485f3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/http/client.rs:2773-2784 | src/http/client.rs:4025-4036 \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":"src/http/client.rs"},"region":{"startLine":2773}}}],"partialFingerprints":{"codehealthFindingId/v1":"6db70a6463b985c4fb701e63322883baff78c51b571fbc43f9b3e6cc7ded0b7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/model/guild/mod.rs:1759-1770 | src/model/guild/mod.rs:1816-1827 \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":"src/model/guild/mod.rs"},"region":{"startLine":1759}}}],"partialFingerprints":{"codehealthFindingId/v1":"aafd4dcc707f2a4ba65c66d8c887afef0bb297dbf4a09b80db76a98a1ff20498"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): src/http/client.rs:555-565 | src/http/client.rs:751-761 | src/http/client.rs:1681-1691 | src/http/client.rs:1969-1979 | src/http/client.rs:2689-2699 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/http/client.rs"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"07fcae0f5ce5f972564346ee05419bd4d0a0cbad5a4da47bfd85a4aa4930cdbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): command_attr/src/lib.rs:108-118 | command_attr/src/lib.rs:626-636 | command_attr/src/lib.rs:755-765 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"command_attr/src/lib.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"6855e4ffe11a90af788224b698e9d4d9364c491c3a876b74261c43c8a9c92bf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/http/client.rs:2115-2125 | src/http/client.rs:2624-2634 | src/http/client.rs:4754-4764 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/http/client.rs"},"region":{"startLine":2115}}}],"partialFingerprints":{"codehealthFindingId/v1":"a426994b1da2bb59d7ea62b877e241ec18861ef0da2fa75672bfd8c03ba70a2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/http/client.rs:3039-3049 | src/http/client.rs:3067-3077 | src/http/client.rs:3095-3105 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/http/client.rs"},"region":{"startLine":3039}}}],"partialFingerprints":{"codehealthFindingId/v1":"4789fc393cdcf8d6f2ecb27568a80db65a0e7e16487926c1f0a84481301e277f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): command_attr/src/lib.rs:107-116 | command_attr/src/lib.rs:318-327 | command_attr/src/lib.rs:625-634 | command_attr/src/lib.rs:754-763 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"command_attr/src/lib.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"8848ddbf92c4229f29302c6978689bbf565d40c1c465efd8ab9b88412b1665a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/http/client.rs:551-560 | src/http/client.rs:2111-2120 \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":"src/http/client.rs"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"df2c215ef94bd218c880db48bbf62dd7fa3b03a74eb3f3d261803ed80f4e44f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/model/guild/mod.rs:1861-1870 | src/model/guild/mod.rs:1906-1915 \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":"src/model/guild/mod.rs"},"region":{"startLine":1861}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d14f29a4e944ef8849caf42cc3a8b485904afbd15232e3be5d9fa3309ee4675"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/builder/create_interaction_response_followup.rs:51-59 | src/builder/create_message.rs:90-98 | src/builder/execute_webhook.rs:97-105 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/builder/create_interaction_response_followup.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"e06f18cc436dd2d20d53ffd1d3b7f6ac53321eb14e20b0833c8b0e1e1669e5de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): command_attr/src/structures.rs:168-176 | command_attr/src/structures.rs:266-274 \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":"command_attr/src/structures.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"8213921a8059752c9bcaf57acfa5e12158d525d9ff992aa87973dee29af76cb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/framework/standard/parse/mod.rs:483-491 | src/framework/standard/parse/mod.rs:495-503 \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":"src/framework/standard/parse/mod.rs"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f4ff2edce893ec62d86c79c835403702d770ea3efc993b4993ce4e8c1cfab98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): command_attr/src/lib.rs:226-234 | command_attr/src/lib.rs:521-529 | command_attr/src/lib.rs:807-815 | command_attr/src/lib.rs:934-941 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"command_attr/src/lib.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"64907adb55276990559d1d18587b7fdad831b56dd21bc8df72f5be1b4120600a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): command_attr/src/lib.rs:476-483 | command_attr/src/lib.rs:705-712 \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":"command_attr/src/lib.rs"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"9913ee76cb752fda44b8a2eef77e4a95d82a270031e3596c8a5c07cd0687d532"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/model/application/component_interaction.rs:236-243 | src/model/application/modal_interaction.rs:200-207 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/model/application/component_interaction.rs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd2eb916749887fcff989ab19f28a74a48270bb85f2f7710d856b6988d592556"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/model/channel/channel_id.rs:1280-1288 | src/model/guild/guild_id.rs:1962-1969 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/model/channel/channel_id.rs"},"region":{"startLine":1280}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f92900b47f3a652141080cab825b0de8675e215ded5902d51bb588be87f6711"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/builder/create_command.rs:131-137 | src/builder/create_command.rs:187-193 \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":"src/builder/create_command.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"523e836188e355d958fa91170d75cca8df98cea41cdffb5b9e44c918716425d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/cache/event.rs:512-518 | src/cache/event.rs:529-535 \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":"src/cache/event.rs"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"c460af78f0534c18bd36a6eb556a9d20949d3df78aaec90f25df1fca6db89dec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/builder/edit_message.rs:266-271 | src/builder/edit_webhook_message.rs:197-202 \u2014 before extracting anything, compare \u0060src/builder/edit_message.rs\u0060 and \u0060src/builder/edit_webhook_message.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/builder/edit_message.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"4141414e52e0bb98a9d596c474d2ab88a553c752508e1b8428022472d2f48a5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/builder/edit_message.rs:191-195 | src/builder/edit_webhook_message.rs:151-155 \u2014 before extracting anything, compare \u0060src/builder/edit_message.rs\u0060 and \u0060src/builder/edit_webhook_message.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/builder/edit_message.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe278082c05b76d94f5a763c08838c33ad174439217117b9e0e6cb2ec8c0d64d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/builder/edit_message.rs:198-202 | src/builder/edit_webhook_message.rs:158-162 \u2014 before extracting anything, compare \u0060src/builder/edit_message.rs\u0060 and \u0060src/builder/edit_webhook_message.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/builder/edit_message.rs"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"c40b449cc07c70a89a6cfcc893fcb263c8f8a93c40ab2a8f8044f5dad016a464"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/model/application/command_interaction.rs:232-237 | src/model/application/component_interaction.rs:210-215 | src/model/application/modal_interaction.rs:189-194 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/model/application/command_interaction.rs"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"4371b7f39be14dba6aabfdd19d818f8b000743df3d507c2ad3dd92c223907cb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/model/channel/reaction.rs:76-82 | src/model/voice.rs:56-63 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/model/channel/reaction.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"55a0bcbf330c22f4eaaee19c05cf2287c1410804791b62dee060e50c1d56a115"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/builder/create_interaction_response.rs:291-302 | src/builder/create_interaction_response_followup.rs:148-159 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/builder/create_interaction_response.rs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"894671209ae17a5a9dda854bf2afa7675f2202e757095dc2a8683476b1b10054"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/utils/mod.rs:182-192 | src/utils/mod.rs:226-236 \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":"src/utils/mod.rs"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b920bec4e6fe70e6e50fe81e7c883c6125cadabf9d97aa380f9d76419607abb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/utils/message_builder.rs:555-564 | src/utils/message_builder.rs:568-577 \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":"src/utils/message_builder.rs"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7c03ff110fb67397909f1a64f3e865c6eaa7e9a8539d7febdd35ac91dcb9d31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): src/http/client.rs:2846-2854 | src/http/client.rs:3071-3079 | src/http/client.rs:3099-3107 | src/http/client.rs:3500-3508 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/http/client.rs"},"region":{"startLine":2846}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0c71982387f20712bd5c96d696d88201ad06eb4c94ee57bdaeac2fc5e15550a"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: serenity-voice-model: serenity-voice-model: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"61ee2f8a39a7c54338a39b6426e428f5339ac181d6d243d02636f4c4c64cbf4c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: EditGuild (LCOM4 20): EditGuild\u0027s methods fall into 20 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 20 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/builder/edit_guild.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"b59b7e061da73822792c9066812ee556870d1a60c147a47eea6eb932b6c184f2"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: EditChannel (LCOM4 19): EditChannel\u0027s methods fall into 19 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 19 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/builder/edit_channel.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"33050f350a6278161d1761ce24ddba489f69e57c2729d40af318931eaa17c8a6"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CreateChannel (LCOM4 17): CreateChannel\u0027s methods fall into 17 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 17 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/builder/create_channel.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"5afd973456a1e2e309ad9409174f279c03eb41b111202fc094129c0749e64320"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CreateCommand (LCOM4 13): CreateCommand\u0027s methods fall into 13 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 13 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/builder/create_command.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9af6c94fca53e2177072054e969b5434f1d15ebefa6029ccc340fc809a3dbc9"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CreateScheduledEvent (LCOM4 9): CreateScheduledEvent\u0027s methods fall into 9 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 9 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/builder/create_scheduled_event.rs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"23f4cc5a4e8550f36b07644a5c80bb5bcf70e4060865988f36342fc7624279fe"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CreateInteractionResponseMessage (LCOM4 8): CreateInteractionResponseMessage\u0027s methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/builder/create_interaction_response.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"055919edeead00421f1394a6633ddf043dc18aabca78d9624bff59766e73d91b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CreateInvite (LCOM4 8): CreateInvite\u0027s methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/builder/create_invite.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"96b16f46c78c1a5ecafc91e9a98e61908568ceb16c947258dc1fc7e631a41854"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CreateMessage (LCOM4 8): CreateMessage\u0027s methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/builder/create_message.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"930aa6d4d6ba59691bfaa829b7c7020f7ffcc1c921daec5874d8f25354c8c009"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: EditAutoModRule (LCOM4 8): EditAutoModRule\u0027s methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/builder/edit_automod_rule.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"f416de412aefb4e7f395eb677efeb5d7694a253e7ac29a8841cf4247a7e3ad74"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: EditRole (LCOM4 8): EditRole\u0027s methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/builder/edit_role.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"4af88a569e015bb4d236db2d5df05d2ba26c985d7ef99079d9b5ae1df19787bc"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ExecuteWebhook (LCOM4 8): ExecuteWebhook\u0027s methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/builder/execute_webhook.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"7519a46ba2d7192874d77eaa441b4562041b1391ec9b6bffa77b7481c5cdf7b4"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CreateSoundboard (LCOM4 6): CreateSoundboard\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/builder/create_soundboard.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"436f342eaa3d7d8fab595054c11a43274a08d14cddeca829136e983e03264d91"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CreateThread (LCOM4 6): CreateThread\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/builder/create_thread.rs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4fc32cdb6db97a75ed3d6c06bb854861302b203d0444bec96c553905d324644"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CreateForumPost (LCOM4 5): CreateForumPost\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/builder/create_forum_post.rs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccb2d9314809c6fa176984ec39f474e5668c206454f81754bfc9bd7398c1791a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CreateInteractionResponseFollowup (LCOM4 5): CreateInteractionResponseFollowup\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/builder/create_interaction_response_followup.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"92f2cde713281fcf120b92843413e028599e88101b58db0c03d68642f38d1b0e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: EditWebhook (LCOM4 4): EditWebhook\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/builder/edit_webhook.rs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"7da65f76481c87dcf7b7ed2bb5688e97de0e8e8907674e7ba592ccd44d84a023"}},{"ruleId":"D13","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":"67b11622105a58d95d4ad49e47d05636aca24ae6065e7865e78e191fea20b2ab"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D13","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":"02b3df957278971b010fc35f96e129a86cf0c28cd203eade2cbeb4d0f5d614c3"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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: src/builder/create_poll.rs. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e871dbe064e2e31e2115534ca0b1ed076838fb38fcfab1121a0eabf3dc62816"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Replace with \u0060Vec::drain_filter\u0060 once it is stable. \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":"command_attr/src/structures.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"152e98216840448cca442ec10fe9e75fedc1ffc483da525745012ba0cfc58f69"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: If you are going to copy this to your crate, update the crate name in the string \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":"examples/e15_simple_dashboard/src/main.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"0926735ee2880c0c6d30c9351af3222622ffbeacd143ceb4fca41d83e122a91d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Do we want to download role.icon? \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":"src/builder/edit_role.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"62443ff980b024a65d7bf95a1aeb7b0f9d9e976711e7e70fa9c6c2a60946cd29"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Enforce these fields (maybe with a separate CreateAutoModRule builder). \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":"src/builder/edit_automod_rule.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"16f7b99f1a6619e50e4a079d6d6340f952c42f4a2a02a5381029284bd168b405"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: do some boxing to fix this \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":"src/client/event_handler.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb062a47bba8a5eacd6730fc806906aee839a2084ec4001543c72dd9f31351be"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Get rid of this allocation. \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":"src/framework/standard/mod.rs"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aea4217130a853bad967d1a16beec6a334015df28646eef59123c806d7e30d3"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Add the \u0060http\u0060 parameter to \u0060Guild::user_permissions_in\u0060. \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":"src/framework/standard/parse/mod.rs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"d74ebca8c8a0d8393cba60b52d6e59cc0f1cc4ee14457435fa77211e04f78da3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: according to Discord, this returns different data; namely https://docs.discord.com/developers/resources/guild#guild-widget-object."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/http/client.rs"},"region":{"startLine":3704}}}],"partialFingerprints":{"codehealthFindingId/v1":"783355cbaecf2165af7abd6bded6a1089e89466da3c9b1af3b4a64479ef2257d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: should really go over these fields at some point and check them. \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":"src/model/gateway.rs"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"687f5302a2312fecff69cf043484d1a7f9b26dda70ebfa1e3b07045a12e48820"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(next): This is now always serialized. \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":"src/model/application/command_interaction.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"3faaeb9fcf80ba5fe79e0a4458bde4f0b6447b9d42a26f406c2a63e583d1b483"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: maybe introduce an \u0060enum MessageLocation { Dm, Guild(GuildId) }\u0060 and store \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":"src/model/channel/message.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"19cc3620015867097b0961336c1336a22341166062e03341ba8b76386ddbe4f4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(next): Remove this \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":"src/model/channel/message.rs"},"region":{"startLine":1169}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9adb74ee77091aab1557e2e720b5da4a95f2377668f5910ab647bc3d749b561"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: should be renamed to a less ambiguous name \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":"src/model/guild/automod.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a1bddd9389c9d11e9c0d3dad841da50e1edf57366ffa0d4a5c64b490c99c667"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: should be renamed to a less ambiguous name \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":"src/model/guild/audit_log/mod.rs"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"873aeeaa6d519a0a217cf413009ee797606152a2b20889f93e3f17d852654b60"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no project overview: The opening paragraph describes Serenity as a Discord Rust library and links to examples/poise/songbird docs, but it does not state what the project is for or its main features. Add one sentence stating the repository\u0027s purpose (e.g. \u0027Serenity provides a complete Discord API wrapper for Rust\u0027) so readers can find it without scanning through the doc."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"66dbf18d06aa983c06246108610908ba99aae6784280b3aacd1a6655733d71be"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no installation or build instructions: The README does not state how to install Serenity or its dependencies. Add installation steps (cargo add, Cargo.toml) and any prerequisites such as Rust and Tokio."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fa6bfcd5c6ae231d1b8ee99bced50b832d1f61cde9da6cbb533467b879a57db"}},{"ruleId":"D22","level":"warning","message":{"text":"Duplicate setter methods for the same property with different names (British vs American spelling). This forces users to choose between two identical methods or use both, creating confusion.: Keep only one (preferably \u0060color\u0060 for broader API compatibility, or \u0060colour\u0060 if targeting UK-centric libraries), or mark one as deprecated. (signatures: CreateEmbed.colour(colour: C): Self | CreateEmbed.color(colour: C): Self)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"01c088eae6ddf53c371f38eab95f0813ee86883a2074e55bbef156514e2be6a5"}},{"ruleId":"D22","level":"warning","message":{"text":"Inconsistent naming and signature for adding multiple embeds. \u0060add_embeds\u0060 takes a single \u0060CreateEmbed\u0060 instead of an iterator/collection, which is counter-intuitive for a plural method name. Additionally, \u0060embed\u0060 and \u0060embeds\u0060 appear to do the same thing (set/replace), while \u0060add_embed\u0060 and \u0060add_embeds\u0060 appear to do the same thing (append), but the plural variants have confusing single-item signatures.: Unify to \u0060embeds(iter)\u0060 for setting/replacing and \u0060add_embed(embed)\u0060 for appending. Remove the singular \u0060embed\u0060/\u0060add_embed\u0060 if they are redundant, or ensure \u0060embeds\u0060 accepts an iterator. (signatures: CreateInteractionResponseMessage.add_embed(embed: CreateEmbed): Self | CreateInteractionResponseMessage.add_embeds(embeds: CreateEmbed): Self | CreateInteractionResponseMessage.embed(embed: CreateEmbed): Self | CreateInteractionResponseMessage.embeds(embeds: CreateEmbed): Self)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1a6c38172dc78491b07d6f003d7e4add7a3e4a3e222bfbbddd119295d0cbedb8"}},{"ruleId":"D22","level":"warning","message":{"text":"Same inconsistency as in \u0060CreateInteractionResponseMessage\u0060. The plural \u0060embeds\u0060 method takes a single item, which is misleading. The distinction between \u0060embed\u0060 (set) and \u0060add_embed\u0060 (append) is good, but the plural variants are poorly named/signatured.: Rename \u0060embeds\u0060 to \u0060set_embeds\u0060 or change signature to accept an iterator. Rename \u0060add_embeds\u0060 to \u0060add_embed\u0060 if it only takes one, or fix the signature to take multiple. (signatures: CreateMessage.add_embed(embed: CreateEmbed): Self | CreateMessage.add_embeds(embeds: CreateEmbed): Self | CreateMessage.embed(embed: CreateEmbed): Self | CreateMessage.embeds(embeds: CreateEmbed): Self)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ede23406d561c3b72aa2ecd9dc5fcebf1a5acca0688a41108405391f80211464"}},{"ruleId":"D22","level":"warning","message":{"text":"Ambiguity between \u0060add_files\u0060 and \u0060files\u0060. \u0060add_files\u0060 implies appending, while \u0060files\u0060 often implies setting/replacing in other contexts, but here both take an iterator. It is unclear if \u0060files\u0060 replaces existing files or adds to them. Similarly, \u0060add_file\u0060 vs \u0060files\u0060 (singular vs plural iterator) is inconsistent with the embed pattern.: Clarify intent: use \u0060set_files\u0060 for replacement and \u0060add_files\u0060 for appending. Ensure singular methods match the singular nature of the input. (signatures: CreateMessage.add_file(file: CreateAttachment): Self | CreateMessage.add_files(files: impl IntoIterator\u003CItem = CreateAttachment\u003E): Self | CreateMessage.files(files: impl IntoIterator\u003CItem = CreateAttachment\u003E): Self)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"efa4c657f1cd253aa0ec15fc5fec4d52beb818b2d0e61140b44df8c79d7f4e35"}},{"ruleId":"D22","level":"warning","message":{"text":"Same pattern inconsistency as embeds/files. \u0060sticker_ids\u0060 and \u0060add_sticker_ids\u0060 have confusingly similar names with potentially overlapping or unclear replacement vs append semantics. \u0060sticker_id\u0060 (singular) vs \u0060sticker_ids\u0060 (plural iterator) is inconsistent with \u0060add_sticker_id\u0060 (singular) vs \u0060add_sticker_ids\u0060 (plural iterator).: Standardize on \u0060set_stickers\u0060 (replace) and \u0060add_sticker\u0060 (append single) or \u0060add_stickers\u0060 (append multiple). Remove redundant singular/plural pairs if they don\u0027t have distinct behaviors. (signatures: CreateMessage.add_sticker_id(sticker_id: impl Into\u003CStickerId\u003E): Self | CreateMessage.add_sticker_ids(sticker_ids: impl IntoIterator\u003CItem = T\u003E): Self | CreateMessage.sticker_id(sticker_id: impl Into\u003CStickerId\u003E): Self | CreateMessage.sticker_ids(sticker_ids: impl IntoIterator\u003CItem = T\u003E): Self)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5432c4f00cecc8a5daf03a647f3acd3ce215efcc60243632d447e59839a45c41"}},{"ruleId":"D22","level":"warning","message":{"text":"While not a direct duplicate, the naming \u0060keep_existing_attachment\u0060 is verbose and inconsistent with typical builder patterns which might use \u0060retain\u0060 or \u0060exclude\u0060. More importantly, \u0060EditInteractionResponse\u0060 has \u0060clear_attachments\u0060 and \u0060keep_existing_attachment\u0060, while \u0060EditMessage\u0060 has \u0060remove_all_attachments\u0060 and \u0060remove_existing_attachment\u0060. The verbs \u0060keep\u0060 vs \u0060remove\u0060 are opposites, but the API surface for managing attachments differs significantly between these two similar builders.: Unify attachment management API across message-like builders. Use \u0060retain_ids\u0060 and \u0060remove_ids\u0060 or \u0060clear\u0060 and \u0060add\u0060 consistently. (signatures: EditInteractionResponse.keep_existing_attachment(id: AttachmentId): Self | EditMessage.keep_existing_attachment(id: AttachmentId): Self)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c1cd5faf27038399352e195b3c187b550342ef88b3ba08f34db43ea9baa2cb4c"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 3 project(s) overshoot their size bounds, lowering Project Cohesion to 3.3/10. The most over is \u0060(repository root)\u0060 (55269 LoC, 598 public types across 19 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"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":"703b990f6d9a60db46de372b4bc3713bc769740b61be7dfed2b23b523664ac12"},"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"}}]},{"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":"7850ea9e8179531389bfa2debfa5883eb354454d32b0dba110be899f88bd849d"},"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"}}]},{"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":"e5b557c9b51a27c6ffffd4bcd786f5205fdb6c8cc92ed5b989bd7a7805fb9511"},"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"}}]},{"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":"bc26593caf509b487cb3dff9d1a587737a02c72fc5e13e59c1a151f7d6412ad4"},"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"}}]},{"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":"739aba50c2202d8610042c78e67dcc0b8bf8b843e2101ae1543a28454827d20e"},"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"}}]},{"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":"0d386d80d7b5b673a2aaa813bd7442fbee8a3a75cf2e38e645815765daa16a5a"},"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"}}]},{"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":"6bc3b539f953f180f304780b633bbb65e6d2911ce57503f2f0e4a05dfd504060"},"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"}}]},{"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":"0063c758847f616c2c3e785572b6a1fc100eeb5784b319de72c4dbd9d1efdce9"},"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"}}]},{"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":"4df0d759d3a205a786baefb26032cad8cd4fbbc4793b66e961d8f851fd7fbbd6"},"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"}}]},{"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":"28fb95c74cf7e51a3f6e58d6d5d9aaba698bdc10ef21fbd45c72dc90736c26c6"},"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"}}]},{"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":"ab23c85e93624ae9562a005093ec7654ca2d931a76859bbd011f1fb02af874f0"},"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"}}]},{"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":"465cc30edab2d79b19280fd699c1954098364dd591aabef818ad0941bf6c1e1b"},"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"}}]},{"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":"a5ff6c36cc77c52281fa395ac6b9e1e18754b22fb93caffb8d30a7715d1e22e8"},"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"}}]},{"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":"2af95c12f3c1ea89385cfc48dc29f37c45243f4f678813a45e56bcba7665cfc7"},"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"}}]},{"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":"0789e5eb3a01cb11c16bf4e86f551c69db0a1db7b11b095649607f5888cb65eb"},"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"}}]},{"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":"1375048b9ca8ef192c23faf83af425d2e99a11eb2f6e7951f3d837d8c63c990e"},"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"}}]},{"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":"a4e4dc41b2951adb95b298fac0913d1ce8bd00a8de3d7fe2087e44d2e1798725"},"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"}}]},{"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":"28042ff8d3419ffd81c5a628744a16c59b1c464492d957f838ac6754ec40574a"},"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"}}]},{"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":"dba947422e5342f3ec1c8c79cd0d382f193ca875a3cf3b831fb3cd646cf4c808"},"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"}}]},{"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":"5bf66f5e7d68d560e31890595924148a2f29517a30395ef5653442821cb20e6d"},"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"}}]},{"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":"755137bdd4c74a1d4875f1d566c76981000e8f7197cc5ae2905adecbe825bb89"},"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"}}]},{"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":"23a3c153922061d8b6a12cb06526c89608d55d517be1e8a1ebe36191f905cd33"},"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"}}]},{"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":"97a3f892e6b64c31abb1dc50c4fbbafb1a85a87e32928efd53e0c97748f9ab08"},"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"}}]},{"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":"515bbd25ba36f054f800e29f9168f6fbbf629eb5b2ec7ef4043a98d2e096cc79"},"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"}}]},{"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":"f01c165ba04a93ddc85ea0a92b9ecbd43fb63537eee58f1af7c74123063ff812"},"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"}}]},{"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":"4bc3c7fd39ae9a8518e9c99e747d3a9584ba2d43a25d57a85a66b3099b97f736"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"9d8137e2843a4d9ace312984d4d1b8b07998cf19f7a31e2c7e904de2ca9c84a6"},"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"}}]},{"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":"2504f1e1290247021b53596a59c5a03dc1ffb169ac6d15b875d55e35d7ae3090"},"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"}}]},{"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":"389126251f416798957a8cd76aa6c4d4871cf42718b2af26ca0f6c2a3bcee2e3"},"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"}}]},{"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":"66de30752b806f3d8b215a4be793e1eea74f159d40fd3e906ac2cdfc911e31bf"},"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"}}]},{"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":"64c15d681bb5d8329758dc2cfaa02f6fe6da59ee9d59f000c63f71be3c8c06e0"},"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"}}]},{"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":"c6d80996bf6359ec5ca382ceb400d3d692dbc34cefa1ce940855cbdc81d0356d"},"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"}}]},{"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":"1cdb04076165108eb0bb491ecee133c36937539709d2f5500c1de077448e3c26"},"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"}}]},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away, so if it breaks, no one currently understands it. It does carry its own tests, so the behaviour is pinned even though the understanding is gone: schedule a read-through, using those tests as the specification, before the next change lands here."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/model/guild/automod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"221d0f1e1f8a636d6c6ebdb65e34655b7f623cdbe5522d33f9ec6b1e0d94df58"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 55 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than raised one row each \u2014 most significant first: src/framework/standard/structures/buckets.rs, src/model/application/command.rs, voice-model/src/event/tests.rs, src/model/guild/audit_log/change.rs, src/http/ratelimiting.rs, src/collector.rs, src/gateway/bridge/shard_manager.rs, voice-model/src/event/mod.rs (and 47 more) (56 orphaned of 148 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated and example/demo trees and test files identified by path convention, largest first; 148 of the 182 production source files in this repository met that bar). 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":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: mod.rs \u2194 custom_message.rs: \u0060src/cache/mod.rs\u0060 (context cache) and \u0060src/utils/custom_message.rs\u0060 (context utils) sit in DIFFERENT parts of the tree yet change together 73% of the time (11 of the 15 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 11 shared commits counted here, the most recent 3 are \u00601099d510\u0060 Use custom enum for \u0060Message::nonce\u0060 instead of \u0060json::Value\u0060 (#1990); \u00603debed8b\u0060 Add missing Message fields (#2214); \u00609e10d546\u0060 Add \u0060banner\u0060 and \u0060accent_color\u0060 fields to \u0060User\u0060 (#1469) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cache/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d231b5ec1abc0fd763d953c80f333837a71985c43e21c4b59ea1a87f4ff12951"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: create_invite.rs \u2194 mod.rs: \u0060src/builder/create_invite.rs\u0060 (context builder) and \u0060src/cache/mod.rs\u0060 (context cache) sit in DIFFERENT parts of the tree yet change together 52% of the time (15 of the 29 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 15 shared commits counted here, the most recent 3 are \u006049640ea0\u0060 Clean up documentation examples (#2628); \u00602afb05b1\u0060 Clean up previous changes to cache (#1936); \u00601897005c\u0060 Expose \u0060dashmap\u0060\u0027s wrapped \u0060Ref\u0060 to reduce cloning (#1917) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/builder/create_invite.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffa2246828e231f445c192bfefc593f3898382503c41800d05c188e702952bb3"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: component_interaction.rs \u2194 modal_interaction.rs: \u0060src/model/application/component_interaction.rs\u0060 and \u0060src/model/application/modal_interaction.rs\u0060 change together 81% of the time (21 of the 26 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 21 shared commits counted here, the most recent 3 are \u0060c6219206\u0060 Add \u0060attachment_size_limit\u0060 field (#3456); \u0060d57a8cf3\u0060 Add support for new monetization APIs (#2560); \u006057a18416\u0060 Remove \u0022does not work ephemeral\u0022 statement from \u0060edit_response\u0060 (#2395) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/model/application/component_interaction.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"075ac894957b1828678fdafe9b25e5193ca2235e53d29a13cbc061c817563fa2"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling clique: create_interaction_response.rs, create_interaction_response_followup.rs, edit_interaction_response.rs: 3 files \u2014 \u0060src/builder/create_interaction_response.rs\u0060, \u0060src/builder/create_interaction_response_followup.rs\u0060, \u0060src/builder/edit_interaction_response.rs\u0060 \u2014 all change together with no explicit dependency: a fully-connected co-change clique, not 3 separate couplings. They share one concern (thin parallel siblings over a common abstraction), so extract the shared part into ONE unit and the whole clique\u0027s coupling clears at once \u2014 you do not need to break each pair individually."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/builder/create_interaction_response.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f16e9b1d249fd1e5ca01a7c935303a1b824135c54c466afca079b705177ff858"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: command_interaction.rs \u2194 modal_interaction.rs: \u0060src/model/application/command_interaction.rs\u0060 and \u0060src/model/application/modal_interaction.rs\u0060 change together 73% of the time (19 of the 26 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 19 shared commits counted here, the most recent 3 are \u0060c6219206\u0060 Add \u0060attachment_size_limit\u0060 field (#3456); \u0060d57a8cf3\u0060 Add support for new monetization APIs (#2560); \u006057a18416\u0060 Remove \u0022does not work ephemeral\u0022 statement from \u0060edit_response\u0060 (#2395) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/model/application/command_interaction.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e963ef87bc847e66001f22aedd1d808d38397b826cd5665ef1dddd66d866d4a6"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: guild_channel.rs \u2194 private_channel.rs: \u0060src/model/channel/guild_channel.rs\u0060 and \u0060src/model/channel/private_channel.rs\u0060 change together 73% of the time (24 of the 33 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 24 shared commits counted here, the most recent 3 are \u00602951d988\u0060 Deprecate Channel::is_nsfw (#2791); \u0060c0bacad4\u0060 Turn generic parameters with \u0060IntoIterator\u0060 bounds into \u0060impl IntoIte\u2026; \u0060fa21d4ac\u0060 Make \u0060Typing::start_typing\u0060 infallible (#2350) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/model/channel/guild_channel.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"560b6823aa7081a9832915130b5c6d4bc2d7455816d5772bb10834d79047cfc9"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: create_embed.rs \u2192 create_invite.rs, edit_guild.rs, edit_profile.rs: \u0060src/builder/create_embed.rs\u0060 changes together with 3 other files \u2014 \u0060src/builder/create_invite.rs\u0060, \u0060src/builder/edit_guild.rs\u0060, \u0060src/builder/edit_profile.rs\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/builder/create_embed.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"023e050a98cf79e70cf781777c6747d1481f28fddaa2630e601a717f6a28db7c"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: edit_webhook_message.rs \u2194 execute_webhook.rs: \u0060src/builder/edit_webhook_message.rs\u0060 and \u0060src/builder/execute_webhook.rs\u0060 change together 64% of the time (9 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are \u0060b4835360\u0060 Add \u0060Http::default_allowed_mentions\u0060 (#2834); \u00602a810625\u0060 Add CreateAttachment.description and EditAttachment (#2575); \u006041d634f1\u0060 Fix compilation with just the \u0060http\u0060 and \u0060builder\u0060 features enabled (\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/builder/edit_webhook_message.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ee6e888504a7d68db038ffe788e8dbe5ed30fe28857cbea87571a0fef74eebe"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: shard_messenger.rs \u2194 shard.rs: \u0060src/gateway/bridge/shard_messenger.rs\u0060 and \u0060src/gateway/shard.rs\u0060 change together 61% of the time (19 of the 31 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 19 shared commits counted here, the most recent 3 are \u00609f16e5aa\u0060 Add soundboard gateway events (#3435); \u006050f01174\u0060 Revert \u0022Clean up dispatch and unnecessary clones in client (#2019)\u0022 (at that commit the file was still \u0060src/client/bridge/gateway/shard_messenger.rs\u0060); \u0060f96f354e\u0060 Clean up dispatch and unnecessary clones in client (#2019) (at that commit the file was still \u0060src/client/bridge/gateway/shard_messenger.rs\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/gateway/bridge/shard_messenger.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dadc73c2a7b0813713a3f87435f63cda60d641aa15153b9b8f23c541e98940b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: shard_runner_message.rs \u2194 shard.rs: \u0060src/gateway/bridge/shard_runner_message.rs\u0060 and \u0060src/gateway/shard.rs\u0060 change together 59% of the time (10 of the 17 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 10 shared commits counted here, the most recent 3 are \u00609f16e5aa\u0060 Add soundboard gateway events (#3435); \u0060888bd4ca\u0060 Fix \u0060http\u0060 and \u0060gateway\u0060 features (#2172) (at that commit the file was still \u0060src/client/bridge/gateway/shard_runner_message.rs\u0060); \u00605bf0d350\u0060 Switch to \u0060tokio-tungstenite\u0060 (#2036) (at that commit the file was still \u0060src/client/bridge/gateway/shard_runner_message.rs\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/gateway/bridge/shard_runner_message.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"344da4640bc05ead4a9cf7eac13f372bbe2a219cf5da1bdf033a7369567583cb"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: create_message.rs \u2194 edit_guild.rs: \u0060src/builder/create_message.rs\u0060 and \u0060src/builder/edit_guild.rs\u0060 change together 50% of the time (13 of the 26 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 13 shared commits counted here, the most recent 3 are \u00607b3389bb\u0060 Remove unnecessary \u0060#[allow(...)]\u0060s  (#2597); \u0060f8bc937b\u0060 Simplify constructor functions for \u0060Http\u0060 (#1840); \u006070382290\u0060 Fix usage of builder pattern across code, docs, and examples (#1764) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/builder/create_message.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"659cb4032750551b758651e9a0942241c20dd744f1058cc159277526737be4ca"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: edit_message.rs \u2194 edit_webhook_message.rs: \u0060src/builder/edit_message.rs\u0060 and \u0060src/builder/edit_webhook_message.rs\u0060 change together 50% of the time (7 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u00605bfce60f\u0060 Add \u0060flags\u0060 to \u0060EditWebhookMessage\u0060 and \u0060EditInteractionResponse\u0060 (#3\u2026; \u0060b4835360\u0060 Add \u0060Http::default_allowed_mentions\u0060 (#2834); \u00602a810625\u0060 Add CreateAttachment.description and EditAttachment (#2575) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/builder/edit_message.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e8d9871ba90e64da3c2d174dedcad473be4860a9b84cbee5df51f7b6bafca86"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: create_command.rs \u2194 create_command_permission.rs: \u0060src/builder/create_command.rs\u0060 and \u0060src/builder/create_command_permission.rs\u0060 change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u0060ebc02cea\u0060 Rename \u0060application_command\u0060 to \u0060command\u0060 everywhere (#2358); \u00603c602950\u0060 Remove unneeded and deprecated application commands builders. (#2078) (at that commit the files were still \u0060src/builder/create_application_command.rs\u0060 and \u0060src/builder/create_application_command_permission.rs\u0060); \u00603e454cc5\u0060 Replace feature gated \u0060simd-json\u0060 trait imports with \u0060json::prelude::\u2026 (at that commit the files were still \u0060src/builder/create_application_command.rs\u0060 and \u0060src/builder/create_application_command_permission.rs\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/builder/create_command.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e3b3e6a0caa356e20c2b9ffdb659e9edf986714f27417e725efe0cc15f915b1"}},{"ruleId":"D36","level":"warning","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":"0752d0df7434000fcabf1048e2de30a7a1a8b982b3db9a19898c4dec199856b4"}},{"ruleId":"D36","level":"note","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":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"}},{"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":"P10","level":"note","message":{"text":"Large public API surface: 558/639 types (87%) declared in the published library are public. For a library, every public type is a stability contract \u2014 keep implementation types off the surface and expose only the intended API."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ed2ba843444ae377c17142f58f714e281e4bd3f183ab100ee1fbef389875d3e6"}}],"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-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":"CWE-353","shortDescription":{"text":"CWE-353"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"CWE-522","shortDescription":{"text":"CWE-522"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"CWE-829","shortDescription":{"text":"CWE-829"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":37,"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."]}]}