{"$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":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"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"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"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":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"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":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"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":"ATProtoAdmin.queryStatuses (cyclomatic 45): ATProtoAdmin.queryStatuses has cyclomatic complexity 45 (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":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"611656280860dd813899de2d53a64c380943ef47c86b6c42c8b1853f4bae76fa"}},{"ruleId":"D1","level":"warning","message":{"text":"ATProtoBluesky.createPostRecord (cyclomatic 37): ATProtoBluesky.createPostRecord has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostRecord/CreatePostRecord.swift"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"24896268b53eacc4698f88c519aab70f811d03f49e1dd4073a3abbd44ed69f2a"}},{"ruleId":"D1","level":"warning","message":{"text":"ATProtoKit.searchPostsV2 (cyclomatic 35): ATProtoKit.searchPostsV2 has cyclomatic complexity 35 (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":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsV2Method.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"402d9810445a1611dda32b07da6e86f85dbf332b7a7df2738a207c6f3783806d"}},{"ruleId":"D1","level":"warning","message":{"text":"ATProtoBluesky.updateProfileRecord (cyclomatic 33): ATProtoBluesky.updateProfileRecord has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ProfileRecord/UpdateProfileRecord.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"86b8b382337fdfb4d2d2d4a4b01d0c99bdca166a6bd5d4be867a46449ec997ac"}},{"ruleId":"D1","level":"warning","message":{"text":"ATProtoBluesky.buildVideo (cyclomatic 29): ATProtoBluesky.buildVideo has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostRecord/CreatePostRecord.swift"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e0fb24d3755cd334e4f2147cc90f574094d49d1b4f9b13602039897d9067bc1"}},{"ruleId":"D1","level":"warning","message":{"text":"ATProtoAdmin.queryEvents (cyclomatic 29): ATProtoAdmin.queryEvents 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":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f7c54a8a88f791454e1ceb3356808828c8c1081c925bea81e4bf2a85b9b5888"}},{"ruleId":"D1","level":"warning","message":{"text":"ATProtoBluesky.updateListRecord (cyclomatic 25): ATProtoBluesky.updateListRecord has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListRecord/UpdateListRecord.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"f42293afc1f3336ad39476fcef2688469ab66f288638ec6e9d2be21967b6ddd1"}},{"ruleId":"D1","level":"warning","message":{"text":"APIClientService.performRequest (cyclomatic 21): APIClientService.performRequest has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/Utilities/APIClientService.swift"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b46612dc3ed595412529e72dedf7976ffff9bec2023932e715efd89aceceece"}},{"ruleId":"D1","level":"warning","message":{"text":"ATProtoAdmin.queryReports (cyclomatic 20): ATProtoAdmin.queryReports has cyclomatic complexity 20 (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":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportQueryReportsMethod.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b9bff039b5642a5adc7a9abfb4a0fb4760384b66d15d8dc3150663f8107ae7d"}},{"ruleId":"D1","level":"warning","message":{"text":"ATProtoKit.searchPosts (cyclomatic 17): ATProtoKit.searchPosts has cyclomatic complexity 17 (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":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"77ea141e976ac460b14ac56ab94d9014e31eae4c4e0b72230437155e0c8365e0"}},{"ruleId":"D1","level":"warning","message":{"text":"ATProtoKit.searchPostsSkeleton (cyclomatic 16): ATProtoKit.searchPostsSkeleton has cyclomatic complexity 16 (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":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchPostsSkeletonMethod.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"91cf4ff4fc1211610461b2b8e454ec499985f1a625299e78a53fe2f04eff06f8"}},{"ruleId":"D1","level":"warning","message":{"text":"AppPasswordSessionManaging.authenticate (cyclomatic 16): AppPasswordSessionManaging.authenticate 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":"Sources/ATProtoKit/APIReference/SessionManager/SessionCapabilities.swift"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"84f0675aefde194c9a6a6e35655c4f39692cb966fd6f0d53a8f8f1d19847256e"}},{"ruleId":"D2","level":"warning","message":{"text":"ATProtoBluesky.updateProfileRecord (cognitive 58): ATProtoBluesky.updateProfileRecord has cognitive complexity 58 (threshold 15). Drivers by points: if/else 20 (44 pts), match/switch 3 (10 pts), loops 2, boolean chains 1, error handling 1 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ProfileRecord/UpdateProfileRecord.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"98611840b7c2a09a80be7b3e1f7f0fc1a72f9ca8a3c48207f6701fb09e97f11d"}},{"ruleId":"D2","level":"warning","message":{"text":"ATProtoBluesky.createPostRecord (cognitive 56): ATProtoBluesky.createPostRecord has cognitive complexity 56 (threshold 15). Drivers by points: if/else 14 (20 pts), match/switch 3 (11 pts), loops 4 (9 pts), error handling 4 (8 pts), ternaries 3 (7 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":"Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostRecord/CreatePostRecord.swift"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"360a4b09c5d96a4005037baca53ab143c65433ceafc60b059bb6c11134c2389e"}},{"ruleId":"D2","level":"warning","message":{"text":"ATProtoAdmin.queryStatuses (cognitive 44): ATProtoAdmin.queryStatuses has cognitive complexity 44 (threshold 15). Drivers by points: if/else 35, boolean chains 8, error handling 1. 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":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1dcd4bdbe4abb7981166db46b038434aeead6f43cbfecc3e851ab0485fdd241"}},{"ruleId":"D2","level":"warning","message":{"text":"ATProtoBluesky.buildVideo (cognitive 40): ATProtoBluesky.buildVideo has cognitive complexity 40 (threshold 15). Drivers by points: if/else 12 (22 pts), error handling 4 (7 pts), match/switch 3 (6 pts), loops 2 (3 pts), boolean chains 2 (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":"Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostRecord/CreatePostRecord.swift"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d85eeafa14785d4a73882f7ccaa76c8fe85c8a649117750ad9f753610409594"}},{"ruleId":"D2","level":"warning","message":{"text":"AppPasswordSessionManaging.authenticate (cognitive 36): AppPasswordSessionManaging.authenticate has cognitive complexity 36 (threshold 15). Drivers by points: if/else 10 (25 pts), error handling 3 (5 pts), match/switch 2 (5 pts), loops 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/SessionManager/SessionCapabilities.swift"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"40ce42cc64e13cc74d31299901b6ef634d359326ea1142b0e1d978e263510050"}},{"ruleId":"D2","level":"warning","message":{"text":"ATProtoKit.searchPostsV2 (cognitive 34): ATProtoKit.searchPostsV2 has cognitive complexity 34 (threshold 15). Drivers by points: if/else 31, boolean chains 2, error handling 1. 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":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsV2Method.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"41fa8b175fbe9efc2f831c7d29bfcf7bc4f4fa758d5db573222569f6b72e7ce3"}},{"ruleId":"D2","level":"warning","message":{"text":"ATProtoBluesky.updateListRecord (cognitive 33): ATProtoBluesky.updateListRecord has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (19 pts), match/switch 3 (9 pts), boolean chains 2, loops 2, error handling 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":"Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListRecord/UpdateListRecord.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"fac93479ba1afdeadef5834439a9bdb2a3928492a4bba70cecaa5ff9acb5a899"}},{"ruleId":"D2","level":"warning","message":{"text":"ATProtoAdmin.queryEvents (cognitive 28): ATProtoAdmin.queryEvents has cognitive complexity 28 (threshold 15). Drivers by points: if/else 24, boolean chains 3, error handling 1. 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":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"e93e46262468f099a06df8895f3b44ee5dfa1499acfe4b8554e7a82c6dc9c1b6"}},{"ruleId":"D2","level":"warning","message":{"text":"ATProtoKit.uploadVideo (cognitive 21): ATProtoKit.uploadVideo has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (15 pts), match/switch 1 (3 pts), error handling 1 (2 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyVideoUploadVideoMethod.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a7088caa1c50f0b398ce31d2f54c76ee2747261a96c859ce1ed3d896476c4ab"}},{"ruleId":"D2","level":"warning","message":{"text":"APIClientService.performRequest (cognitive 20): APIClientService.performRequest has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (14 pts), error handling 2 (3 pts), match/switch 1 (3 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":"Sources/ATProtoKit/Utilities/APIClientService.swift"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"2879991fa897c49a08e15c6be8e324e40d0cae042a3cffc16b111872e2bf9323"}},{"ruleId":"D2","level":"warning","message":{"text":"ATProtoAdmin.queryReports (cognitive 19): ATProtoAdmin.queryReports has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, boolean chains 3, error handling 1. 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":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportQueryReportsMethod.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe9171edf9002a2721e8f192474da9788901e74456f9a9dffa56b848679d6f64"}},{"ruleId":"D2","level":"warning","message":{"text":"ATFacetParser.parseURLs (cognitive 19): ATFacetParser.parseURLs has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 3, loops 1 (2 pts), error handling 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":"Sources/ATProtoKit/Utilities/ATFacetParser.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"f341f2e4ddd125556b190d6221b6846034888355e8226245550834b9212cf47f"}},{"ruleId":"D2","level":"warning","message":{"text":"ATProtoKit.searchPosts (cognitive 16): ATProtoKit.searchPosts has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, boolean chains 2, error handling 1. 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":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"16517e04f3af8a7bc50216e8f184c69d1a6a209f74bb7e8180c5a5477d29a1d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (42 members, 28 shared lines): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkGetBookmarksMethod.swift:33-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactGetMatchesMethod.swift:34-84 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftGetDraftsMethod.swift:33-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyEmbedGetEmbedExternalViewMethod.swift:37-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorFeedsMethod.swift:34-86 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedGeneratorMethod.swift:32-71 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedGeneratorsMethod.swift:32-71 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift:35-92 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetQuotesMethod.swift:35-92 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetRepostedByMethod.swift:35-92 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetSuggestedFeedsMethod.swift:32-81 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetActorStarterPacksMethod.swift:34-86 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetBlocksMethod.swift:33-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetKnownFollowersMethod.swift:34-87 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListBlocksMethod.swift:33-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMethod.swift:34-86 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMutesMethod.swift:33-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListsMethod.swift:35-92 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListsWithMembershipMethod.swift:38-91 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetMutesMethod.swift:33-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPackMethod.swift:26-65 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPacksMethod.swift:28-68 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPacksWithMembershipMethod.swift:36-88 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetSuggestedFollowsByActorMethod.swift:32-71 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationGetUnreadCountMethod.swift:36-86 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationsListActivitySubscriptionsMethod.swift:34-83 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetOnboardingSuggestedStarterPacksMethod.swift:29-71 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetOnboardingSuggestedStarterPacksSkeletonMethod.swift:33-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetPopularFeedGeneratorsMethod.swift:36-90 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedFeedsMethod.swift:31-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedFeedsSkeletonMethod.swift:34-83 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedStarterPacksMethod.swift:31-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedStarterPacksSkeletonMethod.swift:34-83 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedUsersMethod.swift:33-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedUsersSkeletonMethod.swift:31-85 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestionsSkeletonMethod.swift:42-101 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendingTopicsMethod.swift:37-86 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendsMethod.swift:31-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendsSkeletonMethod.swift:34-83 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoListMissingBlobsMethod.swift:32-81 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempCheckHandleAvailabilityMethod.swift:37-88 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempDereferenceScopeMethod.swift:29-68 \u2014 These 42 members are variants of one another: a block of 28 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 42 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 42 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkGetBookmarksMethod.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"22073674caa754a7d0dc84cd367f10600d7ef1169c3b9f64c3b751d7d1850814"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (17 members, 26 shared lines): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift:35-98 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkGetBookmarksMethod.swift:33-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactGetMatchesMethod.swift:34-84 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftGetDraftsMethod.swift:33-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetSuggestedFeedsMethod.swift:32-81 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetBlocksMethod.swift:33-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListBlocksMethod.swift:33-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMutesMethod.swift:33-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetMutesMethod.swift:33-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationsListActivitySubscriptionsMethod.swift:34-83 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetOnboardingSuggestedStarterPacksMethod.swift:29-71 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetPopularFeedGeneratorsMethod.swift:36-90 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedFeedsMethod.swift:31-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedStarterPacksMethod.swift:31-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendsMethod.swift:31-73 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoListMissingBlobsMethod.swift:32-81 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListHostsMethod.swift:32-81 \u2014 These 17 members are variants of one another: a block of 26 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 17 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 17 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"c62012602753675210a991b9a772c565f54c93819922b4c9ef3171432716ef30"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (13 members, 29 shared lines): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorFeedsMethod.swift:34-86 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorLikesMethod.swift:41-95 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedMethod.swift:35-89 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift:35-92 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetQuotesMethod.swift:35-92 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetRepostedByMethod.swift:35-92 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:54-154 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetActorStarterPacksMethod.swift:34-86 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMethod.swift:34-86 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListsWithMembershipMethod.swift:38-91 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPacksWithMembershipMethod.swift:36-88 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetMessagesMethod.swift:31-84 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempCheckHandleAvailabilityMethod.swift:37-88 \u2014 These 13 members are variants of one another: a block of 29 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 13 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 13 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorFeedsMethod.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"fafd87696ae6bf0991f67b9e0587b918b6fa56582b3eebea34e887b5c1a48cc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (13 members, 26 shared lines): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationGetUnreadCountMethod.swift:36-86 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetOnboardingSuggestedStarterPacksMethod.swift:29-71 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetOnboardingSuggestedStarterPacksSkeletonMethod.swift:33-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedFeedsMethod.swift:31-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedFeedsSkeletonMethod.swift:34-83 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedStarterPacksMethod.swift:31-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedStarterPacksSkeletonMethod.swift:34-83 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedUsersMethod.swift:33-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedUsersSkeletonMethod.swift:31-85 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendingTopicsMethod.swift:37-86 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendsMethod.swift:31-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendsSkeletonMethod.swift:34-83 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyModerationGetMessageContextMethod.swift:35-92 \u2014 These 13 members are variants of one another: a block of 26 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 13 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 13 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationGetUnreadCountMethod.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"da8bdc32bbed6713262e8f8f26301e3a517726ebca4881f34039aead08241ed1"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (10 members, 30 shared lines): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift:35-98 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SearchRepositoriesAsAdmin.swift:36-89 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneListVerificationsMethod.swift:41-121 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetOnboardingSuggestedStarterPacksSkeletonMethod.swift:33-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedFeedsSkeletonMethod.swift:34-83 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedStarterPacksSkeletonMethod.swift:34-83 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedUsersMethod.swift:33-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestionsSkeletonMethod.swift:42-101 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendingTopicsMethod.swift:37-86 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendsSkeletonMethod.swift:34-83 \u2014 These 10 members are variants of one another: a block of 30 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"1422215fdb839eebecdb8eb1cee0562aa2616a575e33e3407790e83334222b4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 28 shared lines): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorFeedsMethod.swift:34-86 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetListFeedMethod.swift:41-95 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetActorStarterPacksMethod.swift:34-86 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMethod.swift:34-86 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPacksWithMembershipMethod.swift:36-88 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphSearchStarterPacksMethod.swift:34-80 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetMessagesMethod.swift:31-84 \u2014 These 7 members are variants of one another: a block of 28 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 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 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorFeedsMethod.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e40a0e7ac5d575cf469cfcc6fce35a19385c20c6440d653dc37906319216b00"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 28 shared lines): Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoAvailabilityMethod.swift:31-72 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoForMembersMethod.swift:30-71 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoMethod.swift:26-67 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetLogMethod.swift:27-69 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetMessagesMethod.swift:31-84 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoListConvosMethod.swift:32-82 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyModerationGetActorMetadataMethod.swift:32-72 \u2014 These 7 members are variants of one another: a block of 28 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 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 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoAvailabilityMethod.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3f705e415672edd2ccfe68eb117105cc931baec0d4959b552685e018663a037"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 33 shared lines): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListMembersAsAdmin.swift:39-102 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:74-242 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SearchRepositoriesAsAdmin.swift:36-89 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueListQueuesMethod.swift:37-104 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetHistoricalStatsMethod.swift:39-110 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportQueryActivitiesMethod.swift:37-103 \u2014 These 6 members are variants of one another: a block of 33 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 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 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListMembersAsAdmin.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cd7d54b186a4e9c915b98e5ae71d7b001c8a6c446c2dc76d8fadb928b52cdb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 27 shared lines): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift:35-98 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SearchRepositoriesAsAdmin.swift:36-89 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift:35-92 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetQuotesMethod.swift:35-92 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetRepostedByMethod.swift:35-92 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestionsSkeletonMethod.swift:42-101 \u2014 These 6 members are variants of one another: a block of 27 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 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 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfe13cab12e4e785513fc37f9672ccedff0d8f2b268773a2d51d9216f21f102a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 26 shared lines): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyEmbedGetEmbedExternalViewMethod.swift:37-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedGeneratorsMethod.swift:32-71 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetPostsMethod.swift:38-83 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPacksMethod.swift:28-68 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoAvailabilityMethod.swift:31-72 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoForMembersMethod.swift:30-71 \u2014 These 6 members are variants of one another: a block of 26 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 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 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyEmbedGetEmbedExternalViewMethod.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"93ed28c09e49852b6be51b332d15094ffd3c51d211617eaa317a822732eaa7bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 37 shared lines): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift:35-92 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetQuotesMethod.swift:35-92 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetRepostedByMethod.swift:35-92 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetTimelineMethod.swift:46-106 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestionsSkeletonMethod.swift:42-101 \u2014 These 5 members are variants of one another: a block of 37 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them 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":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad36c8f2a609734c31914290f6463817d644e340da8e81c3dacb15776c04302c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 33 shared lines): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:38-91 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListMembersAsAdmin.swift:39-102 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift:35-98 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SearchRepositoriesAsAdmin.swift:36-89 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneListVerificationsMethod.swift:41-121 \u2014 These 5 members are variants of one another: a block of 33 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them 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":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"f01b9e9bed226a9839b45ce8c40fa2e93d77a1d329e6163e069dae9e5fc90d19"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 31 shared lines): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift:35-92 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetQuotesMethod.swift:35-92 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetRepostedByMethod.swift:35-92 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:54-154 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListBlobsMethod.swift:35-88 \u2014 These 5 members are variants of one another: a block of 31 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them 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":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"25e859592e195f1829b4980baa9a80e4dd21b7a3931d7bc36c38085b5c86eb11"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 27 shared lines): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift:29-67 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetReporterStats.swift:30-69 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRepositoriesAsAdmin.swift:28-67 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetSubjectsAsAdmin.swift:28-67 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ModerationGetRecordsAsAdmin.swift:28-66 \u2014 These 5 members are variants of one another: a block of 27 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them 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":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"8680ba4e1a69773ada496f3b3bcac6ce4429d487974e966ded2e7b716fd66b6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 24 shared lines): Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoDescribeRepoMethod.swift:29-66 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoListRecordsMethod.swift:36-93 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetBlocksMethod.swift:36-72 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRepoMethod.swift:32-71 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListBlobsMethod.swift:35-88 \u2014 These 5 members are variants of one another: a block of 24 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them 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":"Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoDescribeRepoMethod.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"de8b062995094ca7c73aecc8d17cb7b2e43702230e1b3e68726246927e29b284"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 38 shared lines): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorLikesMethod.swift:41-95 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedMethod.swift:35-89 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:54-154 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsV2Method.swift:65-251 \u2014 These 4 members are variants of one another: a block of 38 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them 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":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorLikesMethod.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a0f94a8d6a78db195dd58ca27742ce2e68afad15b7268b4361f7efdd7a4a3a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 29 shared lines): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift:35-98 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:74-242 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:91-329 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneListVerificationsMethod.swift:41-121 \u2014 These 4 members are variants of one another: a block of 29 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them 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":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd2abe990abb8f9f3f5e1a8409284e6cb3ce92450ce1e55a13f5b4185048d98"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 28 shared lines): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueGetAssignmentsMethod.swift:36-95 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetAssignmentsMethod.swift:35-96 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetReportMethod.swift:29-68 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportListActivitiesMethod.swift:33-82 \u2014 These 4 members are variants of one another: a block of 28 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them 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":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueGetAssignmentsMethod.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcf455f74466f8e12dc360b57b99d8382ecd96580bb7500dbd3c6fc56b5edd67"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 27 shared lines): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift:35-98 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListsMethod.swift:35-92 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetPopularFeedGeneratorsMethod.swift:36-90 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestionsSkeletonMethod.swift:42-101 \u2014 These 4 members are variants of one another: a block of 27 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them 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":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5c734c7eaf6fb65a283f61f3b457584c5b0a232841b7d272871d4dfdc46c8fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 25 shared lines): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift:34-72 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetModerationEventAsAdmin.swift:32-70 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRepositoryAsAdmin.swift:31-67 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetSubjectStatusAsAdmin.swift:35-79 \u2014 These 4 members are variants of one another: a block of 25 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them 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":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"89ca6c2242d71dc83496b96943ed3487bbbe497e5e4ca3c5a599d4a4ba35bd56"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 21 shared lines): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetTimelineMethod.swift:46-106 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListsMethod.swift:35-92 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetPopularFeedGeneratorsMethod.swift:36-90 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestionsSkeletonMethod.swift:42-101 \u2014 These 4 members are variants of one another: a block of 21 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them 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":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetTimelineMethod.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a0cb2aa4f96e6a844f1bd961506106f781c6c765edced75433e69193aeaafe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): Sources/ATProtoKit/Utilities/Extensions/TruncatedEncoding.swift:36-69 | Sources/ATProtoKit/Utilities/Extensions/TruncatedEncoding.swift:86-121 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/Utilities/Extensions/TruncatedEncoding.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"e59b6eccd64d57a86e37fd8824c05d3d643051616ff889eece29ad5c8d792a54"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (31 members, 50\u002B identical tokens): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddMemberAsAdmin.swift:34-70 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift:38-80 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EmitEventAsAdmin.swift:39-83 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SendEmailAsAdmin.swift:37-80 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneModerationCancelScheduledActionsMethod.swift:31-67 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueAssignModeratorMethod.swift:30-66 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueCreateQueueMethod.swift:37-81 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueDeleteQueueMethod.swift:32-68 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueUpdateQueueMethod.swift:33-75 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportAssignModeratorMethod.swift:33-73 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportCloseReportsMethod.swift:38-78 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportCreateActivityMethod.swift:35-79 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportReassignQueueMethod.swift:32-70 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportUnassignModeratorMethod.swift:28-60 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkAddRuleMethod.swift:34-78 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkQueryEventsMethod.swift:31-75 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkQueryRulesMethod.swift:38-88 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkRemoveRuleMethod.swift:33-73 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkUpdateRuleMethod.swift:35-79 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneVerificationRevokeVerificationsMethod.swift:32-69 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateCommunicationTemplateAsAdmin.swift:40-87 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateMemberAsAdmin.swift:35-72 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateSubjectStatusAsAdmin.swift:35-73 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpsertOptionAsAdmin.swift:30-72 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactImportContactsMethod.swift:33-70 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactVerifyPhoneMethod.swift:34-69 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentitySignPlcOperationMethod.swift:37-80 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoModerationCreateReportMethod.swift:33-72 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoCreateRecordMethod.swift:41-86 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoPutRecordMethod.swift:39-86 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerCreateAppPasswordMethod.swift:35-73 \u2014 These 31 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 31 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 31 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddMemberAsAdmin.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"143264f31ed835929c761a160bda8b82f28152807a5498547fb905f323f08628"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (31 members, 50\u002B identical tokens): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkCreateBookmarkMethod.swift:33-68 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkDeleteBookmarkMethod.swift:29-60 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactDismissMatchMethod.swift:29-60 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactRemoveDataMethod.swift:26-55 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactSendNotificationMethod.swift:33-65 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactStartPhoneVerificationMethod.swift:32-63 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftDeleteDraftMethod.swift:28-57 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftUpdateDraftMethod.swift:30-64 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphMuteActorListMethod.swift:28-59 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphMuteActorMethod.swift:28-58 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphMuteThreadMethod.swift:29-60 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphUnmuteActorListMethod.swift:28-59 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphUnmuteActorMethod.swift:28-58 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphUnmuteThreadMethod.swift:28-59 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationPutPreferencesMethod.swift:28-59 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationRegisterPushMethod.swift:33-74 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationUnregisterPushMethod.swift:33-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationUpdateSeenMethod.swift:29-60 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyModerationUpdateActorAccessMethod.swift:31-69 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentitySubmitPlcOperationMethod.swift:29-59 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityUpdateHandleMethod.swift:29-58 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoApplyWritesMethod.swift:32-71 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoDeleteRecordMethod.swift:35-76 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoImportRepoMethod.swift:34-67 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerConfirmEmailMethod.swift:37-72 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerDeactivateAccountMethod.swift:33-64 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerRevokeAppPasswordMethod.swift:28-59 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerUpdateEmailMethod.swift:35-72 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempAddReservedHandleMethod.swift:31-62 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempRevokeAccountCredentialsMethod.swift:29-60 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComStprotoServerDeleteAccountMethod.swift:33-70 \u2014 These 31 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 31 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 31 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkCreateBookmarkMethod.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"f88f6558c20c84abf83894f5cfc40eb0ffba33677b310d0f64e56a3b4fdd0e20"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (11 members, 50\u002B identical tokens): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddValuesAsAdmin.swift:23-57 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DeleteAccountAsAdmin.swift:31-61 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DeleteValuesAsAdmin.swift:30-65 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableAccountInvitesAsAdmin.swift:33-67 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableInviteCodesAsAdmin.swift:33-65 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EnableAccountInvitesAsAdmin.swift:36-70 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountEmailAsAdmin.swift:33-67 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountHandleAsAdmin.swift:33-67 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountPasswordAsAdmin.swift:30-64 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountSigningKey.swift:24-58 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempRequestPhoneVerificationMethod.swift:34-64 \u2014 These 11 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 11 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 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddValuesAsAdmin.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"beeac56cc3811007f5a0fa603a1038584e19b3a22308889abda16b0072ef3ea3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (11 members, 50\u002B identical tokens): Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAcceptConvoMethod.swift:26-61 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAddReactionMethod.swift:33-74 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoDeleteMessageForSelfMethod.swift:28-66 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoLeaveConvoMethod.swift:26-60 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoMuteConvoMethod.swift:26-60 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoRemoveReactionMethod.swift:33-74 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoSendMessageBatchMethod.swift:28-64 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoSendMessageMethod.swift:30-68 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoUnmuteConvoMethod.swift:26-60 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoUpdateAllReadMethod.swift:26-63 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoUpdateReadMethod.swift:28-66 \u2014 These 11 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 11 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 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAcceptConvoMethod.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"93af3e801bc7ea4c81243e9f17251f525ba78c77f420aff606a04a7f68074332"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (9 members, 50\u002B identical tokens): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableAccountInvitesAsAdmin.swift:33-67 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableInviteCodesAsAdmin.swift:33-65 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EnableAccountInvitesAsAdmin.swift:36-70 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueUnassignModeratorMethod.swift:30-60 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountPasswordAsAdmin.swift:30-64 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoApplyWritesMethod.swift:32-71 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoDeleteRecordMethod.swift:35-76 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerConfirmEmailMethod.swift:37-72 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerUpdateEmailMethod.swift:35-72 \u2014 These 9 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 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableAccountInvitesAsAdmin.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"8774df2da6f0651483d5891fb1ec8f64dbfa70b62298fee06ed7268364c26809"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkDeleteBookmarkMethod.swift:29-60 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactDismissMatchMethod.swift:29-60 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactStartPhoneVerificationMethod.swift:32-63 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftDeleteDraftMethod.swift:28-57 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphUnmuteThreadMethod.swift:28-59 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationUpdateSeenMethod.swift:29-60 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentitySubmitPlcOperationMethod.swift:29-59 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempRequestPhoneVerificationMethod.swift:34-64 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkDeleteBookmarkMethod.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"306e16cc8ff1b60216401164de4857d2151ae740c283bda9884574f3873a7e2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddValuesAsAdmin.swift:23-57 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountSigningKey.swift:24-58 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkCreateBookmarkMethod.swift:33-68 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactSendNotificationMethod.swift:33-65 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationRegisterPushMethod.swift:33-74 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationUnregisterPushMethod.swift:33-73 \u2014 These 6 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 6 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 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddValuesAsAdmin.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"538e39bb5c320000d6c3975e636fa6120b4c035d54ef92a7d2138738c800bc74"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListItemRecord/CreateListItemRecord.swift:55-97 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListRecord/CreateListRecord.swift:67-164 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostRecord/CreatePostRecord.swift:336-590 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/CreateStarterPackRecord.swift:59-123 \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":"Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListItemRecord/CreateListItemRecord.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"11c99e7e8564b2019018dff7c14eb8fa9bbf54daac7c523f07eb025e2a4bfa78"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/ATProtoKit/Models/Common/ATEventStreamConfiguration/FirehoseEventRepresentable.swift:211-217 | Sources/ATProtoKit/Models/Common/ATEventStreamConfiguration/FirehoseEventRepresentable.swift:250-257 | Sources/ATProtoKit/Models/Common/ATEventStreamConfiguration/FirehoseEventRepresentable.swift:291-298 | Sources/ATProtoKit/Models/Common/ATEventStreamConfiguration/FirehoseEventRepresentable.swift:329-335 \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":"Sources/ATProtoKit/Models/Common/ATEventStreamConfiguration/FirehoseEventRepresentable.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"23be98af490d62eac18e0235f7f48d7e10fcd4aa570650f3dfe5a909fde91194"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (58 corresponding lines): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetAuthorFeedMethod.swift:45-102 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationListNotificationsMethod.swift:44-113 \u2014 These two members are one piece of code written twice and then edited apart: 58 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetAuthorFeedMethod.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae7be7a7c3b5d51baf5638dcc2ffbcc2b56191c256039bc1d12517b47d3bdaec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchActorsSkeletonMethod.swift:39-95 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchStarterPacksSkeletonMethod.swift:35-85 \u2014 These two members are one piece of code written twice and then edited apart: 51 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchActorsSkeletonMethod.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6a1e3513487b54879d56fe9339cbc1ec91f80f8d97644b85d3cf4c27688cae8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 52\u002B corresponding lines): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindRelatedAccountsAsAdmin.swift:36-87 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SignatureSearchAccountsAsAdmin.swift:34-85 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneHostingGetAccountHistoryMethod.swift:35-91 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 52 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindRelatedAccountsAsAdmin.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"099cb874ec1947f0c445af275740f556bcbc60b814664cdd262433700914844a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 45\u002B corresponding lines): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsTypeaheadMethod.swift:46-90 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetPostThreadMethod.swift:36-89 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowersMethod.swift:35-85 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowsMethod.swift:35-85 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoLabelQueryLabelsMethod.swift:39-94 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 45 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsTypeaheadMethod.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"8431094a23edff9d5f663424ccc56e2846bde08144a5ca849d73d789ba2cad7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): Sources/ATProtoKit/Utilities/ATFacetParser.swift:146-175 | Sources/ATProtoKit/Utilities/ATFacetParser.swift:276-305 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/Utilities/ATFacetParser.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4abc7c6b4234ca2642fcec443f6173d739e396dbf11e0916452b2888bfd73c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListReposByCollectionMethod.swift:35-81 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListReposMethod.swift:34-77 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListReposByCollectionMethod.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"af80e485bfb899b2fcbd789fe9386d396d1f61d99a2b0d07f4ddc85c2d99e6bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Sources/ATProtoKit/Models/Common/ATEventStreamConfiguration/FirehoseEventRepresentable.swift:397-419 | Sources/ATProtoKit/Utilities/ATRecordProtocol.swift:640-664 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/Models/Common/ATEventStreamConfiguration/FirehoseEventRepresentable.swift"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"d15628ecdfe00639886c48b297429064c0db83ae17be564d656aa699a38e2aa5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 44\u002B corresponding lines): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift:35-84 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetSuggestionsMethod.swift:34-80 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsMethod.swift:39-82 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 44 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"853248be74275175732632969de97c0f45c6cd7c6689ab46a8d4523102503b6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetLiveStatsMethod.swift:33-85 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetRelationshipsMethod.swift:35-76 \u2014 These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetLiveStatsMethod.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eea236ab822afbc5da0f9934beb7c61182ad391ddde5e426525502d099c2ad2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/AddFeedToStarterPackRecord.swift:41-72 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/RemoveFeedFromStarterPackRecord.swift:40-67 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/AddFeedToStarterPackRecord.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c22a34dba9434873de398113f31dbc905ca17ef0eeaafd10999227bf575ee30"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerCreateInviteCodeMethod.swift:34-72 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerCreateInviteCodesMethod.swift:30-67 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerCreateInviteCodeMethod.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4946a7e7c54c2c2f513d46e219f2a777f5c3ebf7db6e4fd3508ac11808c0355"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 44\u002B corresponding lines): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRecordAsAdmin.swift:33-76 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetValuesAsAdmin.swift:32-81 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoGetRecordMethod.swift:34-79 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerGetServiceAuthMethod.swift:34-85 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 44 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRecordAsAdmin.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1cf2950f27a23d2b96c29fe59688d67623c24dc7cb841c29311ea68d6a458b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyVideoGetJobStatusMethod.swift:29-66 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRepoStatusMethod.swift:30-69 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyVideoGetJobStatusMethod.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1e5b93e3748e4d14647530ca62b7b5a9e7d586b49f1881b079e745883954eda"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostRecord/CreatePostRecord.swift:606-631 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostRecord/CreatePostRecord.swift:646-673 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostRecord/CreatePostRecord.swift"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee7dcf26f2a4023080cd954945304427d80fd22c76e259e1a893c867e9d87b1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 34\u002B corresponding lines): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftCreateDraftMethod.swift:31-64 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSendInteractionsMethod.swift:34-71 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationPutActivitySubscriptionMethod.swift:32-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedInitAgeAssuranceMethod.swift:35-74 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 34 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftCreateDraftMethod.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"5812a6a877530bf6ed71d107c89c2db5c2576b5526656acf3cbcb3c58ff2128e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 34\u002B corresponding lines): Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveDidMethod.swift:29-62 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveIdentityMethod.swift:30-63 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetHostStatusMethod.swift:30-69 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempCheckSignupQueueMethod.swift:33-66 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 34 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveDidMethod.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1b46a6ac9bb04e0dcdd8636c71a668032f691c465306cb8f7735c6686083e8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 31\u002B corresponding lines): Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/FollowRecord/CreateFollowRecord.swift:31-65 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/LikeRecord/CreateLikeRecord.swift:30-64 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/RepostRecord/CreateRepostRecord.swift:28-58 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 31 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/FollowRecord/CreateFollowRecord.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d22b4234101e6a4ee91eb19e7f26ac48574a84eb63f6486e179200ec21455fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 36\u002B corresponding lines): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetConfigAsAdmin.swift:28-64 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetAgeAssuranceStateMethod.swift:32-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetConfigMethod.swift:31-68 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyVideoGetUploadLimitsMethod.swift:29-64 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 36 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetConfigAsAdmin.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"b59d0c941067e1fd37d8d875266bd327f15bb3ac9dc07b247a5cf651789470cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveHandleMethod.swift:30-63 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetLatestCommitMethod.swift:29-64 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveHandleMethod.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"26d7a454fcd39311f0f0b84c3e76f4c447998559fa35682aff3d673294042653"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 37\u002B corresponding lines): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetProfileMethod.swift:41-81 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerGetAccountInviteCodesMethod.swift:33-76 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetBlobMethod.swift:32-68 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 37 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetProfileMethod.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"5045661219aa9f8f7f4bbde5d039ea96b6a44d81833a5616ce276b3bb8be28af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/ATProtoKit/Models/Common/ATEventStreamConfiguration/FirehoseEventRepresentable.swift:117-129 | Sources/ATProtoKit/Models/Common/SessionToken.swift:197-214 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/Models/Common/ATEventStreamConfiguration/FirehoseEventRepresentable.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b2f20fe94df3318eec912c73b762ad795ee02f244fa0b0c5f9a6ed1ac0fd700"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 29\u002B corresponding lines): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetPreferencesMethod.swift:29-57 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationGetPreferencesMethod.swift:28-56 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyNotificationGetPreferencesMethod.swift:29-58 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 29 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetPreferencesMethod.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"78457429142ca472985629eb675dd335a09b2cfb86c8544fffe982c373b52d0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyActorDeleteAccountMethod.swift:25-55 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyNotificationPutPreferencesMethod.swift:32-70 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyActorDeleteAccountMethod.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"eff27410f60b76e3f7c40c40db58f37a606dfd55545a72ff36b266e1dc5a0127"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 29\u002B corresponding lines): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DeleteSetAsAdmin.swift:29-62 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpsertSetAsAdmin.swift:30-67 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerRequestEmailUpdateMethod.swift:28-56 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 29 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DeleteSetAsAdmin.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"51104a6132ae5d60d8d7e0154dc2c5b2556d2eef86bf921c9404a3982dac0a1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/ATProtoKit/Utilities/ATFacetParser.swift:652-668 | Sources/ATProtoKit/Utilities/ATFacetParser.swift:679-693 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/Utilities/ATFacetParser.swift"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"3db5e1df69179691cf7e7ee83959d114de70d74bb35ba30ae3862cb2e07ba97e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerCheckAccountStatusMethod.swift:32-58 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerListAppPasswordsMethod.swift:30-58 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerCheckAccountStatusMethod.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"1641c502352679b9817065aa782b1b4a6e0db075e86395243c3bdb0c758ee780"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): Sources/ATProtoKit/Utilities/ATFacetParser.swift:440-453 | Sources/ATProtoKit/Utilities/ATFacetParser.swift:459-472 | Sources/ATProtoKit/Utilities/ATFacetParser.swift:478-489 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/Utilities/ATFacetParser.swift"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"315f8bf82546d7d2227d532f43ecb328ce64635ca35e117fc1ec547a40f0dc0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 28\u002B corresponding lines): Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityRefreshIdentityMethod.swift:32-60 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerCreateSessionMethod.swift:39-70 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerReserveSigningKeyMethod.swift:31-58 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerResetPasswordMethod.swift:32-61 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 28 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityRefreshIdentityMethod.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b4e77542a1aaa11e85a15400ad306c53c0c714ed9e22f8e82bfa00ea7eb0eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerRequestPasswordResetMethod.swift:30-55 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncRequestCrawlMethod.swift:30-61 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerRequestPasswordResetMethod.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f1117da5e11e5a83c47b7ac1ddeac9aab8521e888704e87c9b74f05c4f6a4b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 19\u002B corresponding lines): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedDescribeFeedGeneratorMethod.swift:30-52 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTaggedSuggestionsMethod.swift:31-54 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerDescribeServerMethod.swift:29-51 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerRefreshSessionMethod.swift:35-53 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedDescribeFeedGeneratorMethod.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"d489d8e2cc59bceb95d0b6c5830be7b77babb6193663bc1f43ee85777c5caa42"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Sources/ATProtoKit/APIReference/SessionManager/SessionCapabilities.swift:694-714 | Sources/ATProtoKit/APIReference/SessionManager/SessionConfiguration.swift:86-104 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/SessionManager/SessionCapabilities.swift"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab27520ea1c3dd6034d66a45e617873e21a793e7c347ad7da70932f20707c99"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/ATProtoKit/Utilities/ATProtoTools.swift:259-273 | Sources/ATProtoKit/Utilities/ATProtoTools.swift:376-393 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/Utilities/ATProtoTools.swift"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fcda516bcbd2932fc8d44bb5ee274f5f3c741b782ccab03284ff5e6393ee963"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/ATProtoKit/Utilities/ATCBORManager.swift:138-157 | Sources/ATProtoKit/Utilities/ATCBORManager.swift:164-178 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/Utilities/ATCBORManager.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"22df42934bfb2bb405eb01f9d3d5b5210c445814f2301161e72ed2c1e5c48652"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/ATProtoKit/Utilities/Extensions/DateFormatting.swift:74-80 | Sources/ATProtoKit/Utilities/Extensions/DateFormatting.swift:89-97 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/Utilities/Extensions/DateFormatting.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"90f57cd602961d1ab2311dc80fb60a8ab06017dc7c76620a21f9e1ea91c42110"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/ATProtoKit/Utilities/Extensions/DateFormatting.swift:110-116 | Sources/ATProtoKit/Utilities/Extensions/DateFormatting.swift:128-136 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/Utilities/Extensions/DateFormatting.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"5634c86978c2b11d3176fcdd9ddf7319852c3911cdea1fb51faa3cb7ec9b742a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/ATProtoKit/Utilities/ATRecordProtocol.swift:196-210 | Sources/ATProtoKit/Utilities/ATRecordProtocol.swift:218-237 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/Utilities/ATRecordProtocol.swift"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"61c5a36750d4ff638543aef52829cd58c73926b9b5c2fb8d3afada6bf0a7c9fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/ATProtoKit/APIReference/SessionManager/ATOAuthSessionConfiguration.swift:118-128 | Sources/ATProtoKit/APIReference/SessionManager/ATOAuthSessionConfiguration.swift:133-148 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/SessionManager/ATOAuthSessionConfiguration.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"834cabaa1a105705662598e27d589408b5da48d2efdb9859322773f730026d7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201332 lines \u00D7 2): Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostgateRecord/CreatePostgateRecord.swift:88-118 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostgateRecord/UpdatePostgateRecord.swift:31-62 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostgateRecord/CreatePostgateRecord.swift:88\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostgateRecord/CreatePostgateRecord.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"37773b683c0c6d7d4d3c852593f9fe7e3222d8d802ddbcc09a8617e0b5184759"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): Sources/ATProtoKit/Utilities/Extensions/TruncatedEncoding.swift:42-69 | Sources/ATProtoKit/Utilities/Extensions/TruncatedEncoding.swift:93-120 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/Utilities/Extensions/TruncatedEncoding.swift:93\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/Utilities/Extensions/TruncatedEncoding.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"029f824ba3e30a00d68d7f6989dbb48cd6833442e3e1b5369304a7f5e0cbbf08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201327 lines \u00D7 3): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift:36-62 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetModerationEventAsAdmin.swift:34-60 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRepositoryAsAdmin.swift:33-57 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetModerationEventAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 112 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift:36\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"eed573957b524e996553c869a0669c49c11f3234ec7315ace9acd402aa081428"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoGetRecordMethod.swift:41-66 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRecordMethod.swift:39-64 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoGetRecordMethod.swift:41\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoGetRecordMethod.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"53176fbffbbb014e033f31bca7ad0d5dbea476d06aeaecd804b701781c51dddc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:91-115 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchPostsSkeletonMethod.swift:83-107 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchPostsSkeletonMethod.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 144 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:91\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:116\u0060 calls \u0060prefix\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchPostsSkeletonMethod.swift:108\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"886b783d3f995b9d0062851f359c2c88e73dd45565c05b8668d75de0b996bced"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 4): Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityRequestPlcOperationSignatureMethod.swift:27-50 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerActivateAccountMethod.swift:28-51 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerRequestAccountDeleteMethod.swift:30-53 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerRequestEmailConfirmationMethod.swift:27-50 \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 4 call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityRequestPlcOperationSignatureMethod.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"202b29075da2bf365a567bc38cb28dea08baedcddd87ed6803d7cb305e6ccb6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostgateRecord/UpdatePostgateRecord.swift:58-81 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/UpdateThreadgateRecord.swift:64-87 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostgateRecord/UpdatePostgateRecord.swift:58\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/UpdateThreadgateRecord.swift:62\u0060 calls \u0060Date\u0060 and \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostgateRecord/UpdatePostgateRecord.swift:56\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostgateRecord/UpdatePostgateRecord.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dc71b41867690bf43b27acb584366459930bae27e8b6a5e8d94c7b8f868d2cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 4): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetListFeedMethod.swift:59-80 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetTimelineMethod.swift:70-91 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetPopularFeedGeneratorsMethod.swift:55-76 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestionsSkeletonMethod.swift:66-87 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetListFeedMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetTimelineMethod.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 80 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetListFeedMethod.swift:59\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetListFeedMethod.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"39ca8c65c4271d75f63756ad3c2ac9754a3013c9c0d6579a7b621e0cf33abab2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostgateRecord/CreatePostgateRecord.swift:115-136 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/CreateThreadgateRecord.swift:99-120 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostgateRecord/CreatePostgateRecord.swift:115\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/CreateThreadgateRecord.swift:97\u0060 calls \u0060Date\u0060 and \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostgateRecord/CreatePostgateRecord.swift:113\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostgateRecord/CreatePostgateRecord.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"745017de57794cc9639043e8fa83676b62364172f4c0c9dc598424bd602b4172"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddMemberAsAdmin.swift:49-70 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateMemberAsAdmin.swift:52-72 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddMemberAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateMemberAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 46 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddMemberAsAdmin.swift:49\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddMemberAsAdmin.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee5894c15b8f4b8942d3d082bcd91053d5b9e82ee3b08a5360037fe8ac66e95a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift:59-80 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateCommunicationTemplateAsAdmin.swift:66-87 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateCommunicationTemplateAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 110 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift:59\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7e8b9cd5b4f446fceef70608edf5827ef026dafbb58fc08cbb3be2afb4fdd11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:135-156 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:269-290 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 130 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:135\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:157\u0060 calls \u0060max\u0060, \u0060min\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:291\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"b007559589e92a17469f53efba6092f700a508e12e1c10d462bc55db02f1f0cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201322 lines \u00D7 2): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportAssignModeratorMethod.swift:52-73 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportUnassignModeratorMethod.swift:42-60 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportAssignModeratorMethod.swift:52\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportAssignModeratorMethod.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a633fa2b36025ec506aae7a4c5e720849858f741057769a79a7669e37f4e14c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkRemoveRuleMethod.swift:52-73 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkUpdateRuleMethod.swift:58-79 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkRemoveRuleMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkUpdateRuleMethod.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 111 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkRemoveRuleMethod.swift:52\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkRemoveRuleMethod.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"278df90206adcba223c4e3828817f6f92bdfa4558efdb226e205e975b6b0cf4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoCreateRecordMethod.swift:65-86 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoPutRecordMethod.swift:65-86 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoCreateRecordMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoPutRecordMethod.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 111 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoCreateRecordMethod.swift:65\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoCreateRecordMethod.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"219b870c2d36d16dbe9cd50fa4d8365d06040d36553dc31a047caecda19642d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 3): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetConfigAsAdmin.swift:34-54 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetAgeAssuranceStateMethod.swift:40-59 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetConfigMethod.swift:39-58 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetConfigAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetAgeAssuranceStateMethod.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetConfigAsAdmin.swift:34\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetConfigAsAdmin.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"d21fec09d278a2844b5c0f6188cbcc65276c0f5d39568ee68e3e929ebc19e317"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201321 lines \u00D7 3): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:120-140 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:83-99 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchPostsSkeletonMethod.swift:75-91 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:120\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"840e75c0fa817899a4ba0790b2c76e7135790a16fa428987e62ff94266c647d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/FollowRecord/CreateFollowRecord.swift:45-65 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/LikeRecord/CreateLikeRecord.swift:44-64 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/FollowRecord/CreateFollowRecord.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/LikeRecord/CreateLikeRecord.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/FollowRecord/CreateFollowRecord.swift:45\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/FollowRecord/CreateFollowRecord.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"78e0146dfa6155fca1f7d0a2eb2eedd3917c3b4c08274b5d50aa88c9daeacb1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 2): Sources/ATProtoKit/APIReference/SessionManager/SessionCapabilities.swift:469-487 | Sources/ATProtoKit/APIReference/SessionManager/SessionCapabilities.swift:542-562 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/SessionManager/SessionCapabilities.swift:542\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/ATProtoKit/APIReference/SessionManager/SessionCapabilities.swift:564\u0060 calls \u0060getSession\u0060 and \u0060Sources/ATProtoKit/APIReference/SessionManager/SessionCapabilities.swift:489\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/SessionManager/SessionCapabilities.swift"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e76d01a912e3bf11f6ac9a7816437bf9f3b2fcf852fb9142018f188a7c51214"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 5): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddValuesAsAdmin.swift:38-57 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountSigningKey.swift:39-58 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkCreateBookmarkMethod.swift:49-68 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactSendNotificationMethod.swift:46-65 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationRegisterPushMethod.swift:55-74 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkCreateBookmarkMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactSendNotificationMethod.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddValuesAsAdmin.swift:38\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddValuesAsAdmin.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"11bc9da25ff20800f1a5eae19ea070d7849bfb15409ba63b34208bb8969fca19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 5): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift:41-60 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetModerationEventAsAdmin.swift:39-58 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRepositoryAsAdmin.swift:38-55 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveHandleMethod.swift:32-51 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetLatestCommitMethod.swift:33-52 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetModerationEventAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 112 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift:41\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e0c4a20c9278c85a15eb0c76705d09fbc026d65ebf12d42e359e78522c63dc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 4): Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetBlobMethod.swift:49-68 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetBlocksMethod.swift:53-72 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRecordMethod.swift:57-76 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRepoMethod.swift:52-71 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetBlocksMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRepoMethod.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetBlobMethod.swift:49\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetBlobMethod.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"828acff8c8dada42e9444db112e77efe2355a0cfdcf4e2657e812be19f99f180"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableAccountInvitesAsAdmin.swift:47-66 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EnableAccountInvitesAsAdmin.swift:50-69 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountPasswordAsAdmin.swift:44-63 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableAccountInvitesAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EnableAccountInvitesAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 60 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableAccountInvitesAsAdmin.swift:47\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableAccountInvitesAsAdmin.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"cafc27c8ea906610bb6bf249d90d1f77a9fa15607efd3d890c2cc423772d4680"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoApplyWritesMethod.swift:50-69 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoDeleteRecordMethod.swift:55-74 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerUpdateEmailMethod.swift:51-70 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoApplyWritesMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoDeleteRecordMethod.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 71 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoApplyWritesMethod.swift:50\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoApplyWritesMethod.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa32b28d50136ba9cc7944525b9f6a345f7409b151acb8d36d1fa004e521349a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38\u201339 lines \u00D7 2): Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/CreateThreadgateRecord.swift:65-102 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/UpdateThreadgateRecord.swift:30-68 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/CreateThreadgateRecord.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/UpdateThreadgateRecord.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 62 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/CreateThreadgateRecord.swift:65\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/CreateThreadgateRecord.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8d1133cfc1a5c8c168806ea8c78e018f47a63eb4aa6d71e36b9c92c42cda87d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift:35-54 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedGeneratorsMethod.swift:40-58 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedGeneratorsMethod.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift:35\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"641d13a4e7bc3e15a36d8c929477b1d1d475d11a781cba10cbd55e6a57d36a58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncNotifyOfUpdateMethod.swift:45-64 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncRequestCrawlMethod.swift:42-61 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncNotifyOfUpdateMethod.swift:45\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncNotifyOfUpdateMethod.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"7342d607d4f3861c925b8330379e326efadf492798bdde78a59f813732a30950"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 39): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetValuesAsAdmin.swift:48-66 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListMembersAsAdmin.swift:69-87 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SearchRepositoriesAsAdmin.swift:56-74 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkGetBookmarksMethod.swift:49-67 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactGetMatchesMethod.swift:50-68 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftGetDraftsMethod.swift:49-67 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorFeedsMethod.swift:53-71 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorLikesMethod.swift:61-79 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedMethod.swift:55-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift:59-77 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetQuotesMethod.swift:59-77 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetRepostedByMethod.swift:59-77 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetSuggestedFeedsMethod.swift:48-66 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:120-138 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsV2Method.swift:217-235 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetActorStarterPacksMethod.swift:53-71 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetBlocksMethod.swift:49-67 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowersMethod.swift:52-70 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowsMethod.swift:52-70 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetKnownFollowersMethod.swift:53-71 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListBlocksMethod.swift:49-67 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMethod.swift:53-71 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMutesMethod.swift:49-67 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListsWithMembershipMethod.swift:58-76 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetMutesMethod.swift:49-67 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPacksWithMembershipMethod.swift:55-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphSearchStarterPacksMethod.swift:47-65 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationsListActivitySubscriptionsMethod.swift:50-68 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchActorsSkeletonMethod.swift:62-80 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchPostsSkeletonMethod.swift:111-129 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchStarterPacksSkeletonMethod.swift:53-71 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetMessagesMethod.swift:50-68 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoListConvosMethod.swift:50-68 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoLabelQueryLabelsMethod.swift:61-79 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoListMissingBlobsMethod.swift:48-66 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListBlobsMethod.swift:55-73 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListHostsMethod.swift:48-66 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListReposByCollectionMethod.swift:48-66 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListReposMethod.swift:44-62 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetValuesAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListMembersAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 85 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetValuesAsAdmin.swift:48\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:116\u0060 calls \u0060prefix\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListMembersAsAdmin.swift:65\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetValuesAsAdmin.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaa405378200a59598bfd55dd210381150e3a9b62f00bb2d1dfb45a683af8832"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 8): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetReporterStats.swift:36-54 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRepositoriesAsAdmin.swift:34-52 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetSubjectsAsAdmin.swift:34-52 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetProfilesMethod.swift:48-65 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetPostsMethod.swift:49-67 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPacksMethod.swift:36-53 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoAvailabilityMethod.swift:39-56 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoForMembersMethod.swift:38-55 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetReporterStats.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRepositoriesAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 90 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetReporterStats.swift:36\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetReporterStats.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dea1504513ada0ec0c363c0381c40fcc5758a62d7621326ccfcab39eb24af8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveDidMethod.swift:36-54 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveIdentityMethod.swift:37-55 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveDidMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveIdentityMethod.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 50 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveDidMethod.swift:36\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveDidMethod.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"53c2b2e0d00768d46904889ec2029ccabe9f718bef17e32eb4e6bdfc088ae57c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 83): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:67-83 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift:43-59 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindRelatedAccountsAsAdmin.swift:63-79 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift:48-64 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfosAsAdmin.swift:46-62 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetConfigAsAdmin.swift:40-56 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift:60-76 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetModerationEventAsAdmin.swift:46-62 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRecordAsAdmin.swift:52-68 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetReporterStats.swift:45-61 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRepositoriesAsAdmin.swift:43-59 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRepositoryAsAdmin.swift:43-59 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetSubjectStatusAsAdmin.swift:55-71 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetSubjectsAsAdmin.swift:43-59 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetValuesAsAdmin.swift:57-73 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListMembersAsAdmin.swift:78-94 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift:74-90 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ModerationGetRecordsAsAdmin.swift:42-58 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:218-234 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:305-321 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift:74-90 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SearchRepositoriesAsAdmin.swift:65-81 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SignatureSearchAccountsAsAdmin.swift:61-77 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneHostingGetAccountHistoryMethod.swift:67-83 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneListVerificationsMethod.swift:97-113 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneModerationGetAccountTimelineMethod.swift:44-60 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueGetAssignmentsMethod.swift:71-87 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueListQueuesMethod.swift:80-96 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetAssignmentsMethod.swift:72-88 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetHistoricalStatsMethod.swift:86-102 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetLiveStatsMethod.swift:61-77 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetReportMethod.swift:44-60 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportListActivitiesMethod.swift:58-74 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportQueryActivitiesMethod.swift:79-95 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportQueryReportsMethod.swift:133-149 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkGetBookmarksMethod.swift:58-74 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactGetMatchesMethod.swift:59-76 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftGetDraftsMethod.swift:58-74 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyEmbedGetEmbedExternalViewMethod.swift:58-74 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorFeedsMethod.swift:62-78 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedGeneratorMethod.swift:47-63 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedGeneratorsMethod.swift:47-63 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift:68-84 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetQuotesMethod.swift:68-84 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetRepostedByMethod.swift:68-84 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetSuggestedFeedsMethod.swift:57-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetActorStarterPacksMethod.swift:62-78 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetBlocksMethod.swift:58-74 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetKnownFollowersMethod.swift:62-78 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListBlocksMethod.swift:58-74 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMethod.swift:62-78 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMutesMethod.swift:58-74 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListsMethod.swift:68-84 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListsWithMembershipMethod.swift:67-83 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetMutesMethod.swift:58-74 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPackMethod.swift:41-57 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPacksMethod.swift:44-60 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPacksWithMembershipMethod.swift:64-80 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetSuggestedFollowsByActorMethod.swift:47-63 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationGetUnreadCountMethod.swift:62-78 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationsListActivitySubscriptionsMethod.swift:59-75 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetAgeAssuranceStateMethod.swift:45-61 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetConfigMethod.swift:44-60 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetOnboardingSuggestedStarterPacksMethod.swift:47-63 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetOnboardingSuggestedStarterPacksSkeletonMethod.swift:58-74 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetPopularFeedGeneratorsMethod.swift:66-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedFeedsMethod.swift:49-65 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedFeedsSkeletonMethod.swift:59-75 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedStarterPacksMethod.swift:49-65 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedStarterPacksSkeletonMethod.swift:59-75 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedUsersMethod.swift:58-74 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedUsersSkeletonMethod.swift:61-77 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestionsSkeletonMethod.swift:77-93 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendingTopicsMethod.swift:62-78 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendsMethod.swift:49-65 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendsSkeletonMethod.swift:59-75 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoListMissingBlobsMethod.swift:57-73 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerGetAccountInviteCodesMethod.swift:52-68 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerGetServiceAuthMethod.swift:61-77 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRepoStatusMethod.swift:45-61 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListHostsMethod.swift:57-73 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempCheckHandleAvailabilityMethod.swift:64-80 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempDereferenceScopeMethod.swift:44-60 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindRelatedAccountsAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 59 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:67\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:63\u0060 calls \u0060max\u0060, \u0060min\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift:70\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"27c6c526302eda14b55094af41a50001874a7fa156b95c585905fbaf68ac4740"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 7): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorLikesMethod.swift:70-87 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedMethod.swift:64-81 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetPostsMethod.swift:58-75 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetTimelineMethod.swift:81-98 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:129-146 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsV2Method.swift:226-243 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationListNotificationsMethod.swift:88-105 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorLikesMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedMethod.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 129 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorLikesMethod.swift:70\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorLikesMethod.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"6392fe544aa6e7aa089f6fb3280f6c4fae54766b0e0922486b6ed78fce82e029"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 7): Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoAvailabilityMethod.swift:47-64 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoForMembersMethod.swift:46-63 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoMethod.swift:41-58 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetLogMethod.swift:44-61 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetMessagesMethod.swift:59-76 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoListConvosMethod.swift:59-75 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyModerationGetActorMetadataMethod.swift:47-64 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoAvailabilityMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoForMembersMethod.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 91 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoAvailabilityMethod.swift:47\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoAvailabilityMethod.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"0159b15614a46a02fe02d8548ab4297f183f24338edcd135067540a9c7f4009c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 4): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift:40-57 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetModerationEventAsAdmin.swift:38-55 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRepositoryAsAdmin.swift:37-52 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetProfileMethod.swift:50-66 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetModerationEventAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 112 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift:40\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"9386dbd6ea4be9acd02f283a0f7c2e039610e4e528275bed85e923c92febce4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetConfigAsAdmin.swift:35-52 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetAgeAssuranceStateMethod.swift:40-57 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetConfigMethod.swift:39-56 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyVideoGetUploadLimitsMethod.swift:34-51 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetConfigAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetAgeAssuranceStateMethod.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetConfigAsAdmin.swift:35\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetConfigAsAdmin.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"3268adeb4835fa6ab3410782c2a8da5f3f14603a21e60039295190d1d3c37123"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 4): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift:54-70 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRecordAsAdmin.swift:48-62 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsMethod.swift:54-71 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRecordMethod.swift:49-65 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRecordAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 84 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift:54\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"27ae6aef1f49ee390e9bc3331fef6c4806ce8838df7298564cac82d802661231"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 3): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift:53-70 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetSuggestionsMethod.swift:52-66 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsMethod.swift:53-70 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 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 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift:53\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"700bc15c01c75c69dbdee508c0083c933afc592d47338c519f29d411a2d77200"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 3): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRecordAsAdmin.swift:48-62 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoGetRecordMethod.swift:50-67 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRecordMethod.swift:48-65 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRecordAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRecordMethod.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 84 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRecordAsAdmin.swift:48\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRecordAsAdmin.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4879ee5fe1c8d2742f6279efb87b7fe50456ddd6db172ec88a81795d161ce90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveHandleMethod.swift:36-53 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetBlobMethod.swift:44-61 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetLatestCommitMethod.swift:37-54 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveHandleMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetLatestCommitMethod.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 54 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveHandleMethod.swift:36\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveHandleMethod.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab4ba12ba01b8a48360094b4f0ddcecd727972fd0c03400100846ba6f4b08fc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListCommunicationTemplatesAsAdmin.swift:33-50 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetLatestReportMethod.swift:29-46 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListCommunicationTemplatesAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetLatestReportMethod.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListCommunicationTemplatesAsAdmin.swift:33\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListCommunicationTemplatesAsAdmin.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba4b2bdb15cea8577d0052136f8d93076da646fe39dacc4ded808e5411fccd69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationRegisterPushMethod.swift:52-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationUnregisterPushMethod.swift:50-66 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationRegisterPushMethod.swift:52\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationRegisterPushMethod.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"b17d6e3d4d578a8f741750dc3f6150bcec7a5a58cb87d7db5e7c85618536c353"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetHostStatusMethod.swift:31-48 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRepoStatusMethod.swift:31-48 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetHostStatusMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRepoStatusMethod.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 49 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetHostStatusMethod.swift:31\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetHostStatusMethod.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"538cc4098a94f35f1519a02a3d1d6d3fef504c41203e46d08e1a63d845a30c9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 15): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneModerationGetAccountTimelineMethod.swift:37-53 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedGeneratorMethod.swift:40-56 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPackMethod.swift:34-50 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetSuggestedFollowsByActorMethod.swift:40-56 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyVideoGetJobStatusMethod.swift:34-50 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoMethod.swift:34-50 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyModerationGetActorMetadataMethod.swift:40-56 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveDidMethod.swift:31-47 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveIdentityMethod.swift:32-48 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoLexiconResolveLexiconMethod.swift:32-48 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoDescribeRepoMethod.swift:35-51 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetHostStatusMethod.swift:38-54 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRepoStatusMethod.swift:38-54 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempCheckSignupQueueMethod.swift:35-51 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempDereferenceScopeMethod.swift:37-53 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneModerationGetAccountTimelineMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedGeneratorMethod.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneModerationGetAccountTimelineMethod.swift:37\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneModerationGetAccountTimelineMethod.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"4285215bc0e9cb696fa76eb952a98095f4b319978ba1e1ce8aaad3972da93888"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 8): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkDeleteBookmarkMethod.swift:41-60 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactDismissMatchMethod.swift:41-60 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactStartPhoneVerificationMethod.swift:44-63 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftDeleteDraftMethod.swift:41-57 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphUnmuteThreadMethod.swift:40-59 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationUpdateSeenMethod.swift:41-60 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentitySubmitPlcOperationMethod.swift:41-59 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempRequestPhoneVerificationMethod.swift:45-64 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactDismissMatchMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactStartPhoneVerificationMethod.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkDeleteBookmarkMethod.swift:41\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkDeleteBookmarkMethod.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"e34751569bcfd1e51d9719a720200ecd0d197a4153244c9b5e0594857514f63a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 5): Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAddReactionMethod.swift:50-66 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoDeleteMessageForSelfMethod.swift:43-58 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoRemoveReactionMethod.swift:50-66 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoSendMessageMethod.swift:45-60 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoUpdateReadMethod.swift:43-58 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAddReactionMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoDeleteMessageForSelfMethod.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAddReactionMethod.swift:50\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAddReactionMethod.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2c036a8be3cdd33694ffdd962fe80264fe21600f35112ef2c4ef2a1a53fd423"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetAuthorFeedMethod.swift:78-94 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowersMethod.swift:61-77 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowsMethod.swift:61-77 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoLabelQueryLabelsMethod.swift:70-86 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetAuthorFeedMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowersMethod.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 38 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetAuthorFeedMethod.swift:78\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetAuthorFeedMethod.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"84719c46564c88a49cee6a5bd728935556ffd70a267265e753223732007bf20f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkQueryRulesMethod.swift:61-77 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateCommunicationTemplateAsAdmin.swift:60-76 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoPutRecordMethod.swift:59-75 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkQueryRulesMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateCommunicationTemplateAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 95 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkQueryRulesMethod.swift:61\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkQueryRulesMethod.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"e52bc3f504f2f74143b9930d1f4d98b70315139b088a6dba797739452a165d6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListRecord/UpdateListRecord.swift:48-64 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ProfileRecord/UpdateProfileRecord.swift:48-64 \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":"Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListRecord/UpdateListRecord.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff3f67021b575bdc61e2285b3a4347bbf80e1c820d1e739cc0bb0792dd8cef51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:49-65 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedUsersSkeletonMethod.swift:43-59 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedUsersSkeletonMethod.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 77 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:49\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"25fda0ada5c8537d6075d785f8be3a70955ef65d3d83ba401ab0de24ad01704f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyVideoGetJobStatusMethod.swift:41-57 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyVideoGetUploadLimitsMethod.swift:39-55 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyVideoGetJobStatusMethod.swift:41\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyVideoGetJobStatusMethod.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"75464f7469e693975b1609e55f94639ce09ead774f48387fbbef98a831c020fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sources/ATProtoKit/APIReference/SessionManager/SessionCapabilities.swift:515-531 | Sources/ATProtoKit/APIReference/SessionManager/SessionCapabilities.swift:591-607 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/SessionManager/SessionCapabilities.swift:515\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/SessionManager/SessionCapabilities.swift"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"798ab652df97767ccff3fd85562bbd3ee2c09003be31c1235d72e9b67ef540eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 57): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift:56-71 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRecordAsAdmin.swift:48-63 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetValuesAsAdmin.swift:53-68 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListMembersAsAdmin.swift:74-89 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:214-229 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SearchRepositoriesAsAdmin.swift:61-76 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueGetAssignmentsMethod.swift:67-82 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueListQueuesMethod.swift:76-91 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetAssignmentsMethod.swift:68-83 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetHistoricalStatsMethod.swift:82-97 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportListActivitiesMethod.swift:54-69 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportQueryActivitiesMethod.swift:75-90 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportQueryReportsMethod.swift:129-144 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkGetBookmarksMethod.swift:54-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactGetMatchesMethod.swift:55-70 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftGetDraftsMethod.swift:54-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorFeedsMethod.swift:58-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorLikesMethod.swift:66-81 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedMethod.swift:60-75 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift:64-79 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetListFeedMethod.swift:66-81 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetQuotesMethod.swift:64-79 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetRepostedByMethod.swift:64-79 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetSuggestedFeedsMethod.swift:53-68 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetTimelineMethod.swift:77-92 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:125-140 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsV2Method.swift:222-237 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetActorStarterPacksMethod.swift:58-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetBlocksMethod.swift:54-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowersMethod.swift:57-72 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowsMethod.swift:57-72 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetKnownFollowersMethod.swift:58-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListBlocksMethod.swift:54-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMethod.swift:58-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMutesMethod.swift:54-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListsWithMembershipMethod.swift:63-78 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetMutesMethod.swift:54-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPacksWithMembershipMethod.swift:60-75 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphSearchStarterPacksMethod.swift:52-67 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationsListActivitySubscriptionsMethod.swift:55-70 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetPopularFeedGeneratorsMethod.swift:62-77 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestionsSkeletonMethod.swift:73-88 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchActorsSkeletonMethod.swift:67-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchPostsSkeletonMethod.swift:116-131 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchStarterPacksSkeletonMethod.swift:58-73 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetLogMethod.swift:40-55 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetMessagesMethod.swift:55-70 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoListConvosMethod.swift:55-70 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoLabelQueryLabelsMethod.swift:66-81 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoListMissingBlobsMethod.swift:53-68 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerGetServiceAuthMethod.swift:57-72 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRecordMethod.swift:51-66 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRepoMethod.swift:46-61 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListBlobsMethod.swift:60-75 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListHostsMethod.swift:53-68 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListReposByCollectionMethod.swift:53-68 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListReposMethod.swift:49-64 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRecordAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 84 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift:56\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListMembersAsAdmin.swift:70\u0060 calls \u0060max\u0060, \u0060min\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:209\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fa1d3d467d80473c04c586a7e9d964bb423a9d72d4c0f620839b1911971ec8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 57): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift:57-72 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRecordAsAdmin.swift:49-64 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetValuesAsAdmin.swift:54-69 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListMembersAsAdmin.swift:75-90 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:215-230 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SearchRepositoriesAsAdmin.swift:62-77 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueGetAssignmentsMethod.swift:68-83 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueListQueuesMethod.swift:77-92 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetAssignmentsMethod.swift:69-84 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetHistoricalStatsMethod.swift:83-98 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportListActivitiesMethod.swift:55-70 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportQueryActivitiesMethod.swift:76-91 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportQueryReportsMethod.swift:130-145 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkGetBookmarksMethod.swift:55-70 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactGetMatchesMethod.swift:56-71 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftGetDraftsMethod.swift:55-70 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorFeedsMethod.swift:59-74 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorLikesMethod.swift:67-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedMethod.swift:61-76 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift:65-80 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetListFeedMethod.swift:67-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetQuotesMethod.swift:65-80 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetRepostedByMethod.swift:65-80 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetSuggestedFeedsMethod.swift:54-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetTimelineMethod.swift:78-93 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:126-141 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsV2Method.swift:223-238 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetActorStarterPacksMethod.swift:59-74 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetBlocksMethod.swift:55-70 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowersMethod.swift:58-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowsMethod.swift:58-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetKnownFollowersMethod.swift:59-74 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListBlocksMethod.swift:55-70 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMethod.swift:59-74 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMutesMethod.swift:55-70 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListsWithMembershipMethod.swift:64-79 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetMutesMethod.swift:55-70 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPacksWithMembershipMethod.swift:61-76 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationListNotificationsMethod.swift:85-100 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationsListActivitySubscriptionsMethod.swift:56-71 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetPopularFeedGeneratorsMethod.swift:63-78 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestionsSkeletonMethod.swift:74-89 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchActorsSkeletonMethod.swift:68-83 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchPostsSkeletonMethod.swift:117-132 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetLogMethod.swift:41-56 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetMessagesMethod.swift:56-71 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoListConvosMethod.swift:56-71 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoLabelQueryLabelsMethod.swift:67-82 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoListMissingBlobsMethod.swift:54-69 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerGetServiceAuthMethod.swift:58-73 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRecordMethod.swift:52-67 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRepoMethod.swift:47-62 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListBlobsMethod.swift:61-76 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListHostsMethod.swift:54-69 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListReposByCollectionMethod.swift:54-69 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListReposMethod.swift:50-65 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempCheckHandleAvailabilityMethod.swift:61-76 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRecordAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 84 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift:57\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetHistoricalStatsMethod.swift:79\u0060 calls \u0060max\u0060, \u0060min\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetListFeedMethod.swift:64\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"0af3dea27a0dd1038eb47a64b3d6cec756a0a808269a2eb5e9e953b5a4528dfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 18): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:62-77 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindRelatedAccountsAsAdmin.swift:58-73 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:300-315 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SignatureSearchAccountsAsAdmin.swift:56-71 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneHostingGetAccountHistoryMethod.swift:62-77 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsTypeaheadMethod.swift:62-77 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetPostThreadMethod.swift:59-74 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetOnboardingSuggestedStarterPacksMethod.swift:42-57 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetOnboardingSuggestedStarterPacksSkeletonMethod.swift:53-68 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedFeedsMethod.swift:44-59 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedFeedsSkeletonMethod.swift:54-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedStarterPacksMethod.swift:44-59 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedStarterPacksSkeletonMethod.swift:54-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedUsersMethod.swift:53-68 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedUsersSkeletonMethod.swift:56-71 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendingTopicsMethod.swift:57-72 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendsMethod.swift:44-59 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendsSkeletonMethod.swift:54-69 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindRelatedAccountsAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 59 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:62\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"5947e88c5be8f55430f2f166652154b32d939720ddd071c5a2fd8b9e47f84dfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 17): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift:56-71 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EmitEventAsAdmin.swift:59-74 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueCreateQueueMethod.swift:57-72 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueUpdateQueueMethod.swift:51-66 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportAssignModeratorMethod.swift:49-64 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportCloseReportsMethod.swift:54-69 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportCreateActivityMethod.swift:55-70 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkAddRuleMethod.swift:54-69 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkQueryEventsMethod.swift:51-66 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkQueryRulesMethod.swift:64-79 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkRemoveRuleMethod.swift:49-64 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkUpdateRuleMethod.swift:55-70 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateCommunicationTemplateAsAdmin.swift:63-78 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpsertOptionAsAdmin.swift:48-63 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentitySignPlcOperationMethod.swift:56-71 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoCreateRecordMethod.swift:62-77 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoPutRecordMethod.swift:62-77 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EmitEventAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 78 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift:56\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"07ad3f86f804891960120b93137e69cd835b7379cbb436de1792c3ce2eca92f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 9): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableAccountInvitesAsAdmin.swift:48-67 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableInviteCodesAsAdmin.swift:48-65 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EnableAccountInvitesAsAdmin.swift:51-70 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueUnassignModeratorMethod.swift:45-60 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountPasswordAsAdmin.swift:45-64 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoApplyWritesMethod.swift:52-71 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoDeleteRecordMethod.swift:57-76 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerConfirmEmailMethod.swift:53-72 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerUpdateEmailMethod.swift:53-72 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableAccountInvitesAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EnableAccountInvitesAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 60 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableAccountInvitesAsAdmin.swift:48\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableAccountInvitesAsAdmin.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"2593a93525afb47162772c20bdae32280d76fc869867e53ef5724e4f2a11029b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 7): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetPreferencesMethod.swift:31-46 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactGetSyncStatusMethod.swift:31-46 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationGetPreferencesMethod.swift:30-45 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyActorExportAccountDataMethod.swift:27-42 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyNotificationGetPreferencesMethod.swift:31-45 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityGetRecommendedDidCredentialsMethod.swift:31-46 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerListAppPasswordsMethod.swift:32-47 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetPreferencesMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactGetSyncStatusMethod.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 44 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetPreferencesMethod.swift:31\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetPreferencesMethod.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f2428d75b90067d750402db4eea50a6745103278ec4210c9a56981d830b5d1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift:41-58 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetModerationEventAsAdmin.swift:39-56 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRepositoryAsAdmin.swift:38-53 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetProfileMethod.swift:50-67 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveHandleMethod.swift:32-49 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetModerationEventAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 112 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift:41\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"6003ef361eb9e2171a66d9a218e3edc6688e2845e3e538b9c419779b9846b2fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListItemRecord/CreateListItemRecord.swift:82-97 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListRecord/CreateListRecord.swift:149-164 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/CreateStarterPackRecord.swift:108-123 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListRecord/CreateListRecord.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/CreateStarterPackRecord.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListItemRecord/CreateListItemRecord.swift:82\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListItemRecord/CreateListItemRecord.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"abd268d355ad8793f2553db9171fb00911cf68ea650767329fd12632ac11d8f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift:71-86 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetLiveStatsMethod.swift:58-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetRelationshipsMethod.swift:49-64 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetLiveStatsMethod.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 69 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift:71\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"8213e17ac9b6d9e5e52f94cafc65f0c6b8d0ebf5351b06a372061a73fa8279b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactImportContactsMethod.swift:47-62 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactVerifyPhoneMethod.swift:46-61 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactImportContactsMethod.swift:47\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactImportContactsMethod.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"547c374645700abd80c9445fd91319ebee6545fe588b0ea17e3367b668c522c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationPutPreferencesV2Method.swift:60-75 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedInitAgeAssuranceMethod.swift:51-66 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationPutPreferencesV2Method.swift:60\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationPutPreferencesV2Method.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"c66231b634ef28a27bc0fbd1b43d953686502fd38abe66c3d1a9b70039afd028"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAcceptConvoMethod.swift:38-53 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoUpdateAllReadMethod.swift:40-55 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAcceptConvoMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoUpdateAllReadMethod.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 47 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAcceptConvoMethod.swift:38\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAcceptConvoMethod.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"51ee65d697a2a2dfee1384058782553b5156ab85145feaa0ed62e79262ecd83c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 59): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift:57-71 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRecordAsAdmin.swift:49-63 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetValuesAsAdmin.swift:54-68 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListMembersAsAdmin.swift:75-89 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:215-229 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SearchRepositoriesAsAdmin.swift:62-76 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueGetAssignmentsMethod.swift:68-82 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueListQueuesMethod.swift:77-91 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetAssignmentsMethod.swift:69-83 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetHistoricalStatsMethod.swift:83-97 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportListActivitiesMethod.swift:55-69 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportQueryActivitiesMethod.swift:76-90 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportQueryReportsMethod.swift:130-144 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkGetBookmarksMethod.swift:55-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactGetMatchesMethod.swift:56-70 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftGetDraftsMethod.swift:55-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorFeedsMethod.swift:59-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorLikesMethod.swift:67-81 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedMethod.swift:61-75 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift:65-79 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetListFeedMethod.swift:67-81 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetQuotesMethod.swift:65-79 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetRepostedByMethod.swift:65-79 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetSuggestedFeedsMethod.swift:54-68 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetTimelineMethod.swift:78-92 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:126-140 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsV2Method.swift:223-237 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetActorStarterPacksMethod.swift:59-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetBlocksMethod.swift:55-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowersMethod.swift:58-72 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowsMethod.swift:58-72 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetKnownFollowersMethod.swift:59-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListBlocksMethod.swift:55-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMethod.swift:59-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMutesMethod.swift:55-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListsWithMembershipMethod.swift:64-78 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetMutesMethod.swift:55-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPacksWithMembershipMethod.swift:61-75 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphSearchStarterPacksMethod.swift:53-68 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationListNotificationsMethod.swift:85-99 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationsListActivitySubscriptionsMethod.swift:56-70 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetPopularFeedGeneratorsMethod.swift:63-77 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestionsSkeletonMethod.swift:74-88 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchActorsSkeletonMethod.swift:68-82 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchPostsSkeletonMethod.swift:117-131 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchStarterPacksSkeletonMethod.swift:59-74 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetLogMethod.swift:41-55 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetMessagesMethod.swift:56-70 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoListConvosMethod.swift:56-70 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoLabelQueryLabelsMethod.swift:67-81 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoListMissingBlobsMethod.swift:54-68 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerGetServiceAuthMethod.swift:58-72 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRecordMethod.swift:52-66 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRepoMethod.swift:47-61 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListBlobsMethod.swift:61-75 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListHostsMethod.swift:54-68 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListReposByCollectionMethod.swift:54-68 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListReposMethod.swift:50-64 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempCheckHandleAvailabilityMethod.swift:61-75 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRecordAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 84 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift:57\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetHistoricalStatsMethod.swift:79\u0060 calls \u0060max\u0060, \u0060min\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetListFeedMethod.swift:64\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec06fdcb62c31defd1bfb15c5bff168fa7d7e415d2a014a85fa2af64c704d322"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 23): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:64-78 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindRelatedAccountsAsAdmin.swift:60-74 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:302-316 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SignatureSearchAccountsAsAdmin.swift:58-72 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneHostingGetAccountHistoryMethod.swift:64-78 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneListVerificationsMethod.swift:94-108 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsTypeaheadMethod.swift:64-78 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetAuthorFeedMethod.swift:75-89 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetPostThreadMethod.swift:61-75 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationGetUnreadCountMethod.swift:59-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetOnboardingSuggestedStarterPacksMethod.swift:44-58 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetOnboardingSuggestedStarterPacksSkeletonMethod.swift:55-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedFeedsMethod.swift:46-60 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedFeedsSkeletonMethod.swift:56-70 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedStarterPacksMethod.swift:46-60 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedStarterPacksSkeletonMethod.swift:56-70 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedUsersMethod.swift:55-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedUsersSkeletonMethod.swift:58-72 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendingTopicsMethod.swift:59-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendsMethod.swift:46-60 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendsSkeletonMethod.swift:56-70 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyModerationGetMessageContextMethod.swift:64-78 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoListRecordsMethod.swift:66-80 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindRelatedAccountsAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 59 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:64\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:63\u0060 calls \u0060max\u0060, \u0060min\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneListVerificationsMethod.swift:93\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"2de44599b5500de5e44a910d46316da795f1ea597a92b2b8391f65c8bbf27910"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 20): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift:57-71 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EmitEventAsAdmin.swift:60-74 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueCreateQueueMethod.swift:58-72 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueUpdateQueueMethod.swift:52-66 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportAssignModeratorMethod.swift:50-64 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportCloseReportsMethod.swift:55-69 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportCreateActivityMethod.swift:56-70 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportReassignQueueMethod.swift:47-61 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkAddRuleMethod.swift:55-69 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkQueryEventsMethod.swift:52-66 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkQueryRulesMethod.swift:65-79 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkRemoveRuleMethod.swift:50-64 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkUpdateRuleMethod.swift:56-70 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateCommunicationTemplateAsAdmin.swift:64-78 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateSubjectStatusAsAdmin.swift:50-64 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpsertOptionAsAdmin.swift:49-63 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentitySignPlcOperationMethod.swift:57-71 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoModerationCreateReportMethod.swift:49-63 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoCreateRecordMethod.swift:63-77 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoPutRecordMethod.swift:63-77 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EmitEventAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 78 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift:57\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"c04fb4153be45a23efdb2cd7d06988d17ddece8e127da6a58cb5191086c8d466"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 16): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetRelationshipsMethod.swift:52-67 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyLabelerGetServicesMethod.swift:46-61 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchActorsSkeletonMethod.swift:71-86 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchPostsSkeletonMethod.swift:120-135 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveHandleMethod.swift:39-54 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoLexiconResolveLexiconMethod.swift:39-54 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoDescribeRepoMethod.swift:42-57 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoListRecordsMethod.swift:69-84 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetBlobMethod.swift:47-61 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetBlocksMethod.swift:51-65 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetLatestCommitMethod.swift:40-55 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRecordMethod.swift:55-69 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRepoMethod.swift:50-64 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListBlobsMethod.swift:64-79 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListReposByCollectionMethod.swift:57-72 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListReposMethod.swift:53-68 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchActorsSkeletonMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchPostsSkeletonMethod.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 92 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetRelationshipsMethod.swift:52\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetRelationshipsMethod.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"98f7e615f3822c19c05795035751813cc883a6356b40e20b96635042151c4e35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 12): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift:41-55 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetReporterStats.swift:43-57 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRepositoriesAsAdmin.swift:41-55 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetSubjectsAsAdmin.swift:41-55 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyEmbedGetEmbedExternalViewMethod.swift:56-70 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedGeneratorsMethod.swift:45-59 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetPostsMethod.swift:56-70 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPacksMethod.swift:42-56 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyLabelerGetServicesMethod.swift:44-58 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoAvailabilityMethod.swift:45-59 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoForMembersMethod.swift:44-58 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetBlocksMethod.swift:49-63 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetReporterStats.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 57 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift:41\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetReporterStats.swift:42\u0060 calls \u0060prefix\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift:39\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6a02ff00143620e858af85c4fd03ae2b1960599c947b32d40f5228e627a4a1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 12): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneModerationGetAccountTimelineMethod.swift:40-54 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedGeneratorMethod.swift:43-57 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedSkeletonMethod.swift:51-65 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPackMethod.swift:37-51 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetSuggestedFollowsByActorMethod.swift:43-57 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyVideoGetJobStatusMethod.swift:37-51 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoMethod.swift:37-51 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyModerationGetActorMetadataMethod.swift:43-57 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoLexiconResolveLexiconMethod.swift:35-49 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoDescribeRepoMethod.swift:38-52 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRepoStatusMethod.swift:41-55 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempDereferenceScopeMethod.swift:40-54 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneModerationGetAccountTimelineMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedGeneratorMethod.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneModerationGetAccountTimelineMethod.swift:40\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneModerationGetAccountTimelineMethod.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e80dc0cc38ef7db58eadff7b7b515cd8cbb045ff1aa962cd5275936c4f16332"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 7): Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAcceptConvoMethod.swift:38-53 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAddReactionMethod.swift:51-66 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoDeleteMessageForSelfMethod.swift:44-58 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoRemoveReactionMethod.swift:51-66 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoSendMessageMethod.swift:46-60 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoUpdateAllReadMethod.swift:40-55 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoUpdateReadMethod.swift:44-58 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAcceptConvoMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoUpdateAllReadMethod.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 47 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAcceptConvoMethod.swift:38\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAcceptConvoMethod.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"197776b0739288a0d97022872d48774d5059adca89942b77e8baf4d1f366448a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201315 lines \u00D7 6): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:126-135 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:179-193 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:199-208 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneListVerificationsMethod.swift:72-79 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:88-95 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchPostsSkeletonMethod.swift:80-87 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 130 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:126\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneListVerificationsMethod.swift:80\u0060 calls \u0060prefix\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:194\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"869e2495ce9b928aeaee02abe41b9210900b09091becb143445e8029f372e1a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 6): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SendEmailAsAdmin.swift:57-72 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateSubjectStatusAsAdmin.swift:51-65 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentitySignPlcOperationMethod.swift:58-72 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoModerationCreateReportMethod.swift:50-64 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoCreateRecordMethod.swift:64-78 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoPutRecordMethod.swift:64-78 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SendEmailAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateSubjectStatusAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 47 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SendEmailAsAdmin.swift:57\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SendEmailAsAdmin.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"e47e156b5fae047c220922c643214a0df10f53f1cfe452ba584be60fed0397f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueAssignModeratorMethod.swift:44-58 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueDeleteQueueMethod.swift:46-60 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneVerificationRevokeVerificationsMethod.swift:46-61 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactImportContactsMethod.swift:47-62 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactVerifyPhoneMethod.swift:46-61 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueAssignModeratorMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueDeleteQueueMethod.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 47 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueAssignModeratorMethod.swift:44\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueAssignModeratorMethod.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9311911a86291b737d3b1f4d8313cea131151a4e29092936948aa5a906d3a7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListRecord/CreateListRecord.swift:144-158 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostRecord/CreatePostRecord.swift:495-509 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/CreateStarterPackRecord.swift:103-117 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListRecord/CreateListRecord.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/CreateStarterPackRecord.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListRecord/CreateListRecord.swift:144\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListRecord/CreateListRecord.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9f9c30ea5a27b2aec9e87c1d53da63ae7a68b27fc46fc516216c810ac599eff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoLeaveConvoMethod.swift:38-52 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoMuteConvoMethod.swift:38-52 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoUnmuteConvoMethod.swift:38-52 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoLeaveConvoMethod.swift:38\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoLeaveConvoMethod.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"1801dad7a2d51e8748a078268119b79075345b23799778cc406ffd154aa4590e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListRecord/UpdateListRecord.swift:31-45 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ProfileRecord/UpdateProfileRecord.swift:31-45 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListRecord/UpdateListRecord.swift:31\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListRecord/UpdateListRecord.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bdcb873cc58a73f22a992fea80a375b28bd3e289bad47682276ea05b9f596a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 22): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift:58-72 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EmitEventAsAdmin.swift:61-75 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SendEmailAsAdmin.swift:57-72 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueCreateQueueMethod.swift:59-73 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueUpdateQueueMethod.swift:53-67 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportAssignModeratorMethod.swift:51-65 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportCloseReportsMethod.swift:56-70 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportCreateActivityMethod.swift:57-71 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportReassignQueueMethod.swift:48-62 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkAddRuleMethod.swift:56-70 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkQueryEventsMethod.swift:53-67 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkQueryRulesMethod.swift:66-80 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkRemoveRuleMethod.swift:51-65 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkUpdateRuleMethod.swift:57-71 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateCommunicationTemplateAsAdmin.swift:65-79 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateMemberAsAdmin.swift:51-64 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateSubjectStatusAsAdmin.swift:51-65 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpsertOptionAsAdmin.swift:50-64 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentitySignPlcOperationMethod.swift:58-72 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoModerationCreateReportMethod.swift:50-64 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoCreateRecordMethod.swift:64-78 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoPutRecordMethod.swift:64-78 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EmitEventAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 78 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift:58\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"59733aee4a405ef05397e1bb44cb93cfa98b661b773eaf2c8f261adb713bf593"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 19): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift:58-72 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EmitEventAsAdmin.swift:61-75 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueAssignModeratorMethod.swift:44-58 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueCreateQueueMethod.swift:59-73 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueDeleteQueueMethod.swift:46-60 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueUpdateQueueMethod.swift:53-67 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportAssignModeratorMethod.swift:51-65 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportCloseReportsMethod.swift:56-70 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportCreateActivityMethod.swift:57-71 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportReassignQueueMethod.swift:48-62 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkAddRuleMethod.swift:56-70 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkQueryEventsMethod.swift:53-67 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkQueryRulesMethod.swift:66-80 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkRemoveRuleMethod.swift:51-65 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkUpdateRuleMethod.swift:57-71 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneVerificationRevokeVerificationsMethod.swift:46-61 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateCommunicationTemplateAsAdmin.swift:65-79 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateMemberAsAdmin.swift:51-64 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpsertOptionAsAdmin.swift:50-64 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EmitEventAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 78 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift:58\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"d988b3e45287a144f9a642a0a9def0911a52e39dcac831c74ff330102f5e51ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 16): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneModerationGetAccountTimelineMethod.swift:40-53 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedGeneratorMethod.swift:43-56 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedSkeletonMethod.swift:51-64 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPackMethod.swift:37-50 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetSuggestedFollowsByActorMethod.swift:43-56 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyVideoGetJobStatusMethod.swift:37-50 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoMethod.swift:37-50 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyModerationGetActorMetadataMethod.swift:43-56 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveDidMethod.swift:34-47 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityResolveIdentityMethod.swift:35-48 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoLexiconResolveLexiconMethod.swift:35-48 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoDescribeRepoMethod.swift:38-51 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetHostStatusMethod.swift:41-54 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRepoStatusMethod.swift:41-54 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempCheckSignupQueueMethod.swift:38-51 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempDereferenceScopeMethod.swift:40-53 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneModerationGetAccountTimelineMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedGeneratorMethod.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneModerationGetAccountTimelineMethod.swift:40\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneModerationGetAccountTimelineMethod.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9e958626f3387b1f2dcb77fb5408208339e755cfce8704566e9a9f095e0d86d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 13): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetPreferencesMethod.swift:30-42 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactGetSyncStatusMethod.swift:30-42 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationGetPreferencesMethod.swift:29-41 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyActorExportAccountDataMethod.swift:26-39 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyNotificationGetPreferencesMethod.swift:30-42 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityGetRecommendedDidCredentialsMethod.swift:30-42 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityRequestPlcOperationSignatureMethod.swift:27-39 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerActivateAccountMethod.swift:28-40 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerDeleteSessionMethod.swift:35-46 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerListAppPasswordsMethod.swift:31-43 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerRequestAccountDeleteMethod.swift:30-42 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerRequestEmailConfirmationMethod.swift:27-39 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerRequestEmailUpdateMethod.swift:29-41 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetPreferencesMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactGetSyncStatusMethod.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 44 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetPreferencesMethod.swift:30\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetPreferencesMethod.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bb446f00a1c28bc14a71afaaa9fe297bac10f6e4db098646d07f47c1716520d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 12): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift:43-56 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfosAsAdmin.swift:46-59 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetReporterStats.swift:45-58 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRepositoriesAsAdmin.swift:43-56 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetSubjectsAsAdmin.swift:43-56 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ModerationGetRecordsAsAdmin.swift:42-55 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyEmbedGetEmbedExternalViewMethod.swift:58-71 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedGeneratorsMethod.swift:47-60 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetPostsMethod.swift:58-70 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPacksMethod.swift:44-57 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoAvailabilityMethod.swift:47-59 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoForMembersMethod.swift:46-58 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetReporterStats.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 57 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift:43\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetReporterStats.swift:42\u0060 calls \u0060prefix\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift:39\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"c29c4f5300841c1de3e5f1bed0736d794654a09b5662ba7775c0ca02a0e663fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 11): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift:47-60 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SearchRepositoriesAsAdmin.swift:46-59 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneListVerificationsMethod.swift:56-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetTimelineMethod.swift:60-71 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetOnboardingSuggestedStarterPacksSkeletonMethod.swift:44-56 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedFeedsSkeletonMethod.swift:45-57 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedStarterPacksSkeletonMethod.swift:45-57 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedUsersMethod.swift:44-56 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestionsSkeletonMethod.swift:55-67 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendingTopicsMethod.swift:48-60 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendsSkeletonMethod.swift:45-57 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SearchRepositoriesAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 76 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetTimelineMethod.swift:60\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"12874986093f5bac1bc7aff14056dba8c8f697720646dd6ec15918f24d9993a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 11): Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAcceptConvoMethod.swift:39-53 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAddReactionMethod.swift:52-66 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoDeleteMessageForSelfMethod.swift:45-58 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoLeaveConvoMethod.swift:39-52 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoMuteConvoMethod.swift:39-52 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoRemoveReactionMethod.swift:52-66 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoSendMessageBatchMethod.swift:43-56 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoSendMessageMethod.swift:47-60 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoUnmuteConvoMethod.swift:39-52 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoUpdateAllReadMethod.swift:41-55 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoUpdateReadMethod.swift:45-58 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAcceptConvoMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoUpdateAllReadMethod.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 47 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAcceptConvoMethod.swift:39\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAcceptConvoMethod.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d732555dfd41b952dd5e8661ed59ad78c57a361ed5eb4290c19271bb741be48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 9): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetReporterStats.swift:42-55 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRepositoriesAsAdmin.swift:40-53 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetSubjectsAsAdmin.swift:40-53 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetProfilesMethod.swift:53-66 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyEmbedGetEmbedExternalViewMethod.swift:55-68 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetPostsMethod.swift:55-68 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPacksMethod.swift:41-54 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoAvailabilityMethod.swift:44-57 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoForMembersMethod.swift:43-56 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetReporterStats.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRepositoriesAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 90 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetReporterStats.swift:42\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetReporterStats.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"4db45a0a7501f51f3d220e6244dd66a599c3b911a91a5bf29c27a91043794dbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 7): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListCommunicationTemplatesAsAdmin.swift:37-50 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetLatestReportMethod.swift:33-46 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetPreferencesMethod.swift:37-49 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactGetSyncStatusMethod.swift:37-50 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationGetPreferencesMethod.swift:36-48 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityGetRecommendedDidCredentialsMethod.swift:37-49 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerListAppPasswordsMethod.swift:38-50 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListCommunicationTemplatesAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetLatestReportMethod.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListCommunicationTemplatesAsAdmin.swift:37\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListCommunicationTemplatesAsAdmin.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"117eb434eaba62be1a564c50eca2ecf45419af7a0782928595b7d0999d9b814b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 7): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SendEmailAsAdmin.swift:58-72 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateSubjectStatusAsAdmin.swift:52-65 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentitySignPlcOperationMethod.swift:59-72 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoModerationCreateReportMethod.swift:51-64 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoCreateRecordMethod.swift:65-78 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoPutRecordMethod.swift:65-78 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerCreateAppPasswordMethod.swift:51-64 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SendEmailAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateSubjectStatusAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 47 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SendEmailAsAdmin.swift:58\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SendEmailAsAdmin.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"41dfbf8c80d83621f228e728750e620484a8ddd9d3914b08c9c154005ddd422d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 4): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:131-144 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueListQueuesMethod.swift:49-60 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetHistoricalStatsMethod.swift:52-63 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetLiveStatsMethod.swift:42-53 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueListQueuesMethod.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 64 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:131\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"5367aa0f2a0a6b1652539bdd8b11e16d53ec8fa8f5b459d1e6cc9efa76ec0a3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostRecord/CreatePostRecord.swift:519-532 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/CreateThreadgateRecord.swift:76-89 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/UpdateThreadgateRecord.swift:41-54 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/CreateThreadgateRecord.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/UpdateThreadgateRecord.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 62 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":"Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostRecord/CreatePostRecord.swift"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"7be86474f63396c21d4525ea2c70cb0b6b682ed48d0d7a5f02fe7201b8f0ac27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 3): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:140-153 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:274-287 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneListVerificationsMethod.swift:84-95 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 130 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:157\u0060 calls \u0060max\u0060, \u0060min\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:291\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"08957f78fdfa163f2e2790cab51ddb91201214fa8faee3b7e8c5ba5535768cc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListRecord/CreateListRecord.swift:99-112 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/CreateStarterPackRecord.swift:81-94 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListRecord/CreateListRecord.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/CreateStarterPackRecord.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListRecord/CreateListRecord.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5e9e2670b56635fa5a800d309348597072a1d8823fde05b603134da20ba26c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EmitEventAsAdmin.swift:62-75 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneModerationCancelScheduledActionsMethod.swift:46-59 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EmitEventAsAdmin.swift:62\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EmitEventAsAdmin.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab855fc9ba25b79ff9bf6e124a2b86513523658e446dbb34fce85cca07b54fdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:99-112 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportQueryActivitiesMethod.swift:46-58 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportQueryActivitiesMethod.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 102 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:99\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c4c5503f6325043d6e92d1d42859b7943e4e6be82b252838865a24cd2a091eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueGetAssignmentsMethod.swift:43-56 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetAssignmentsMethod.swift:42-55 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueGetAssignmentsMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetAssignmentsMethod.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 101 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueGetAssignmentsMethod.swift:43\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetAssignmentsMethod.swift:56\u0060 calls \u0060prefix\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueGetAssignmentsMethod.swift:57\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueGetAssignmentsMethod.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4f25168f929f875c39b6faf5c26c7bb2ce2c680b91852261cf1760e74985e4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTaggedSuggestionsMethod.swift:33-46 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerDescribeServerMethod.swift:30-43 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTaggedSuggestionsMethod.swift:33\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTaggedSuggestionsMethod.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef960d9f40d0e97361f79e7bb830b3021474e294e7bd51c0248d122e8ff9ad14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/ATProtoKit/Utilities/ATProtoTools.swift:55-68 | Sources/ATProtoKit/Utilities/ATProtoTools.swift:74-87 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/Utilities/ATProtoTools.swift:55\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/Utilities/ATProtoTools.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"b53f919c3153ee686b076a000912ff0ea9fc19bf50b9c29f9ee6491348cdc417"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 21): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddMemberAsAdmin.swift:49-62 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift:59-72 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EmitEventAsAdmin.swift:62-75 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneModerationCancelScheduledActionsMethod.swift:46-59 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueAssignModeratorMethod.swift:45-58 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueCreateQueueMethod.swift:60-73 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueDeleteQueueMethod.swift:47-60 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueUpdateQueueMethod.swift:54-67 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportAssignModeratorMethod.swift:52-65 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportCloseReportsMethod.swift:57-70 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportCreateActivityMethod.swift:58-71 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportReassignQueueMethod.swift:49-62 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkAddRuleMethod.swift:57-70 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkQueryEventsMethod.swift:54-67 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkQueryRulesMethod.swift:67-80 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkRemoveRuleMethod.swift:52-65 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkUpdateRuleMethod.swift:58-71 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneVerificationRevokeVerificationsMethod.swift:47-61 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateCommunicationTemplateAsAdmin.swift:66-79 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateMemberAsAdmin.swift:52-64 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpsertOptionAsAdmin.swift:51-64 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddMemberAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateMemberAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 46 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddMemberAsAdmin.swift:49\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddMemberAsAdmin.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2134ec8d721422219d883cfe4f810085beb1e04715737b0205b5728728f8a3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 16): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkGetBookmarksMethod.swift:38-50 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactGetMatchesMethod.swift:39-51 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftGetDraftsMethod.swift:38-50 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetSuggestedFeedsMethod.swift:37-49 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetBlocksMethod.swift:38-50 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListBlocksMethod.swift:38-50 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMutesMethod.swift:38-50 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetMutesMethod.swift:38-50 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationsListActivitySubscriptionsMethod.swift:39-51 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetOnboardingSuggestedStarterPacksMethod.swift:31-43 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetPopularFeedGeneratorsMethod.swift:42-54 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedFeedsMethod.swift:33-45 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedStarterPacksMethod.swift:33-45 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendsMethod.swift:33-45 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoListConvosMethod.swift:39-51 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoListMissingBlobsMethod.swift:37-49 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkGetBookmarksMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactGetMatchesMethod.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 131 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkGetBookmarksMethod.swift:38\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkGetBookmarksMethod.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2e2ed8dedcd63cc038ee017cc604bdb34def0161816943f857da345fd903623"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 15): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift:48-60 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkGetBookmarksMethod.swift:44-56 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactGetMatchesMethod.swift:45-57 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftGetDraftsMethod.swift:44-56 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetSuggestedFeedsMethod.swift:43-55 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetBlocksMethod.swift:44-56 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListBlocksMethod.swift:44-56 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMutesMethod.swift:44-56 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetMutesMethod.swift:44-56 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationsListActivitySubscriptionsMethod.swift:45-57 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetPopularFeedGeneratorsMethod.swift:48-60 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoListConvosMethod.swift:45-57 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoListMissingBlobsMethod.swift:43-55 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListHostsMethod.swift:43-55 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListReposMethod.swift:39-51 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkGetBookmarksMethod.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift:48\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7f2a3da6bf7a23147feb3185811b86bada141d1b5728c6c5afb4182c709d84f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListCommunicationTemplatesAsAdmin.swift:32-44 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetLatestReportMethod.swift:28-40 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerCheckAccountStatusMethod.swift:33-45 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListCommunicationTemplatesAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetLatestReportMethod.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListCommunicationTemplatesAsAdmin.swift:32\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListCommunicationTemplatesAsAdmin.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"7569c757521843fd6c0f647d6fd84bfc9058ae882b26909d6e93b3f698f06581"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/ATProtoKit/ATProtoKit.swift:192-204 | Sources/ATProtoKit/ATProtoKit.swift:379-391 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/ATProtoKit.swift"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"93017984c26687b36a7da8dcb1acc321baeaea3bed50e754df17e10de9223cef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 21): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyEmbedGetEmbedExternalViewMethod.swift:42-53 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorFeedsMethod.swift:40-51 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorLikesMethod.swift:48-59 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedGeneratorMethod.swift:34-45 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedMethod.swift:42-53 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift:42-53 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetQuotesMethod.swift:42-53 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetRepostedByMethod.swift:42-53 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:70-81 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetActorStarterPacksMethod.swift:40-51 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMethod.swift:40-51 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListsMethod.swift:42-53 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListsWithMembershipMethod.swift:45-56 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPackMethod.swift:28-39 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPacksWithMembershipMethod.swift:42-53 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetSuggestedFollowsByActorMethod.swift:34-45 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoMethod.swift:28-39 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetMessagesMethod.swift:37-48 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyModerationGetActorMetadataMethod.swift:34-45 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempCheckHandleAvailabilityMethod.swift:43-54 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempDereferenceScopeMethod.swift:31-42 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyEmbedGetEmbedExternalViewMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorFeedsMethod.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 41 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyEmbedGetEmbedExternalViewMethod.swift:42\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyEmbedGetEmbedExternalViewMethod.swift:55\u0060 calls \u0060prefix\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedGeneratorMethod.swift:47\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyEmbedGetEmbedExternalViewMethod.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"b34eeb6ae75bf393638414d7a7785fd3a3b6447dfaa2242b3e68d63ade99a06e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:47-58 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListMembersAsAdmin.swift:50-61 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift:46-57 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SearchRepositoriesAsAdmin.swift:45-56 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneListVerificationsMethod.swift:55-66 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListMembersAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 63 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:47\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"3672e1ba9c65bb218eb28973966d71f728ed8d99ff1a8daff8a38b75ac6cec31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsTypeaheadMethod.swift:51-62 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetPostThreadMethod.swift:43-54 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowersMethod.swift:41-52 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowsMethod.swift:41-52 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsTypeaheadMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetPostThreadMethod.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 63 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsTypeaheadMethod.swift:51\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsTypeaheadMethod.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a57fdd8c2e9f2bfee155ff07799faac1a3e85a9b0d5ff96ea5b1bca4d12f65f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 4): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkCreateBookmarkMethod.swift:34-45 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactSendNotificationMethod.swift:34-42 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerConfirmEmailMethod.swift:39-49 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComStprotoServerDeleteAccountMethod.swift:35-46 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkCreateBookmarkMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactSendNotificationMethod.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkCreateBookmarkMethod.swift:34\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkCreateBookmarkMethod.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b6c2e7cd3edbb6c825d8523504c3561bbc71bee6a46f1e50822146ecef55c80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRecordAsAdmin.swift:37-48 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetValuesAsAdmin.swift:37-48 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRecordAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetValuesAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 78 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRecordAsAdmin.swift:37\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRecordAsAdmin.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"87df1a1cb0f1afd546fe678d715a83b6f5fb09c98a66c644b43f62fcad370984"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchActorsSkeletonMethod.swift:47-58 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchStarterPacksSkeletonMethod.swift:42-53 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchActorsSkeletonMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchStarterPacksSkeletonMethod.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 72 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchActorsSkeletonMethod.swift:47\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchActorsSkeletonMethod.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"acda6224d2cdb892a6494ce585159b923af70e301fdd5fc9e3ba962bce84b699"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 57): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkGetBookmarksMethod.swift:37-47 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactGetMatchesMethod.swift:38-48 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftGetDraftsMethod.swift:37-47 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyEmbedGetEmbedExternalViewMethod.swift:41-51 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorFeedsMethod.swift:39-49 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorLikesMethod.swift:47-57 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedGeneratorMethod.swift:33-43 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedGeneratorsMethod.swift:33-43 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedMethod.swift:41-51 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift:41-51 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetPostsMethod.swift:42-52 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetQuotesMethod.swift:41-51 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetRepostedByMethod.swift:41-51 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetSuggestedFeedsMethod.swift:36-46 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetTimelineMethod.swift:53-63 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:69-79 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsV2Method.swift:97-107 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetActorStarterPacksMethod.swift:39-49 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetBlocksMethod.swift:37-47 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetKnownFollowersMethod.swift:39-49 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListBlocksMethod.swift:37-47 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMethod.swift:39-49 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMutesMethod.swift:37-47 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListsMethod.swift:41-51 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListsWithMembershipMethod.swift:44-54 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetMutesMethod.swift:37-47 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPackMethod.swift:27-37 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPacksMethod.swift:29-39 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPacksWithMembershipMethod.swift:41-51 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetSuggestedFollowsByActorMethod.swift:33-43 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationGetUnreadCountMethod.swift:40-50 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationListNotificationsMethod.swift:52-62 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationsListActivitySubscriptionsMethod.swift:38-48 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetOnboardingSuggestedStarterPacksMethod.swift:30-40 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetOnboardingSuggestedStarterPacksSkeletonMethod.swift:37-47 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetPopularFeedGeneratorsMethod.swift:41-51 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedFeedsMethod.swift:32-42 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedFeedsSkeletonMethod.swift:38-48 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedStarterPacksMethod.swift:32-42 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedStarterPacksSkeletonMethod.swift:38-48 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedUsersMethod.swift:37-47 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedUsersSkeletonMethod.swift:36-46 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestionsSkeletonMethod.swift:48-58 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendingTopicsMethod.swift:41-51 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendsMethod.swift:32-42 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendsSkeletonMethod.swift:38-48 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoAvailabilityMethod.swift:32-42 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoForMembersMethod.swift:31-41 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetConvoMethod.swift:27-37 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetLogMethod.swift:28-38 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetMessagesMethod.swift:36-46 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoListConvosMethod.swift:38-48 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyModerationGetActorMetadataMethod.swift:33-43 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyModerationGetMessageContextMethod.swift:41-51 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoListMissingBlobsMethod.swift:36-46 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempCheckHandleAvailabilityMethod.swift:42-52 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempDereferenceScopeMethod.swift:30-40 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkGetBookmarksMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactGetMatchesMethod.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 131 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetKnownFollowersMethod.swift:51\u0060 calls \u0060String\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkGetBookmarksMethod.swift:49\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkGetBookmarksMethod.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"a23e28e46dc62bfd728664685d1a320963bbbc45732683f814d65642a5aaaf18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 16): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsTypeaheadMethod.swift:55-65 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorFeedsMethod.swift:46-56 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorLikesMethod.swift:54-64 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetAuthorFeedMethod.swift:54-64 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedMethod.swift:48-58 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetListFeedMethod.swift:50-60 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetPostThreadMethod.swift:47-57 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetActorStarterPacksMethod.swift:46-56 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowersMethod.swift:45-55 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowsMethod.swift:45-55 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMethod.swift:46-56 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListsMethod.swift:48-58 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListsWithMembershipMethod.swift:51-61 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPacksWithMembershipMethod.swift:48-58 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphSearchStarterPacksMethod.swift:40-50 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetMessagesMethod.swift:43-53 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsTypeaheadMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetPostThreadMethod.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 63 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsTypeaheadMethod.swift:55\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsTypeaheadMethod.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"60525a05684f9a10a954cd0d33f24fb6b8a003a138a75012cf01575d2f6903f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 12): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:44-54 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListMembersAsAdmin.swift:47-57 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift:43-53 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:99-110 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:128-139 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift:43-53 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SearchRepositoriesAsAdmin.swift:42-52 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneListVerificationsMethod.swift:52-62 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueListQueuesMethod.swift:46-56 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetHistoricalStatsMethod.swift:49-59 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetLiveStatsMethod.swift:39-49 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportQueryActivitiesMethod.swift:46-56 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListMembersAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 63 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:44\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift:54\u0060 calls \u0060max\u0060, \u0060min\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:140\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"e127888f8bd8049617a629985615fbaadddf3113179eb47c8280d4abb6033794"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift:62-72 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:162-174 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:213-225 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetHistoricalStatsMethod.swift:59-69 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetLiveStatsMethod.swift:49-59 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 53 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift:58\u0060 calls \u0060max\u0060, \u0060min\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:208\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b0122ad07b72a151606fe5f449739850ef5a7d0e34cb9188aec54c38af8e0e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 4): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift:35-45 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetModerationEventAsAdmin.swift:33-43 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRepositoryAsAdmin.swift:32-39 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetSubjectStatusAsAdmin.swift:40-49 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetModerationEventAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 112 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift:35\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetAccountInfoAsAdmin.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"152d8336e03f0d874fbd3ae14422950d7ed9897115edf625171d1fffc8372115"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 4): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueGetAssignmentsMethod.swift:44-54 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetAssignmentsMethod.swift:43-53 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetReportMethod.swift:33-42 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportListActivitiesMethod.swift:39-49 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueGetAssignmentsMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetAssignmentsMethod.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 101 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueGetAssignmentsMethod.swift:44\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetAssignmentsMethod.swift:56\u0060 calls \u0060prefix\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueGetAssignmentsMethod.swift:57\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueGetAssignmentsMethod.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"146071dc65eb259e8a331eb85f9fad014655a898ab58b2b840a12339a3f4b582"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyModerationUpdateActorAccessMethod.swift:34-44 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoApplyWritesMethod.swift:36-46 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoDeleteRecordMethod.swift:40-50 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerUpdateEmailMethod.swift:38-48 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoApplyWritesMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoDeleteRecordMethod.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 71 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyModerationUpdateActorAccessMethod.swift:34\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyModerationUpdateActorAccessMethod.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0955e30e173a3c462efb99f7124338efe25b4de60f2e65853ce6c144368354f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListRecord/CreateListRecord.swift:74-84 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostRecord/CreatePostRecord.swift:347-357 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ProfileRecord/CreateProfileRecord.swift:142-152 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 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 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListRecord/CreateListRecord.swift:74\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ListRecord/CreateListRecord.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1be761e1e6be5e07513ee87e4898db0c6489419664db9da91f537fbf1163daf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift:40-50 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkQueryEventsMethod.swift:38-47 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkQueryRulesMethod.swift:48-57 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkQueryEventsMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkQueryRulesMethod.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 89 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":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetInviteCodesAsAdmin.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"18e60e60600b0f5421cfe5dc6f761d01892170109a1216fc1f688b68b3a6e2cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 3): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:152-162 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:249-259 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchActorsSkeletonMethod.swift:59-67 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 130 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:152\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae8e832ca067bd6e8ea766ef1af123e6ddae47ed0a84bf8837fa94390655d0dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableAccountInvitesAsAdmin.swift:34-44 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EnableAccountInvitesAsAdmin.swift:37-47 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableAccountInvitesAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EnableAccountInvitesAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 60 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableAccountInvitesAsAdmin.swift:34\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableAccountInvitesAsAdmin.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9ae4634e87c8c4a7adf1fe12798dbd7e50097d05da356c051aea62ee85e81f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift:31-41 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SignatureSearchAccountsAsAdmin.swift:40-50 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SignatureSearchAccountsAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift:31\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a8838a1e66484c491bf8a03d343daf8cd6b2d58843b7e8e9a1147d3d1173fd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneHostingGetAccountHistoryMethod.swift:42-52 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneModerationGetAccountTimelineMethod.swift:32-42 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneHostingGetAccountHistoryMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneModerationGetAccountTimelineMethod.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneHostingGetAccountHistoryMethod.swift:42\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneHostingGetAccountHistoryMethod.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa7a8998e3004ca61c5403971a200f5627e20d0f8b72924f1f124d07303cef47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkRemoveRuleMethod.swift:36-46 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkUpdateRuleMethod.swift:40-50 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkRemoveRuleMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkUpdateRuleMethod.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 111 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkRemoveRuleMethod.swift:36\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneSafelinkRemoveRuleMethod.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9fe584f188fcd35529e7c7b85afb5adf98a3b33e0f8eb44dc7cff1c937b3b46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoCreateRecordMethod.swift:47-57 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoPutRecordMethod.swift:46-56 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoCreateRecordMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoPutRecordMethod.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 111 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoCreateRecordMethod.swift:47\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoCreateRecordMethod.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"c495d127aed69192632092db847cd46a96802d30a74e6bc42b91c2f7f92b70f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 26): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:43-52 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindCorrelationAsAdmin.swift:30-39 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindRelatedAccountsAsAdmin.swift:41-50 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetReporterStats.swift:31-40 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetRepositoriesAsAdmin.swift:29-38 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/GetSubjectsAsAdmin.swift:29-38 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListMembersAsAdmin.swift:46-55 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift:42-51 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ModerationGetRecordsAsAdmin.swift:29-38 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:98-107 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:127-136 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift:42-51 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SearchRepositoriesAsAdmin.swift:41-50 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SignatureSearchAccountsAsAdmin.swift:39-48 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneHostingGetAccountHistoryMethod.swift:41-50 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneListVerificationsMethod.swift:51-60 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneModerationGetAccountTimelineMethod.swift:31-40 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueGetAssignmentsMethod.swift:43-52 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueListQueuesMethod.swift:45-54 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetAssignmentsMethod.swift:42-51 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetHistoricalStatsMethod.swift:48-57 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetLiveStatsMethod.swift:38-47 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetReportMethod.swift:32-41 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportListActivitiesMethod.swift:38-47 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportQueryActivitiesMethod.swift:45-54 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportQueryReportsMethod.swift:64-73 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/FindRelatedAccountsAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 59 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportListActivitiesMethod.swift:51\u0060 calls \u0060max\u0060, \u0060min\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:54\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"76640faae44e451da6ee516689b5e06da9d53842268979ee959406de62bb15e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 15): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorFeedsMethod.swift:51-60 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorLikesMethod.swift:59-68 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetAuthorFeedMethod.swift:59-68 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetFeedMethod.swift:53-62 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetListFeedMethod.swift:55-64 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetActorStarterPacksMethod.swift:51-60 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowersMethod.swift:50-59 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowsMethod.swift:50-59 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMethod.swift:51-60 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListsMethod.swift:53-62 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListsWithMembershipMethod.swift:56-65 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetStarterPacksWithMembershipMethod.swift:53-62 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphSearchStarterPacksMethod.swift:45-54 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoGetMessagesMethod.swift:48-57 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoListRecordsMethod.swift:54-63 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorFeedsMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorLikesMethod.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 111 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":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetActorFeedsMethod.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"8375256e6a55f2d129d708f0711e6cdcc5a668c2c19964b5c6e2dc704b6742fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 9): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift:53-62 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SearchRepositoriesAsAdmin.swift:52-61 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift:55-64 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetQuotesMethod.swift:55-64 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetRepostedByMethod.swift:55-64 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetTimelineMethod.swift:64-73 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestionsSkeletonMethod.swift:60-69 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchStarterPacksSkeletonMethod.swift:49-58 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListBlobsMethod.swift:51-60 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/SearchRepositoriesAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 76 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift:53\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListOptionsAsAdmin.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d1461028859c8892bb48cb4bb6bd212f5ab9525a8e2e2dcdcf5dbb74a40e408"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 8): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift:53-62 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetAuthorFeedMethod.swift:61-70 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetListFeedMethod.swift:57-66 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetTimelineMethod.swift:68-77 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListsMethod.swift:55-64 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetPopularFeedGeneratorsMethod.swift:53-62 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestionsSkeletonMethod.swift:64-73 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoListRecordsMethod.swift:56-65 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetPopularFeedGeneratorsMethod.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift:53\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"69593b21fab301b8f9658e0ee5624a9f88ff861e1736696024f8c720b7cd267d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift:48-57 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetQuotesMethod.swift:48-57 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetRepostedByMethod.swift:48-57 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRepoMethod.swift:39-48 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListBlobsMethod.swift:44-53 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempCheckHandleAvailabilityMethod.swift:49-58 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetQuotesMethod.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 137 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift:48\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"db23e8a3d93205b486ad70334a433c192226857a155c6a4aa4edf0f9d1ecfdf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationRegisterPushMethod.swift:39-48 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyModerationUpdateActorAccessMethod.swift:35-44 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoApplyWritesMethod.swift:37-46 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoDeleteRecordMethod.swift:41-50 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerUpdateEmailMethod.swift:39-48 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoApplyWritesMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoDeleteRecordMethod.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 71 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationRegisterPushMethod.swift:39\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationRegisterPushMethod.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"16bc0341aa47eb13810ffb88fa50694b7609ad50877521eb3ed7005fd9814746"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:48-58 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListMembersAsAdmin.swift:51-61 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsV2Method.swift:104-113 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedUsersSkeletonMethod.swift:43-52 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ListMembersAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 63 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift:48\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AdminSearchAccountsAsAdmin.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"cad4509b7f3328f9b06778bb69dd030a6a3e02d9572f5a7986a888e31254dbac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountEmailAsAdmin.swift:35-44 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountHandleAsAdmin.swift:35-44 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountPasswordAsAdmin.swift:32-41 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountSigningKey.swift:25-35 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountEmailAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountHandleAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 3 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountEmailAsAdmin.swift:35\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountEmailAsAdmin.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea5ef2fbef31fdd90ee5e33955576aecfb5e68fafc251a54c6e61b32e28a4ea9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/AddFeedToStarterPackRecord.swift:45-54 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/RemoveFeedFromStarterPackRecord.swift:44-53 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/UpdateStarterPackRecord.swift:71-80 \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":"Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/AddFeedToStarterPackRecord.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a57154056ccce84c0acf5ba0677ec0e778e3219278415beeeb0516ba3250306"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoApplyWritesMethod.swift:37-46 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoDeleteRecordMethod.swift:41-50 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoImportRepoMethod.swift:36-45 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoApplyWritesMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoDeleteRecordMethod.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 71 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoApplyWritesMethod.swift:37\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoApplyWritesMethod.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2812c073a9949197e5690d55a49bb9bfb09ea7a396372bbe1c393ba5373c11d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:164-173 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:179-188 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:164\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f21526057efdb7ce224889dd534ce0cf619b695e99eeb2eec6668242e59246c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:57-65 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchPostsSkeletonMethod.swift:56-65 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchPostsSkeletonMethod.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 144 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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"8488c752ca15a3dbda14c9bab70453ebe0e83e0e203648c8e56f957364ae5cc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 19): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift:48-56 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkGetBookmarksMethod.swift:44-52 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactGetMatchesMethod.swift:45-53 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftGetDraftsMethod.swift:44-52 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetSuggestedFeedsMethod.swift:43-51 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetBlocksMethod.swift:44-52 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListBlocksMethod.swift:44-52 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetListMutesMethod.swift:44-52 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetMutesMethod.swift:44-52 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationsListActivitySubscriptionsMethod.swift:45-53 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetOnboardingSuggestedStarterPacksMethod.swift:37-45 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetPopularFeedGeneratorsMethod.swift:48-56 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedFeedsMethod.swift:39-47 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetSuggestedStarterPacksMethod.swift:39-47 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetTrendsMethod.swift:39-47 | Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoListConvosMethod.swift:45-53 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoListMissingBlobsMethod.swift:43-51 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListHostsMethod.swift:43-51 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListReposMethod.swift:39-47 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkGetBookmarksMethod.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift:48\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QuerySetsAsAdmin.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"6583135553a5023cd7ec74676ad97c1f712d114ba43511a5e4271651e143888f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 19): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkCreateBookmarkMethod.swift:35-45 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkDeleteBookmarkMethod.swift:30-38 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactDismissMatchMethod.swift:30-38 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactSendNotificationMethod.swift:34-42 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactStartPhoneVerificationMethod.swift:33-41 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftDeleteDraftMethod.swift:29-37 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphMuteActorListMethod.swift:29-37 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphMuteActorMethod.swift:29-37 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphMuteThreadMethod.swift:30-38 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphUnmuteActorListMethod.swift:29-37 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphUnmuteActorMethod.swift:29-37 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphUnmuteThreadMethod.swift:29-37 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationUnregisterPushMethod.swift:37-47 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityUpdateHandleMethod.swift:30-38 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerConfirmEmailMethod.swift:39-49 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerRevokeAppPasswordMethod.swift:29-37 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempAddReservedHandleMethod.swift:32-40 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempRevokeAccountCredentialsMethod.swift:30-38 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComStprotoServerDeleteAccountMethod.swift:36-46 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkCreateBookmarkMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactSendNotificationMethod.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkCreateBookmarkMethod.swift:35\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyBookmarkCreateBookmarkMethod.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"71607b1c8c1f7b5a08427beb37d9818fc28179a65f6fc0d8c00cd01ca57ce8e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 7): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift:47-55 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetQuotesMethod.swift:47-55 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetRepostedByMethod.swift:47-55 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:75-83 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRepoMethod.swift:38-46 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListBlobsMethod.swift:43-51 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempCheckHandleAvailabilityMethod.swift:48-56 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetQuotesMethod.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 137 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift:47\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetLikesMethod.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bd9fef612201422b2a5ae484ece6d716039192bbfcee6918f3e4fc23f5dc3fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:132-141 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueListQueuesMethod.swift:50-58 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetHistoricalStatsMethod.swift:53-61 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportGetLiveStatsMethod.swift:43-51 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationGetUnreadCountMethod.swift:47-55 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneQueueListQueuesMethod.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 64 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationGetUnreadCountMethod.swift:47\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7a73d56f617797f217c09d54a9dc70e8d574ce17c1782e9be95137b727001da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetProfilesMethod.swift:43-51 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsTypeaheadMethod.swift:50-58 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetPostThreadMethod.swift:42-50 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowersMethod.swift:40-48 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyGraphGetFollowsMethod.swift:40-48 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsTypeaheadMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedGetPostThreadMethod.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 63 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":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetProfilesMethod.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"16aa085df00708e67fc6d3598d0b2a8c6107a49ddbb8b788102122b775878302"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoDescribeRepoMethod.swift:32-40 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoListRecordsMethod.swift:44-52 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetBlocksMethod.swift:40-48 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRepoMethod.swift:36-44 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncListBlobsMethod.swift:41-49 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetBlocksMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRepoMethod.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 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":"Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoDescribeRepoMethod.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9a24f919a61ce09e83cd34f80148348c30eec5f3da27d1fc399eec7e8fdcdf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerConfirmEmailMethod.swift:40-49 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerDeactivateAccountMethod.swift:34-42 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerRevokeAppPasswordMethod.swift:29-37 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerUpdateEmailMethod.swift:39-48 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComStprotoServerDeleteAccountMethod.swift:37-46 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerConfirmEmailMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComStprotoServerDeleteAccountMethod.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerConfirmEmailMethod.swift:40\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoServerConfirmEmailMethod.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc2db7eabc03371f3265cb9e67c32f5a859dab4036ae892f500af6f997bca5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostgateRecord/CreatePostgateRecord.swift:86-94 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostgateRecord/UpdatePostgateRecord.swift:29-37 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/CreateThreadgateRecord.swift:63-71 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/UpdateThreadgateRecord.swift:28-36 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/CreateThreadgateRecord.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/UpdateThreadgateRecord.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 62 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostgateRecord/CreatePostgateRecord.swift:86\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/CreateThreadgateRecord.swift:76\u0060 calls \u0060Array\u0060, \u0060prefix\u0060 and \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostgateRecord/CreatePostgateRecord.swift:100\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostgateRecord/CreatePostgateRecord.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f69ac03dc6b764dec8de32c5a4df778ca9f336c66300e92a51df80591a1f933"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 4): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:151-159 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:248-256 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:295-303 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchActorsSkeletonMethod.swift:58-65 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 130 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":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5da92b5cf15be0467bbf5b4f74d84a450e8eff2a9883b98c880ec7299b9ef6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactDismissMatchMethod.swift:30-38 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactRemoveDataMethod.swift:27-35 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactSendNotificationMethod.swift:34-42 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactStartPhoneVerificationMethod.swift:33-41 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactDismissMatchMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactStartPhoneVerificationMethod.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 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":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyContactDismissMatchMethod.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e4cfec3d10ce6fdb1ac94f6af4a1efa29cdc72aa66877abc008a7a4ad9f34de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationPutPreferencesMethod.swift:29-37 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationRegisterPushMethod.swift:39-48 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationUnregisterPushMethod.swift:38-47 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationUpdateSeenMethod.swift:30-38 \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 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationRegisterPushMethod.swift:39\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyNotificationPutPreferencesMethod.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"66f1147712ea2bfd8324e8d929b9ba9a9a897718fd4e4a5886ccd51fbb9ab7aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddValuesAsAdmin.swift:25-34 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DeleteValuesAsAdmin.swift:33-41 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableInviteCodesAsAdmin.swift:36-44 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddValuesAsAdmin.swift:25\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddValuesAsAdmin.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e5028fbd23d9691325d2111410d2908e6789c736e39472a6cbca9e9e42e9a7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchActorsSkeletonMethod.swift:46-54 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchPostsSkeletonMethod.swift:67-75 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchStarterPacksSkeletonMethod.swift:41-49 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchActorsSkeletonMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchPostsSkeletonMethod.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 92 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchActorsSkeletonMethod.swift:46\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchActorsSkeletonMethod.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e44251ccc6e61d589f20ac0ea702d9b08c1111ec938acaf03641585ef77f1c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/FollowRecord/CreateFollowRecord.swift:33-41 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/LikeRecord/CreateLikeRecord.swift:32-40 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/FollowRecord/CreateFollowRecord.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/LikeRecord/CreateLikeRecord.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/FollowRecord/CreateFollowRecord.swift:33\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/FollowRecord/CreateFollowRecord.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"68e96d9844cff1883f3f87c4667e801d7e0b41fc3cb97000ae73f1f67d61ede3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddMemberAsAdmin.swift:37-45 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateMemberAsAdmin.swift:39-47 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddMemberAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateMemberAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 46 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddMemberAsAdmin.swift:37\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/AddMemberAsAdmin.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"75920d1a133681246f964c58bcde77f2a85eef86cec31b9c06ee99509e485063"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift:44-52 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateCommunicationTemplateAsAdmin.swift:48-57 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateCommunicationTemplateAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 110 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift:44\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/CreateCommunicationTemplateAsAdmin.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"683134f06da968274c42c141c90e9504ec85e9a78d253924a68e887da80b727b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportAssignModeratorMethod.swift:38-46 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportUnassignModeratorMethod.swift:30-38 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportAssignModeratorMethod.swift:38\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneReportAssignModeratorMethod.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bc570e20835eb3801dd9652ed7dbfe1568555af107a9f19b26a24c6af024f28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftDeleteDraftMethod.swift:29-37 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftUpdateDraftMethod.swift:33-42 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftUpdateDraftMethod.swift:33\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyDraftDeleteDraftMethod.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"705081c5c298a7a9db27726c844c4a3d0fd804172050525c1b6b25a448279673"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetAgeAssuranceStateMethod.swift:33-41 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedInitAgeAssuranceMethod.swift:39-48 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedInitAgeAssuranceMethod.swift:39\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedGetAgeAssuranceStateMethod.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"76bfb12a1a2a2ec0827c078f9b20b1a1e43c924aa8434b330f1746e134c571af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentitySubmitPlcOperationMethod.swift:30-38 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentityUpdateHandleMethod.swift:30-38 \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":"Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoIdentitySubmitPlcOperationMethod.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba0369a188a6a61c20e407d10d7571f70d692fa4e3868c0ca5c28f3ac250c7e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 8): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DeleteAccountAsAdmin.swift:32-39 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableAccountInvitesAsAdmin.swift:36-44 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableInviteCodesAsAdmin.swift:36-44 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EnableAccountInvitesAsAdmin.swift:39-47 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountEmailAsAdmin.swift:36-44 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountHandleAsAdmin.swift:36-44 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountPasswordAsAdmin.swift:33-41 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountSigningKey.swift:27-35 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableAccountInvitesAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/EnableAccountInvitesAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 60 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DisableAccountInvitesAsAdmin.swift:36\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DeleteAccountAsAdmin.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fc020ae933d65374bd5f8eb49e408f3cd560a24b523decef5bc4bc2d2b4b6c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DeleteAccountAsAdmin.swift:32-39 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountEmailAsAdmin.swift:35-44 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountHandleAsAdmin.swift:35-44 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountPasswordAsAdmin.swift:32-41 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountSigningKey.swift:26-35 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoTempRequestPhoneVerificationMethod.swift:35-42 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountEmailAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountHandleAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 3 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpdateAccountEmailAsAdmin.swift:35\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DeleteAccountAsAdmin.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f041eab15bbb7393b0dbf08b1d3d12a76f12850b15ab2f8b9180ca78d336aa6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/FollowRecord/CreateFollowRecord.swift:34-41 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/LikeRecord/CreateLikeRecord.swift:33-40 | Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ProfileRecord/CreateProfileRecord.swift:141-148 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/FollowRecord/CreateFollowRecord.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/LikeRecord/CreateLikeRecord.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/FollowRecord/CreateFollowRecord.swift:34\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/FollowRecord/CreateFollowRecord.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"510132fd142129ec733da5b22d8039fc203894261f526c6fe0d320a0ffc1223a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DeleteCommunicationTemplateAsAdmin.swift:31-38 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DeleteMemberAsAdmin.swift:32-39 \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":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DeleteCommunicationTemplateAsAdmin.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"23ee531ad65269f07e2a2be103433192814ba84bdf74d4b6545ad2cbde9893b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRecordMethod.swift:36-45 | Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRepoMethod.swift:34-40 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRecordMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRepoMethod.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 94 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRecordMethod.swift:36\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoSyncGetRecordMethod.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd5a2b9fcc6faa02b49cad1e8b5a21d040c4c0ffdf1efe69ea590bc30fa27100"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:125-130 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:168-173 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:178-183 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift:198-203 | Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneListVerificationsMethod.swift:71-75 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyFeedSearchPostsMethod.swift:87-91 | Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyUnspeccedSearchPostsSkeletonMethod.swift:79-83 \u2014 before extracting anything, compare \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationStatusesAsAdmin.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 130 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:125\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/ToolsOzoneListVerificationsMethod.swift:67\u0060 calls \u0060max\u0060, \u0060min\u0060 and \u0060Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift:120\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/QueryModerationEventsAsAdmin.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"35f217329a59aa758801b86e38c97f2f94050c34c5db9c08ad5d6b476942dab4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/ATProtoKit/Utilities/ATFacetParser.swift:655-659 | Sources/ATProtoKit/Utilities/ATFacetParser.swift:682-686 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/ATProtoKit/Utilities/ATFacetParser.swift:661\u0060 calls \u0060Index\u0060 and \u0060Sources/ATProtoKit/Utilities/ATFacetParser.swift:688\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/Utilities/ATFacetParser.swift"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"88cdd1546fa6fac9a3e040dfaeda00fda6c9dbff32ee5e157361175a36e3c3f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Sources/ATProtoKit/Models/Common/ATEventStreamConfiguration/FirehoseEventRepresentable.swift:211-215 | Sources/ATProtoKit/Models/Common/ATEventStreamConfiguration/FirehoseEventRepresentable.swift:250-254 | Sources/ATProtoKit/Models/Common/ATEventStreamConfiguration/FirehoseEventRepresentable.swift:291-295 | Sources/ATProtoKit/Models/Common/ATEventStreamConfiguration/FirehoseEventRepresentable.swift:329-333 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/Models/Common/ATEventStreamConfiguration/FirehoseEventRepresentable.swift:211\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/ATProtoKit/Models/Common/ATEventStreamConfiguration/FirehoseEventRepresentable.swift:255\u0060 calls \u0060decode\u0060 and \u0060Sources/ATProtoKit/Models/Common/ATEventStreamConfiguration/FirehoseEventRepresentable.swift:216\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/Models/Common/ATEventStreamConfiguration/FirehoseEventRepresentable.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"a031e1f4a665c2974ec188d01b89d3efb8ce2579559fbdbd69f26b6559164bf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/ATProtoKit/Utilities/ATFacetParser.swift:239-243 | Sources/ATProtoKit/Utilities/ATFacetParser.swift:281-285 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ATProtoKit/Utilities/ATFacetParser.swift:239\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/Utilities/ATFacetParser.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"474712abfddcd591a505e73011daf27073b7817da7acaa451c52b3b9dac92ef1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: concreteConfigurationsExposeFocusedCapabilities: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/ATProtoKitTests/OAuth/OAuthIntegrationHookTests.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f6c0b3a220158e80a0dddb7487c30733d05cf76f146d3537d347a23775e0b6a"}},{"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":"6d5af4eff33b0113865cdd6b32bb69a1c122919f20476659de53552dd2ba6861"},"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"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add error handling. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/Utilities/ATCBORManager.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0805e87b0442376a29d534fcc6bdd751266f95befced70c529827bc3df61952"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Create article on resolving identities with ATIdentityProtocol. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/Utilities/ATIdentityProtocol.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf986f8d8ab870ab046fb818801e6aeeb8ff2d3d4a4b295c4fe881a45c300e56"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Move date format decode/encode methods to KeyedDecodingContainer \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/Utilities/Extensions/DateFormatting.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"cda5f08c232f7ef3d1e5d34d707e00a876ee9324d459f37e9bea25d5cd9516a5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Make sure this is correct. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/Models/Lexicons/app.bsky/Feed/AppBskyFeedDefs.swift"},"region":{"startLine":1223}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f0016338cdecf65e8ba73842d708868c82de1c3f3ed9e288ec5f860068cc2df"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Replace with a better error. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/SessionManager/SessionCapabilities.swift"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec0844e968c491cf513257dde7ceeeedd29661a694511f47d8e773b9178edc72"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Create a better error. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/SessionManager/SessionCapabilities.swift"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"68e4e76ffe99da6a95793e89bddb1a8a5014618978a0f4cc8ce77fc3bdfaf586"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Create a better error. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/SessionManager/SessionCapabilities.swift"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"e63b099b8fe8553610dfb86c7ac720e0546074d1ef60b3621e5b1eb524977eee"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Find out more information about what needs to be added to \u0022Content-Length\u0027s HTTP header. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ComAtprotoAPI/ComAtprotoRepoImportRepoMethod.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e74b6eed0ffb0597308dec9e82a61034c092134ed8a51b367330fbaa038dcb6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Figure out what exactly should be done here. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyActorExportAccountDataMethod.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac76317060c0ee7ac570d2952cbdeede4e04f216f8432297609437d5db8eaf9c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Consider com.atproto.repo.applyWrites for atomic post and gate creation. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostRecord/CreatePostRecord.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4475ca9e4ba62b9daa42104e24a61e5337103f567ea9548be7b2e08a9f567fd"}},{"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":"768df1b2fed988343479579aee3902d6b5381edb907101f4a55415c66cf9e22d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"c4c133d3359f77a8fc77f707dab99a144cd106a915d8c5a6838517a9a7a08b07"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"46405a3b096767df6f5267c01e253d6ab1c664235177198eba2b936bab098455"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"29bccfa58597e909cd3e4b3d94ae1ff28b3581dd71fa39b9aba10783b8d962b6"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"d52e3fe618d6ce76763647c97790bbf2ec65e736bdd230309133a6ec0a108bbf"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"3c82c0892f54c36a7fa4aeecd8332dec4afe2842b89d82292cb9114f154d997a"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1329","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 5 of 332 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 332 of the 665 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/UpdateStarterPackRecord.swift, Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/CreateStarterPackRecord.swift, Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/HelperFunctions/DeleteActionRecord.swift, Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/AddFeedToStarterPackRecord.swift, Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/RemoveFeedFromStarterPackRecord.swift. Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/UpdateStarterPackRecord.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"63c061d4f73fd16ae196e27a38edd466ecab3ccf8b484e5d94f9dc43047d3790"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/CreateStarterPackRecord.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1c552cff53725cd4c3523fb4e1c086c1030086bd28dde228b07073b52547814"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/HelperFunctions/DeleteActionRecord.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c3adce5268f999add3ac625e20c30b05036a024dfd5d759c9ca7d01144c153d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/AddFeedToStarterPackRecord.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"374a8079af179476bfa329305aa6e7cb985272900983bac56f0ab8bfbe8cb12d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/StarterPackRecord/RemoveFeedFromStarterPackRecord.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f70ed578a8198fa02e65a5b8215a3e77cf1427187ab3e15da4704a46ce0b8e1"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: AppBskyActorSearchActorsMethod.swift \u2194 AppBskyActorSearchActorsTypeaheadMethod.swift: \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsTypeaheadMethod.swift\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). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, 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 \u0060e28a811d\u0060 Update lexicon methods due to rework (at that commit the files were still \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/SearchActors.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/SearchActorsTypeahead.swift\u0060); \u006040b3d7b6\u0060 Update lexicon methods due to rework (at that commit the files were still \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/SearchActors.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/SearchActorsTypeahead.swift\u0060); \u0060d2f4472f\u0060 Add more auth-optional methods, tweak all auth-optional methods (at that commit the files were still \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/SearchActors.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/SearchActorsTypeahead.swift\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsMethod.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f078f88ec453daafa401bf8e22be6dd4eaa8d6e64271a3d035ba93842aead858"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: CreateLikeRecord.swift \u2194 CreatePostRecord.swift: \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/LikeRecord/CreateLikeRecord.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostRecord/CreatePostRecord.swift\u0060 change together 63% of the time (17 of the 27 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). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 17 shared commits counted here, the most recent 3 are \u006087b5de37\u0060 Add sleep timer to remaining record creation methods; \u0060e324a0ff\u0060 Update ATProtoBluesky methods; \u00600ed7335f\u0060 Add do-catch blocks to ATProtoBluesky \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/LikeRecord/CreateLikeRecord.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc899e4957afe3bbe293a5bf51db59f6ecf6d37988384fbff94949ae73af4f51"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: CreatePostgateRecord.swift \u2194 CreateThreadgateRecord.swift: \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostgateRecord/CreatePostgateRecord.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/CreateThreadgateRecord.swift\u0060 change together 57% of the time (8 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 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). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u006048ba6ba9\u0060 Fix broken links in documentation; \u006087b5de37\u0060 Add sleep timer to remaining record creation methods; \u0060e324a0ff\u0060 Update ATProtoBluesky methods \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostgateRecord/CreatePostgateRecord.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0abe588bcaf6d3be45e02a7d9fd4300ee5d2c5bf76e1af184b8a58427439daad"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: AppBskyActorGetProfilesMethod.swift \u2194 AppBskyActorSearchActorsTypeaheadMethod.swift: \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetProfilesMethod.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorSearchActorsTypeaheadMethod.swift\u0060 change together 53% of the time (9 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). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, 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 \u0060a020d3c4\u0060 Remove pdsURL check in lexicon methods; \u0060b1a67451\u0060 Begin to remove shouldAuthenticate (at that commit the files were still \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/GetProfiles.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/SearchActorsTypeahead.swift\u0060); \u0060d2f4472f\u0060 Add more auth-optional methods, tweak all auth-optional methods (at that commit the files were still \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/GetProfiles.swift\u0060 and \u0060Sources/ATProtoKit/APIReference/AppBskyAPI/SearchActorsTypeahead.swift\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/AppBskyAPI/AppBskyActorGetProfilesMethod.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"006643e401f9e3d5bd97dc81ac8590722a71cdbf217a1928672501930ee9cea8"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: CreateBlockRecord.swift \u2192 CreateLikeRecord.swift, CreatePostRecord.swift, CreateThreadgateRecord.swift: \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/BlockRecord/CreateBlockRecord.swift\u0060 changes together with 3 other files \u2014 \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/LikeRecord/CreateLikeRecord.swift\u0060, \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostRecord/CreatePostRecord.swift\u0060, \u0060Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/ThreadgateRecord/CreateThreadgateRecord.swift\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":"Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/BlockRecord/CreateBlockRecord.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49423302cfde798d9575074fc2125ff9afd8dcba1691b1fbd8a7eb7c53445e0b"}},{"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":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"P12","level":"warning","message":{"text":"Test suite runs only after the merge: \u0060swift_macos.yml\u0060, \u0060swift_windows.yml\u0060 run(s) the test suite, but no workflow that runs tests is triggered by a pull request (or a merge queue) \u2014 so the suite reports on code that is already on the default branch. A red build there blocks nothing and the only remedy is a revert. Add the pull-request trigger to the workflow that runs your suite so the gate applies before the merge, not after it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"731ad560de6aa35d3e92103d5ad0fbec4c54f771b709281e852941847e03ef03"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add CodeQL\u0027s Swift pack (Swift/Xcode) (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 3 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P4","level":"note","message":{"text":"No release approval gate: The release is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY\u0027S PIPELINE FILES. What was read: every file under \u0060.github/workflows/\u0060, \u0060.forgejo/workflows/\u0060, \u0060.gitea/workflows/\u0060, \u0060.azuredevops/\u0060 and \u0060.azure-pipelines/\u0060, plus \u0060.gitlab-ci*\u0060 and \u0060azure-pipelines*\u0060 \u2014 with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab\u0027s \u0060when: manual\u0060, CircleCI\u0027s \u0060type: approval\u0060, an Azure \u0060ManualValidation@\u0060 task or an \u0060approvals:\u0060 block, a Jenkins \u0060input\u0060 step, a \u0060uses:\u0060 step naming an approval action, an \u0060environment:\u0060 paired with \u0060reviewers\u0060 / \u0060required_reviewers\u0060 / \u0060protection\u0060 / \u0060wait-timer\u0060 / \u0060deployment_branch_policy\u0060, a draft-release step, a \u0060workflow_dispatch\u0060 promotion, or a release-event gate. \u2605 What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy \u2014 all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060os(iOS) || os(macOS) || os(tvOS) || os(visionOS) || os(watchOS)\u0060 appears character-identically in 2 files \u2014 Sources/ATProtoKit/APIReference/SessionManager/ATProtocolConfiguration.swift, Sources/ATProtoKit/APIReference/SessionManager/AppleSecureKeychain.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/SessionManager/ATProtocolConfiguration.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"243aa9486e462c632ebe230622440709aadeee24c73c6d1ca3a046dcf6da73f0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/ATProtoKit.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"141b44a0730caf7a9cf999447d113114f8fa16c2c36bd10984ea4fb80dd679d0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/Utilities/ATProtoTools.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"a84749450aa8ff5176f0ca3c8469f227f8f626034db193321148d86a2a5a8e71"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/Utilities/ATProtoTools.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe8fc21073b7a6dbb7a21d6c6e04d9f51e21ca93afc2d9184739f65813715354"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/Utilities/ATProtoTools.swift"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba947aa357315aaf9b16f7b3e0f11815620cba1185103064ad4e153acf34dd62"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/Utilities/ATRecordProtocol.swift"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c46336895001f5237b2c74cffa0b2a547ed38e504ac9c0c6fd994f86d50406d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/SessionManager/SessionCapabilities.swift"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"6371fa42bee778371824368c1073ae722a6cf561cf127566ac890312c2fa62d1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostRecord/CreatePostRecord.swift"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"a09c45e0948f8e88b5ff7a4f588b1bd6121cd96846e8eca004460bdbf0e040a5"}}],"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-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1104","guid":"4c918cb5-b2a6-6c55-9963-a44ee464305e","name":"Use of Unmaintained Third Party Components","shortDescription":{"text":"Use of Unmaintained Third Party Components"},"helpUri":"https://cwe.mitre.org/data/definitions/1104.html"},{"id":"CWE-1329","guid":"f70f1c3f-4ccf-cb5e-bdd3-03ba4868d36d","name":"Reliance on Component That is Not Updateable","shortDescription":{"text":"Reliance on Component That is Not Updateable"},"helpUri":"https://cwe.mitre.org/data/definitions/1329.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-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-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"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":12,"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."]}]}