{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AC7","name":"A11y enforcement","shortDescription":{"text":"A11y enforcement"},"helpUri":"https://codehealth.canine.dev/dimensions/AC7"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX2","name":"Stateful singletons","shortDescription":{"text":"Stateful singletons"},"helpUri":"https://codehealth.canine.dev/dimensions/AX2"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"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":"P5","name":"DR \u0026 Backup","shortDescription":{"text":"DR \u0026 Backup"},"helpUri":"https://codehealth.canine.dev/dimensions/P5"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"ArticleAIChatView.parseCompletionStepFromStreamingBytes (cyclomatic 172): ArticleAIChatView.parseCompletionStepFromStreamingBytes has cyclomatic complexity 172 (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":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":3554}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff5f8a49ee2e4bb092ab01a47d38321d0ac75d127ec44bd6b6e3bcd011c40d4"}},{"ruleId":"D1","level":"warning","message":{"text":"MyPlanetModel.== (cyclomatic 77): MyPlanetModel.== has cyclomatic complexity 77 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":906}}}],"partialFingerprints":{"codehealthFindingId/v1":"c256c9afa5351bbc9e809e1846fc5cb7ccbe20092c6da7077ccea66091835fe8"}},{"ruleId":"D1","level":"warning","message":{"text":"MyPlanetModel.importBackup (cyclomatic 66): MyPlanetModel.importBackup has cyclomatic complexity 66 (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":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":1470}}}],"partialFingerprints":{"codehealthFindingId/v1":"b24de58232d0680327ae6527ce7fcf5d74326c0b16ae103c5e11edceeacf6830"}},{"ruleId":"D1","level":"warning","message":{"text":"ArticleWebViewModel.checkArticleLink (cyclomatic 46): ArticleWebViewModel.checkArticleLink has cyclomatic complexity 46 (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":"Planet/Views/Articles/ArticleWebViewModel.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"212a8763156d3658790b2f37d1faee82b3a25bf5d40a8f304ff8f845d72d91cc"}},{"ruleId":"D1","level":"warning","message":{"text":"ArticleAIChatView.summarizeToolArguments (cyclomatic 45): ArticleAIChatView.summarizeToolArguments has cyclomatic complexity 45 (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":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":3225}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdd20b91fad5dc80bfcdf8c82c84ba2b9ba587520e4028de2829353a53888ee1"}},{"ruleId":"D1","level":"warning","message":{"text":"FollowingPlanetModel.update (cyclomatic 44): FollowingPlanetModel.update has cyclomatic complexity 44 (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":"Planet/Entities/FollowingPlanetModel.swift"},"region":{"startLine":1018}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f7831815e73b2f5d6b41f3a0d9b397c516c33260cf57cfed05b65be8567c526"}},{"ruleId":"D1","level":"warning","message":{"text":"MyPlanetModel.performPublish (cyclomatic 43): MyPlanetModel.performPublish has cyclomatic complexity 43 (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":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":2784}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f1cda98bce430ad583091ae5af34fe027f8fb4ee591822f6726355a3333d43b"}},{"ruleId":"D1","level":"warning","message":{"text":"MyPlanetModel.savePublic (cyclomatic 38): MyPlanetModel.savePublic has cyclomatic complexity 38 (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":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":2185}}}],"partialFingerprints":{"codehealthFindingId/v1":"65c6c98a0437607a3a4ccdfda508d2ea850e861173b71ceec1e7a1e0369e10ff"}},{"ruleId":"D1","level":"warning","message":{"text":"FollowingArticleModel.browserURL (cyclomatic 36): FollowingArticleModel.browserURL has cyclomatic complexity 36 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/FollowingArticleModel.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6d2f8164024bd2353fbae347e4e6790a148f9764efd7f9d2d35d1b58905a399"}},{"ruleId":"D1","level":"warning","message":{"text":"ArticleAIChatView.escapeRawControlCharactersInsideJSONString (cyclomatic 32): ArticleAIChatView.escapeRawControlCharactersInsideJSONString has cyclomatic complexity 32 (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":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":5950}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bfcc6f5db12d33cd1a98ed7df3e2cb7a287ba0a98a85ef99c298914303072dc"}},{"ruleId":"D1","level":"warning","message":{"text":"ArticleListView.swift.filteredArticles (cyclomatic 32): ArticleListView.swift.filteredArticles has cyclomatic complexity 32 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleListView.swift"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"54025415df568d6f51911ec49cbeb0d84c906efcaf2ad25b0203fa45f8e1c471"}},{"ruleId":"D1","level":"warning","message":{"text":"SearchEmbedding.findRelated (cyclomatic 31): SearchEmbedding.findRelated has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Search/SearchEmbedding.swift"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c5797b1d5d2178fa03d00f49721ccae3516c1184174d2f09b136f16019906e"}},{"ruleId":"D1","level":"warning","message":{"text":"MyArticleItemView.body (cyclomatic 31): MyArticleItemView.body has cyclomatic complexity 31 (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":"Planet/Views/My/MyArticleItemView.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf77553d6d9e4714b8c29dd51bf202c5dae2a4367c109b6e8b86a76a78231e3f"}},{"ruleId":"D1","level":"warning","message":{"text":"SearchEmbedding.search (cyclomatic 29): SearchEmbedding.search 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":"Planet/Search/SearchEmbedding.swift"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"133160e0f33a174570b52c1a5fd6ddc02e75984527e814b414d1e32927e88e27"}},{"ruleId":"D1","level":"warning","message":{"text":"ArticleAIChatView.body (cyclomatic 29): ArticleAIChatView.body 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":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b3b8de1396b6e587d09c2ad01f82e33b42e0b787bdf222f85d239c8762fbf6e"}},{"ruleId":"D1","level":"warning","message":{"text":"MyPlanetModel.fetchArticleAttachments (cyclomatic 28): MyPlanetModel.fetchArticleAttachments has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c9fef5234502f2c8f133928530eca90218998ddd1014189a21d8fe8df3d2538"}},{"ruleId":"D1","level":"warning","message":{"text":"ArticleAIChatView.summarizeToolResult (cyclomatic 28): ArticleAIChatView.summarizeToolResult has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":3361}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a0b82476d175c8ff533b0accc11f02422b44cf445fbc3ff1f9a2ffb96436bcb"}},{"ruleId":"D1","level":"warning","message":{"text":"ArticleView.body (cyclomatic 27): ArticleView.body has cyclomatic complexity 27 (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":"Planet/Views/Articles/ArticleView.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"000b64fe1fcc6889662ab68fc8988aa2de44b5edd8aed5d63421b5e5f9926a9c"}},{"ruleId":"D1","level":"warning","message":{"text":"IPFSDaemon.setupIPFS (cyclomatic 26): IPFSDaemon.setupIPFS has cyclomatic complexity 26 (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":"Planet/IPFS/IPFSDaemon.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f0957ee3c83425c98c2c47ab7a444a4dffd527b8b515e0be0fec46f7d80d48a"}},{"ruleId":"D1","level":"warning","message":{"text":"PlanetStore.refreshSelectedArticles (cyclomatic 25): PlanetStore.refreshSelectedArticles 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":"Planet/Entities/PlanetStore.swift"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"542b99f2ec7c90782338fefe27d064b91e3e8f4bf3425d4ed3be8978118a2f66"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownListAutocomplete.evaluateBeforeNewline (cyclomatic 25): MarkdownListAutocomplete.evaluateBeforeNewline has cyclomatic complexity 25 (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":"Planet/Helper/MarkdownListAutocomplete.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"8764fda026c9811bbb64e24a19ceef081ead568b87856286eeda65f2f958f020"}},{"ruleId":"D1","level":"warning","message":{"text":"ArticleAIChatView.normalizeInlineLatex (cyclomatic 25): ArticleAIChatView.normalizeInlineLatex 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":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":1921}}}],"partialFingerprints":{"codehealthFindingId/v1":"3868c9359ccd6cf1f705b61696c76f0c8c35eed74878ac1bcaf4fb614827fc6a"}},{"ruleId":"D1","level":"warning","message":{"text":"MyPlanetSidebarItem.body (cyclomatic 25): MyPlanetSidebarItem.body has cyclomatic complexity 25 (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":"Planet/Views/Sidebar/MyPlanetSidebarItem.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c739f93cb1bb75fa7d93365241e935b924e3d524fcfb8e6f939d321c7cec6ad"}},{"ruleId":"D1","level":"warning","message":{"text":"MyArticleModel.getHeroImage (cyclomatic 24): MyArticleModel.getHeroImage has cyclomatic complexity 24 (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":"Planet/Entities/MyArticleModel.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bea601d6f2adf85e62794bece9a62ee2aa4c49caa527b5a869bda1339ceb2fc"}},{"ruleId":"D1","level":"warning","message":{"text":"SearchIndex.makeSnippet (cyclomatic 24): SearchIndex.makeSnippet has cyclomatic complexity 24 (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":"Planet/Search/SearchIndex.swift"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"44bdc7947440fea46e3d1a402de1f84ea59522a0f89f43e4479a252b32136157"}},{"ruleId":"D1","level":"warning","message":{"text":"ArticleAIChatView.requestReply (cyclomatic 24): ArticleAIChatView.requestReply has cyclomatic complexity 24 (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":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":2839}}}],"partialFingerprints":{"codehealthFindingId/v1":"71f24511ba5fa10c40f51624c9abb6198a9734c6af8ad162b13b716b16c46313"}},{"ruleId":"D1","level":"warning","message":{"text":"ArticleWebViewModel.processPossibleInternalLink (cyclomatic 24): ArticleWebViewModel.processPossibleInternalLink has cyclomatic complexity 24 (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":"Planet/Views/Articles/ArticleWebViewModel.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"9df0027a11f06a257de41f4e39308c68095c2deb98f5af979c76ade8b674434a"}},{"ruleId":"D1","level":"warning","message":{"text":"PFDashboardWindowController.toolbar (cyclomatic 24): PFDashboardWindowController.toolbar has cyclomatic complexity 24 (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":"Planet/Labs/Published Folders/Dashboard/PFDashboardWindowController.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e5b0c7a061e9dfb123de6a58956b8427b6835a69175617fbb717b8eeacd9c65"}},{"ruleId":"D1","level":"warning","message":{"text":"MyArticleGridView.body (cyclomatic 23): MyArticleGridView.body has cyclomatic complexity 23 (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":"Planet/Views/My/MyArticleGridView.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"90066d61b618affc9d8dccdb9b1d33a958ab5afa2144b6b32aabcdb554e0d89f"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownListAutocomplete.evaluate (cyclomatic 22): MarkdownListAutocomplete.evaluate has cyclomatic complexity 22 (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":"Planet/Helper/MarkdownListAutocomplete.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad5af92ebbf54c6fcd0e859005a1808fd96d4f2677663d92175c8d71bd50be01"}},{"ruleId":"D1","level":"warning","message":{"text":"WalletManager.setupV2 (cyclomatic 22): WalletManager.setupV2 has cyclomatic complexity 22 (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":"Planet/Labs/Wallet/WalletManager.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"88a4c5a53739fab1f56919f9ee270df595a5c94209a38c0f22a9c36fb8d9d15c"}},{"ruleId":"D1","level":"warning","message":{"text":"DraftModel.saveToArticle (cyclomatic 21): DraftModel.saveToArticle 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":"Planet/Entities/DraftModel.swift"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dec302715fe8d14397d67a525fb15a3e3866a384ba173e45f8f34531e75c080"}},{"ruleId":"D1","level":"warning","message":{"text":"FollowingArticleModel.renderLocalPreview (cyclomatic 21): FollowingArticleModel.renderLocalPreview 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":"Planet/Entities/FollowingArticleModel.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"250630a44d44ef396e1dac245c5ebbdd9d310a994b1b6000050b6c0308e3bfad"}},{"ruleId":"D1","level":"warning","message":{"text":"MyArticleModel.prewarm (cyclomatic 21): MyArticleModel.prewarm has cyclomatic complexity 21 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/MyArticleModel.swift"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa44c62f858cee1cfe26a6ce62623ff4b213dd595ed250d702e752586c3743fb"}},{"ruleId":"D1","level":"warning","message":{"text":"MyPlanetModel.shouldDownloadManagedAttachment (cyclomatic 21): MyPlanetModel.shouldDownloadManagedAttachment has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"67a433018cb2b354f238ed276d44962c3c987423bdeeb8d54e3a7e750ae8937f"}},{"ruleId":"D1","level":"warning","message":{"text":"MyPlanetModel.updateExistingAggregatedArticle (cyclomatic 21): MyPlanetModel.updateExistingAggregatedArticle has cyclomatic complexity 21 (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":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb810331d1d94fb5fa17f3497bf4ac6bb9d320a5459d6ca2b44ede2db50ccdff"}},{"ruleId":"D1","level":"warning","message":{"text":"IPFSDaemon.gc (cyclomatic 21): IPFSDaemon.gc 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":"Planet/IPFS/IPFSDaemon.swift"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"89b3a25d26ce2c2af552687e5e49c9363c976d7fc669502ace1f5c275b53fd1e"}},{"ruleId":"D1","level":"warning","message":{"text":"ArticleAIChatView.chatMessageList (cyclomatic 21): ArticleAIChatView.chatMessageList 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":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c2b5c559fce5ba91a2ce0f4f08b63f09980f300ab0411d64b99a0adb3f38596"}},{"ruleId":"D1","level":"warning","message":{"text":"MyPlanetEditView.body (cyclomatic 21): MyPlanetEditView.body has cyclomatic complexity 21 (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":"Planet/Views/My/MyPlanetEditView.swift"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b9b83c8e6b39e58296e89c139c5949712158c2e5cf316f4cea4344d7eceef6e"}},{"ruleId":"D1","level":"warning","message":{"text":"PlanetStore.restoreSavedMyArticleSelection (cyclomatic 20): PlanetStore.restoreSavedMyArticleSelection has cyclomatic complexity 20 (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":"Planet/Entities/PlanetStore.swift"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"58d7e9e0b9dca5050d9cdd2c6e0f3a68d0a2f7ca19510d4a58551df3f21d049a"}},{"ruleId":"D1","level":"warning","message":{"text":"ArticleAIChatView.parseCompletionStep (cyclomatic 20): ArticleAIChatView.parseCompletionStep has cyclomatic complexity 20 (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":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":4192}}}],"partialFingerprints":{"codehealthFindingId/v1":"980c055c93096f1b4f2b09b0104f5920cac1bd9a35fc775066eabed0cd62d21f"}},{"ruleId":"D1","level":"warning","message":{"text":"ArticleListView.body (cyclomatic 20): ArticleListView.body has cyclomatic complexity 20 (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":"Planet/Views/Articles/ArticleListView.swift"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"df1e84178c327a5b72b6ee076228b6dc0990d94357e92a86fba3e5396250cc3e"}},{"ruleId":"D1","level":"warning","message":{"text":"FollowingArticleItemView.body (cyclomatic 20): FollowingArticleItemView.body 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":"Planet/Views/Following/FollowingArticleItemView.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8fd6a45b1e529c37b87b9b0f66188e73a3049d4fcdbb03b10212454f5d1676f"}},{"ruleId":"D1","level":"warning","message":{"text":"MyPlanetTemplateSettingsView.body (cyclomatic 20): MyPlanetTemplateSettingsView.body has cyclomatic complexity 20 (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":"Planet/Views/My/MyPlanetTemplateSettingsView.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"7244f8a9ff1db68e445ea2d63865fbbf2c0d8620bed21cc5f2018cd955ac0cbc"}},{"ruleId":"D1","level":"warning","message":{"text":"WebAppUpdater.updateWebApp (cyclomatic 19): WebAppUpdater.updateWebApp has cyclomatic complexity 19 (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":"Planet/API/WebAppUpdater.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f8ba0153606b827e3fd1c0e8ec138328a4631e39f45e0edcce5de2dcdb1ce4d"}},{"ruleId":"D1","level":"warning","message":{"text":"ArticleModel.starView (cyclomatic 19): ArticleModel.starView has cyclomatic complexity 19 (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":"Planet/Entities/ArticleModel.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b0e1d929274b98e54e5379b96a4fe10b074284eef8bc4a43ab085abb32e309d"}},{"ruleId":"D1","level":"warning","message":{"text":"MyArticleModel.processNFTMetadata (cyclomatic 19): MyArticleModel.processNFTMetadata has cyclomatic complexity 19 (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":"Planet/Entities/MyArticleModel.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"23e8460c326a260a52fd54292db5be79dda6e9ff67fda33bab8982fb12be55ac"}},{"ruleId":"D1","level":"warning","message":{"text":"FeedUtils.findFeed (cyclomatic 19): FeedUtils.findFeed has cyclomatic complexity 19 (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":"Planet/Helper/FeedUtils.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b6662cf2abbd0c5e22935968e6b6353c8740f8b38f721ce7983e24ed01c9a53"}},{"ruleId":"D1","level":"warning","message":{"text":"ArticleAIChatView.convertLatexCommand (cyclomatic 19): ArticleAIChatView.convertLatexCommand has cyclomatic complexity 19 (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":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":2164}}}],"partialFingerprints":{"codehealthFindingId/v1":"71f37bb78804596e42a6b971a371dbcf29c008d4963dbd4570d4c164c6f4dda4"}},{"ruleId":"D1","level":"warning","message":{"text":"ArticleAIRepoGrep.search (cyclomatic 19): ArticleAIRepoGrep.search has cyclomatic complexity 19 (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":"Planet/Views/Articles/ArticleAIOnDeviceTools.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"93bf793f87da30bcbfe97157033658ad4bc5fae095d4fa05af3d8916b46b2d9d"}},{"ruleId":"D1","level":"warning","message":{"text":"MyArticleSettingsView.body (cyclomatic 19): MyArticleSettingsView.body has cyclomatic complexity 19 (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":"Planet/Views/My/MyArticleSettingsView.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"bce3a135791c8e3233dc702f5ba0b9abe75d977b5a32b6329295aaf44efaf3d4"}},{"ruleId":"D1","level":"warning","message":{"text":"PNCommandRunner.parseGlobalOptions (cyclomatic 18): PNCommandRunner.parseGlobalOptions has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PlanetCLI/PNCommandRunner.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"91a87bc2a1652859abc40be5ca691cbf26586e59219fe22686a364c2777318bc"}},{"ruleId":"D1","level":"warning","message":{"text":"FollowingPlanetModel.browserURL (cyclomatic 18): FollowingPlanetModel.browserURL has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/FollowingPlanetModel.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f10bb2dd0a6ec5fbd45b5dccb98973f136b7ba7823e19b48a1568a6f8ea82b4"}},{"ruleId":"D1","level":"warning","message":{"text":"PlanetStore.init (cyclomatic 18): PlanetStore.init has cyclomatic complexity 18 (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":"Planet/Entities/PlanetStore.swift"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"a89c5fa90677ec42cabfbd5270819b7c3c4496ad939cef35373a27fb72052d3a"}},{"ruleId":"D1","level":"warning","message":{"text":"PlanetQuickShareViewModel.prepareFiles (cyclomatic 18): PlanetQuickShareViewModel.prepareFiles has cyclomatic complexity 18 (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":"Planet/Quick Share/PlanetQuickShareViewModel.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4cf2f1a1839e5008a271ab7f77a76b43da9a12c72ad7eb7b0ed4a68a69829ab"}},{"ruleId":"D1","level":"warning","message":{"text":"AvatarPickerView.body (cyclomatic 18): AvatarPickerView.body has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/My/AvatarPickerView.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa0bb5963727483f8fc8f96378a76bdd07303f0a379225ebc007cfd30d697463"}},{"ruleId":"D1","level":"warning","message":{"text":"MyPlanetEditView.filebaseView (cyclomatic 18): MyPlanetEditView.filebaseView has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/My/MyPlanetEditView.swift"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"700ce30c9feb4ed470f7cbceef8d29a02f87903a1505b49f7552ee9566db67c5"}},{"ruleId":"D1","level":"warning","message":{"text":"AppContentDropDelegate.performDrop (cyclomatic 17): AppContentDropDelegate.performDrop has cyclomatic complexity 17 (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":"PlanetLite/AppContentDropDelegate.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a81a8ccd475ec88170d280c18aaec8b738207f4025cc8d633f76e15b1ba70d7"}},{"ruleId":"D1","level":"warning","message":{"text":"AppSidebarItemView.body (cyclomatic 17): AppSidebarItemView.body 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":"PlanetLite/AppSidebarItemView.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"208803c0dedb4c235d74f1b9b5e16b837e6b2ad30d85fe68046470e9d6194531"}},{"ruleId":"D1","level":"warning","message":{"text":"MyArticleModel.browserURL (cyclomatic 17): MyArticleModel.browserURL has cyclomatic complexity 17 (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":"Planet/Entities/MyArticleModel.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e1c3cb6dd80050af15ce04f09e69332307c156f1299ac0dbdc90d24482ee965"}},{"ruleId":"D1","level":"warning","message":{"text":"MyPlanetModel.fetchPlanetSite (cyclomatic 17): MyPlanetModel.fetchPlanetSite has cyclomatic complexity 17 (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":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1e98a4ea48f960338ce15eb5d6daabc59f76df674e3f6360bf654639434a499"}},{"ruleId":"D1","level":"warning","message":{"text":"DragPasteboardMedia.supportedAttachmentType (cyclomatic 17): DragPasteboardMedia.supportedAttachmentType has cyclomatic complexity 17 (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":"Planet/Helper/DragPasteboardMedia.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ba1013a910d8ee755566d4af972327b0d5a3beea30e39a05811b5799f1df38c"}},{"ruleId":"D1","level":"warning","message":{"text":"FeedUtils.parseFeed (cyclomatic 17): FeedUtils.parseFeed has cyclomatic complexity 17 (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":"Planet/Helper/FeedUtils.swift"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee5f14ea660d05dc23162192f6a04afa6c7bee686c6fa7130fc74a1e19f44824"}},{"ruleId":"D1","level":"warning","message":{"text":"PlanetQuickShareView.attachmentSection (cyclomatic 17): PlanetQuickShareView.attachmentSection has cyclomatic complexity 17 (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":"Planet/Quick Share/PlanetQuickShareView.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ba9aad143b588cb7cae44cf65867d7e55677af5bf90c826cc2459020a895dd9"}},{"ruleId":"D1","level":"warning","message":{"text":"SearchIndex.sanitizeFTSQuery (cyclomatic 17): SearchIndex.sanitizeFTSQuery has cyclomatic complexity 17 (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":"Planet/Search/SearchIndex.swift"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6e3b80c9a25bb3cc58bbc71b4449c7b8034d75e26dfdfeba3e47e7d902e6f77"}},{"ruleId":"D1","level":"warning","message":{"text":"PlanetSettingsAIView.body (cyclomatic 17): PlanetSettingsAIView.body 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":"Planet/Settings/PlanetSettingsAIView.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe52a70d94414390fa8375de7fd11559a00b1712cedd20d88cbf9824c7ad3275"}},{"ruleId":"D1","level":"warning","message":{"text":"Filebase.pin (cyclomatic 16): Filebase.pin 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":"Planet/Integrations/Filebase.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"62255ac19b67612658d506fbad45e1c035659f469824278a4de40a454216113f"}},{"ruleId":"D1","level":"warning","message":{"text":"TemplateStore.load (cyclomatic 16): TemplateStore.load 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":"Planet/TemplateBrowser/TemplateStore.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"e844ce6cdf5ddd2c64d4dedf4586f3d69e828c71cb05f8781f0c7d7223f03f27"}},{"ruleId":"D1","level":"warning","message":{"text":"IconGalleryView.body (cyclomatic 16): IconGalleryView.body 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":"Planet/Labs/Icon Gallery/IconGalleryView.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbf276affca1fadc3f021b8378be2ccbeec1059ed774130c8ca380229e2fb7bc"}},{"ruleId":"D1","level":"warning","message":{"text":"TBWindowController.toolbar (cyclomatic 16): TBWindowController.toolbar 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":"Planet/TemplateBrowser/Window Controller/TBWindowController.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6ad92ec08624d51f47c4a507b37b506843061a14cf9fb226dd719dffca9b45d"}},{"ruleId":"D1","level":"warning","message":{"text":"ArticleAIChatView.convertLatexExpression (cyclomatic 16): ArticleAIChatView.convertLatexExpression has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":2064}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f8c1723c0addfb4dbaf80ed5f14a907a7c4541856a5bd2b3cd56bbe42aecc09"}},{"ruleId":"D1","level":"warning","message":{"text":"ArticleAIChatView.unescapeJSONStringLikeValue (cyclomatic 16): ArticleAIChatView.unescapeJSONStringLikeValue 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":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":5877}}}],"partialFingerprints":{"codehealthFindingId/v1":"7646862079fab3c714f01d10c2b9df868b6bf315db374970ac55d450d6f99d4b"}},{"ruleId":"D1","level":"warning","message":{"text":"ArticleAIChatView.runShellCommand (cyclomatic 16): ArticleAIChatView.runShellCommand 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":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":6754}}}],"partialFingerprints":{"codehealthFindingId/v1":"6edc249a5b9c59d2ffae077ba278fc1b3ed234a2ff12d2becbee3e90d67a97a2"}},{"ruleId":"D2","level":"warning","message":{"text":"ArticleAIChatView.parseCompletionStepFromStreamingBytes (cognitive 303): ArticleAIChatView.parseCompletionStepFromStreamingBytes has cognitive complexity 303 (threshold 15). Drivers by points: if/else 107 (224 pts), boolean chains 52, loops 7 (15 pts), ternaries 3 (7 pts), error handling 3 (5 pts) (nesting depth added 131). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":3554}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8f7cc998e15ca7902ecd2799a4aa60c072e3084fcc49e3721d45dfda004d908"}},{"ruleId":"D2","level":"warning","message":{"text":"MyPlanetModel.savePublic (cognitive 140): MyPlanetModel.savePublic has cognitive complexity 140 (threshold 15). Drivers by points: if/else 27 (95 pts), loops 7 (31 pts), error handling 5 (9 pts), boolean chains 5 (nesting depth added 96). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":2185}}}],"partialFingerprints":{"codehealthFindingId/v1":"a64287d75c5603af3804595c8871d90d7cd03cfbebc93239a702333f28fa3cb1"}},{"ruleId":"D2","level":"warning","message":{"text":"FollowingPlanetModel.update (cognitive 103): FollowingPlanetModel.update has cognitive complexity 103 (threshold 15). Drivers by points: if/else 40 (90 pts), error handling 4 (8 pts), boolean chains 4, match/switch 1 (nesting depth added 54). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/FollowingPlanetModel.swift"},"region":{"startLine":1018}}}],"partialFingerprints":{"codehealthFindingId/v1":"630c22e90e1409257bc773811aa1bf33e591a82b34db56222b4b5fa75ad3abde"}},{"ruleId":"D2","level":"warning","message":{"text":"ArticleWebViewModel.checkArticleLink (cognitive 97): ArticleWebViewModel.checkArticleLink has cognitive complexity 97 (threshold 15). Drivers by points: if/else 24 (60 pts), loops 10 (26 pts), boolean chains 11 (nesting depth added 52). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleWebViewModel.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"50e71360a861fbaa7bdad6da96439301168087817ed80256c5f92353187f6291"}},{"ruleId":"D2","level":"warning","message":{"text":"MyPlanetModel.importBackup (cognitive 78): MyPlanetModel.importBackup has cognitive complexity 78 (threshold 15). Drivers by points: if/else 59 (69 pts), error handling 4 (5 pts), boolean chains 3, ternaries 1 (nesting depth added 11). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":1470}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c0d51c8b12cdceba500a72afc3b31396bd1dde52809157e866ad83e54d31274"}},{"ruleId":"D2","level":"warning","message":{"text":"ArticleAIChatView.summarizeToolArguments (cognitive 77): ArticleAIChatView.summarizeToolArguments has cognitive complexity 77 (threshold 15). Drivers by points: if/else 38 (67 pts), ternaries 3 (7 pts), boolean chains 2, match/switch 1 (nesting depth added 33). 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":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":3225}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ae7fc28bbac1eca250eb255a3adaaaf57ae1875c02d13df7a57a9377eb8b5c6"}},{"ruleId":"D2","level":"warning","message":{"text":"MyPlanetModel.== (cognitive 76): MyPlanetModel.== has cognitive complexity 76 (threshold 15). Drivers by points: boolean chains 74, if/else 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":906}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fbf46facccd5103531693812898a7271196b8c8f1adedff231a6225d0cf55a9"}},{"ruleId":"D2","level":"warning","message":{"text":"MyPlanetModel.performPublish (cognitive 71): MyPlanetModel.performPublish has cognitive complexity 71 (threshold 15). Drivers by points: if/else 25 (49 pts), boolean chains 11, error handling 4 (8 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 29). 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":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":2784}}}],"partialFingerprints":{"codehealthFindingId/v1":"d71849de3e961e00469970d536b496b81d02e23a586fd73e937873c10b8fcd19"}},{"ruleId":"D2","level":"warning","message":{"text":"ArticleAIChatView.escapeRawControlCharactersInsideJSONString (cognitive 66): ArticleAIChatView.escapeRawControlCharactersInsideJSONString has cognitive complexity 66 (threshold 15). Drivers by points: if/else 19 (53 pts), boolean chains 6, match/switch 2 (6 pts), loops 1 (nesting depth added 38). 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":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":5950}}}],"partialFingerprints":{"codehealthFindingId/v1":"686fdf62af181fd27f49eb5868829a340f11ce3661ef0867b119daeacedcf7e6"}},{"ruleId":"D2","level":"warning","message":{"text":"MyPlanetModel.fetchArticleAttachments (cognitive 57): MyPlanetModel.fetchArticleAttachments has cognitive complexity 57 (threshold 15). Drivers by points: if/else 17 (37 pts), loops 5 (9 pts), boolean chains 6, error handling 2 (5 pts) (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":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"054478432b48bd30699de8ad3d6d8a4f2664b0899b8d10ec756000c6d17072e3"}},{"ruleId":"D2","level":"warning","message":{"text":"WalletManager.setupV2 (cognitive 56): WalletManager.setupV2 has cognitive complexity 56 (threshold 15). Drivers by points: if/else 16 (36 pts), error handling 4 (14 pts), match/switch 2 (4 pts), boolean chains 2 (nesting depth added 32). 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":"Planet/Labs/Wallet/WalletManager.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"e230c4678cd5eaff3432ce04109acf8b89ff93a7992e3ddbe04435e660a93d2c"}},{"ruleId":"D2","level":"warning","message":{"text":"ArticleAIChatView.requestReply (cognitive 52): ArticleAIChatView.requestReply has cognitive complexity 52 (threshold 15). Drivers by points: if/else 17 (42 pts), boolean chains 3, loops 2 (3 pts), match/switch 1 (3 pts), error handling 1 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":2839}}}],"partialFingerprints":{"codehealthFindingId/v1":"306e5128b6e7e4720e9305fed457c5ff43f57b20c769bcb1166a0de6de4e8df3"}},{"ruleId":"D2","level":"warning","message":{"text":"MyPlanetModel.fetchPlanetSite (cognitive 51): MyPlanetModel.fetchPlanetSite has cognitive complexity 51 (threshold 15). Drivers by points: if/else 12 (40 pts), loops 2 (6 pts), boolean chains 3, error handling 1 (2 pts) (nesting depth added 33). 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":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7efa03dcabd36c6fd7c31d156830d0bf9418ae73671df6ca9958df678b856eb"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchEmbedding.findRelated (cognitive 48): SearchEmbedding.findRelated has cognitive complexity 48 (threshold 15). Drivers by points: if/else 13 (29 pts), boolean chains 14, loops 1 (2 pts), ternaries 1 (2 pts), error handling 1 (nesting depth added 18). 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":"Planet/Search/SearchEmbedding.swift"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"e24fe1965066887ef3cf4613178d14dd92e58fb17b9d569424641b15bb203395"}},{"ruleId":"D2","level":"warning","message":{"text":"ArticleAIChatView.normalizeInlineLatex (cognitive 48): ArticleAIChatView.normalizeInlineLatex has cognitive complexity 48 (threshold 15). Drivers by points: if/else 12 (31 pts), boolean chains 8, loops 3 (6 pts), ternaries 1 (3 pts) (nesting depth added 24). 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":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":1921}}}],"partialFingerprints":{"codehealthFindingId/v1":"49287cd386a2773e735543f4b13b3190e7b129fc3ef08bb85238d3ca740a19e0"}},{"ruleId":"D2","level":"warning","message":{"text":"MyArticleModel.getHeroImage (cognitive 45): MyArticleModel.getHeroImage has cognitive complexity 45 (threshold 15). Drivers by points: if/else 14 (33 pts), boolean chains 10, loops 1 (2 pts) (nesting depth added 20). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/MyArticleModel.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"d069e2eb07d5d1916539f0b762abfe57e313676d507c35bd835d3dcd161b3a94"}},{"ruleId":"D2","level":"warning","message":{"text":"IPFSDaemon.gc (cognitive 44): IPFSDaemon.gc has cognitive complexity 44 (threshold 15). Drivers by points: if/else 12 (24 pts), loops 5 (9 pts), error handling 3 (8 pts), boolean chains 3 (nesting depth added 21). 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":"Planet/IPFS/IPFSDaemon.swift"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"201759dd9d7c6e20f3ee8b5e7692c9db016718ead845e85d9ea3e5c2bbddb2f9"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchEmbedding.search (cognitive 43): SearchEmbedding.search has cognitive complexity 43 (threshold 15). Drivers by points: if/else 13 (26 pts), boolean chains 12, loops 1 (2 pts), ternaries 1 (2 pts), error handling 1 (nesting depth added 15). 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":"Planet/Search/SearchEmbedding.swift"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7159015fe042ae6bb10ffdcd30dfe97c9d284c54ffe7308d58c58e58559d18d"}},{"ruleId":"D2","level":"warning","message":{"text":"AppContentItemView.itemPreviewImageView (cognitive 42): AppContentItemView.itemPreviewImageView has cognitive complexity 42 (threshold 15). Drivers by points: if/else 15 (35 pts), error handling 1 (5 pts), boolean chains 2 (nesting depth added 24). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PlanetLite/AppContentItemView.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cfee10844226a1e52d0c30a450f90fa4188bce4f4c55ea003e31520e7e11024"}},{"ruleId":"D2","level":"warning","message":{"text":"ArticleWebViewModel.processPossibleInternalLink (cognitive 42): ArticleWebViewModel.processPossibleInternalLink has cognitive complexity 42 (threshold 15). Drivers by points: if/else 20 (34 pts), boolean chains 8 (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":"Planet/Views/Articles/ArticleWebViewModel.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"a53a65056721ffe5d1bc82c35e20eb95c23f72d11c4bc339b8246c99d517aa7c"}},{"ruleId":"D2","level":"warning","message":{"text":"MyArticleItemView.body (cognitive 42): MyArticleItemView.body has cognitive complexity 42 (threshold 15). Drivers by points: if/else 22 (27 pts), error handling 5 (8 pts), boolean chains 4, ternaries 2 (3 pts) (nesting depth added 9). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/My/MyArticleItemView.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"01f0520f7eb271138d5c788cc0dda9245ea461ad44d7a5417718f9821c08e05c"}},{"ruleId":"D2","level":"warning","message":{"text":"ArticleAIRepoGrep.search (cognitive 41): ArticleAIRepoGrep.search has cognitive complexity 41 (threshold 15). Drivers by points: if/else 16 (33 pts), ternaries 1 (3 pts), error handling 1 (2 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 21). 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":"Planet/Views/Articles/ArticleAIOnDeviceTools.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a135f23ee366f472d0034e1ece7971c1f05e114d2abf6f37db02060ec944c38"}},{"ruleId":"D2","level":"warning","message":{"text":"MyPlanetTemplateSettingsView.body (cognitive 39): MyPlanetTemplateSettingsView.body has cognitive complexity 39 (threshold 15). Drivers by points: if/else 10 (25 pts), loops 4 (7 pts), error handling 2 (4 pts), boolean chains 3 (nesting depth added 20). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/My/MyPlanetTemplateSettingsView.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"db362c96099d42e74ab537873ec85dc97e1bb55d178f3369508e16274048a4fc"}},{"ruleId":"D2","level":"warning","message":{"text":"TemplateStore.load (cognitive 38): TemplateStore.load has cognitive complexity 38 (threshold 15). Drivers by points: if/else 14 (31 pts), loops 3, boolean chains 2, error handling 1 (2 pts) (nesting depth added 18). 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":"Planet/TemplateBrowser/TemplateStore.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e5ebc7f7fbe4b55da04a0162d52d9c5df684e70313a1b5664be28da572b00d4"}},{"ruleId":"D2","level":"warning","message":{"text":"ArticleView.body (cognitive 38): ArticleView.body has cognitive complexity 38 (threshold 15). Drivers by points: if/else 14 (19 pts), ternaries 3 (9 pts), boolean chains 8, error handling 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleView.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bdf98c357a09d008a0c9104f388520a762235182e0633db945615fccca9044e"}},{"ruleId":"D2","level":"warning","message":{"text":"FollowingArticleModel.renderLocalPreview (cognitive 37): FollowingArticleModel.renderLocalPreview has cognitive complexity 37 (threshold 15). Drivers by points: if/else 11 (22 pts), boolean chains 9, loops 2 (6 pts) (nesting depth added 15). 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":"Planet/Entities/FollowingArticleModel.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"0697f29e23723ba8411c141cdea3b291f9a973496065f599f2358b1921b657e4"}},{"ruleId":"D2","level":"warning","message":{"text":"FollowingArticleModel.browserURL (cognitive 37): FollowingArticleModel.browserURL has cognitive complexity 37 (threshold 15). Drivers by points: if/else 10 (20 pts), match/switch 4 (9 pts), boolean chains 8 (nesting depth added 15). 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":"Planet/Entities/FollowingArticleModel.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d8003dd88d9df1cc5a5d6ac6dd9327ff91760f9de4d044e04caef139eecff4e"}},{"ruleId":"D2","level":"warning","message":{"text":"AppContentDropDelegate.performDrop (cognitive 35): AppContentDropDelegate.performDrop has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (22 pts), error handling 2 (6 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 18). 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":"PlanetLite/AppContentDropDelegate.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d60021b2d1d350efba8ef46a4f4803deb417c9738b3775a0408c84176f9e5cf"}},{"ruleId":"D2","level":"warning","message":{"text":"WebAppUpdater.updateWebApp (cognitive 35): WebAppUpdater.updateWebApp has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (26 pts), boolean chains 8, error handling 1 (nesting depth added 14). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/API/WebAppUpdater.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"d420e9ec96974f65fcefdc98d494b163156bd7c0cd9a32b6786e058ac766f699"}},{"ruleId":"D2","level":"warning","message":{"text":"MyPlanetModel.fetchHTTPSite (cognitive 35): MyPlanetModel.fetchHTTPSite has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (30 pts), boolean chains 2, loops 1 (2 pts), error handling 1 (nesting depth added 21). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":1115}}}],"partialFingerprints":{"codehealthFindingId/v1":"7722a140a40b13fa864c39df5a6616ec895c3085518b5b4d889e21cc9a2f7e49"}},{"ruleId":"D2","level":"warning","message":{"text":"IPFSDaemon.setupIPFS (cognitive 35): IPFSDaemon.setupIPFS has cognitive complexity 35 (threshold 15). Drivers by points: if/else 21 (22 pts), boolean chains 12, error handling 1 (nesting depth added 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":"Planet/IPFS/IPFSDaemon.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"6833731c2653434987248fec7836f51d6a6ead2443064d63a18b1c3a10c6b214"}},{"ruleId":"D2","level":"warning","message":{"text":"MyArticleGridView.body (cognitive 34): MyArticleGridView.body has cognitive complexity 34 (threshold 15). Drivers by points: if/else 17 (20 pts), error handling 5 (9 pts), boolean chains 5 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/My/MyArticleGridView.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b459816cebae2ce9bd5fa7aec7a5e8bf13187d36793054950b78b44e605289e"}},{"ruleId":"D2","level":"warning","message":{"text":"DraftModel.saveToArticle (cognitive 33): DraftModel.saveToArticle has cognitive complexity 33 (threshold 15). Drivers by points: if/else 17 (26 pts), boolean chains 4, error handling 1, loops 1, match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/DraftModel.swift"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"6465d0b760e0df6e3e0a334d86fe8072014d08ef14cc376a583b2a677dc2001f"}},{"ruleId":"D2","level":"warning","message":{"text":"PlanetStore.refreshSelectedArticles (cognitive 33): PlanetStore.refreshSelectedArticles has cognitive complexity 33 (threshold 15). Drivers by points: if/else 16 (27 pts), boolean chains 3, ternaries 1 (2 pts), match/switch 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":"Planet/Entities/PlanetStore.swift"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"15eda9610ac26c6d601991f3322d69e98ea5507d1614a0ffbca9ad5518606fee"}},{"ruleId":"D2","level":"warning","message":{"text":"DotBitKit.resolve (cognitive 33): DotBitKit.resolve has cognitive complexity 33 (threshold 15). Drivers by points: if/else 7 (25 pts), loops 1 (4 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 22). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Helper/DotBitKit.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7154e6c18c5c94d4e425a281686aa48e13b20778f0a8f6cdeef64bc667c9cf9"}},{"ruleId":"D2","level":"warning","message":{"text":"ArticleAIChatView.summarizeToolResult (cognitive 33): ArticleAIChatView.summarizeToolResult has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (28 pts), boolean chains 4, match/switch 1 (nesting depth added 13). 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":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":3361}}}],"partialFingerprints":{"codehealthFindingId/v1":"0022765645a0266628a6ce163a04eb6ffb6d78880e4fd243399e5f752563feb0"}},{"ruleId":"D2","level":"warning","message":{"text":"ArticleAIChatView.parseCompletionStep (cognitive 33): ArticleAIChatView.parseCompletionStep has cognitive complexity 33 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 3 (8 pts), boolean chains 7, loops 2 (5 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":4192}}}],"partialFingerprints":{"codehealthFindingId/v1":"116c3f5fa2305ca303b204294a211ba10a2e5beacf1607a39c804986dcb52ff5"}},{"ruleId":"D2","level":"warning","message":{"text":"ArticleListView.body (cognitive 33): ArticleListView.body has cognitive complexity 33 (threshold 15). Drivers by points: if/else 17 (27 pts), boolean chains 5, ternaries 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleListView.swift"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"c834a2015db670b27bea230cbfea9d9a9cc79de5d855319e7c47d6508eda0695"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchIndex.makeSnippet (cognitive 32): SearchIndex.makeSnippet has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 7, loops 3 (6 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Search/SearchIndex.swift"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9fabdd04d1e6aee3fef293417cc71a4a562b1c0780096a0dba0a0e647f62bd9"}},{"ruleId":"D2","level":"warning","message":{"text":"ArticleAIChatView.body (cognitive 32): ArticleAIChatView.body has cognitive complexity 32 (threshold 15). Drivers by points: if/else 18 (21 pts), boolean chains 6, match/switch 3, ternaries 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a7d5c6ef45c8b0a585c6bd63f09765a1ba8acdaf8dbc961dbb29f305ff64bd7"}},{"ruleId":"D2","level":"warning","message":{"text":"MyArticleSettingsView.body (cognitive 32): MyArticleSettingsView.body has cognitive complexity 32 (threshold 15). Drivers by points: if/else 17 (23 pts), ternaries 3 (6 pts), boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/My/MyArticleSettingsView.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c5910d56e2a042965b4c08157f613e19602cd8ab8a899313d10872dde960ee"}},{"ruleId":"D2","level":"warning","message":{"text":"MyPlanetEditView.filebaseView (cognitive 32): MyPlanetEditView.filebaseView has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (23 pts), boolean chains 6, match/switch 1 (3 pts) (nesting depth added 13). 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":"Planet/Views/My/MyPlanetEditView.swift"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"c126518eb0f4bbe5dc163e2c4fb9326f5c2bb5c8f66dbecf7a40f50e8768d85e"}},{"ruleId":"D2","level":"warning","message":{"text":"MyPlanetSidebarItem.body (cognitive 32): MyPlanetSidebarItem.body has cognitive complexity 32 (threshold 15). Drivers by points: if/else 17 (22 pts), boolean chains 5, error handling 4, ternaries 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Sidebar/MyPlanetSidebarItem.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fe05943d16731359ec9b19398dadcd159c1644a794fa18411d1336313b84698"}},{"ruleId":"D2","level":"warning","message":{"text":"PFDashboardWindowController.toolbar (cognitive 32): PFDashboardWindowController.toolbar has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (27 pts), boolean chains 4, match/switch 1 (nesting depth added 15). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Labs/Published Folders/Dashboard/PFDashboardWindowController.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2a71aa7c1d3637f2216f25e6b53046bb067eb9c65e3491ee73f917d2334c056"}},{"ruleId":"D2","level":"warning","message":{"text":"ArticleModel.starView (cognitive 30): ArticleModel.starView has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 9 (26 pts), if/else 2, match/switch 1 (2 pts) (nesting depth added 18). 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":"Planet/Entities/ArticleModel.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aac6c0a3de3467525a323b6cfc60d7ca032f8d6ffea9f5718805141939c0fc5"}},{"ruleId":"D2","level":"warning","message":{"text":"DragPasteboardMedia.importedFiles (cognitive 30): DragPasteboardMedia.importedFiles has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (17 pts), error handling 3 (8 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Helper/DragPasteboardMedia.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e9c1b7d6e64f64102f4f4690a2234d2b235c71e4d0670e16a8ba7d8f58bba81"}},{"ruleId":"D2","level":"warning","message":{"text":"IconManager.preparePreviewAnimationImages (cognitive 30): IconManager.preparePreviewAnimationImages has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (26 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 17). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Labs/Icon Gallery/IconManager.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"5410509bc2d7826f22b0efe27c0abba1354d2822faeb41ed6a7c8b72cc8d738b"}},{"ruleId":"D2","level":"warning","message":{"text":"ArticleAIChatView.chatMessageList (cognitive 30): ArticleAIChatView.chatMessageList has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 12 (21 pts), if/else 6 (7 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"d13104c69cb1fba48f7ce827b4501fd722c9ce75fce82971f9dc1d56f613241e"}},{"ruleId":"D2","level":"warning","message":{"text":"FollowingArticleModel.webviewURL (cognitive 28): FollowingArticleModel.webviewURL has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (25 pts), boolean chains 2, match/switch 1 (nesting depth added 15). 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":"Planet/Entities/FollowingArticleModel.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"49c143ddfcaf6ad0c9e3ed1d3ec75ba6e39b4e3dbda2bc6e4e7d996fbc12a685"}},{"ruleId":"D2","level":"warning","message":{"text":"MyArticleModel.prewarm (cognitive 28): MyArticleModel.prewarm has cognitive complexity 28 (threshold 15). Drivers by points: error handling 8 (15 pts), if/else 9, boolean chains 2, loops 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/MyArticleModel.swift"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a474e429b200209607ea094e2f6d117fd617c4f702bff2263331f60ab7111f8"}},{"ruleId":"D2","level":"warning","message":{"text":"MyPlanetModel.publishIPNSKeepAlive (cognitive 27): MyPlanetModel.publishIPNSKeepAlive has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (23 pts), boolean chains 2, error handling 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":3026}}}],"partialFingerprints":{"codehealthFindingId/v1":"fef76b7b89c14311b4bb83be4651647482ed13eda813dc1804e947f0218a103f"}},{"ruleId":"D2","level":"warning","message":{"text":"FeedUtils.findFeed (cognitive 27): FeedUtils.findFeed has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 6 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Helper/FeedUtils.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7ae04b25fa28545a05f04410ac5b2481265fae583cb920b20f4e13ef896e5a6"}},{"ruleId":"D2","level":"warning","message":{"text":"FollowingArticleItemView.body (cognitive 27): FollowingArticleItemView.body has cognitive complexity 27 (threshold 15). Drivers by points: if/else 17 (21 pts), boolean chains 3, ternaries 2 (3 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Following/FollowingArticleItemView.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"8189297e6aa0ea15e651915debf2d383daf21236c611500233d3ee91c9414f12"}},{"ruleId":"D2","level":"warning","message":{"text":"MyPlanetEditView.pinnableView (cognitive 27): MyPlanetEditView.pinnableView has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (26 pts), boolean chains 1 (nesting depth added 14). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/My/MyPlanetEditView.swift"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"73870adec4a76ad50360dc77cf6a83cbae88cd9a1d5b6b354b4ab03db1b25f57"}},{"ruleId":"D2","level":"warning","message":{"text":"MyArticleModel.importArticles (cognitive 26): MyArticleModel.importArticles has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 4 (6 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/MyArticleModel.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1348798ade2071487eb5f9805feb708142f044908551ae74d3c0e7afcd67f8c"}},{"ruleId":"D2","level":"warning","message":{"text":"MyArticleModel.processNFTMetadata (cognitive 26): MyArticleModel.processNFTMetadata has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 9, ternaries 2 (4 pts) (nesting depth added 7). 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":"Planet/Entities/MyArticleModel.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e4161f26093dc60d87be8c4f32b285e3423675f969df226650600db224a6b74"}},{"ruleId":"D2","level":"warning","message":{"text":"PlanetStore.restoreSavedMyArticleSelection (cognitive 26): PlanetStore.restoreSavedMyArticleSelection has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (19 pts), ternaries 3, boolean chains 2, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/PlanetStore.swift"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5ba716cd9820ad65f0e2214a36d196ca589488e0de8ead8a171d7fe198eeac6"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownListAutocomplete.evaluateBeforeNewline (cognitive 26): MarkdownListAutocomplete.evaluateBeforeNewline has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 12, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Helper/MarkdownListAutocomplete.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb2a2afc99d14374e38f7cb66e03af8c9a0fd8c6fa983a4ed589e6b6adc8d2cf"}},{"ruleId":"D2","level":"warning","message":{"text":"Filebase.pin (cognitive 26): Filebase.pin has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (19 pts), loops 1 (3 pts), boolean chains 2, error handling 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Integrations/Filebase.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"441e51063e3cca5e9063ebd7d269470c6972d70b8dec397f6d0ca3137bbfc072"}},{"ruleId":"D2","level":"warning","message":{"text":"ArticleAIChatView.convertLatexCommand (cognitive 26): ArticleAIChatView.convertLatexCommand has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (11 pts), loops 3 (7 pts), boolean chains 5, ternaries 1 (2 pts), match/switch 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":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":2164}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca80e5b360fcb32c8f48a3a351a5450c7596f3a02b8d184a906c21aae4cd651f"}},{"ruleId":"D2","level":"warning","message":{"text":"ArticleAIChatView.runShellCommand (cognitive 26): ArticleAIChatView.runShellCommand has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":6754}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9ea208f7b97de26f5d72c78ad8b4cfe6d462360d5fec14f5dff680f4cce4b71"}},{"ruleId":"D2","level":"warning","message":{"text":"AttributedConsoleView.updateNSView (cognitive 25): AttributedConsoleView.updateNSView has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (17 pts), match/switch 1 (5 pts), loops 2 (3 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/API/PlanetAPIConsoleView.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"f74cbb8384e32f01b3a8a43c666e50818e0fc14be0492236c7ffc4ac186939d1"}},{"ruleId":"D2","level":"warning","message":{"text":"ArticleModel.mediaLabels (cognitive 25): ArticleModel.mediaLabels has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 5 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/ArticleModel.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"26b0b01423ad54c634c99a5860d269b3cf57f6a8e1f956030451740b2f31e783"}},{"ruleId":"D2","level":"warning","message":{"text":"MyPlanetModel.renderRSS (cognitive 25): MyPlanetModel.renderRSS has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (21 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":2099}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b0ca96d9c2704f1f9eb704273499aecc92db4300acd83eb7c3e28d00f4cb57c"}},{"ruleId":"D2","level":"warning","message":{"text":"AvatarPickerView.body (cognitive 25): AvatarPickerView.body has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (15 pts), ternaries 3 (6 pts), boolean chains 4 (nesting depth added 7). 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":"Planet/Views/My/AvatarPickerView.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dc2ee20d5f645be8712537ee0c3a02f363f46facc00b98e357bf35598f7fbcb"}},{"ruleId":"D2","level":"warning","message":{"text":"DraftModel.addAttachment (cognitive 24): DraftModel.addAttachment has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (21 pts), boolean chains 3 (nesting depth added 7). 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":"Planet/Entities/DraftModel.swift"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa5d7379f40044e112ad789571616c8e4bba998d8c8950275fa8b8573992c63c"}},{"ruleId":"D2","level":"warning","message":{"text":"MyArticleModel.removeDSStore (cognitive 24): MyArticleModel.removeDSStore has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (12 pts), error handling 3 (10 pts), loops 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/MyArticleModel.swift"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c42bf137f644fd25fd11b15f41c518e6edd253af505aa84baf2e3bbaf8602e9"}},{"ruleId":"D2","level":"warning","message":{"text":"PlanetQuickShareDropDelegate.processDropInfo (cognitive 24): PlanetQuickShareDropDelegate.processDropInfo has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 2 (4 pts), boolean chains 3 (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":"Planet/Quick Share/PlanetQuickShareDropDelegate.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa605c59a082adfefeae9ece3a1783ea9d73e2e43c071bb54ec43d5096410325"}},{"ruleId":"D2","level":"warning","message":{"text":"PlanetQuickShareViewModel.prepareFiles (cognitive 24): PlanetQuickShareViewModel.prepareFiles has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 6, match/switch 1 (2 pts), loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Quick Share/PlanetQuickShareViewModel.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"404783468d3e06f359a837c5149b8e3aa13c24967fb469ccbf65bd48469c9225"}},{"ruleId":"D2","level":"warning","message":{"text":"PlanetSettingsAIView.body (cognitive 24): PlanetSettingsAIView.body has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (18 pts), ternaries 4, error handling 2 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Settings/PlanetSettingsAIView.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"76cbf64de970f4bb54a273b0641a32fc5ea99b88b4e8a85f13da4793afaaa7d8"}},{"ruleId":"D2","level":"warning","message":{"text":"IconGalleryView.body (cognitive 24): IconGalleryView.body has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 6 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Labs/Icon Gallery/IconGalleryView.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"705a8536ad9845ba73f74df97b8ee0099bb6635c49da7225ff736e95f9792697"}},{"ruleId":"D2","level":"warning","message":{"text":"ArticleListView.swift.filteredArticles (cognitive 24): ArticleListView.swift.filteredArticles has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 9, match/switch 1 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleListView.swift"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d27f616894d75817d9cf95208217e499d2bd0ac5c533b463c69c38334ba3c3f"}},{"ruleId":"D2","level":"warning","message":{"text":"PlanetStore.init (cognitive 23): PlanetStore.init has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16 (21 pts), boolean chains 1, error handling 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/PlanetStore.swift"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a9800540f0066a7c1f5b9b2acba1360281fa56417ce415264f5f779434c550f"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownListAutocomplete.evaluate (cognitive 23): MarkdownListAutocomplete.evaluate has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 10 (nesting depth added 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":"Planet/Helper/MarkdownListAutocomplete.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e1e2b6853ce72ab1e8399952b8b0ca2aab300889b17b0be7013ea556f31184f"}},{"ruleId":"D2","level":"warning","message":{"text":"URLUtils.repoPath (cognitive 23): URLUtils.repoPath has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (19 pts), error handling 1 (3 pts), boolean chains 1 (nesting depth added 14). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Helper/URLUtils.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9b124c55a58ddd99d79ba0731456a2631219df658c97ce1c169f7797e5e82ae"}},{"ruleId":"D2","level":"warning","message":{"text":"PlanetQuickShareView.attachmentSection (cognitive 23): PlanetQuickShareView.attachmentSection has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 8 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Quick Share/PlanetQuickShareView.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"2778b0d6818f03597bbc879ef7c290f429acd7bc41e52acc1cec3c48749264cb"}},{"ruleId":"D2","level":"warning","message":{"text":"PlanetQuickShareViewModel.processPasteItems (cognitive 23): PlanetQuickShareViewModel.processPasteItems has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (15 pts), error handling 2 (5 pts), boolean chains 2, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Quick Share/PlanetQuickShareViewModel.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"9442c8e39557bc7b737a42524df4bffb2fe6bf585ef0841f38e606266dd343aa"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchIndex.sanitizeFTSQuery (cognitive 23): SearchIndex.sanitizeFTSQuery has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 5, loops 3 (4 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Search/SearchIndex.swift"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f620c4bf8886ba57c4390947f1fd28eb6a0bd09cb7e1c3d93b834e6301ac80e"}},{"ruleId":"D2","level":"warning","message":{"text":"ArticleAIChatView.convertLatexExpression (cognitive 23): ArticleAIChatView.convertLatexExpression has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (9 pts), match/switch 2 (6 pts), loops 2 (5 pts), boolean chains 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":2064}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c341c10fd2e35a78395410343b459aae2570fb09fb64be09ef11798608fd73e"}},{"ruleId":"D2","level":"warning","message":{"text":"ArticleAIChatView.sendOnDeviceMessage (cognitive 23): ArticleAIChatView.sendOnDeviceMessage has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 1 (3 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 13). 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":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":2714}}}],"partialFingerprints":{"codehealthFindingId/v1":"56ef374f91225a0b646883e9bbd8e68bb0ff50371f1dfa8c331fb8b6ecb0a1ac"}},{"ruleId":"D2","level":"warning","message":{"text":"OnDeviceToolContext.reloadStoreAndRestoreSelection (cognitive 23): OnDeviceToolContext.reloadStoreAndRestoreSelection has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 1 (3 pts), match/switch 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleAIOnDeviceTools.swift"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9a8e58485f0c850e21eb9d034b001a25765a7ed645ddd159184fa81420b545c"}},{"ruleId":"D2","level":"warning","message":{"text":"MyPlanetModel.shouldDownloadManagedAttachment (cognitive 22): MyPlanetModel.shouldDownloadManagedAttachment has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 12, if/else 8 (10 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c4ca6381abbf0dbde6b7cb9c4341321ae8a37e4de089d6942c0b5523a5b5f76"}},{"ruleId":"D2","level":"warning","message":{"text":"FeedUtils.parseFeed (cognitive 22): FeedUtils.parseFeed has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 6, ternaries 1 (2 pts), match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Helper/FeedUtils.swift"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eaf51cc7b5011a797066c9899fe4b5b9fee363cd5821513b94a40ccff330947"}},{"ruleId":"D2","level":"warning","message":{"text":"DockIconPreviewView.body (cognitive 22): DockIconPreviewView.body has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (17 pts), ternaries 1 (3 pts), boolean chains 1, error handling 1 (nesting depth added 7). 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":"Planet/Labs/Icon Gallery/IconManager.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"659422b216029daa498e29f3540547384ae2fabe7dc40b640960270d645f2099"}},{"ruleId":"D2","level":"warning","message":{"text":"IconManager.playAnimation (cognitive 22): IconManager.playAnimation has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (15 pts), ternaries 1 (3 pts), loops 1 (2 pts), boolean chains 1, error handling 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":"Planet/Labs/Icon Gallery/IconManager.swift"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"8060899c60544b3aa8c6388e960fb405ae3219927e8a96d0ce3159cb52e96744"}},{"ruleId":"D2","level":"warning","message":{"text":"ArticleView.toolbarPlanetView (cognitive 22): ArticleView.toolbarPlanetView has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 4, error handling 1 (2 pts), match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleView.swift"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e3c7b4aaf58f964390a0ef3a87559bd5be11e374bf42b9018a5706a939ae4be"}},{"ruleId":"D2","level":"warning","message":{"text":"MyPlanetEditView.body (cognitive 22): MyPlanetEditView.body has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 5, error handling 3 (4 pts), loops 1 (nesting depth added 2). 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":"Planet/Views/My/MyPlanetEditView.swift"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"49eee60f3fcb85e4d4ebf5438ead0f5d022ebecb470e7af7184674e557fc5b9c"}},{"ruleId":"D2","level":"warning","message":{"text":"FollowingPlanetModel.load (cognitive 21): FollowingPlanetModel.load has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/FollowingPlanetModel.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0dbeab7722ec9e1cd237fc9ba43802e696548ffd4e01d1877b9859c50f9aa98"}},{"ruleId":"D2","level":"warning","message":{"text":"MyArticleModel.processAttachmentCIDIfNeeded (cognitive 21): MyArticleModel.processAttachmentCIDIfNeeded has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/MyArticleModel.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1315dfc387fc414fd168d355fcb1003c43f459a3f9be32dbd1d418955b724f2"}},{"ruleId":"D2","level":"warning","message":{"text":"DragPasteboardMedia.supportedAttachmentType (cognitive 21): DragPasteboardMedia.supportedAttachmentType has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 6, ternaries 2 (4 pts), match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Helper/DragPasteboardMedia.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"3008a6b29694678b679b71e7b93a44721aadb7f134b0e5ff7b41e28ab59f5fa1"}},{"ruleId":"D2","level":"warning","message":{"text":"KeyboardShortcutHelper.publishedFoldersMenus (cognitive 21): KeyboardShortcutHelper.publishedFoldersMenus has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 2 (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Helper/KeyboardShortcutHelper.swift"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"5908f83e0476c276c1d63a09cb1ea72253c878a620616efd94c92fdc77bb9ac3"}},{"ruleId":"D2","level":"warning","message":{"text":"IPFSOpenView.open (cognitive 21): IPFSOpenView.open has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/IPFS/Open Views/IPFSOpenView.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"69cc54ae2897a9582c8b1dee6fbea573436c89adb395830daff63e1aa2b02d65"}},{"ruleId":"D2","level":"warning","message":{"text":"ArticleAIChatView.normalizeLatexMarkup (cognitive 21): ArticleAIChatView.normalizeLatexMarkup has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 5, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":1883}}}],"partialFingerprints":{"codehealthFindingId/v1":"21875416fb979f80f1ad680a583d35b1facddd317bb5f394dcbeab21322c4c54"}},{"ruleId":"D2","level":"warning","message":{"text":"ArticleAIChatView.decodeJSONObject (cognitive 21): ArticleAIChatView.decodeJSONObject has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":5788}}}],"partialFingerprints":{"codehealthFindingId/v1":"2441a0850492b7c87e3fc6743a1d373537437a79c9ed30731dd5c4ca2642e2f1"}},{"ruleId":"D2","level":"warning","message":{"text":"app.search_notes (cognitive 21): app.search_notes has cognitive complexity 21 (threshold 15). Drivers by points: if/else 3 (13 pts), loops 3 (8 pts) (nesting depth added 15). 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":"tools/generate-sparkle-notes/app.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c8b80bcc9571d5694b738438326440704542d431b1b55df128f3948c0049a8e"}},{"ruleId":"D2","level":"warning","message":{"text":"PlanetAppDelegate.application (cognitive 20): PlanetAppDelegate.application has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9, error handling 4 (8 pts), match/switch 1 (3 pts) (nesting depth added 6). 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":"Planet/PlanetAppDelegate.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"752213a453c8a5139880bf073b4706a3887ba7d0eee9a277f27eaba13bac1ca4"}},{"ruleId":"D2","level":"warning","message":{"text":"PlanetAppDelegate.handleAPIControlURL (cognitive 20): PlanetAppDelegate.handleAPIControlURL has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 5, error handling 1 (nesting depth added 7). 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":"Planet/PlanetAppDelegate.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"deb0f531b77725277f10f779161d38388f8367cad9d3a64c39ec4fcfbd929123"}},{"ruleId":"D2","level":"warning","message":{"text":"PNCommandRunner.parseGlobalOptions (cognitive 20): PNCommandRunner.parseGlobalOptions has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (13 pts), boolean chains 4, match/switch 1 (2 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PlanetCLI/PNCommandRunner.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"38c896083eeefc887f05b6128b3fefd9108c7e0b090f68b313cf66ee4d222643"}},{"ruleId":"D2","level":"warning","message":{"text":"MyPlanetModel.updateExistingAggregatedArticle (cognitive 20): MyPlanetModel.updateExistingAggregatedArticle has cognitive complexity 20 (threshold 15). Drivers by points: if/else 19, boolean chains 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":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5458d3dd5d74ca3e39fc21bb952dfab9dc4b420abf9aafe30340775128a9ae3"}},{"ruleId":"D2","level":"warning","message":{"text":"PlanetStore.reloadAfterExternalMyDataChange (cognitive 20): PlanetStore.reloadAfterExternalMyDataChange has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 4, loops 2, error handling 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/PlanetStore.swift"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"a23ae7a70622e2b6c37a9ed9cc3d5b1036fcf8c38ffc2cc245c13ddb26694f58"}},{"ruleId":"D2","level":"warning","message":{"text":"ArticleView.toolbarAttachmentsView (cognitive 20): ArticleView.toolbarAttachmentsView has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (19 pts), boolean chains 1 (nesting depth added 12). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleView.swift"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a1cf22158e7fda7b2a2e74f001352aff81b938ce0c7ef74c8a60f6a346e5575"}},{"ruleId":"D2","level":"warning","message":{"text":"Coordinator.webView (cognitive 20): Coordinator.webView has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleWebView.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d3652de012450ae144bb64a4c1b5aa80871e4d5c189103064f940446c96046"}},{"ruleId":"D2","level":"warning","message":{"text":"PlanetAPIControlView.controlView (cognitive 19): PlanetAPIControlView.controlView has cognitive complexity 19 (threshold 15). Drivers by points: error handling 6 (13 pts), if/else 5 (6 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":"Planet/API/PlanetAPIControlView.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"aed8bcca1339b7e6334b2235fd232a0246af6ce8beb22e749d4b548581a539dc"}},{"ruleId":"D2","level":"warning","message":{"text":"TBWindowController.toolbar (cognitive 19): TBWindowController.toolbar has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 2, match/switch 1 (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/TemplateBrowser/Window Controller/TBWindowController.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"102e2cabed1666ad8ea35160f004e5a7b2ceeffb1a2189bea71e0817eeb9fd4c"}},{"ruleId":"D2","level":"warning","message":{"text":"ArticleView.syncSelectedArticlePresentation (cognitive 19): ArticleView.syncSelectedArticlePresentation has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 5 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleView.swift"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"153569a8c0b0cb7d500ec5320ea36d515e431b8958c7101314c98202ecb199bd"}},{"ruleId":"D2","level":"warning","message":{"text":"FollowPlanetView.processInput (cognitive 19): FollowPlanetView.processInput has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (18 pts), boolean chains 1 (nesting depth added 12). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Create \u0026 Follow Planet/FollowPlanetView.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"903e9e4fcdcbf10a5c7ca20ce3c65bca81fb5e3a17aa36b279e481aafbf7b54f"}},{"ruleId":"D2","level":"warning","message":{"text":"Coordinator.webView (cognitive 19): Coordinator.webView has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 5, error handling 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Labs/Published Folders/Dashboard/PFDashboardContentView.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c6dc1ac3f4905d22657854cb6a731f8927a0c69096d564e308ee78b406b76ce"}},{"ruleId":"D2","level":"warning","message":{"text":"save_session.find_existing_article (cognitive 19): save_session.find_existing_article has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/save-session/scripts/save_session.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b362dfcd46ef565c394b8944015e9025af3db49aafe65738a9f28ab8ee61c9"}},{"ruleId":"D2","level":"warning","message":{"text":"AppContentView.body (cognitive 18): AppContentView.body has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (15 pts), match/switch 2 (3 pts) (nesting depth added 3). 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":"PlanetLite/AppContentView.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"49bd5c6cec75b158fed3a710f8b338ef9a60b15c0b4bc0b08ff892b4c2f7f723"}},{"ruleId":"D2","level":"warning","message":{"text":"AppSidebarItemView.body (cognitive 18): AppSidebarItemView.body has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 3, error handling 2, ternaries 1 (nesting depth added 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":"PlanetLite/AppSidebarItemView.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ec1b1c3714879ffe30fcb41c8696e4171f786fb82cdea7b5e594c22264f039e"}},{"ruleId":"D2","level":"warning","message":{"text":"dWebServices.publish (cognitive 18): dWebServices.publish has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 4, error handling 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Integrations/dWebServices.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"2736854073d95fabf3c87c256a0707e4ef029330c172db636c85507963794248"}},{"ruleId":"D2","level":"warning","message":{"text":"ArticleAIChatView.unescapeJSONStringLikeValue (cognitive 18): ArticleAIChatView.unescapeJSONStringLikeValue has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":5877}}}],"partialFingerprints":{"codehealthFindingId/v1":"da74810951d6e6a5eab1276e5fe6dca5c35f9c07faa235f212675eedaf094de3"}},{"ruleId":"D2","level":"warning","message":{"text":"PlanetStore\u002BSearch.swift.searchSnapshots (cognitive 18): PlanetStore\u002BSearch.swift.searchSnapshots has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 3 (4 pts), boolean chains 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":"Planet/Search/PlanetStore\u002BSearch.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"169c73ebf338a1039fe20d15c13562dcb215eb91bdb07d8fac525e1c254c6e1b"}},{"ruleId":"D2","level":"warning","message":{"text":"MyPlanetModel.ensureArticleNumbers (cognitive 17): MyPlanetModel.ensureArticleNumbers has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 2, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"a78892acca984a5ec01e803b23efa8bd487b5f6e14546db9ee3407c11b966742"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchEmbedding.rebuildEmbeddings (cognitive 17): SearchEmbedding.rebuildEmbeddings has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), error handling 2 (4 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Search/SearchEmbedding.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"0edeb7ad5f0b2d6f99909c61b2bd13e1c5898972f166276cbaf053be33cbe71c"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoInfoRow.startCompression (cognitive 17): VideoInfoRow.startCompression has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (15 pts), error handling 2 (nesting depth added 7). 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":"Planet/Writer/VideoInfoRow.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"74029cead5abe7d12d287173b0a06c6ba592d78643f83cc30392b94c61ca8b4f"}},{"ruleId":"D2","level":"warning","message":{"text":"WalletAccountView.loadENS (cognitive 17): WalletAccountView.loadENS has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (17 pts) (nesting depth added 11). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Labs/Wallet/WalletAccountView.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"66289df2dd7f816fef885c2101c16035e1322eae9b930ec928a8ae9ecb5f803c"}},{"ruleId":"D2","level":"warning","message":{"text":"ArticleSpeechPlayerViewModel.detectLanguage (cognitive 17): ArticleSpeechPlayerViewModel.detectLanguage has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 6, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleSpeechPlayer.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f970bf34d127803c9429e9be76ad6954054fe9d926bd5c25de0722c176f3129"}},{"ruleId":"D2","level":"warning","message":{"text":"MyArticleSettingsView.verifyUserInput (cognitive 17): MyArticleSettingsView.verifyUserInput has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 1 (4 pts), boolean chains 1 (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/My/MyArticleSettingsView.swift"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c36b3e01150efb8ec88ef9a2817a6cbcf1b08914dea3089330281ce1f757f72"}},{"ruleId":"D2","level":"warning","message":{"text":"PlanetSidebarView.body (cognitive 17): PlanetSidebarView.body has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, ternaries 3 (5 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Sidebar/PlanetSidebarView.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e562a797b550d0707e62f90c3173c4e078ed40b7cf6ca515a4c47c44a8c54f3"}},{"ruleId":"D2","level":"warning","message":{"text":"PlanetDownloadsItemView.body (cognitive 16): PlanetDownloadsItemView.body has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Downloads/PlanetDownloadsItemView.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"72588f57c15b3686ff5ad37865f1abf756fba70719953938b223ed3e8a18c61b"}},{"ruleId":"D2","level":"warning","message":{"text":"MyArticleModel.browserURL (cognitive 16): MyArticleModel.browserURL has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), match/switch 2 (4 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/MyArticleModel.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"33bbf38097eff1d8d4b28ca41776dd482b6bc72732cfd70c7478f3e9d85b438d"}},{"ruleId":"D2","level":"warning","message":{"text":"MyArticleModel.toggleToDoItem (cognitive 16): MyArticleModel.toggleToDoItem has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), error handling 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/MyArticleModel.swift"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6f4e25f50bc62c538ac3cef5c6cea8182ab583cc03b91cd32112da605527859"}},{"ruleId":"D2","level":"warning","message":{"text":"MyPlanetModel.aggregate (cognitive 16): MyPlanetModel.aggregate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (7 pts), error handling 2 (4 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b9d828f75f005e9569c7cac7aca2ebfdd86ca67899414edbb0ce58c2b627fb7"}},{"ruleId":"D2","level":"warning","message":{"text":"PlanetStore.checkPinnable (cognitive 16): PlanetStore.checkPinnable has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), error handling 1 (5 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/PlanetStore.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"69789b69b48387ebc1cdeccaa008d901f0a0a368dc625aa9bd8d20f7f12833bb"}},{"ruleId":"D2","level":"warning","message":{"text":"FeedUtils.findLinkFromFeed (cognitive 16): FeedUtils.findLinkFromFeed has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 1 (3 pts), boolean chains 1, match/switch 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":"Planet/Helper/FeedUtils.swift"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"720b32376fefd072ce7c8a309e7d5a3fc473a8ac0571eec86b5fa5ac4f66d1c1"}},{"ruleId":"D2","level":"warning","message":{"text":"PlanetKeyManagerWindowController.validateToolbarItem (cognitive 16): PlanetKeyManagerWindowController.validateToolbarItem has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 4, match/switch 1 (nesting depth added 5). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Key Manager/PlanetKeyManagerWindowController.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"b45a6e08bbc5c994e2f921656b2ec94d76cdd062afd33b654261cab3acf814ea"}},{"ruleId":"D2","level":"warning","message":{"text":"IPFSIdentitySheetView.content (cognitive 16): IPFSIdentitySheetView.content has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/IPFS/Open Views/IPFSOpenView.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"f65ccb544a6f00591d9f81d3f2b3408faae6bc7f2887a0c39725efec32cc430c"}},{"ruleId":"D2","level":"warning","message":{"text":"PlanetPublishedServiceStore.updatePendingPublishings (cognitive 16): PlanetPublishedServiceStore.updatePendingPublishings has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), error handling 2 (4 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Labs/Published Folders/PlanetPublishedServiceStore.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"c67e0a12ff6b2e1823acdc58868ebf0f929551ed0f84a0a9c23ae5a5ae65801e"}},{"ruleId":"D2","level":"warning","message":{"text":"ArticleAIChatView.isLikelyLatexMathSpan (cognitive 16): ArticleAIChatView.isLikelyLatexMathSpan has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":2000}}}],"partialFingerprints":{"codehealthFindingId/v1":"b62a57188649833762483e90646336c8dd8d1ea8a11394b07892052a3ed468ca"}},{"ruleId":"D2","level":"warning","message":{"text":"ArticleAIChatView.formatTokenUsage (cognitive 16): ArticleAIChatView.formatTokenUsage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (7 pts), ternaries 6, boolean chains 2, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":4262}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfdf9f6bccc1411546e10a9b38aecbf93c702278bb28c8909cb45911a9daeb1e"}},{"ruleId":"D2","level":"warning","message":{"text":"WriteArticleTool.call (cognitive 16): WriteArticleTool.call has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (13 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleAIOnDeviceTools.swift"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"b29146161bde40878538d043ec0c798d3ed41d3b6d193aa4096061792796799d"}},{"ruleId":"D2","level":"warning","message":{"text":"MyPlanetEditView.verifyUserInput (cognitive 16): MyPlanetEditView.verifyUserInput has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/My/MyPlanetEditView.swift"},"region":{"startLine":1402}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd2a25b839861ce1730deefae35fecdf0b52e48a6fd65adeb27f069fbbd30cb2"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ArticleAIChatView: ClassTooLong \u2014 4700 significant lines (blank, comment-only and punctuation-only lines excluded), 180 methods. The bar is 400 significant lines; this is 4300 over it, 11.75\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e5f5a505677ea2a69a7ed18cbad6cdfb28dbf4460ba8cca3cce9ba5a3f28bb2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Articles/ArticleAIChatView.swift: FileTooLong \u2014 5280 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: ArticleAIChatView (262-6868). The bar is 500 significant lines; this is 4780 over it, 10.56\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b78710b5b240df4582efc31c744dd1494c77e286fb47232d102245a03e4e1738"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MyPlanetModel: ClassTooLong \u2014 2799 significant lines (blank, comment-only and punctuation-only lines excluded), 129 methods. The bar is 400 significant lines; this is 2399 over it, 7.00\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"7129a82a9b5167c85f78cf9d871ae34c658a5ace802f48614c181fe5bb761b12"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ArticleAIChatView: TooManyMethods \u2014 180 methods. The bar is 30 methods; this is 150 over it, 6.00\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"68026f7a358f5546b8075b0fefbecaa85f6a982c9d81430d3e8f80e36fd8143e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Entities/MyPlanetModel.swift: FileTooLong \u2014 2873 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: MyPlanetModel (17-3890). The bar is 500 significant lines; this is 2373 over it, 5.75\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aa635e429bfd0f5ecc6d03b6ee06af9f4ea39080abbca5da131780472f1e71e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MyPlanetModel: TooManyMethods \u2014 129 methods. The bar is 30 methods; this is 99 over it, 4.30\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf4e51bffa61f2516c36161cbaae83ef470a59ccf5f8fea7760b35222813eca4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ArticleAIChatView.parseCompletionStepFromStreamingBytes: MethodTooLong \u2014 parseCompletionStepFromStreamingBytes runs 422 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 322 over it, 4.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":3554}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fed734589f6ff0879cfdb4a71920b9428b20b65d97e311dbcf6837219b00b64"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MyPlanetModel.savePublic: MethodTooLong \u2014 savePublic runs 364 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 264 over it, 3.64\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":2185}}}],"partialFingerprints":{"codehealthFindingId/v1":"73d84143287d2f5777f9d8b94a91672415d10c4778199e5ec21c17654ebc00cb"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FollowingPlanetModel: ClassTooLong \u2014 1326 significant lines (blank, comment-only and punctuation-only lines excluded), 55 methods. The bar is 400 significant lines; this is 926 over it, 3.32\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/FollowingPlanetModel.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"deca5a739cc2087405b860c7b2ef43b70e9f4a76904df89c13505286214f3f62"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Entities/FollowingPlanetModel.swift: FileTooLong \u2014 1338 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: FollowingPlanetModel (16-1865). The bar is 500 significant lines; this is 838 over it, 2.68\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/FollowingPlanetModel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"63780967023f998cb0dabc210afce09e98de51a2649eb8b3cf221b3102650356"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MyPlanetModel.importBackup: MethodTooLong \u2014 importBackup runs 262 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 162 over it, 2.62\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":1470}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cd23458e842a69bfc6701069322749c57b7a879fda02c6d5f980c7ff0b1647e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FollowingPlanetModel.update: MethodTooLong \u2014 update runs 239 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 139 over it, 2.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/FollowingPlanetModel.swift"},"region":{"startLine":1018}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a078354fc6093ab4132409fcc93093c40ab7cc80744f957e4f0cc9cbb46800c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MyPlanetEditView.body: MethodTooLong \u2014 body runs 222 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 122 over it, 2.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/My/MyPlanetEditView.swift"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"f62e0c65b648a9d8fb6573a434672820036af6f5fbaae9fd1a040c24552b7aa6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MyPlanetSidebarItem.body: MethodTooLong \u2014 body runs 221 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 121 over it, 2.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Sidebar/MyPlanetSidebarItem.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f0134d25dd365b3c885b9ccf76eb3d7607e996cc7e3407b7746ee0151aa2d5a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MyArticleModel: TooManyMethods \u2014 63 methods. The bar is 30 methods; this is 33 over it, 2.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/MyArticleModel.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"64df7d6d4ebcf71442f1a5667726664ac534dbaca5ccf3a00ea547dc7c52a5fa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: My/MyPlanetEditView.swift: FileTooLong \u2014 1022 significant lines (blank, comment-only and punctuation-only lines excluded), about 78% of them inside a single declaration: MyPlanetEditView (3-1175). The bar is 500 significant lines; this is 522 over it, 2.04\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/My/MyPlanetEditView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcc630795fbc81bdcd4cd1ab542d010058e7424178735878f8f775d935a817f5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PlanetStore: TooManyMethods \u2014 61 methods. The bar is 30 methods; this is 31 over it, 2.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/PlanetStore.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"0be08f983530572f5f5e424306e07b21d755b9b3194a04c41ffe8f822abe6c5a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MyPlanetEditView: ClassTooLong \u2014 799 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 399 over it, 2.00\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/My/MyPlanetEditView.swift"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"bea98b9fc6b898d57820b8c110410f39c5d0a12dd28894cebb6c402c75eaf113"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: generate-sparkle-notes/app.py: FileTooLong \u2014 986 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 486 over it, 1.97\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generate-sparkle-notes/app.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a5a02f25a498081a18e42a8fb13b8a9ffb46e6bb01d4f5e72f8903ba3238c03"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PNCommandRunner: ClassTooLong \u2014 784 significant lines (blank, comment-only and punctuation-only lines excluded), 53 methods. The bar is 400 significant lines; this is 384 over it, 1.96\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PlanetCLI/PNCommandRunner.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"76bd81f48e762e4151448191d7d4c582af0249c88a26320d8c5709f554a92877"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ArticleAIChatView.requestReply: MethodTooLong \u2014 requestReply runs 195 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 95 over it, 1.95\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":2839}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a7e4616c81cafebfda0acc55ab6bab89524052068f559e12993f77cf3bae9c1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MyArticleItemView.body: MethodTooLong \u2014 body runs 195 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 95 over it, 1.95\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/My/MyArticleItemView.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"250e0fbe68c13dd42b3b25b08fe37e20b21b76b30d791e885c9ca492304a7385"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PNDiskStore: TooManyMethods \u2014 57 methods. The bar is 30 methods; this is 27 over it, 1.90\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PlanetCLI/PNDiskStore.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"4add755dc5c8aa2a8584e3f12612e87fdf5be51df48c009f70f589460ddd14a1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FollowingPlanetModel: TooManyMethods \u2014 55 methods. The bar is 30 methods; this is 25 over it, 1.83\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/FollowingPlanetModel.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"969edac5baef948bacb8d3c1efcd2956aeff3e076d28dee9bc50df306b076b41"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Entities/MyPlanetModel\u002BAggregate.swift: FileTooLong \u2014 898 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 398 over it, 1.80\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/MyPlanetModel\u002BAggregate.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf2e75c6b28f5ba31e8462565b66f7409461019f24f77a603693dbde4dfb2689"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PNCommandRunner: TooManyMethods \u2014 53 methods. The bar is 30 methods; this is 23 over it, 1.77\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PlanetCLI/PNCommandRunner.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"24d9cf7c8dd55a55a6d4acc25bb8f67660d9d74b6dab09ed57c876869866f5d6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PlanetCLI/PNCommandRunner.swift: FileTooLong \u2014 822 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: PNCommandRunner (66-1066). The bar is 500 significant lines; this is 322 over it, 1.64\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PlanetCLI/PNCommandRunner.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"15a33f4af69211c8475120f7219c5eb2eb36a5365d7279fac92d588a2c2d55f6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Entities/PlanetStore.swift: FileTooLong \u2014 807 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 307 over it, 1.61\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/PlanetStore.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"91e3947758f217ecfc91e6a59fe48cf72ae094de24ec16ef1ccbb8d3e15c97e0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PlanetSidebarView.body: MethodTooLong \u2014 body runs 161 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 61 over it, 1.61\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Sidebar/PlanetSidebarView.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ffa04d5b22e824e85cd20544481a53c551d167493bdf499971b8c06b29df5cd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WalletManager.setupV2: MethodTooLong \u2014 setupV2 runs 160 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 60 over it, 1.60\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Labs/Wallet/WalletManager.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"405aae66025dded058e3b50285ecb80e7dd629facc93826e2cd928d98073a364"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ArticleAIChatView.aiToolDefinitions: MethodTooLong \u2014 aiToolDefinitions runs 159 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 59 over it, 1.59\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":4388}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcf6abf49a126a474b80d2163682d9725a45c600a89c26dda35196eb373eaae0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PlanetSettingsAIView.body: MethodTooLong \u2014 body runs 158 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 58 over it, 1.58\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Settings/PlanetSettingsAIView.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9449a3ee319ae10a21c88291d9be74bb961e954221ce49068d4ba8e77a70023"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PFDashboardWindowController.toolbar: MethodTooLong \u2014 toolbar runs 150 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 50 over it, 1.50\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Labs/Published Folders/Dashboard/PFDashboardWindowController.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"68e002330b0419d000046d877c7c873c5a8dd8b9ec5c9d0c93a0dd1c8a1a3715"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PNDiskStore: ClassTooLong \u2014 593 significant lines (blank, comment-only and punctuation-only lines excluded), 57 methods. The bar is 400 significant lines; this is 193 over it, 1.48\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PlanetCLI/PNDiskStore.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"5741f754a95883b2de64184b36df8886854d7dec4d000b6300bf67617e9648ad"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ArticleAIChatView.body: MethodTooLong \u2014 body runs 148 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 48 over it, 1.48\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"f458d548387355d7fc5d65276fef82708b4f046f11eef91167d403ae3347cb10"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Articles/ArticleView.swift: FileTooLong \u2014 733 significant lines (blank, comment-only and punctuation-only lines excluded), about 77% of them inside a single declaration: ArticleView (231-1065). The bar is 500 significant lines; this is 233 over it, 1.47\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf417dfb8e8ebb4c0feb66e11021a771dc2d8aff8e4252a4b71c710911e88dc3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MyArticleGridView.body: MethodTooLong \u2014 body runs 144 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 44 over it, 1.44\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/My/MyArticleGridView.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a2ca16d7ea6d785417c483b6513d3727dd05692e4a070204036465b60c1f7c5"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ArticleView: ClassTooLong \u2014 561 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 161 over it, 1.40\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleView.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"948f1515f60b119aebf98bb77dec87b02ca1d5eeb0aac98dfb1a7bfc0eb59f02"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: VideoInfoRow: ClassTooLong \u2014 557 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 157 over it, 1.39\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Writer/VideoInfoRow.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e332df41af60a69a8f3e466ecb5156e3f8f1bdb957fda28ccd48252a7be5fb4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: IPFS/IPFSDaemon.swift: FileTooLong \u2014 696 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 196 over it, 1.39\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/IPFS/IPFSDaemon.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a3675584c036fba7dff087f7623827a51c4f61105a5f3de2e83a5355c862a5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MyArticleSettingsView.body: MethodTooLong \u2014 body runs 139 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/My/MyArticleSettingsView.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc305c8e27351aa48c65b74e2ed3ccafadbb90af7bcbe3636d66c7fc98554991"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PlanetAPIController: ClassTooLong \u2014 551 significant lines (blank, comment-only and punctuation-only lines excluded), 38 methods. The bar is 400 significant lines; this is 151 over it, 1.38\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/API/PlanetAPIController.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"642f0a631f7fdff8d8ef68492102803f577914afb9ce55ef7754005928ada43b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Template: ClassTooLong \u2014 548 significant lines (blank, comment-only and punctuation-only lines excluded), 17 methods. The bar is 400 significant lines; this is 148 over it, 1.37\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/TemplateBrowser/Template.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"13debf5bf59be945ff08e4cd566723dc15f5376e2303327eaba34b20e08da4fb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WalletAccountView.body: MethodTooLong \u2014 body runs 135 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 35 over it, 1.35\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Labs/Wallet/WalletAccountView.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4bbdf0b634611d36f458e8b471102133da9b4c017b18cd06c76d0bbac8c6cd7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MyPlanetModel.exportBackup: MethodTooLong \u2014 exportBackup runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":3323}}}],"partialFingerprints":{"codehealthFindingId/v1":"34465bd49fabbf5412abcc2ba4dbdf1e71aca6db291db0958afb4130ca5ac717"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Template.renderPreview: MethodTooLong \u2014 renderPreview runs 128 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 28 over it, 1.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/TemplateBrowser/Template.swift"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b1bfa3de427138231298e11675c4fe46e49076cf7cd0d88abb978441d2bfbdb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MyPlanetCustomCodeView.body: MethodTooLong \u2014 body runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/My/MyPlanetCustomCodeView.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3d38bbb13d15ffbd73d4c138cf903369e9dc21a1f8177b6d5f28add34ea8e75"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AppSidebarItemView.body: MethodTooLong \u2014 body runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PlanetLite/AppSidebarItemView.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"10a5c4930103894da2fbbafb66b2eb7d5a47bb984ed72d388edf8415e628b619"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PlanetAPIController: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/API/PlanetAPIController.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"93f7892b22bb0988d04453ee9112673874f975e0f0773ebdddc6b9f9e12843f2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Articles/ArticleAIOnDeviceTools.swift: FileTooLong \u2014 633 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 133 over it, 1.27\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleAIOnDeviceTools.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b5f89a524bd9eba1907c987acf82944b338f60684680fc6b789520aadc785c9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Wallet/WalletManager.swift: FileTooLong \u2014 630 significant lines (blank, comment-only and punctuation-only lines excluded), about 71% of them inside a single declaration: WalletManager (81-754). The bar is 500 significant lines; this is 130 over it, 1.26\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Labs/Wallet/WalletManager.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"159981ffa95c65d0723c48cc541fdac0b943820a23fd731de93ec51d96ffa74e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MyPlanetModel.performPublish: MethodTooLong \u2014 performPublish runs 126 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 26 over it, 1.26\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":2784}}}],"partialFingerprints":{"codehealthFindingId/v1":"64b00512418c1889b2a80a0086cc84059c82c293cab13925b53102c84c5079a7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MyPlanetEditView.publishingTab: MethodTooLong \u2014 publishingTab runs 126 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 26 over it, 1.26\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/My/MyPlanetEditView.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0ecec48ae43f79c4dcbef1a808d03bbab98ba0c6b20bd4be4339e19fa57a2b7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MyArticleModel: ClassTooLong \u2014 500 significant lines (blank, comment-only and punctuation-only lines excluded), 63 methods. The bar is 400 significant lines; this is 100 over it, 1.25\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/MyArticleModel.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e65c5766fa77c51d05103b1b3a1293a581f7b04d7bd5642c52fc9a4b4e11fc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: TemplateBrowser/Template.swift: FileTooLong \u2014 615 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: Template (97-834). The bar is 500 significant lines; this is 115 over it, 1.23\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/TemplateBrowser/Template.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecb3d8ad49bdd145e222a4ac778944cb5cbc59bdea7111a6b3a8fec6c09836ce"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AppContentView.body: MethodTooLong \u2014 body runs 123 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PlanetLite/AppContentView.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"f13677994f601cd6a8629b2daed7c5c73e1cd9191888987f02d8556b16209739"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DraftModel.saveToArticle: MethodTooLong \u2014 saveToArticle runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/DraftModel.swift"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"c47770111634eca18d7324e352c253a5b46023620f7892f5fc66cd4b79ae503a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MyPlanetModel.init: MethodTooLong \u2014 init runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"be080750ba9f2bc2a2b713b3a98eeff4f6fc08f559c9d2aecbe70a2ab46220f7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PlanetCLI/PNDiskStore.swift: FileTooLong \u2014 604 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: PNDiskStore (15-815). The bar is 500 significant lines; this is 104 over it, 1.21\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PlanetCLI/PNDiskStore.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c86409a9d2714a7381edda0b1779ced1ae61feb20d87f9e6f341b60b7ed0c5b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ArticleView.body: MethodTooLong \u2014 body runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleView.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"733ec5cda900cf2dc4748aaebf935de0b0b51510765d9f68ee7af0721b1653ba"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FollowingArticleItemView.body: MethodTooLong \u2014 body runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Following/FollowingArticleItemView.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"563d9d9905b07a9bb73e389e30ccfce757a0b3e4c386879d068934f447939768"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DraftModel: ClassTooLong \u2014 463 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 63 over it, 1.16\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/DraftModel.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"162893382e1b0b9fd6584873ee74b6950bd3433f24e84007a8b0ed798721e1e6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: IPFSDaemon.setupIPFS: MethodTooLong \u2014 setupIPFS runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/IPFS/IPFSDaemon.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"55f33082eae2ec850efbfd7f89343f7dee02383046dbe5ecbae6cc1991e2bd3a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FollowingPlanetSidebarItem.body: MethodTooLong \u2014 body runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Sidebar/FollowingPlanetSidebarItem.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a68d058e8a2e34743ecde9edb3a1c21ea748d2921f2fe170b692eb518a87665"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Writer/VideoInfoRow.swift: FileTooLong \u2014 571 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: VideoInfoRow (22-811). The bar is 500 significant lines; this is 71 over it, 1.14\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Writer/VideoInfoRow.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbb33cc18a0a7f7edcf4a5f7803a1d27e9f5aa78baf915d0ec02025c38c45128"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Entities/MyArticleModel.swift: FileTooLong \u2014 562 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: MyArticleModel (5-680). The bar is 500 significant lines; this is 62 over it, 1.12\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/MyArticleModel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"506f5ee65882945e766bad42d8f516113f5351213695613fe95ab6ed57bfba71"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WalletManager: ClassTooLong \u2014 448 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 48 over it, 1.12\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Labs/Wallet/WalletManager.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2a0c76da864cc530173f41c62c6faa0240d33d0b6d7e2185527c9ce8cdb2061"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MyPlanetDonationSettingsView.body: MethodTooLong \u2014 body runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/My/MyPlanetDonationSettingsView.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"072b6b3c9df39cbf34f31fa2df6cc8a92f1ba153385cad7df2d17c6a15b62756"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: API/PlanetAPIController.swift: FileTooLong \u2014 554 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: PlanetAPIController (11-919). The bar is 500 significant lines; this is 54 over it, 1.11\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/API/PlanetAPIController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a1e27b55db18a442d5692aaf7a0b89fcc365af2818ff8681ac59c8f1ed56be"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: KeyboardShortcutHelper.toolsCommands: MethodTooLong \u2014 toolsCommands runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Helper/KeyboardShortcutHelper.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba8f8781f07bbb970b24912fe94fcbdc223cefd84a29cb0277878cc70c22912c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PlanetError.errorDescription: MethodTooLong \u2014 errorDescription runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/PlanetError.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"d40cd0868592d7d11353413dd627623616e3ea1f462f1e7de47ff7fa1aea153c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ArticleListView.body: MethodTooLong \u2014 body runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleListView.swift"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"df148230a58c6d1b1d48efb89f2e528f6c7419e73b0a383cd1092d3335fa8801"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MyPlanetTemplateSettingsView.body: MethodTooLong \u2014 body runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/My/MyPlanetTemplateSettingsView.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ab09c6c0c9642e60fefcdf5c8654567775d29cebe44ded8cd1ac2d0916877d8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AvatarPickerView.body: MethodTooLong \u2014 body runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/My/AvatarPickerView.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"edf59516af19582a8947535bbafa52637f58dc54ff79d381a915426b97ee3d91"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WriterTitleView.body: MethodTooLong \u2014 body runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Writer/WriterTitleView.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d98ad84a0ed6e865c202f5229c6be3f2b9a0d1625a15db693914d6a64427ed9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Template.render: MethodTooLong \u2014 render runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/TemplateBrowser/Template.swift"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ebab8af1b5af1ee815b7f3410f86bbec2d7682fd6337cb54b3f5d9bfc7c7d1b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: KeyboardShortcutHelper: ClassTooLong \u2014 419 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 19 over it, 1.05\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Helper/KeyboardShortcutHelper.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f7a6994f54a4a02f7a7caf8c36b3dfb0f242ded7e7b57fe66d07f7f4d6825ee"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SearchEmbedding: ClassTooLong \u2014 415 significant lines (blank, comment-only and punctuation-only lines excluded), 16 methods. The bar is 400 significant lines; this is 15 over it, 1.04\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Search/SearchEmbedding.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"14b6d0bfa8cd9bf98cf80d845c27a81b185aaadecb67bb1103ca285403a99fb6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: VideoInfoRow: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Writer/VideoInfoRow.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"266582cc20229bde5d827c033dd48912b11121a9b6a2695e246b3f43296c8c31"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (91 shared lines): Planet/Entities/MyPlanetModel.swift:3560-3697 | Planet/Entities/MyPlanetModel.swift:3718-3818 \u2014 These two members are variants of one another: 91 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":3560}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9df764f08404ad7d9fe09c818012898178b1ffb3e306cf79c29b1820ed02eec"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (30 shared lines): Planet/Entities/MyPlanetModel.swift:2005-2050 | Planet/Views/Following/FollowingPlanetAvatarView.swift:7-43 \u2014 These two members are variants of one another: 30 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":2005}}}],"partialFingerprints":{"codehealthFindingId/v1":"697bf8bf859772f13d020f481f4478614112913c0346603914272cd5ac4ae7f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Planet/Views/Articles/ArticleAIChatView.swift:5359-5395 | Planet/Views/Articles/ArticleAIOnDeviceTools.swift:563-605 \u2014 These two members are one piece of code written twice and then edited apart: 29 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":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":5359}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5cef815a3c1f27f98408ca6438f6002c769d999744f7bee4671e800e5489eff"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (14 members, 50\u002B identical tokens): Planet/API/Window/PlanetAPIConsoleViewController.swift:26-36 | Planet/Downloads/PlanetDownloadsViewController.swift:22-31 | Planet/IPFS/Open Views/Window/IPFSOpenViewController.swift:26-36 | Planet/IPFS/Status Views/Window/IPFSStatusViewController.swift:26-36 | Planet/Key Manager/PlanetKeyManagerViewController.swift:23-32 | Planet/Labs/Published Folders/Dashboard/PFDashboardInspectorViewController.swift:22-31 | Planet/Labs/Published Folders/Dashboard/PFDashboardSidebarViewController.swift:22-31 | Planet/Labs/Published Folders/Dashboard/PFDashboardViewController.swift:22-31 | Planet/TemplateBrowser/Window Controller/TBContentViewController.swift:22-31 | Planet/TemplateBrowser/Window Controller/TBInspectorViewController.swift:22-31 | Planet/TemplateBrowser/Window Controller/TBSidebarViewController.swift:22-31 | Planet/Views/Articles/ArticleAIChatWindowManager.swift:285-298 | Planet/Views/Articles/PlanetAIChatWindowController.swift:517-530 | Planet/Views/Articles/PlanetAIChatWindowController.swift:552-566 \u2014 These 14 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 14 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 14 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/API/Window/PlanetAPIConsoleViewController.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"a909a218e518d2af4f33adfa06f8edfabfe75afe33fccb12e53b03dad5c73de3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): Planet/Log/CloudflarePagesLogger.swift:19-37 | Planet/Log/IPFSLogger.swift:19-41 | Planet/Log/PlanetLogger.swift:19-41 | Planet/Log/PlanetLogger.swift:82-104 | Planet/Log/PlanetLogger.swift:133-155 | Planet/Log/SSHRsyncLogger.swift:19-37 | Planet/Views/Articles/ArticleAIChatView.swift:226-242 \u2014 These 7 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 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":"Planet/Log/CloudflarePagesLogger.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"8784aac77f3f01744ad0077a736d11902b490a11dceeab6a555b8cb3c8bd2a94"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Planet/IPFS/IPFSDaemon.swift:394-430 | Planet/IPFS/IPFSDaemon.swift:444-478 | Planet/IPFS/IPFSDaemon.swift:480-514 | Planet/IPFS/IPFSDaemon.swift:548-580 | Planet/IPFS/IPFSDaemon.swift:582-614 | Planet/IPFS/IPFSDaemon.swift:616-648 \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":"Planet/IPFS/IPFSDaemon.swift"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2f4df90dcb14e936531c2366c352afd9be9114d22439a22f4149eeb198053dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Planet/TemplateBrowser/TemplateBrowserSidebar.swift:81-88 | Planet/TemplateBrowser/TemplateBrowserSidebar.swift:96-103 | Planet/TemplateBrowser/TemplateBrowserSidebar.swift:109-116 | Planet/TemplateBrowser/TemplateBrowserSidebar.swift:123-131 | PlanetLite/AppSidebarItemView.swift:50-65 | PlanetLite/AppSidebarItemView.swift:71-85 \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":"Planet/TemplateBrowser/TemplateBrowserSidebar.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"e50e17c6607833c9482209ed9583b539cac2da4e1925b056d394a10a19c863ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Planet/Key Manager/PlanetKeyManagerWindowController.swift:209-258 | Planet/Labs/Published Folders/Dashboard/PFDashboardWindowController.swift:201-366 | Planet/TemplateBrowser/Window Controller/TBWindowController.swift:164-256 | Planet/Views/Articles/ArticleAIChatWindowManager.swift:203-244 | Planet/Views/Articles/PlanetAIChatWindowController.swift:337-407 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Key Manager/PlanetKeyManagerWindowController.swift"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aa8eb1eb2f55d4a94f1487a885e661e642cb5cb45afdd62adcff74c86694fc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Planet/Integrations/CloudflarePages.swift:215-240 | Planet/Integrations/CloudflarePages.swift:243-275 | Planet/Integrations/CloudflarePages.swift:278-297 | Planet/Integrations/CloudflarePages.swift:369-419 \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":"Planet/Integrations/CloudflarePages.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"6008a5cd780b60297a3eeab71ca79798bfd286cd862260080bba388572037a0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Planet/Quick Share/PlanetQuickShareViewModel.swift:258-295 | Planet/Views/Articles/ArticleAIChatView.swift:5602-5640 | Planet/Views/Articles/ArticleListView.swift:225-262 | Planet/Writer/WriterDragAndDrop.swift:129-166 \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":"Planet/Quick Share/PlanetQuickShareViewModel.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"3af5a9ff42bf6195bff6b80ef173560f37ee94185673dc99c10b5910560a4d10"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Planet/Views/Components/IndicatorViews.swift:12-29 | Planet/Views/Components/IndicatorViews.swift:34-51 | Planet/Views/Components/IndicatorViews.swift:56-73 | Planet/Views/Components/IndicatorViews.swift:78-95 \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":"Planet/Views/Components/IndicatorViews.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7acb2f317b18acc823a220dc4b839e83db7be9fdc0d9e97692fd8df329e1bed"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Planet/Views/Create \u0026 Follow Planet/CreatePlanetView.swift:14-134 | Planet/Views/My/MyPlanetDonationSettingsView.swift:33-188 | Planet/Views/My/MyPlanetEditView.swift:849-1174 | PlanetLite/Croptop/AggregationSettings.swift:32-158 \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":"Planet/Views/Create \u0026 Follow Planet/CreatePlanetView.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ff4d73c1c1639de8f01b351fefdc99c70a687411c14a79aa158d7fb6e0844b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Planet/Views/My/MyPlanetCustomCodeView.swift:55-228 | Planet/Views/My/MyPlanetDonationSettingsView.swift:33-188 | Planet/Views/My/MyPlanetEditView.swift:849-1174 | Planet/Views/My/MyPlanetPodcastSettingsView.swift:36-171 \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":"Planet/Views/My/MyPlanetCustomCodeView.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"320f358b86a1fb4382a6364612122863460418573b2bfe3cc6c27e17fa3b59d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (63 lines \u00D7 2): Planet/Quick Share/PlanetQuickShareView.swift:52-114 | Planet/Views/My/MyArticleItemView.swift:330-392 \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. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Quick Share/PlanetQuickShareView.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"2524707b712c257eb4d0567d0ef5bebed3234a26c31a226b7b1ad9e613610868"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (57\u201360 lines \u00D7 2): Planet/Search/SearchEmbedding.swift:308-367 | Planet/Search/SearchEmbedding.swift:455-511 \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 \u0060Planet/Search/SearchEmbedding.swift:308\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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060limit\u0060 to \u0060Int = 50\u0060 in one and \u0060Int = 10\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Search/SearchEmbedding.swift"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"d311217c4c730eda95d61e921aa8d53cdd1991762f9842ff9591441aaed9e4e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (55 lines \u00D7 2): Planet/Labs/Wallet/WalletConnectV1QRCodeView.swift:19-73 | Planet/Labs/Wallet/WalletConnectV2QRCodeView.swift:18-72 \u2014 before extracting anything, compare \u0060Planet/Labs/Wallet/WalletConnectV1QRCodeView.swift\u0060 and \u0060Planet/Labs/Wallet/WalletConnectV2QRCodeView.swift\u0060 as WHOLE FILES: 82% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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":"Planet/Labs/Wallet/WalletConnectV1QRCodeView.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"898142adcb04c7d7515701da1e268f0dff80b15339785507b6a5ca4a905d05b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38\u201342 lines \u00D7 2): Planet/Search/RelatedArticlesView.swift:199-236 | Planet/Search/SearchView.swift:115-156 \u2014 before extracting anything, compare \u0060Planet/Search/RelatedArticlesView.swift\u0060 and \u0060Planet/Search/SearchView.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 134 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":"Planet/Search/RelatedArticlesView.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dccf470ed78e056dde135890925376055f5490897bcf8dbb3a20a38df75b8f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): Planet/Search/RelatedArticlesView.swift:157-197 | Planet/Search/SearchView.swift:302-342 \u2014 before extracting anything, compare \u0060Planet/Search/RelatedArticlesView.swift\u0060 and \u0060Planet/Search/SearchView.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 134 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":"Planet/Search/RelatedArticlesView.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bf6faadd2c0496a9276cd7057b2af3bb0d1a54528f978a1269d28a7cb0c6c0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): Planet/Entities/MyPlanetModel.swift:3656-3695 | Planet/Entities/MyPlanetModel.swift:3774-3813 \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 \u0060Planet/Entities/MyPlanetModel.swift:3656\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":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":3656}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6f7e2ced4d133661e74b79d8a373c0b0d8e43ab3f2d99ea479d8df0ff4ca136"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): Planet/Entities/FollowingPlanetModel.swift:1642-1679 | Planet/Entities/MyPlanetModel.swift:1966-2003 \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":"Planet/Entities/FollowingPlanetModel.swift"},"region":{"startLine":1642}}}],"partialFingerprints":{"codehealthFindingId/v1":"97396e439b33dc527554d6eb21451c962ee9f16a8bf70f53b68fefe178e6be4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35\u201337 lines \u00D7 2): Planet/Entities/FollowingPlanetModel.swift:1215-1249 | Planet/Entities/FollowingPlanetModel.swift:1311-1347 \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 \u0060Planet/Entities/FollowingPlanetModel.swift:1215\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":"Planet/Entities/FollowingPlanetModel.swift"},"region":{"startLine":1215}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f4b4b070d8bd9aa96830d6b727c5f3e003f3a7e9ded66bb7393c3fc47e411b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): Planet/Views/Articles/ArticleAIChatWindowManager.swift:203-237 | Planet/Views/Articles/PlanetAIChatWindowController.swift:337-371 \u2014 before extracting anything, compare \u0060Planet/Views/Articles/ArticleAIChatWindowManager.swift\u0060 and \u0060Planet/Views/Articles/PlanetAIChatWindowController.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 75 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 \u0060Planet/Views/Articles/ArticleAIChatWindowManager.swift:203\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":"Planet/Views/Articles/ArticleAIChatWindowManager.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"24afea82b3cd44f130d3855eb21d79023ad9db4cceece804a40d73ac735df893"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 4): Planet/Quick Share/PlanetQuickShareViewModel.swift:260-292 | Planet/Views/Articles/ArticleAIChatView.swift:5604-5636 | Planet/Views/Articles/ArticleListView.swift:227-259 | Planet/Writer/WriterDragAndDrop.swift:131-163 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 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 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Planet/Quick Share/PlanetQuickShareViewModel.swift:260\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":"Planet/Quick Share/PlanetQuickShareViewModel.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"119a07ba5d2f5f698f654e16419fc2f9493a8c044f0a4ffe1e95579c88f875c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201333 lines \u00D7 2): Planet/Entities/MyPlanetModel.swift:3572-3604 | Planet/Entities/MyPlanetModel.swift:3730-3757 \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 \u0060Planet/Entities/MyPlanetModel.swift:3572\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":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":3572}}}],"partialFingerprints":{"codehealthFindingId/v1":"b871f7b5dcbc50f1af150ac62de5d39182fd5150acf746edd79c7b69e5d7d709"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): Planet/Helper/MarkdownListAutocomplete.swift:56-87 | Planet/Helper/MarkdownListAutocomplete.swift:134-165 \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. 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":"Planet/Helper/MarkdownListAutocomplete.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a8e15ee845b276f796a35e8242915bed76c45f6345bd3ef4b803d4be67d9336"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201330 lines \u00D7 2): Planet/API/PlanetAPIConsoleView.swift:17-43 | Planet/Log/AppLogView.swift:352-381 \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":"Planet/API/PlanetAPIConsoleView.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"75b4ed13eced0804dc158d086ab359a4b4276545b74681c0a0aab7434fcfb963"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201329 lines \u00D7 2): Planet/Search/PlanetStore\u002BSearch.swift:88-116 | Planet/Search/SearchIndex.swift:512-539 \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 \u0060Planet/Search/PlanetStore\u002BSearch.swift:88\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Search/PlanetStore\u002BSearch.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"0de2641c31b13c9bf089779d3791672d4ee27f54ec18b7b8daff06dc9649ab64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): Planet/Views/Articles/ArticleAIChatView.swift:5363-5391 | Planet/Views/Articles/ArticleAIOnDeviceTools.swift:565-593 \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 \u0060Planet/Views/Articles/ArticleAIChatView.swift:5363\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":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":5363}}}],"partialFingerprints":{"codehealthFindingId/v1":"61eb2a807ee02c10d638548798a1f40275231dd3f563ea97bc79b22489705e0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201328 lines \u00D7 4): Planet/IPFS/IPFSDaemon.swift:451-478 | Planet/IPFS/IPFSDaemon.swift:555-580 | Planet/IPFS/IPFSDaemon.swift:589-614 | Planet/IPFS/IPFSDaemon.swift:623-648 \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 \u0060Planet/IPFS/IPFSDaemon.swift:451\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":"Planet/IPFS/IPFSDaemon.swift"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"1936010a561eb9e16f33b15807d9f0de24f9ce01eb60cf4ebe66c64521739efd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): Planet/Entities/MyPlanetModel.swift:2118-2144 | Planet/Entities/MyPlanetModel.swift:2298-2324 \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":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":2118}}}],"partialFingerprints":{"codehealthFindingId/v1":"315fcae90e6570d1e8cff5810050eba3e41fa7f32ded46281f2dbb08defd636e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201326 lines \u00D7 2): Planet/Views/My/MyPlanetDonationSettingsView.swift:113-138 | PlanetLite/Croptop/AggregationSettings.swift:52-75 \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 \u0060Planet/Views/My/MyPlanetDonationSettingsView.swift:113\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":"Planet/Views/My/MyPlanetDonationSettingsView.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e3d7c0c2cb13cd8d4e214f5519a94635362eaeabd965c6ca3ea0b416813c14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): Planet/Entities/FollowingPlanetModel.swift:1039-1063 | Planet/Entities/FollowingPlanetModel.swift:1176-1200 | Planet/Entities/FollowingPlanetModel.swift:1282-1306 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Planet/Entities/FollowingPlanetModel.swift:1039\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, \u0060Planet/Entities/FollowingPlanetModel.swift:1175\u0060 calls \u0060fetchData\u0060 and \u0060Planet/Entities/FollowingPlanetModel.swift:1038\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":"Planet/Entities/FollowingPlanetModel.swift"},"region":{"startLine":1039}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d8c8d4616acc5dcd53c9f7014ce19f966f477bba0a3efe875412ed6c9a5be8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201324 lines \u00D7 2): Planet/Entities/MyPlanetModel.swift:2528-2548 | Planet/Entities/MyPlanetModel.swift:2589-2612 \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 \u0060Planet/Entities/MyPlanetModel.swift:2528\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":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":2528}}}],"partialFingerprints":{"codehealthFindingId/v1":"18989ccd6277f1fed28cb27c59c0aa2c02c9efdd8a4edc02f70f952070a6a2e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201324 lines \u00D7 2): Planet/Search/SearchEmbedding.swift:388-411 | Planet/Search/SearchEmbedding.swift:528-548 \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 \u0060Planet/Search/SearchEmbedding.swift:388\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":"Planet/Search/SearchEmbedding.swift"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"0339e70655aadd606d79757ee5824c5666efea2f01817dd9cafa687833bf1450"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201323 lines \u00D7 2): Planet/Labs/Wallet/WalletAccountView.swift:291-306 | Planet/Views/Sidebar/AccountBadgeView.swift:208-230 \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 \u0060Planet/Labs/Wallet/WalletAccountView.swift:291\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":"Planet/Labs/Wallet/WalletAccountView.swift"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d5111479198c125a460264db26f591f8739420e88d45f19aca0acac6ed6a5a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Planet/Views/My/MyArticleSettingsView.swift:156-178 | Planet/Views/My/MyPlanetEditView.swift:1085-1107 \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 \u0060Planet/Views/My/MyArticleSettingsView.swift:156\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":"Planet/Views/My/MyArticleSettingsView.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e065702322d31d197522f90020b59f049f6d65169d921dceea24e36c3098eac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Planet/Views/Onboarding/NewOnboardingView.swift:38-60 | Planet/Views/Onboarding/NewOnboardingView.swift:62-84 \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":"Planet/Views/Onboarding/NewOnboardingView.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1c7bc833aa47e726f1635260342f47d6f943342dbc227c7520edcf30e243355"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Planet/Helper/FeedUtils.swift:476-497 | Planet/Helper/FeedUtils.swift:517-538 \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 \u0060Planet/Helper/FeedUtils.swift:476\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. 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":"Planet/Helper/FeedUtils.swift"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"0425f829af2e12d3892fe029635ca24975a93b7fff9c2166b566e9116d9e0594"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Planet/IPFS/IPFSDaemon.swift:657-677 | Planet/IPFS/IPFSDaemon.swift:686-706 \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 \u0060Planet/IPFS/IPFSDaemon.swift:657\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":"Planet/IPFS/IPFSDaemon.swift"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7d130aa78249436381bfad491ed40440702f529237b926a6711a24d75a92a7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 2): Planet/Views/Articles/ArticleAIChatView.swift:3232-3250 | Planet/Views/Articles/ArticleAIChatView.swift:3259-3279 \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 \u0060Planet/Views/Articles/ArticleAIChatView.swift:3232\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":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":3232}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c6a64cfecdd08e79a494d80ef529b1c88d43811c92e1d334cd77e90792c5433"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 6): Planet/IPFS/IPFSDaemon.swift:407-426 | Planet/IPFS/IPFSDaemon.swift:457-476 | Planet/IPFS/IPFSDaemon.swift:494-513 | Planet/IPFS/IPFSDaemon.swift:559-578 | Planet/IPFS/IPFSDaemon.swift:593-612 | Planet/IPFS/IPFSDaemon.swift:627-646 \u2014 all 6 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 \u0060Planet/IPFS/IPFSDaemon.swift:407\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":"Planet/IPFS/IPFSDaemon.swift"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa8b0b5f2ac6bc4a9380d9762f9e7ec2728559b9f079ea7bbf24ee9eb408279b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Planet/Views/Articles/ArticleWebViewModel.swift:135-154 | Planet/Views/Articles/ArticleWebViewModel.swift:157-176 \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 \u0060Planet/Views/Articles/ArticleWebViewModel.swift:135\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":"Planet/Views/Articles/ArticleWebViewModel.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"0052f399a95da772b3eeac8e7da8bcd91e7e775985751c62169c7559c0b771f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Planet/Views/Sidebar/PlanetSidebarView.swift:169-187 | PlanetLite/AppSidebarView.swift:64-82 \u2014 before extracting anything, compare \u0060Planet/Views/Sidebar/PlanetSidebarView.swift\u0060 and \u0060PlanetLite/AppSidebarView.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. 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 \u0060Planet/Views/Sidebar/PlanetSidebarView.swift:169\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":"Planet/Views/Sidebar/PlanetSidebarView.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"020cb407e7695aacff93fb1993788c150fd849453c422d986c9dac2cd75a1094"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): Planet/Helper/FeedUtils.swift:427-444 | Planet/Helper/FeedUtils.swift:479-496 | Planet/Helper/FeedUtils.swift:520-537 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Planet/Helper/FeedUtils.swift:427\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":"Planet/Helper/FeedUtils.swift"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b8dd75713560670d3e45b5e7e440aa24ea709d6eb37766bce342be3bff21d71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): Planet/Views/Components/IndicatorViews.swift:12-29 | Planet/Views/Components/IndicatorViews.swift:34-51 | Planet/Views/Components/IndicatorViews.swift:56-73 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Components/IndicatorViews.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9449349d7c7e0efddbf588a7509731903e1a195d3dabc1d95a0a784d83874f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Planet/Entities/FollowingPlanetModel.swift:922-939 | Planet/Entities/FollowingPlanetModel.swift:991-1008 \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 \u0060Planet/Entities/FollowingPlanetModel.swift:922\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. 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":"Planet/Entities/FollowingPlanetModel.swift"},"region":{"startLine":922}}}],"partialFingerprints":{"codehealthFindingId/v1":"892e2d9a13ff000b511ee0458bb8c628eeeb4a5e9d0c2a340b3d5982e54a15fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Planet/Helper/DragPasteboardMedia.swift:341-358 | Planet/Helper/DragPasteboardMedia.swift:362-379 \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 \u0060Planet/Helper/DragPasteboardMedia.swift:341\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":"Planet/Helper/DragPasteboardMedia.swift"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4ac6b080d965d549a450af8d5b4b0f42a862e44a5a295819efbd992aaa2c967"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Planet/Views/Articles/ArticleWebViewModel.swift:313-330 | Planet/Views/Articles/ArticleWebViewModel.swift:366-383 \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 \u0060Planet/Views/Articles/ArticleWebViewModel.swift:313\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":"Planet/Views/Articles/ArticleWebViewModel.swift"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"48c79622dab6771ec4d3b9be61e975500f4552b9426b72a781e235f20a41ede9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Planet/Views/My/MyPlanetCustomCodeView.swift:182-199 | Planet/Views/My/MyPlanetDonationSettingsView.swift:141-158 \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 \u0060Planet/Views/My/MyPlanetCustomCodeView.swift:182\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, \u0060Planet/Views/My/MyPlanetDonationSettingsView.swift:159\u0060 calls \u0060verifyUserInput\u0060 and \u0060Planet/Views/My/MyPlanetCustomCodeView.swift:200\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":"Planet/Views/My/MyPlanetCustomCodeView.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"dec40718e93e62e26c30cae498f8d4eac0cec9cce3bef140cab88ebe1fce5771"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Planet/Views/My/MyPlanetDonationSettingsView.swift:84-101 | Planet/Views/My/MyPlanetDonationSettingsView.swift:109-126 \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 \u0060Planet/Views/My/MyPlanetDonationSettingsView.swift:84\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":"Planet/Views/My/MyPlanetDonationSettingsView.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"eecc13e4f71fec73126ba3c633a13a82550f7840b1393dbbf940687724ac1954"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201317 lines \u00D7 5): Planet/Entities/MyArticleModel.swift:564-572 | Planet/Entities/MyArticleModel.swift:577-585 | Planet/Entities/MyArticleModel.swift:592-606 | Planet/Entities/MyArticleModel.swift:610-626 | Planet/Entities/MyArticleModel.swift:629-639 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Planet/Entities/MyArticleModel.swift:592\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":"Planet/Entities/MyArticleModel.swift"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5e840c07a9b2e37f262a4f9b4001c50e8fcf6faf9743b9b5af78e4aa1b7a623"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Planet/Entities/MyPlanetModel.swift:2441-2457 | Planet/Entities/MyPlanetModel.swift:2537-2553 \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 \u0060Planet/Entities/MyPlanetModel.swift:2441\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":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":2441}}}],"partialFingerprints":{"codehealthFindingId/v1":"801f059bd6f50d157c91243fff0f51b9e0f6405a5846c1e93dc9882b2c79c059"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Planet/Helper/DragPasteboardMedia.swift:447-463 | Planet/Labs/Quick Post/QuickPostViewModel.swift:224-240 \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. 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. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Helper/DragPasteboardMedia.swift"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"73c1dc9480c7c34e86f90010297a70d8772f055db48e2362ed3311509b72b347"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201317 lines \u00D7 2): Planet/Quick Share/PlanetQuickShareView.swift:192-205 | Planet/Quick Share/PlanetQuickShareView.swift:211-227 \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 \u0060Planet/Quick Share/PlanetQuickShareView.swift:192\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":"Planet/Quick Share/PlanetQuickShareView.swift"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"43b8ffd52d6a6e5b98c0520b4a525c528e9e9c0fe5c61dc82a5231882a09f3af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Planet/TemplateBrowser/Template.swift:492-508 | Planet/TemplateBrowser/Template.swift:526-542 \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":"Planet/TemplateBrowser/Template.swift"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"47a1269b335642e90e729deee4cd367bce6658770990169f8cbd96097607fd2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Planet/Views/My/MyArticleGridView.swift:310-326 | Planet/Views/My/MyArticleItemView.swift:408-424 \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 \u0060Planet/Views/My/MyArticleGridView.swift:310\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":"Planet/Views/My/MyArticleGridView.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"110209933840bfa095a8a70520a71632b8c3ff6c1e4e9d101afe76705a2d29c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Planet/Views/My/MyPlanetCustomCodeView.swift:89-105 | Planet/Views/My/MyPlanetCustomCodeView.swift:136-152 \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 \u0060Planet/Views/My/MyPlanetCustomCodeView.swift:89\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":"Planet/Views/My/MyPlanetCustomCodeView.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae6e17dbe42dba1fefd6f962bc9e23dde61ffa977dec3567c0439812cf3414e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): Planet/Views/My/MyPlanetCustomCodeView.swift:213-228 | Planet/Views/My/MyPlanetDonationSettingsView.swift:173-188 | Planet/Views/My/MyPlanetPodcastSettingsView.swift:156-171 \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 \u0060Planet/Views/My/MyPlanetCustomCodeView.swift:213\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":"Planet/Views/My/MyPlanetCustomCodeView.swift"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb56461e1bd7760060b625ef129afd5934ae866d6da827d4bc476baf0203d67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Planet/Entities/MyPlanetModel.swift:1445-1460 | Planet/Entities/MyPlanetModel.swift:1839-1854 \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":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":1445}}}],"partialFingerprints":{"codehealthFindingId/v1":"7211f70c311b544c88d375a5a97b6a9386be8d05f722330dadb15493c003dd6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Planet/Labs/Wallet/WalletConnectV1.swift:187-202 | Planet/Labs/Wallet/WalletConnectV1.swift:243-258 \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 \u0060Planet/Labs/Wallet/WalletConnectV1.swift:187\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. 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":"Planet/Labs/Wallet/WalletConnectV1.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"784da0b7aed0e1dd781013baca9efc924199da5229bbd8858b3d67eaa567103f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Planet/Search/PlanetStore\u002BSearch.swift:285-300 | Planet/Search/PlanetStore\u002BSearch.swift:311-326 \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 \u0060Planet/Search/PlanetStore\u002BSearch.swift:285\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Planet/Search/PlanetStore\u002BSearch.swift:284\u0060 calls \u0060upsertSpotlightItem\u0060 and \u0060Planet/Search/PlanetStore\u002BSearch.swift:308\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":"Planet/Search/PlanetStore\u002BSearch.swift"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"03f6e2c78461a19e1e1024535ab2833bdc0f63605e46de2f24aa117b7f5b983e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): Planet/Views/Following/FollowingArticleItemView.swift:85-99 | Planet/Views/My/MyArticleItemView.swift:131-146 \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":"Planet/Views/Following/FollowingArticleItemView.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea8c6e21c875096530e61087a7c8ab552fa571ff9328be988e3169ce9e30217"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): Planet/Views/Following/FollowingArticleItemView.swift:108-122 | Planet/Views/My/MyArticleGridView.swift:160-175 \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":"Planet/Views/Following/FollowingArticleItemView.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9577789776d8f322cb9037d2a875657eb3f6c42e23e59f54ecefa5919e62427"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): Planet/Views/My/MyPlanetCustomCodeView.swift:208-223 | Planet/Views/My/MyPlanetEditView.swift:1142-1156 \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 \u0060Planet/Views/My/MyPlanetCustomCodeView.swift:208\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":"Planet/Views/My/MyPlanetCustomCodeView.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"7085a52d54074e9c5c2553653f74f7994bae8eae4b4b1739d1582a550d5b334e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Planet/Entities/FollowingPlanetModel.swift:790-804 | Planet/Entities/FollowingPlanetModel.swift:1107-1121 \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":"Planet/Entities/FollowingPlanetModel.swift"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"835d3274a20c581c606ffe025ffa7b9eb59e37c9d5be389451bdba436c93ca06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): Planet/Labs/Quick Post/QuickPostView.swift:516-528 | Planet/Writer/WriterTitleView.swift:408-422 \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":"Planet/Labs/Quick Post/QuickPostView.swift"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"41193e9998d5240da4efba6d21ce8c3f1c7b79b7327a45c0583122bc20823527"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): Planet/Search/RelatedArticlesView.swift:114-127 | Planet/Search/SearchView.swift:286-300 \u2014 before extracting anything, compare \u0060Planet/Search/RelatedArticlesView.swift\u0060 and \u0060Planet/Search/SearchView.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 134 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":"Planet/Search/RelatedArticlesView.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"005e97b1d31bec28cfff4d2d1a72219a563f215cd57e5bf284c270c88b2b8a56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Planet/Search/RelatedArticlesView.swift:131-145 | Planet/Search/SearchView.swift:347-361 \u2014 before extracting anything, compare \u0060Planet/Search/RelatedArticlesView.swift\u0060 and \u0060Planet/Search/SearchView.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 134 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 \u0060Planet/Search/RelatedArticlesView.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":"Planet/Search/RelatedArticlesView.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7feaeed2c3d0bcfa187003c9e8a3b86c6412316beefef684280e3815fe09496"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Planet/Settings/PlanetSettingsAIView.swift:117-131 | Planet/Settings/PlanetSettingsAIView.swift:138-152 \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 \u0060Planet/Settings/PlanetSettingsAIView.swift:117\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":"Planet/Settings/PlanetSettingsAIView.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f44e7fd86b8c78d124e12705b994489256b2e18fa1cc970821f9c59cd744ae9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Planet/Views/My/MyPlanetCustomCodeView.swift:82-96 | Planet/Views/My/MyPlanetCustomCodeView.swift:167-181 \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 \u0060Planet/Views/My/MyPlanetCustomCodeView.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":"Planet/Views/My/MyPlanetCustomCodeView.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b945057de5e594b32eeb1d1bdffa479e76a78877fc096b13fc87b7789fa268"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): Planet/Entities/MyPlanetModel.swift:3582-3595 | Planet/Entities/MyPlanetModel.swift:3623-3636 | Planet/Entities/MyPlanetModel.swift:3642-3655 | Planet/Entities/MyPlanetModel.swift:3740-3753 | Planet/Entities/MyPlanetModel.swift:3759-3772 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Planet/Entities/MyPlanetModel.swift:3582\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, \u0060Planet/Entities/MyPlanetModel.swift:3773\u0060 calls \u0060saveOpsInBackground\u0060 and \u0060Planet/Entities/MyPlanetModel.swift:3656\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":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":3582}}}],"partialFingerprints":{"codehealthFindingId/v1":"203934fe903e470e068c8461f27d5b5222e49050c68fc2c93a33e4ba3164672c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Planet/Entities/FollowingPlanetModel.swift:806-819 | Planet/Entities/FollowingPlanetModel.swift:1145-1158 \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, \u0060Planet/Entities/FollowingPlanetModel.swift:1160\u0060 calls \u0060info\u0060 and \u0060Planet/Entities/FollowingPlanetModel.swift:821\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":"Planet/Entities/FollowingPlanetModel.swift"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"83a9a4ae37abe4f9a2d90e0b54a3a79415a525289c9f9da3bd90d54a0ad9d5c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): Planet/Views/Articles/ArticleAIChatView.swift:5674-5687 | Planet/Views/Articles/ArticleAIOnDeviceTools.swift:547-559 \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":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":5674}}}],"partialFingerprints":{"codehealthFindingId/v1":"49a99663131c1a0cda1742bee1cefe5588e16cb00e63c61080d219dd45a87981"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Planet/Views/My/AvatarPickerView.swift:139-152 | Planet/Views/My/AvatarPickerView.swift:240-253 \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 \u0060Planet/Views/My/AvatarPickerView.swift:139\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Planet/Views/My/AvatarPickerView.swift:154\u0060 calls \u0060debugPrint\u0060 and \u0060Planet/Views/My/AvatarPickerView.swift:254\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":"Planet/Views/My/AvatarPickerView.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"611defbdbf7e5b283b08c7b47714bc344735926595b1658491ff8c58ba0dbb76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Planet/Views/Sidebar/PlanetSidebarView.swift:126-139 | PlanetLite/AppSidebarView.swift:37-50 \u2014 before extracting anything, compare \u0060Planet/Views/Sidebar/PlanetSidebarView.swift\u0060 and \u0060PlanetLite/AppSidebarView.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. 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 \u0060Planet/Views/Sidebar/PlanetSidebarView.swift:126\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":"Planet/Views/Sidebar/PlanetSidebarView.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"558579f59e260e19059385cba5c9947558fa28b252f99aaaf65567ea77f0a76b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Planet/Writer/VideoAttachmentInfo.swift:191-204 | PlanetCLI/PNAPIClient.swift:369-382 \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 \u0060Planet/Writer/VideoAttachmentInfo.swift:191\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":"Planet/Writer/VideoAttachmentInfo.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"84b2e08937fc9ba75202e12f144395a64850d0ea708e3432e283633e421c1bfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): Planet/Entities/FollowingPlanetModel.swift:1719-1731 | Planet/Entities/FollowingPlanetModel.swift:1740-1752 | Planet/Entities/FollowingPlanetModel.swift:1761-1773 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Planet/Entities/FollowingPlanetModel.swift:1719\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, \u0060Planet/Entities/FollowingPlanetModel.swift:1718\u0060 calls \u0060renderingMode\u0060 and \u0060Planet/Entities/FollowingPlanetModel.swift:1739\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":"Planet/Entities/FollowingPlanetModel.swift"},"region":{"startLine":1719}}}],"partialFingerprints":{"codehealthFindingId/v1":"23eccf5b871f0e124ecc96e4bf4fa59966beac0e639faca70187ea57c482e0e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): Planet/Views/My/MyPlanetCustomCodeView.swift:88-100 | Planet/Views/My/MyPlanetCustomCodeView.swift:135-147 | Planet/Views/My/MyPlanetCustomCodeView.swift:173-185 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Planet/Views/My/MyPlanetCustomCodeView.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/My/MyPlanetCustomCodeView.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"0532cc5fda70e944b50a30218b3d24eac9efe44ec65ce40dac67f2fa0053798a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): PlanetLite/AppContentDropDelegate.swift:47-58 | PlanetLite/AppContentDropDelegate.swift:71-83 | PlanetLite/AppDelegate.swift:77-89 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060PlanetLite/AppContentDropDelegate.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":"PlanetLite/AppContentDropDelegate.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c8e61614ed1428c13fce02e4aee8e738e3046ffbcc1c8e849314ff0f9c97247"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Planet/Entities/MyArticleModel\u002BSave.swift:521-533 | Planet/Entities/MyArticleModel\u002BSave.swift:536-548 \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. 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":"Planet/Entities/MyArticleModel\u002BSave.swift"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"680c7d6ad8da35cd9565c3e24291fb113a5181921dc2520297f2ef5e3eedcd2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Planet/Entities/MyPlanetModel.swift:2008-2020 | Planet/Views/Following/FollowingPlanetAvatarView.swift:10-22 \u2014 before extracting anything, compare \u0060Planet/Entities/MyPlanetModel.swift\u0060 and \u0060Planet/Views/Following/FollowingPlanetAvatarView.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 42 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 \u0060Planet/Entities/MyPlanetModel.swift:2008\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":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":2008}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e6f6d5f263c0c300759b236e0d88fb37e360cddae7ae30070131978889a1796"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Planet/Entities/PlanetStore.swift:972-984 | Planet/Entities/PlanetStore.swift:995-1007 \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 \u0060Planet/Entities/PlanetStore.swift:972\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, \u0060Planet/Entities/PlanetStore.swift:994\u0060 calls \u0060myPlanet\u0060 and \u0060Planet/Entities/PlanetStore.swift:971\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":"Planet/Entities/PlanetStore.swift"},"region":{"startLine":972}}}],"partialFingerprints":{"codehealthFindingId/v1":"e29e138f2cc1d552b81ca2c07d3099256d5b76ee482cc004a1ac7e0af90ea46e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 2): Planet/Search/PlanetStore\u002BSearch.swift:120-132 | Planet/Search/SearchIndex.swift:543-552 \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 \u0060Planet/Search/PlanetStore\u002BSearch.swift:120\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. 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060maxLength\u0060 to \u0060Int = searchPreviewLength\u0060 in one and \u0060Int\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Search/PlanetStore\u002BSearch.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"da21a8b2fba386be5bd4803db48e99674a8a784d463c79b198398f522ad175fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Planet/TemplateBrowser/Template.swift:555-567 | Planet/TemplateBrowser/Template.swift:598-612 \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 \u0060Planet/TemplateBrowser/Template.swift:555\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":"Planet/TemplateBrowser/Template.swift"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf1d6bf4645c7a206e02847c9d0398f12fa44c2c293555aed56fe64663f340f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Planet/Views/Articles/ArticleView.swift:925-937 | Planet/Views/Articles/ArticleView.swift:944-956 \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 \u0060Planet/Views/Articles/ArticleView.swift:925\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":"Planet/Views/Articles/ArticleView.swift"},"region":{"startLine":925}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ad3d61479415ecb0c23588811a764e6f905ea8b5b78b832e1ca0b78971e8357"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6): Planet/Log/CloudflarePagesLogger.swift:26-37 | Planet/Log/IPFSLogger.swift:30-41 | Planet/Log/PlanetLogger.swift:30-41 | Planet/Log/PlanetLogger.swift:93-104 | Planet/Log/PlanetLogger.swift:144-155 | Planet/Log/SSHRsyncLogger.swift:26-37 \u2014 before extracting anything, compare \u0060Planet/Log/CloudflarePagesLogger.swift\u0060 and \u0060Planet/Log/IPFSLogger.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 \u0060Planet/Log/CloudflarePagesLogger.swift:26\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Planet/Log/PlanetLogger.swift:43\u0060 calls \u0060log\u0060 and \u0060Planet/Log/CloudflarePagesLogger.swift:39\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":"Planet/Log/CloudflarePagesLogger.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"d08e1110e394bcd928ecbed44321c8e27c432765afcc4a9693c297890a08f9d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): Planet/Entities/FollowingPlanetModel.swift:138-148 | Planet/IPFS/IPFSDaemon.swift:1044-1055 | Planet/IPFS/IPFSDaemon.swift:1059-1070 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Planet/Entities/FollowingPlanetModel.swift:138\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, \u0060Planet/Entities/FollowingPlanetModel.swift:137\u0060 calls \u0060hasPrefix\u0060 and \u0060Planet/IPFS/IPFSDaemon.swift:1043\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":"Planet/Entities/FollowingPlanetModel.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"25196338a61abff0a903614ae66e053ce19d5bdc4dbd41ca46fd9ba5268a29dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): Planet/Entities/MyPlanetModel.swift:2008-2019 | Planet/Views/Following/FollowingPlanetAvatarView.swift:10-21 | Planet/Views/Sidebar/AccountBadgeView.swift:25-35 \u2014 before extracting anything, compare \u0060Planet/Entities/MyPlanetModel.swift\u0060 and \u0060Planet/Views/Following/FollowingPlanetAvatarView.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 42 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 \u0060Planet/Entities/MyPlanetModel.swift:2008\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 after the matched lines, \u0060Planet/Views/Sidebar/AccountBadgeView.swift:35\u0060 calls \u0060shadow\u0060, \u0060opacity\u0060, \u0060padding\u0060 and \u0060Planet/Entities/MyPlanetModel.swift:2019\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":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":2008}}}],"partialFingerprints":{"codehealthFindingId/v1":"943317049638bc8cddb3861cbb5da6635c4b04e5693f690457d1466eb3c9ae91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Planet/API/PlanetAPIController.swift:357-368 | Planet/API/PlanetAPIController.swift:478-488 \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 \u0060Planet/API/PlanetAPIController.swift:357\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. 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. 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":"Planet/API/PlanetAPIController.swift"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5cfe5d447d3e124ba3d732a4793ce1e6fa0539b8a88088e9d30cb533737a11e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 2): Planet/Entities/FollowingPlanetModel.swift:831-839 | Planet/Entities/FollowingPlanetModel.swift:910-921 \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 \u0060Planet/Entities/FollowingPlanetModel.swift:831\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":"Planet/Entities/FollowingPlanetModel.swift"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b9cac6aa737d453e14f76b8ec350d9a10aa1cd13c3acbfe5d320ba229637e79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Planet/Entities/FollowingPlanetModel.swift:1070-1081 | Planet/Entities/FollowingPlanetModel.swift:1309-1319 \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 \u0060Planet/Entities/FollowingPlanetModel.swift:1070\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":"Planet/Entities/FollowingPlanetModel.swift"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"e48c037c9d0e87f9175a0640380f78085f33fe3fa90a685283f7d031c05c68c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Planet/Helper/KeyboardShortcutHelper.swift:267-278 | Planet/Helper/KeyboardShortcutHelper.swift:286-297 \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 \u0060Planet/Helper/KeyboardShortcutHelper.swift:267\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":"Planet/Helper/KeyboardShortcutHelper.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2232a66288a29497a8967c2b8a03e9ae7e0d821ebfcdf6d27b28f74bda06dc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Planet/IPFS/IPFSDaemon.swift:260-271 | Planet/IPFS/IPFSDaemon.swift:276-287 \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 \u0060Planet/IPFS/IPFSDaemon.swift:260\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":"Planet/IPFS/IPFSDaemon.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"753fa07a75ae6947b9a5ddd083284b3396ca390410a1fd7c9bcab59f02f739df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): Planet/Search/SearchEmbedding.swift:370-381 | Planet/Search/SearchEmbedding.swift:514-523 \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. 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":"Planet/Search/SearchEmbedding.swift"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"66bbd86923fbd75dc00b42fd84be0c2d4e32626abd4bfe54b4590f679fa4e9e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Planet/TemplateBrowser/ColorFilter.swift:85-96 | Planet/TemplateBrowser/ColorFilter.swift:99-110 \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. 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":"Planet/TemplateBrowser/ColorFilter.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c85b38f6a541c85a0a1442b986c3727365a11da04aa731b12a04eebdf9da0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Planet/Views/Articles/ArticleAIChatView.swift:3588-3599 | Planet/Views/Articles/ArticleAIChatView.swift:3637-3647 \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":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":3588}}}],"partialFingerprints":{"codehealthFindingId/v1":"0267658e7392532547b1285e6f0a36de93cfa92706dd7425f675fe67faa1c1fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): Planet/Views/Articles/ChatInputField.swift:149-160 | Planet/Writer/WriterTextView.swift:314-323 \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 \u0060Planet/Views/Articles/ChatInputField.swift:149\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":"Planet/Views/Articles/ChatInputField.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c319ca3fed174df8524370ed092cd707c83b77e258f4f6f35ce7da9a2fc8307"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Planet/Views/Sidebar/MyPlanetSidebarItem.swift:470-481 | Planet/Views/Sidebar/MyPlanetSidebarItem.swift:490-501 \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 \u0060Planet/Views/Sidebar/MyPlanetSidebarItem.swift:470\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":"Planet/Views/Sidebar/MyPlanetSidebarItem.swift"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"c75d9630e213c1c833115a45771cf719855e52eb415626e66a622c076eaac3cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 7): Planet/Log/CloudflarePagesLogger.swift:23-33 | Planet/Log/IPFSLogger.swift:27-37 | Planet/Log/PlanetLogger.swift:27-37 | Planet/Log/PlanetLogger.swift:90-100 | Planet/Log/PlanetLogger.swift:141-151 | Planet/Log/SSHRsyncLogger.swift:23-33 | Planet/Views/Articles/ArticleAIChatView.swift:230-240 \u2014 before extracting anything, compare \u0060Planet/Log/CloudflarePagesLogger.swift\u0060 and \u0060Planet/Log/IPFSLogger.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. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Planet/Log/CloudflarePagesLogger.swift:35\u0060 calls \u0060trimIfNeeded\u0060 and \u0060Planet/Views/Articles/ArticleAIChatView.swift:241\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":"Planet/Log/CloudflarePagesLogger.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd1bfc966980cb76a6c0f9383e069e4f31937113ac619cf6e9d4eb665b9dc331"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): Planet/Views/My/MyPlanetEditView.swift:487-497 | Planet/Views/My/MyPlanetEditView.swift:503-513 | Planet/Views/My/MyPlanetEditView.swift:534-544 | Planet/Views/My/MyPlanetEditView.swift:550-560 \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 \u0060Planet/Views/My/MyPlanetEditView.swift:487\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":"Planet/Views/My/MyPlanetEditView.swift"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"77ed813d95b1a3b660b1bd949bfab4b5c0ff550fdd868938253ca542e739da76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Planet/Search/RelatedArticlesView.swift:201-211 | Planet/Search/SearchView.swift:117-128 | Planet/Views/Articles/ArticleAIChatView.swift:5423-5433 \u2014 before extracting anything, compare \u0060Planet/Search/RelatedArticlesView.swift\u0060 and \u0060Planet/Search/SearchView.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 134 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 \u0060Planet/Search/RelatedArticlesView.swift:201\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":"Planet/Search/RelatedArticlesView.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d29e56e7c5065600aa906b6f574d4ddf4dc4ee853e71abe6e7de54d54031324"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Planet/TemplateBrowser/Template.swift:440-450 | Planet/TemplateBrowser/Template.swift:485-495 | Planet/TemplateBrowser/Template.swift:519-529 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Planet/TemplateBrowser/Template.swift:440\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":"Planet/TemplateBrowser/Template.swift"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf455b2a76bea8ae75da682d53a971b99ce9f576b82221c7b81b9db3a8888038"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u201311 lines \u00D7 2): Planet/API/WebAppUpdater.swift:72-82 | Planet/Labs/Icon Gallery/IconManager.swift:231-236 \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":"Planet/API/WebAppUpdater.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"1816a34fb12a2dd072a601165b1152f919004bace4401b0e092e66c648341c20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Planet/Entities/MyPlanetModel.swift:2029-2039 | Planet/Views/Following/FollowingPlanetAvatarView.swift:31-41 \u2014 before extracting anything, compare \u0060Planet/Entities/MyPlanetModel.swift\u0060 and \u0060Planet/Views/Following/FollowingPlanetAvatarView.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 42 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 \u0060Planet/Entities/MyPlanetModel.swift:2029\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":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":2029}}}],"partialFingerprints":{"codehealthFindingId/v1":"fce40483fb606c4ee026e67ae30840fe6f4f19067a3df9a0274dc12982f67931"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Planet/Helper/KeychainHelper.swift:125-135 | Planet/Helper/KeychainHelper.swift:162-172 \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. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Planet/Helper/KeychainHelper.swift:161\u0060 calls \u0060exportKeyToKeychain\u0060 and \u0060Planet/Helper/KeychainHelper.swift:124\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":"Planet/Helper/KeychainHelper.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b86dcbae70b99cd82d2da69086512ef5e6f7a7d69c58c75e574cdd7e15478c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201311 lines \u00D7 3): Planet/Integrations/CloudflarePages.swift:221-223 | Planet/Integrations/CloudflarePages.swift:244-254 | Planet/Integrations/CloudflarePages.swift:279-289 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Planet/Integrations/CloudflarePages.swift:221\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":"Planet/Integrations/CloudflarePages.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0bfd68d5001b9c999980660f2d49a9342a8996bf3bf9c7e29f615781b054669"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Planet/Labs/Published Folders/Dashboard/PFDashboardWindowController.swift:84-94 | Planet/Labs/Published Folders/Dashboard/PFDashboardWindowController.swift:107-117 \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. 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":"Planet/Labs/Published Folders/Dashboard/PFDashboardWindowController.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6b1f23c39a3da28dd796edd7f7f6c1cda063a9d8ca3ebc91b49fa2c6effc2b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Planet/Labs/Wallet/WalletConnectV1QRCodeView.swift:75-85 | Planet/Labs/Wallet/WalletConnectV2QRCodeView.swift:74-84 \u2014 before extracting anything, compare \u0060Planet/Labs/Wallet/WalletConnectV1QRCodeView.swift\u0060 and \u0060Planet/Labs/Wallet/WalletConnectV2QRCodeView.swift\u0060 as WHOLE FILES: 82% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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":"Planet/Labs/Wallet/WalletConnectV1QRCodeView.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d902c8c6592038087c77c8ff06d9f255881710779701959a7092785dc2d784f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Planet/Labs/Wallet/WalletManager.swift:113-123 | Planet/Labs/Wallet/WalletManager.swift:125-135 \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":"Planet/Labs/Wallet/WalletManager.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"64173d91927fb0b6079ea061cfabf1d5720fe4a9dfa1c2d3b4c7539e36e7bb14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Planet/Search/PlanetStore\u002BSpotlight.swift:240-250 | Planet/Search/PlanetStore\u002BSpotlight.swift:255-265 \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 \u0060Planet/Search/PlanetStore\u002BSpotlight.swift:240\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":"Planet/Search/PlanetStore\u002BSpotlight.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"87542232257fdaaa16aecc7b64dc82ced48ce4b73d1f405be8345ef78ec8955d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Planet/Settings/PlanetSettingsAIView.swift:54-64 | Planet/Settings/PlanetSettingsAIView.swift:66-76 \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. 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":"Planet/Settings/PlanetSettingsAIView.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"29ad6c63d1cee8a009c883e57d3b1252357213d1dbc0030fecd7052ace298971"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Planet/Views/Articles/ArticleAIChatView.swift:618-628 | Planet/Views/Articles/ArticleAIChatView.swift:659-669 \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 \u0060Planet/Views/Articles/ArticleAIChatView.swift:618\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":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"2498886956ffa856033c1f4379d6fd0e448fb65b1c73ce0cfb1f9488e64c1e52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Planet/Views/Create \u0026 Follow Planet/CreatePlanetView.swift:45-55 | Planet/Views/My/MyPlanetEditView.swift:963-973 \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 \u0060Planet/Views/Create \u0026 Follow Planet/CreatePlanetView.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":"Planet/Views/Create \u0026 Follow Planet/CreatePlanetView.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"f936e0c93ec3875e45caf37e2bbffba7f69d9a0233f3e1bf77c4bd198b462042"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Planet/Views/Onboarding/NewOnboardingView.swift:221-231 | Planet/Views/Onboarding/NewOnboardingView.swift:239-249 \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, \u0060Planet/Views/Onboarding/NewOnboardingView.swift:232\u0060 calls \u0060pointerStyle\u0060 and \u0060Planet/Views/Onboarding/NewOnboardingView.swift:250\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":"Planet/Views/Onboarding/NewOnboardingView.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c85ecfc5ac9f02f62dbae14e15a363d9a0b2ff08d2ab8a61cf884aeb3b4f257"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): Planet/Key Manager/PlanetKeyManagerWindowController.swift:212-221 | Planet/Key Manager/PlanetKeyManagerWindowController.swift:223-232 | Planet/Key Manager/PlanetKeyManagerWindowController.swift:234-243 | Planet/Key Manager/PlanetKeyManagerWindowController.swift:245-254 \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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Key Manager/PlanetKeyManagerWindowController.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"0296afcf00e8969c5e74fa6c2103dead640cf49665b0fe1de98aac1efb4bc409"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): Planet/Views/Components/IndicatorViews.swift:17-26 | Planet/Views/Components/IndicatorViews.swift:39-48 | Planet/Views/Components/IndicatorViews.swift:61-70 | Planet/Views/Components/IndicatorViews.swift:82-91 \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 \u0060Planet/Views/Components/IndicatorViews.swift:17\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, \u0060Planet/Views/Components/IndicatorViews.swift:93\u0060 calls \u0060Spacer\u0060 and \u0060Planet/Views/Components/IndicatorViews.swift:28\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":"Planet/Views/Components/IndicatorViews.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"c98ef9da8dee51ef65594831cbd070b42c442251fc69920222ac78ffd2dd4bfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Planet/API/PlanetAPIController.swift:330-339 | Planet/API/PlanetAPIController.swift:358-367 | Planet/API/PlanetAPIController.swift:479-488 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Planet/API/PlanetAPIController.swift:330\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. 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":"Planet/API/PlanetAPIController.swift"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bec206dedaed37f84ee2cde7058ebb5d55f89c592c4cc1f55663d884d1a651f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Planet/Views/Create \u0026 Follow Planet/CreatePlanetView.swift:46-55 | Planet/Views/My/MyPlanetEditView.swift:964-973 | PlanetLite/Croptop/AggregationSettings.swift:51-60 \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 \u0060Planet/Views/Create \u0026 Follow Planet/CreatePlanetView.swift:46\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":"Planet/Views/Create \u0026 Follow Planet/CreatePlanetView.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6340263fa3a27d1b977cc3f1447b608fa248f625641fcd643f30ee78c7fc831"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Planet/Downloads/PlanetDownloadsWebView.swift:77-86 | Planet/TemplateBrowser/TemplateWebView.swift:51-60 \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":"Planet/Downloads/PlanetDownloadsWebView.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea1238087ab27f558c67e1218c114bbdc3d9845fdcb96456e01d94b1c6cf865d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Planet/Entities/FollowingPlanetModel.swift:869-878 | Planet/Entities/FollowingPlanetModel.swift:935-944 \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 \u0060Planet/Entities/FollowingPlanetModel.swift:869\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. 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":"Planet/Entities/FollowingPlanetModel.swift"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"bae74a355d6dbf67585116391372d3de7243573d376fbcf31b29c1723bb52098"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Planet/Entities/FollowingPlanetModel.swift:1713-1722 | Planet/Entities/FollowingPlanetModel.swift:1777-1786 \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 \u0060Planet/Entities/FollowingPlanetModel.swift:1713\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":"Planet/Entities/FollowingPlanetModel.swift"},"region":{"startLine":1713}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ac6abc1ea0f84689b1e3cf11048f43782f84736655d575f81ed3a7938a9a783"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Planet/Entities/MyArticleModel\u002BSave.swift:386-395 | Planet/Entities/MyArticleModel\u002BSave.swift:405-414 \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 \u0060Planet/Entities/MyArticleModel\u002BSave.swift:386\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/MyArticleModel\u002BSave.swift"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"286e513630e1615b9c9625054f86087a228114360aa969654d0d1d25fccaab37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Planet/Entities/MyPlanetModel.swift:2377-2386 | Planet/Entities/MyPlanetModel.swift:2575-2584 \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 \u0060Planet/Entities/MyPlanetModel.swift:2377\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":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":2377}}}],"partialFingerprints":{"codehealthFindingId/v1":"a17a1486ee6296d92fb3dae6fa20c110ac79374549d35afa7abbaec6846b823d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Planet/Key Manager/PlanetKeyManagerWindowController.swift:107-116 | Planet/Settings/PlanetSettingsGeneralView.swift:191-200 \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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Key Manager/PlanetKeyManagerWindowController.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"10e58d60666919fdefd6a1556f97818f6190ea6b332bc72af9582a5dd8e55a38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Planet/Labs/Published Folders/PlanetPublishedServiceStore.swift:252-261 | Planet/Labs/Published Folders/PlanetPublishedServiceStore.swift:540-549 \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 \u0060Planet/Labs/Published Folders/PlanetPublishedServiceStore.swift:252\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":"Planet/Labs/Published Folders/PlanetPublishedServiceStore.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"40c7d97033ac0ae75794679c6f0defba447cd2f853bf9fac5cf403b07e7d85f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Planet/Labs/Wallet/WalletConnectV1.swift:129-138 | Planet/Labs/Wallet/WalletConnectV1.swift:207-216 \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 \u0060Planet/Labs/Wallet/WalletConnectV1.swift:129\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. 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":"Planet/Labs/Wallet/WalletConnectV1.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"169e3d37a52c6e08177b21a258e8b5a6196266b0e0edcaa720b3087258819dd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Planet/Quick Share/PlanetQuickShareView.swift:424-433 | Planet/Writer/WriterTitleView.swift:212-225 \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 \u0060Planet/Quick Share/PlanetQuickShareView.swift:424\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":"Planet/Quick Share/PlanetQuickShareView.swift"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"68f6e78acfd92c2b76cc881aecd7576b3fd4184f0a9e3ea586011492f30e0b88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): Planet/Search/SearchIndex.swift:347-354 | Planet/Search/SearchIndex.swift:422-431 \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 \u0060Planet/Search/SearchIndex.swift:347\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. 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":"Planet/Search/SearchIndex.swift"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0d2928eb021a3ecd3fe63008c8f7e90d3134634fa4a35561da022b7889df547"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Planet/Views/Articles/ArticleAIChatView.swift:5327-5336 | Planet/Views/Articles/ArticleAIChatView.swift:5342-5351 \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 \u0060Planet/Views/Articles/ArticleAIChatView.swift:5327\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. 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":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":5327}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b5989116d97439d9a19bc3015ccf3cb61b6dad02fe9cf86dcc6a24fced2fad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Planet/Views/Components/ArtworkView.swift:43-51 | Planet/Views/Components/ArtworkView.swift:63-72 \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 \u0060Planet/Views/Components/ArtworkView.swift:43\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":"Planet/Views/Components/ArtworkView.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd2ec055806782cdfebc790f0bb62436564950e16815228bf7f701ca0f546c2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Planet/Views/PlanetMainView.swift:92-101 | PlanetLite/AppSidebarView.swift:126-135 \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 \u0060Planet/Views/PlanetMainView.swift:92\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":"Planet/Views/PlanetMainView.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"aabee179b2a2be4ec8d2226f7bc14a99727f09001d6f9a1c86dd50b5019eea6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Planet/Views/PlanetMainView.swift:102-111 | PlanetLite/AppContentView.swift:199-208 \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 \u0060Planet/Views/PlanetMainView.swift:102\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":"Planet/Views/PlanetMainView.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"771d2063604f64c82d46ecddac05048516b02f5d4163edf73d8ce25918c8a57f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): Planet/Entities/MyPlanetModel.swift:2374-2382 | Planet/Entities/MyPlanetModel.swift:2414-2422 | Planet/Entities/MyPlanetModel.swift:2480-2488 | Planet/Entities/MyPlanetModel.swift:2505-2513 | Planet/Entities/MyPlanetModel.swift:2572-2580 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Planet/Entities/MyPlanetModel.swift:2374\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, \u0060Planet/Entities/MyPlanetModel.swift:2478\u0060 calls \u0060withThrowingTaskGroup\u0060 and \u0060Planet/Entities/MyPlanetModel.swift:2571\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":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":2374}}}],"partialFingerprints":{"codehealthFindingId/v1":"14ecffefc857135d35a30a8867ac9c99f606d9d258d59344b50cdabd0d112589"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Planet/Key Manager/PlanetKeyManagerWindowController.swift:250-258 | Planet/Views/Articles/ArticleAIChatWindowManager.swift:236-244 | Planet/Views/Articles/PlanetAIChatWindowController.swift:399-407 \u2014 before extracting anything, compare \u0060Planet/Views/Articles/ArticleAIChatWindowManager.swift\u0060 and \u0060Planet/Views/Articles/PlanetAIChatWindowController.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 75 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 \u0060Planet/Key Manager/PlanetKeyManagerWindowController.swift:250\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Planet/Key Manager/PlanetKeyManagerWindowController.swift:248\u0060 calls \u0060L10n\u0060 and \u0060Planet/Views/Articles/ArticleAIChatWindowManager.swift:234\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":"Planet/Key Manager/PlanetKeyManagerWindowController.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"a30894357c5dd1aeee14bf71ce98976ee40314528bb03c1ac5cff127a7a88b53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): Planet/Quick Share/PlanetQuickShareDropDelegate.swift:102-109 | Planet/Quick Share/PlanetQuickShareDropDelegate.swift:123-130 | Planet/Quick Share/PlanetQuickShareDropDelegate.swift:294-302 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Planet/Quick Share/PlanetQuickShareDropDelegate.swift:102\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":"Planet/Quick Share/PlanetQuickShareDropDelegate.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac3e020d2388cbb330b8ad7f7d747596bbc8dbabb76f72d723f5815776cdd01c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20139 lines \u00D7 4): Planet/Views/Onboarding/OnboardingView.swift:35-44 | Planet/Views/Onboarding/OnboardingView.swift:46-54 | Planet/Views/Onboarding/OnboardingView.swift:56-65 | Planet/Views/Onboarding/OnboardingView.swift:66-71 \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 \u0060Planet/Views/Onboarding/OnboardingView.swift:35\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, \u0060Planet/Views/Onboarding/OnboardingView.swift:35\u0060 calls \u0060foregroundColor\u0060 and \u0060Planet/Views/Onboarding/OnboardingView.swift:66\u0060 does not \u2014 after which the two agree again for 5 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":"Planet/Views/Onboarding/OnboardingView.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f54df430e496d48d56aa0fc5ff99f763cbe41a71be2c08cefce1d8e1e1a6c11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Planet/Entities/FollowingArticleModel.swift:195-203 | Planet/Entities/FollowingArticleModel.swift:249-257 \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 \u0060Planet/Entities/FollowingArticleModel.swift:195\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":"Planet/Entities/FollowingArticleModel.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ebb665aad59cd10145a8ae94d1f5c29922783c061105e45f9640ae3d4dfee4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Planet/Entities/MyArticleModel\u002BSave.swift:659-667 | Planet/Entities/MyArticleModel\u002BSave.swift:673-681 \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":"Planet/Entities/MyArticleModel\u002BSave.swift"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef020f4191f710f6a086abb6fc4bce80ef9ffabd3eae3611f997d6d36620d98a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Planet/Entities/MyPlanetModel.swift:3561-3569 | Planet/Entities/MyPlanetModel.swift:3719-3727 \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 \u0060Planet/Entities/MyPlanetModel.swift:3561\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":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":3561}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4e5850ec8943968ebe953cc3e58a7e537fb533a7ecd1d89d426f95cf2f2de53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Planet/Helper/KeyboardShortcutHelper.swift:476-484 | PlanetLite/CroptopApp.swift:83-91 \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 \u0060Planet/Helper/KeyboardShortcutHelper.swift:476\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. 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":"Planet/Helper/KeyboardShortcutHelper.swift"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"804afa0db8185e76f5b09c34435407e4ce0f4e0328f79ce5cf7b5e90a0875b25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): Planet/IPFS/IPFSDaemon.swift:121-129 | Planet/IPFS/IPFSDaemon.swift:137-145 | Planet/IPFS/IPFSDaemon.swift:151-158 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Planet/IPFS/IPFSDaemon.swift:121\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/IPFS/IPFSDaemon.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ebb51e56d3ead4dcceee5284a28a17f4c018884628170845728588186434b18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Planet/Labs/Published Folders/PlanetPublishedServiceStore.swift:552-560 | Planet/Labs/Published Folders/PlanetPublishedServiceStore.swift:634-642 \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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Labs/Published Folders/PlanetPublishedServiceStore.swift"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0560a5d7f9aad81c6dab0d6689dc7debdd6c9c49646581f95633783110e71a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Planet/Search/PlanetStore\u002BSearch.swift:148-156 | Planet/Search/PlanetStore\u002BSearch.swift:167-175 \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 \u0060Planet/Search/PlanetStore\u002BSearch.swift:148\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. 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":"Planet/Search/PlanetStore\u002BSearch.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"10f1cb64bf6c18cc05eb104866d20c2e1c6e34c09645e6b71e9c3794fc00ca14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Planet/Search/RelatedArticlesView.swift:17-25 | Planet/Search/SearchView.swift:30-38 \u2014 before extracting anything, compare \u0060Planet/Search/RelatedArticlesView.swift\u0060 and \u0060Planet/Search/SearchView.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 134 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 \u0060Planet/Search/RelatedArticlesView.swift:17\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":"Planet/Search/RelatedArticlesView.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"45c679120471e05e8cce9a08cb9fa8533ad24b69cabb41bd5d94fcaa770ed9ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Planet/Search/SearchDatabase.swift:177-185 | Planet/Search/SearchIndex.swift:555-563 \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. 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":"Planet/Search/SearchDatabase.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"1976002e2ae9a2d6f9895fbe97b06d268785d67be279a3b9a84530840cc97b1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Planet/Search/SearchEmbedding.swift:111-119 | Planet/Search/SearchEmbedding.swift:201-209 \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 \u0060Planet/Search/SearchEmbedding.swift:111\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. 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. 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":"Planet/Search/SearchEmbedding.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"4525be0d78526c74f7d6e59089eb5f4115c2df01d14b5d3fb4caee9b474a09a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Planet/Views/Articles/ArticleAIChatView.swift:4721-4729 | Planet/Views/Articles/ArticleAIChatView.swift:4881-4889 \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 \u0060Planet/Views/Articles/ArticleAIChatView.swift:4721\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":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":4721}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb9c12ad823dfecf4f3d91333f65777630ddae6032669de1164a4eca3a35ee0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Planet/Views/My/MyArticleItemView.swift:57-65 | Planet/Views/My/MyArticleItemView.swift:68-76 \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 \u0060Planet/Views/My/MyArticleItemView.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/My/MyArticleItemView.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a38af33057aa751f6e2023e22876e5b286164cbe1ce2a75d08f3343c6050112"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Planet/Writer/WriterView.swift:111-119 | Planet/Writer/WriterView.swift:123-131 \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":"Planet/Writer/WriterView.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"87b30db4b1c1519b690c1e6d5caa9e79d196d3041ca09f905164b941eda71399"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): PlanetCLI/PNAPIClient.swift:166-174 | PlanetCLI/PNAPIClient.swift:176-184 \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 \u0060PlanetCLI/PNAPIClient.swift:166\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":"PlanetCLI/PNAPIClient.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"713eec10365060f6c050d6ff68a8af2db3b35813a9f7de267285e7dbee0c4452"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): PlanetCLI/PNCommandRunner.swift:929-936 | PlanetCLI/PNCommandRunner.swift:941-949 \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. 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. 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":"PlanetCLI/PNCommandRunner.swift"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"199f84b8d143f58711a3cc6fe317d5745dfd63b0bab86272c7c61d776c0b5f26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): Planet/Entities/MyPlanetModel.swift:3583-3590 | Planet/Entities/MyPlanetModel.swift:3624-3631 | Planet/Entities/MyPlanetModel.swift:3643-3650 | Planet/Entities/MyPlanetModel.swift:3741-3748 | Planet/Entities/MyPlanetModel.swift:3760-3767 | Planet/Entities/MyPlanetModel.swift:3836-3843 \u2014 all 6 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 \u0060Planet/Entities/MyPlanetModel.swift:3583\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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060kind\u0060 to \u0060kind\u0060 in one and \u0060kind) Task.detached(priority: .background\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":3583}}}],"partialFingerprints":{"codehealthFindingId/v1":"6de418e692f5b17d7784893703cdb83e7e4779831f6bc5f49c02f89d290fcfc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 3): Planet/Labs/Published Folders/Dashboard/PFDashboardContainerViewController.swift:37-44 | Planet/TemplateBrowser/Window Controller/TBContainerViewController.swift:38-44 | Planet/Views/Articles/PlanetAIChatWindowController.swift:480-486 \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 \u0060Planet/Labs/Published Folders/Dashboard/PFDashboardContainerViewController.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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Planet/Labs/Published Folders/Dashboard/PFDashboardContainerViewController.swift:45\u0060 calls \u0060constraint\u0060 and \u0060Planet/Views/Articles/PlanetAIChatWindowController.swift:487\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":"Planet/Labs/Published Folders/Dashboard/PFDashboardContainerViewController.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb4f3c91e87486c29997bad2ca62defd4e577c41cf68a1fa8e9f25452eeb7c5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Planet/Entities/MyArticleModel.swift:527-534 | Planet/Entities/MyArticleModel.swift:536-543 \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, \u0060Planet/Entities/MyArticleModel.swift:545\u0060 calls \u0060fileExists\u0060, \u0060detached\u0060 and \u0060Planet/Entities/MyArticleModel.swift:536\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":"Planet/Entities/MyArticleModel.swift"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"c214cc013d398b4d5891d39a2b7c7077b01224d7235f9169c39a981b41dd116a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Planet/Labs/Icon Gallery/IconManager.swift:274-281 | Planet/Labs/Icon Gallery/IconManager.swift:462-469 \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 \u0060Planet/Labs/Icon Gallery/IconManager.swift:274\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. 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":"Planet/Labs/Icon Gallery/IconManager.swift"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"181552f075bdae01b2c29c3120fd70bd2f79fc9306280f7910800a4b88870b35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Planet/Search/SearchEmbedding.swift:99-106 | Planet/Search/SearchIndex.swift:45-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 both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Search/SearchEmbedding.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0f855133ae19f44b397bd14d9f9a79e3b3b80f38e70d1eec971ef638b761c98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Planet/Views/Articles/ArticleAIChatView.swift:1322-1329 | Planet/Views/Articles/ArticleAIChatView.swift:1370-1377 \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 \u0060Planet/Views/Articles/ArticleAIChatView.swift:1322\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":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":1322}}}],"partialFingerprints":{"codehealthFindingId/v1":"4221f994be1cb723d1352b4c26676a21f49d7ebc12dc5d1c78178798530925a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Planet/Views/Articles/ArticleAIChatView.swift:3863-3871 | Planet/Views/Articles/ArticleAIChatView.swift:3909-3916 \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 \u0060Planet/Views/Articles/ArticleAIChatView.swift:3909\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":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":3863}}}],"partialFingerprints":{"codehealthFindingId/v1":"3592bfaa6f4f64e099f0d8635cc89199408c5e40037b2c526e08abc113b9bbe2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Planet/Views/Articles/ArticleAIChatView.swift:6306-6313 | Planet/Views/Articles/ArticleAIChatView.swift:6628-6635 \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. 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":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":6306}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9d87ae7a553bb49e41e77cfa7143451a871e9c6607c27bf2f08baa7ffd14b49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Planet/Views/Articles/ArticleAIChatView.swift:6344-6351 | Planet/Views/Articles/ArticleAIChatView.swift:6628-6635 \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. 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":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":6344}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7096950aceebffaa09b8f17a380c4fddb9c0d777bac623c93bebba458afe4a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Planet/Views/My/MyArticleGridView.swift:272-279 | Planet/Views/My/MyArticleGridView.swift:287-294 \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":"Planet/Views/My/MyArticleGridView.swift"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0755282765d086608bfb766dbb19841286cde685b71a0044ff3291555623251"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): Planet/Writer/WriterWindow.swift:170-176 | Planet/Writer/WriterWindow.swift:179-186 \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 \u0060Planet/Writer/WriterWindow.swift:179\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":"Planet/Writer/WriterWindow.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3c80c546285e5da3093f9bbf83e129d19524183f4cc2be66c6a9ba4f329b976"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): PlanetCLI/PNAPIClient.swift:121-129 | PlanetCLI/PNAPIClient.swift:202-209 \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 \u0060PlanetCLI/PNAPIClient.swift:121\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":"PlanetCLI/PNAPIClient.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"945808587d838294d175f6be2a32e284990bf5735a742d6d5f7a176e6f9fe3bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 12): Planet/Labs/Published Folders/Dashboard/PFDashboardWindowController.swift:204-210 | Planet/Labs/Published Folders/Dashboard/PFDashboardWindowController.swift:221-227 | Planet/Labs/Published Folders/Dashboard/PFDashboardWindowController.swift:237-243 | Planet/Labs/Published Folders/Dashboard/PFDashboardWindowController.swift:247-253 | Planet/Labs/Published Folders/Dashboard/PFDashboardWindowController.swift:257-263 | Planet/Labs/Published Folders/Dashboard/PFDashboardWindowController.swift:267-273 | Planet/Labs/Published Folders/Dashboard/PFDashboardWindowController.swift:343-349 | Planet/TemplateBrowser/Window Controller/TBWindowController.swift:167-173 | Planet/TemplateBrowser/Window Controller/TBWindowController.swift:184-190 | Planet/TemplateBrowser/Window Controller/TBWindowController.swift:206-212 | Planet/TemplateBrowser/Window Controller/TBWindowController.swift:219-225 | Planet/TemplateBrowser/Window Controller/TBWindowController.swift:229-235 \u2014 there are 12 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 12 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Planet/TemplateBrowser/Window Controller/TBWindowController.swift:205\u0060 calls \u0060hasVSCode\u0060 and \u0060Planet/Labs/Published Folders/Dashboard/PFDashboardWindowController.swift:220\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":"Planet/Labs/Published Folders/Dashboard/PFDashboardWindowController.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7e883c4cdad11f81b538ac3004a3ed92bcca692397a2c5139d7356de85d630e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 8): Planet/Views/Articles/ArticleAIChatWindowManager.swift:212-218 | Planet/Views/Articles/ArticleAIChatWindowManager.swift:222-228 | Planet/Views/Articles/ArticleAIChatWindowManager.swift:232-238 | Planet/Views/Articles/PlanetAIChatWindowController.swift:346-352 | Planet/Views/Articles/PlanetAIChatWindowController.swift:356-362 | Planet/Views/Articles/PlanetAIChatWindowController.swift:366-372 | Planet/Views/Articles/PlanetAIChatWindowController.swift:376-382 | Planet/Views/Articles/PlanetAIChatWindowController.swift:395-401 \u2014 before extracting anything, compare \u0060Planet/Views/Articles/ArticleAIChatWindowManager.swift\u0060 and \u0060Planet/Views/Articles/PlanetAIChatWindowController.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 75 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":"Planet/Views/Articles/ArticleAIChatWindowManager.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aec2c9fc577e0fc0b86a83c6fea04d83774b691b9a1b01fd0e8814f1f21e7c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): Planet/TemplateBrowser/TemplateBrowserSidebar.swift:82-88 | Planet/TemplateBrowser/TemplateBrowserSidebar.swift:97-103 | Planet/TemplateBrowser/TemplateBrowserSidebar.swift:110-116 | Planet/TemplateBrowser/TemplateBrowserSidebar.swift:124-131 | PlanetLite/AppSidebarItemView.swift:51-65 | PlanetLite/AppSidebarItemView.swift:72-85 \u2014 there are 6 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart. 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":"Planet/TemplateBrowser/TemplateBrowserSidebar.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"58753cc99f4498dd0b6afca1546624cab5fc7f251869224fe29c18da2e1cf742"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Planet/Quick Share/PlanetQuickShareViewModel.swift:241-247 | Planet/Views/Articles/ArticleListView.swift:65-71 | Planet/Writer/WriterDragAndDrop.swift:112-118 \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. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Quick Share/PlanetQuickShareViewModel.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"c91e3f85f89758811e41e82b4e27cc2ac93e6f7815c83b83b945872b50dc17aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Planet/Entities/MyPlanetModel.swift:400-406 | Planet/Views/My/MyPlanetTemplateSettingsView.swift:205-211 \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 \u0060Planet/Entities/MyPlanetModel.swift:400\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. 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":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"90165cce4846e6e4dfc59ccb477e78868fac39fac5a8359f6a8c33794c70edfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Planet/Helper/HttpRequest.swift:42-48 | Planet/Helper/HttpRequest.swift:65-71 \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. 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":"Planet/Helper/HttpRequest.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"30dc4f08c3312709ea5856434bb6969d5b27582c7a56aad32698303b4404a742"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Planet/Integrations/Plausible.swift:23-29 | Planet/Integrations/dWebServices.swift:51-57 \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 \u0060Planet/Integrations/Plausible.swift:23\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":"Planet/Integrations/Plausible.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"220d20d1cdc5fbe12e9ed4f246f9e51a6184a15c3478f283d7c18134178d3d2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Planet/Quick Share/PlanetQuickShareDropDelegate.swift:67-73 | PlanetLite/AppContentDropDelegate.swift:63-69 \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 \u0060Planet/Quick Share/PlanetQuickShareDropDelegate.swift:67\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":"Planet/Quick Share/PlanetQuickShareDropDelegate.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"58eafcc3354ab46ad503d7040e69f9f5c0f984458dd31cb3f0a57f408ae05699"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Planet/Quick Share/PlanetQuickShareViewModel.swift:250-256 | Planet/Writer/WriterDragAndDrop.swift:121-127 \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. 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":"Planet/Quick Share/PlanetQuickShareViewModel.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"e38793e2abba35fbc6bfaa16e5c09174bda58e8b0da2b8aa6d7e3a59e7eda660"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Planet/Settings/PlanetSettingsAIView.swift:433-439 | Planet/Settings/PlanetSettingsAIView.swift:449-455 \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 \u0060Planet/Settings/PlanetSettingsAIView.swift:433\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":"Planet/Settings/PlanetSettingsAIView.swift"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"f050579af559b33d0afd6efef07e4f596f4dfd30919beff1a0b0f69bfd2460c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Planet/Views/Articles/ArticleAIChatView.swift:3293-3299 | Planet/Views/Articles/ArticleAIChatView.swift:3309-3315 \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":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":3293}}}],"partialFingerprints":{"codehealthFindingId/v1":"74c836c2bf4a22ae896e7ef743b99063994b9b4a35e057d18f7da11e1b2fafce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Planet/Views/Articles/ArticleAIChatView.swift:3381-3387 | Planet/Views/Articles/ArticleAIChatView.swift:3392-3398 \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. 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":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":3381}}}],"partialFingerprints":{"codehealthFindingId/v1":"d62d8cecc44ad14fd8fbd2de8cf9a25a51f07aabb09afbfb80d62e99598fbaf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Planet/Views/Articles/ArticleAIChatView.swift:4713-4719 | Planet/Views/Articles/ArticleAIChatView.swift:4873-4879 \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 \u0060Planet/Views/Articles/ArticleAIChatView.swift:4713\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":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":4713}}}],"partialFingerprints":{"codehealthFindingId/v1":"4668ef324a9429ca3e3b3409ad2f8130b9d6ba6aa69b9b8ff3feefadb6c81518"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Planet/Views/Sidebar/PlanetSidebarView.swift:229-236 | PlanetLite/AppSidebarView.swift:139-145 \u2014 before extracting anything, compare \u0060Planet/Views/Sidebar/PlanetSidebarView.swift\u0060 and \u0060PlanetLite/AppSidebarView.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. 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 \u0060Planet/Views/Sidebar/PlanetSidebarView.swift:229\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":"Planet/Views/Sidebar/PlanetSidebarView.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"163d41a94884ca93c41d37842987e56ad338224551dfeb204c026127129c02b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 20): Planet/Labs/Published Folders/Dashboard/PFDashboardWindowController.swift:207-212 | Planet/Labs/Published Folders/Dashboard/PFDashboardWindowController.swift:224-229 | Planet/Labs/Published Folders/Dashboard/PFDashboardWindowController.swift:240-245 | Planet/Labs/Published Folders/Dashboard/PFDashboardWindowController.swift:250-255 | Planet/Labs/Published Folders/Dashboard/PFDashboardWindowController.swift:260-265 | Planet/Labs/Published Folders/Dashboard/PFDashboardWindowController.swift:270-275 | Planet/Labs/Published Folders/Dashboard/PFDashboardWindowController.swift:346-351 | Planet/TemplateBrowser/Window Controller/TBWindowController.swift:170-175 | Planet/TemplateBrowser/Window Controller/TBWindowController.swift:187-192 | Planet/TemplateBrowser/Window Controller/TBWindowController.swift:209-214 | Planet/TemplateBrowser/Window Controller/TBWindowController.swift:222-227 | Planet/TemplateBrowser/Window Controller/TBWindowController.swift:232-237 | Planet/Views/Articles/ArticleAIChatWindowManager.swift:215-220 | Planet/Views/Articles/ArticleAIChatWindowManager.swift:225-230 | Planet/Views/Articles/ArticleAIChatWindowManager.swift:235-240 | Planet/Views/Articles/PlanetAIChatWindowController.swift:349-354 | Planet/Views/Articles/PlanetAIChatWindowController.swift:359-364 | Planet/Views/Articles/PlanetAIChatWindowController.swift:369-374 | Planet/Views/Articles/PlanetAIChatWindowController.swift:379-384 | Planet/Views/Articles/PlanetAIChatWindowController.swift:398-403 \u2014 before extracting anything, compare \u0060Planet/Views/Articles/ArticleAIChatWindowManager.swift\u0060 and \u0060Planet/Views/Articles/PlanetAIChatWindowController.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 75 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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Labs/Published Folders/Dashboard/PFDashboardWindowController.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"35eefb13f9551e547b89c5cda7d4ea5a2d1316c69174adfa170c372845bb69da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Planet/Entities/FollowingArticleModel.swift:194-199 | Planet/Entities/FollowingArticleModel.swift:212-217 | Planet/Entities/FollowingArticleModel.swift:248-253 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Planet/Entities/FollowingArticleModel.swift:194\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Planet/Entities/FollowingArticleModel.swift:218\u0060 calls \u0060dropLast\u0060 and \u0060Planet/Entities/FollowingArticleModel.swift:200\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":"Planet/Entities/FollowingArticleModel.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"80a5dfd0879ded4a6ec39b716d67ecde3592d3462eb14039d7a3186bf4ed0845"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Planet/Entities/FollowingPlanetModel.swift:367-372 | Planet/PlanetAppDelegate.swift:53-58 | Planet/Views/Create \u0026 Follow Planet/FollowPlanetView.swift:129-134 \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 \u0060Planet/Entities/FollowingPlanetModel.swift:367\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":"Planet/Entities/FollowingPlanetModel.swift"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cbd061a5b898d0e5712409d56585f9135ddb643c299649ab636f13d63fb7930"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Planet/Entities/MyPlanetModel.swift:2022-2027 | Planet/Views/Following/FollowingPlanetAvatarView.swift:24-29 | Planet/Views/Sidebar/AccountBadgeView.swift:40-45 \u2014 before extracting anything, compare \u0060Planet/Entities/MyPlanetModel.swift\u0060 and \u0060Planet/Views/Following/FollowingPlanetAvatarView.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 42 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 \u0060Planet/Entities/MyPlanetModel.swift:2022\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":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":2022}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e95870a7c3d3261037c0b24ef627b4176474de790018795513c9f7debdb9eae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Planet/Search/SearchEmbedding.swift:365-370 | Planet/Search/SearchEmbedding.swift:509-514 | Planet/Search/SearchIndex.swift:290-295 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Search/SearchEmbedding.swift"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c069c4ce555c980726f76b702c635a3a0c7e033177edbc4828723434a9d33b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Planet/IPFS/IPFSDaemon.swift:1087-1092 | Planet/IPFS/IPFSDaemon.swift:1114-1119 \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":"Planet/IPFS/IPFSDaemon.swift"},"region":{"startLine":1087}}}],"partialFingerprints":{"codehealthFindingId/v1":"f508adb8be24f6775aa866f3b98944818e1d24e3d2690b19d640ee7c2773a2e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Planet/Integrations/dWebServices.swift:18-23 | Planet/Integrations/dWebServices.swift:47-52 \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 \u0060Planet/Integrations/dWebServices.swift:18\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, \u0060Planet/Integrations/dWebServices.swift:25\u0060 calls \u0060debugPrint\u0060 and \u0060Planet/Integrations/dWebServices.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":"Planet/Integrations/dWebServices.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"4961aa4218f800cbcc102bc0762845594b25415e4b413afcfc598c5a27ed9224"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Planet/Search/SearchEmbedding.swift:258-267 | Planet/Search/SearchIndex.swift:210-215 \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 \u0060Planet/Search/SearchEmbedding.swift:258\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":"Planet/Search/SearchEmbedding.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"96b59ce6e69790c70d147fe643a365a8a2dd72cd0de58a221d032b96df643586"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Planet/Views/Articles/ArticleAIChatView.swift:1568-1573 | Planet/Views/Articles/ArticleAIChatView.swift:1584-1589 \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 \u0060Planet/Views/Articles/ArticleAIChatView.swift:1568\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":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":1568}}}],"partialFingerprints":{"codehealthFindingId/v1":"11fc1714fe894b3484ac44b91567cd6f8a31932c461f69b28a0084f50b2bd3c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Planet/Views/Articles/ArticleAIChatView.swift:5558-5563 | Planet/Views/Articles/ArticleAIOnDeviceTools.swift:525-530 \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 \u0060Planet/Views/Articles/ArticleAIChatView.swift:5558\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":5558}}}],"partialFingerprints":{"codehealthFindingId/v1":"688748a6d61f15cbdec49909ee31f047a8d68c687bebdde839ff3469e5b85880"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Planet/Views/Articles/ArticleAIChatWindowManager.swift:290-295 | Planet/Views/Articles/PlanetAIChatWindowController.swift:558-563 \u2014 before extracting anything, compare \u0060Planet/Views/Articles/ArticleAIChatWindowManager.swift\u0060 and \u0060Planet/Views/Articles/PlanetAIChatWindowController.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 75 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 \u0060Planet/Views/Articles/ArticleAIChatWindowManager.swift:290\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":"Planet/Views/Articles/ArticleAIChatWindowManager.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"21cb0bc2440e3cbe0d60f90516cc1133fef1b1bcd084488dccff3aec6cc2b618"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Planet/Writer/WriterTextView.swift:405-410 | Planet/Writer/WriterTitleView.swift:505-510 \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. 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":"Planet/Writer/WriterTextView.swift"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dc4516818b66c0baeb24197a4b0c15c0653825083aedab71ceaa75a3cd3c0a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 14): Planet/API/Window/PlanetAPIConsoleViewController.swift:30-34 | Planet/Downloads/PlanetDownloadsViewController.swift:25-29 | Planet/IPFS/Open Views/Window/IPFSOpenViewController.swift:30-34 | Planet/IPFS/Status Views/Window/IPFSStatusViewController.swift:30-34 | Planet/Key Manager/PlanetKeyManagerViewController.swift:26-30 | Planet/Labs/Published Folders/Dashboard/PFDashboardInspectorViewController.swift:25-29 | Planet/Labs/Published Folders/Dashboard/PFDashboardSidebarViewController.swift:25-29 | Planet/Labs/Published Folders/Dashboard/PFDashboardViewController.swift:25-29 | Planet/TemplateBrowser/Window Controller/TBContentViewController.swift:25-29 | Planet/TemplateBrowser/Window Controller/TBInspectorViewController.swift:25-29 | Planet/TemplateBrowser/Window Controller/TBSidebarViewController.swift:25-29 | Planet/Views/Articles/ArticleAIChatWindowManager.swift:291-296 | Planet/Views/Articles/PlanetAIChatWindowController.swift:523-528 | Planet/Views/Articles/PlanetAIChatWindowController.swift:559-564 \u2014 before extracting anything, compare \u0060Planet/API/Window/PlanetAPIConsoleViewController.swift\u0060 and \u0060Planet/IPFS/Open Views/Window/IPFSOpenViewController.swift\u0060 as WHOLE FILES: 84% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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 \u0060Planet/Views/Articles/ArticleAIChatWindowManager.swift:291\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":"Planet/API/Window/PlanetAPIConsoleViewController.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce39ef7e46a3b64aaacaacd143e9b20230b445bb33978f6fd656973aec981f9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Planet/Integrations/CloudflarePages.swift:224-228 | Planet/Integrations/CloudflarePages.swift:256-260 | Planet/Integrations/CloudflarePages.swift:291-295 | Planet/Integrations/CloudflarePages.swift:396-400 \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 \u0060Planet/Integrations/CloudflarePages.swift:224\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":"Planet/Integrations/CloudflarePages.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e585218ced6c519672a9e78c202665426b46cd12176331b9e9261be32dfd494"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Planet/Quick Share/PlanetQuickShareViewModel.swift:250-254 | Planet/Views/Articles/ArticleListView.swift:74-78 | Planet/Writer/WriterDragAndDrop.swift:121-125 \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. 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":"Planet/Quick Share/PlanetQuickShareViewModel.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"24fe31d18321fa345d548d8a026b50469312730cd1d4c3890ccc4c797ab3de01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Planet/Search/SearchEmbedding.swift:375-381 | Planet/Search/SearchEmbedding.swift:519-523 | Planet/Search/SearchIndex.swift:300-306 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Planet/Search/SearchEmbedding.swift:375\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":"Planet/Search/SearchEmbedding.swift"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a42d6d7917864fa8b8d5420c35e5db628dee6953f2c7b68da68d7736587e59f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Planet/API/PlanetAPILogMiddleware.swift:41-45 | Planet/API/PlanetAPILogMiddleware.swift:48-52 \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 \u0060Planet/API/PlanetAPILogMiddleware.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":"Planet/API/PlanetAPILogMiddleware.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"bed6afe236781eea1233707a1c817812fc3f09fe8e1367bafa3a6cfe79b83ce8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Planet/Entities/FollowingArticleModel.swift:344-348 | Planet/Entities/MyArticleModel.swift:341-345 \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":"Planet/Entities/FollowingArticleModel.swift"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"2354bb9b727b6e1920ee1f01850eecefe280fef6de6d829b366b9404f25af5bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Planet/Labs/Published Folders/Dashboard/PFDashboardWindowController.swift:19-23 | Planet/TemplateBrowser/Window Controller/TBWindowController.swift:18-22 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Planet/TemplateBrowser/Window Controller/TBWindowController.swift:23\u0060 calls \u0060updateTemplateWindowTitles\u0060 and \u0060Planet/Labs/Published Folders/Dashboard/PFDashboardWindowController.swift:24\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":"Planet/Labs/Published Folders/Dashboard/PFDashboardWindowController.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b71cff3a60cf00be3fa70e509a08e8e5c9624b09dea62f552f4993a0503c2b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Planet/Labs/Wallet/WalletAccountView.swift:249-253 | Planet/Views/Sidebar/AccountBadgeView.swift:146-150 \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 \u0060Planet/Labs/Wallet/WalletAccountView.swift:249\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":"Planet/Labs/Wallet/WalletAccountView.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d7d231e1a76c2a3af3e32e4fd26b5d903f340e183e7445b056c138086dd06bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Planet/Log/PlanetLogger.swift:180-184 | Planet/Quick Share/PlanetQuickShareDropDelegate.swift:316-320 \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 \u0060Planet/Log/PlanetLogger.swift:180\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Log/PlanetLogger.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"25c9411bcce975835b30ac4e05eb7de180e4e042140e9b5f33262abe176d91a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Planet/PlanetAppDelegate.swift:248-252 | PlanetLite/AppDelegate.swift:98-102 \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 \u0060Planet/PlanetAppDelegate.swift:248\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":"Planet/PlanetAppDelegate.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"af42721489ab6cbd6cbf432b7f8eaa5907188dce0c050692162cff4e5a1af38b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Planet/Writer/VideoCompressionJob.swift:400-404 | Planet/Writer/VideoCompressionJob.swift:408-412 \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 \u0060Planet/Writer/VideoCompressionJob.swift:400\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":"Planet/Writer/VideoCompressionJob.swift"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"15e788b66efcf783e6140b8356cebec9b62865d2d7490a1c16df4b07cf4a4c0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 9): Planet/API/Window/PlanetAPIConsoleViewController.swift:20-24 | Planet/IPFS/Open Views/Window/IPFSOpenViewController.swift:20-24 | Planet/IPFS/Status Views/Window/IPFSStatusViewController.swift:20-24 | Planet/Labs/Published Folders/Dashboard/PFDashboardInspectorViewController.swift:33-37 | Planet/Labs/Published Folders/Dashboard/PFDashboardSidebarViewController.swift:33-37 | Planet/Labs/Published Folders/Dashboard/PFDashboardViewController.swift:33-37 | Planet/TemplateBrowser/Window Controller/TBContentViewController.swift:33-37 | Planet/TemplateBrowser/Window Controller/TBInspectorViewController.swift:33-37 | Planet/TemplateBrowser/Window Controller/TBSidebarViewController.swift:33-37 \u2014 before extracting anything, compare \u0060Planet/API/Window/PlanetAPIConsoleViewController.swift\u0060 and \u0060Planet/IPFS/Open Views/Window/IPFSOpenViewController.swift\u0060 as WHOLE FILES: 84% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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":"Planet/API/Window/PlanetAPIConsoleViewController.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"e499bc14521666d85ca736ee91e1fd71946a8b8fbeb7a62a2a9c1d9565110da6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Planet/Downloads/PlanetDownloadsViewController.swift:33-38 | Planet/Key Manager/PlanetKeyManagerViewController.swift:34-39 \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":"Planet/Downloads/PlanetDownloadsViewController.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c72406e69b0f06290016ee96b6477e490a96d85ba09a33662465ce5ab7fab98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Planet/Downloads/PlanetDownloadsWebView.swift:94-98 | Planet/TemplateBrowser/TemplateWebView.swift:62-66 \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":"Planet/Downloads/PlanetDownloadsWebView.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"66cd1f27db9640e68830af20bc7a1a61e8ae14f65eec0d9c76662081c0ed2aff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Planet/Entities/FollowingPlanetModel.swift:91-95 | Planet/Entities/MyPlanetModel.swift:650-654 \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. 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":"Planet/Entities/FollowingPlanetModel.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2b67b5e062544c6b26cb1a9de7b2143931b1779be1c75849dc3800421c2d2ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Planet/Entities/FollowingPlanetModel.swift:1611-1617 | Planet/Entities/MyPlanetModel.swift:3478-3484 \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":"Planet/Entities/FollowingPlanetModel.swift"},"region":{"startLine":1611}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bf767bd2f01215370f957c0613bfb01b59d5adcac832b84b139d92c6c4d730b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Planet/Labs/Published Folders/Dashboard/PFDashboardContainerViewController.swift:19-23 | Planet/TemplateBrowser/Window Controller/TBContainerViewController.swift:19-23 \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":"Planet/Labs/Published Folders/Dashboard/PFDashboardContainerViewController.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e1d6d0107e68481ddeba25641fced59704a09395f32a6eca6014fa3fb6a6d63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): Planet/Log/CloudflarePagesLogger.swift:46-53 | Planet/Log/IPFSLogger.swift:50-57 | Planet/Log/PlanetLogger.swift:54-63 | Planet/Log/PlanetLogger.swift:113-120 | Planet/Log/PlanetLogger.swift:164-171 | Planet/Log/SSHRsyncLogger.swift:46-53 \u2014 before extracting anything, compare \u0060Planet/Log/CloudflarePagesLogger.swift\u0060 and \u0060Planet/Log/IPFSLogger.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Log/CloudflarePagesLogger.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"7df753d7fd8a721185f7f54a5a6d876938c15f000c3f667ab366135426bbf080"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): Planet/TemplateBrowser/TemplateBrowserSidebar.swift:133-139 | Planet/TemplateBrowser/Window Controller/TBWindowController.swift:74-80 | Planet/Views/Articles/ArticleView.swift:639-645 | Planet/Views/Sidebar/MyPlanetSidebarItem.swift:363-369 | PlanetLite/AppSidebarItemView.swift:37-43 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 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 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/TemplateBrowser/TemplateBrowserSidebar.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d2eb4f84d22a13045d5118535c4431ccf461bd698c24766655d1b762b38426f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Planet/Views/Articles/ArticleAIChatWindowManager.swift:10-15 | Planet/Views/Articles/PlanetAIChatWindowController.swift:13-18 \u2014 before extracting anything, compare \u0060Planet/Views/Articles/ArticleAIChatWindowManager.swift\u0060 and \u0060Planet/Views/Articles/PlanetAIChatWindowController.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 75 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, \u0060Planet/Views/Articles/ArticleAIChatWindowManager.swift:8\u0060 calls \u0060NSSize\u0060 and \u0060Planet/Views/Articles/PlanetAIChatWindowController.swift:11\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":"Planet/Views/Articles/ArticleAIChatWindowManager.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"5341d1a119565885aaf8c6cd07e01487138a44c77b4071bef1d2efc3e0fac57d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Planet/Views/My/MyArticleSettingsView.swift:352-363 | Planet/Writer/WriterTitleView.swift:182-193 \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":"Planet/Views/My/MyArticleSettingsView.swift"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"b91822ec19a910bb22cc1f4d5fe97b17f554a79ddf9c98796f4dbd3096f93b61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Planet/Writer/WriterTextView.swift:416-424 | Planet/Writer/WriterTitleView.swift:445-453 \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":"Planet/Writer/WriterTextView.swift"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"53af77f06d51da3f8b16d4e834f91bc634d2d6fce244a4a81b620f5ac2e8aa3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Planet/Downloads/PlanetDownloadsWindow.swift:26-31 | Planet/TemplateBrowser/Window Controller/TBWindow.swift:23-28 \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":"Planet/Downloads/PlanetDownloadsWindow.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"7143adf9cd103d7a6707191f287b44538e0c5b45a79078c5fbff79b10f528823"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Planet/Entities/ArticleModel.swift:166-177 | Planet/Entities/DraftModel.swift:104-115 \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":"Planet/Entities/ArticleModel.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f28432afc80915f25f926bc9c0f46432fb09bdeddb766092637e3188ae84934"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Planet/Entities/FollowingPlanetModel.swift:61-65 | Planet/Entities/MyPlanetModel.swift:154-158 | Planet/Entities/MyPlanetModel.swift:281-285 | Planet/Labs/Wallet/EthereumTransaction.swift:83-87 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/FollowingPlanetModel.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"0208e61645a9f1bfd3219e6527b0aa95a52b0820f887fc18f33a4be85bff539c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Planet/Labs/Quick Post/QuickPostView.swift:397-404 | Planet/Writer/WriterTextView.swift:207-213 | Planet/Writer/WriterTitleView.swift:314-320 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Labs/Quick Post/QuickPostView.swift"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"3be45dc7b4a20d44f85f01eed074baba9d0909b39a03f237a10804bbc726e7bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Planet/Labs/Quick Post/QuickPostViewModel.swift:266-273 | Planet/Views/My/MyPlanetEditView.swift:1393-1400 \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":"Planet/Labs/Quick Post/QuickPostViewModel.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5db95f1701b31d2bce6e032a96dcb2e98a8b2c17dff5c6a385bfc5ed46bb399"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Planet/Writer/VideoCompressionJob.swift:8-13 | Planet/Writer/VideoInfoRow.swift:565-570 \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":"Planet/Writer/VideoCompressionJob.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"78a2d7ef21f2c5a150ea369f73216e98299083216d8c3ed34166590fa6fa6d7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Planet/Writer/VideoCompressionJob.swift:15-20 | Planet/Writer/VideoInfoRow.swift:776-781 \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":"Planet/Writer/VideoCompressionJob.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"1daedc531e83f50a8a6a7789b817c0e4763e52112bbef007b8bef71ae719632b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Planet/Writer/WriterDragAndDrop.swift:232-239 | Planet/Writer/WriterTextView.swift:144-151 \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":"Planet/Writer/WriterDragAndDrop.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cd552858f57c914c8670a17625b292d14904e578c14630e9ee1a565b86f84cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Planet/Writer/WriterTextView.swift:397-402 | Planet/Writer/WriterTitleView.swift:497-502 \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":"Planet/Writer/WriterTextView.swift"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"2df0301214602132393bca5991a240654c33bd4408b2e0e1c86c252c8b883d36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Planet/Integrations/Filebase.swift:20-26 | Planet/Integrations/Filebase.swift:96-102 \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 \u0060Planet/Integrations/Filebase.swift:20\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":"Planet/Integrations/Filebase.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bbab9bd8ccaa8724a42a1e8f691e6d6f061ab0a438dba35620cfdec264f9624"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Planet/Search/PlanetStore\u002BSpotlight.swift:288-292 | Planet/Search/PlanetStore\u002BSpotlight.swift:341-345 \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 \u0060Planet/Search/PlanetStore\u002BSpotlight.swift:288\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":"Planet/Search/PlanetStore\u002BSpotlight.swift"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb97a8dd7478aaf7c5683c1446056f371bc331c17555d9d6d8a4e82bcd51a737"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Planet/Views/Articles/ArticleAIChatView.swift:3285-3289 | Planet/Views/Articles/ArticleAIChatView.swift:3341-3345 \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 \u0060Planet/Views/Articles/ArticleAIChatView.swift:3285\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":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":3285}}}],"partialFingerprints":{"codehealthFindingId/v1":"28c1d5435015a79ed161607df0f1dfd3c2d1f1cd01662a13d14d630951c6f3a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Planet/Views/Articles/ArticleAIChatView.swift:4754-4758 | Planet/Views/Articles/ArticleAIOnDeviceTools.swift:689-693 \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":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":4754}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbf7222ccbe193cfa5acff41f9c20071b1d93a31a326aae5cd9936b7a9246cb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): tools/generate-sparkle-notes/app.py:1171-1185 | tools/generate-sparkle-notes/app.py:1199-1213 \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. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060tools/generate-sparkle-notes/app.py:1215\u0060 calls \u0060notes_exist\u0060 and \u0060tools/generate-sparkle-notes/app.py:1187\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":"tools/generate-sparkle-notes/app.py"},"region":{"startLine":1171}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce6e589445aeefc2e77c228cc62a61717027372972a6cc2b3747a791cd2410c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): tools/generate-sparkle-notes/planet.py:92-104 | tools/generate-sparkle-notes/planet.py:116-128 \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 \u0060tools/generate-sparkle-notes/planet.py:92\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":"tools/generate-sparkle-notes/planet.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f345dc92230ce11d694568f41e6ac3d85daffc7cfc5e930d6916cea94a13c1d"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: String (LCOM4 15): String\u0027s methods fall into 15 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 15 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PlanetCLI/PNError.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"d26b2374ca29eba86089249d9d353852183863b3f9a7b9c26acf3292e5e07bc1"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PlanetAppDelegate (LCOM4 14): PlanetAppDelegate\u0027s methods fall into 14 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 14 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/PlanetAppDelegate.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"4827ab1e620961767665b6d4a7cc6520b84d355f5b6e195ad6cf39dc28dd1b38"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: IPFSDaemon (LCOM4 13): IPFSDaemon\u0027s methods fall into 13 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 13 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/IPFS/IPFSDaemon.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ab1f66d98ba887c22346317e2fc642c136ab4b16ace3d89df88fb7da1275b52"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Coordinator (LCOM4 13): Coordinator\u0027s methods fall into 13 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 13 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleWebView.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"c54fadda7e1e109ecf54972eaf03a45cc109dbc1eee302168c8e34c88b549e97"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WriterWindow (LCOM4 9): WriterWindow\u0027s methods fall into 9 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 9 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Writer/WriterWindow.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"77ba69b14bfee31c3745e579a5342d6c8104b6c3d04ba2a590085c1782429f7e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WalletManager (LCOM4 8): WalletManager\u0027s methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Labs/Wallet/WalletManager.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d0fc4a7564c8960f67f67da5e8323b809d8e1d13cb0d15cef81c7acd10145da"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Coordinator (LCOM4 7): Coordinator\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/TemplateBrowser/TemplateBrowserPreviewWebView.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"a432bdfa0908daf3f2711cbe80455c370d1dcfb47f089c53e01fd8197dd2bce0"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ArticleAIChatWindowController (LCOM4 6): ArticleAIChatWindowController\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleAIChatWindowManager.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"97972e89a50cc579b033441e1d442041ccc8f583b6c283cb34ba5f6a53bb5d3b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WriterEditorTextView (LCOM4 5): WriterEditorTextView\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Writer/WriterTextView.swift"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d7cf12f700af36536a7ac8a8f5f2160f87ef9168f9331c83ce83bb157b3c172"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WriterViewModel (LCOM4 5): WriterViewModel\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Writer/WriterViewModel.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"30dba4bfe2cb0fb503dd99252dba1d2adcaf8dc90f4788541f21def7423ac106"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: OnDeviceToolContext (LCOM4 5): OnDeviceToolContext\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleAIOnDeviceTools.swift"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f22b766afbb80bbe5da3cb5065154d1eb0d921d13c951e74f542d90c36277f"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PNDiskStore (LCOM4 4): PNDiskStore\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PlanetCLI/PNDiskStore.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"5055f1ac76cd0e4e8c1c7961dc039ae450d2d6e65d496b3e679d720249b377fc"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PlanetAPIService (LCOM4 4): PlanetAPIService\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/API/PlanetAPIService.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c7f855ae9fc79f8c3c89fb4764b180249ff47c58868a4346838420ebd62ec86"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MyArticleModel (LCOM4 4): MyArticleModel\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/MyArticleModel.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae71b2c36db04f8abb49d4fac37ac033128bfc3b2624a11d723059b45ce7f30e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PlanetStore (LCOM4 4): PlanetStore\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/PlanetStore.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7218c93d2513731517717e1017d4e60979b961a4a6aa446af5e16049e5e581c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: KeyboardShortcutHelper (LCOM4 4): KeyboardShortcutHelper\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Helper/KeyboardShortcutHelper.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce5c61084fd6921eab5d181791a363e270e215c4601b3ccff89d8faecde8223c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: IPFSState (LCOM4 4): IPFSState\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/IPFS/IPFSState.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e429431221f97cd9465da4a3b4b9f77a10087f4e6d85cadefa04cbd01d9a1a3"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WriterTitleEditorTextView (LCOM4 4): WriterTitleEditorTextView\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Writer/WriterTitleView.swift"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"144276022fb9490a82f603eb9556ab41105c37c502d49f4070dbe42f30c95735"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ArticleAILinkOnlyTextView (LCOM4 4): ArticleAILinkOnlyTextView\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/ArticleAIChatView.swift"},"region":{"startLine":7326}}}],"partialFingerprints":{"codehealthFindingId/v1":"827c112598905aabbe35f6bf4dc4c8e9757771c1441eaa8d1d1202a136a7f724"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PlanetAIChatWindowController (LCOM4 4): PlanetAIChatWindowController\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Articles/PlanetAIChatWindowController.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"0634895f9eed9ae017d4e5c680c4f22fac9dd1b40e898e59eed86d2acbe3dd81"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Coordinator (LCOM4 4): Coordinator\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Components/CLTextFieldView.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0aae68dddce63e7df1514d8da6eae11bba3c43e2aba4d153dc3a0c0ba9de62c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Coordinator (LCOM4 4): Coordinator\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Labs/Published Folders/Dashboard/PFDashboardContentView.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"c82db7f4c4ee94a99824d3d0be74a99e816066f7043b28b7504a3d8f4876016a"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testDiskAttachmentsMatchAppPipeline: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PlanetCLITests/PNDiskStoreTests.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"854820d8deb0f74b0aee748206b3abc57386a85bbf49574dcad24dc1f28fe27d"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: codemirror-swiftui: Dependency \u0060codemirror-swiftui\u0060 is resolved in Planet.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved against branch \u0060master\u0060 rather than a released version \u2014 the project pins no immutable point, so resolving the packages again moves this dependency to whatever that branch holds at the time. Change the dependency rule in Xcode to a version requirement, or to an exact commit."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"eef4d117d4286392873742e0ddbb6715f4b38325e546197cb8cc98b1f2e6f2fd"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: ensdatakit: Dependency \u0060ensdatakit\u0060 is resolved in Planet.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved against branch \u0060main\u0060 rather than a released version \u2014 the project pins no immutable point, so resolving the packages again moves this dependency to whatever that branch holds at the time. Change the dependency rule in Xcode to a version requirement, or to an exact commit."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"13cab9f77bc58852b37fadea095afb1a8c88a201484c12d15cc23894b64d1afc"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: planetsitetemplates: Dependency \u0060planetsitetemplates\u0060 is resolved in Planet.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved against branch \u0060main\u0060 rather than a released version \u2014 the project pins no immutable point, so resolving the packages again moves this dependency to whatever that branch holds at the time. Change the dependency rule in Xcode to a version requirement, or to an exact commit."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"68d4f800a58051643235c0bbd11c7fabb29e5b958f79dde11044592b8aa5a2ee"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: stencil: Dependency \u0060stencil\u0060 is resolved in Planet.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved against branch \u0060master\u0060 rather than a released version \u2014 the project pins no immutable point, so resolving the packages again moves this dependency to whatever that branch holds at the time. Change the dependency rule in Xcode to a version requirement, or to an exact commit."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c964abbea6035678594b19f3a21f7592127c884ca007ab09e819fcbcf38f8898"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: walletconnectswift: Dependency \u0060walletconnectswift\u0060 is resolved in Planet.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved against branch \u0060master\u0060 rather than a released version \u2014 the project pins no immutable point, so resolving the packages again moves this dependency to whatever that branch holds at the time. Change the dependency rule in Xcode to a version requirement, or to an exact commit."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"28dc2a1545341a3196fd92ba3e9e2515259c6fd31160bbdff54f54886154278d"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 64 significant file(s) lose their only recent owner: Planet/Views/Articles/ArticleAIChatView.swift, Planet/Entities/MyPlanetModel.swift, Planet/Entities/FollowingPlanetModel.swift, Planet/Entities/MyPlanetModel\u002BAggregate.swift, PlanetCLI/PNCommandRunner.swift, Planet/Entities/PlanetStore.swift, Planet/Views/Articles/ArticleView.swift, PlanetCLI/PNDiskStore.swift (\u002B56 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1091d1bddb22863db15850b2976faea00d763a69f05b0b1e3af90bce3c6bf2c0"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 1 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (66 single-owned of 172 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated and example/demo trees and test files identified by path convention, largest first; 172 of the 268 production source files in this repository met that bar). They are anonymized user #2 (2 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: What if the saveToArticle operation is a Task.detached? \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":"Planet/API/PlanetAPIController.swift"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"77146faaeb684f6caba7a02217cd3df6389993fc6db8304dbdfbc7f94a4d02d1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // MARK: TODO: handle downloads history. \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":"Planet/Downloads/PlanetDownloadsViewModel.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"87492ce470d45970fb81ed48762ade8f5b3a8d922ebc924c641b1500e3f1fb89"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Is this the best way to check if a planet is pinned? \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":"Planet/Entities/MyPlanetModel.swift"},"region":{"startLine":3977}}}],"partialFingerprints":{"codehealthFindingId/v1":"c896db48e09f70e9654d1d155352fc102fbb9a21e22da1e626e3b6a170b1fafa"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Extract summary \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":"Planet/Entities/MyPlanetModel\u002BAggregate.swift"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"33538e43c82294206ec942408ca0352eaa14fe3ef6af373803e15b1a0f2b6747"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Reuse original ID is dangerous if user do not understand the full implications \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":"Planet/Entities/MyPlanetModel\u002BAggregate.swift"},"region":{"startLine":1016}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdcbcaeff157cb4c148bf3bef454ae3b1d616d5628279d77d8a8a17a8ac0a01b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Use more runtime flags to optimize the time to rebuild Planet \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":"Planet/Entities/MyArticleModel.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd8eaa5018696499c4f7f499eb46ab39fb013e082aa0e8620a59c1293e194400"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Fix a potential crash 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":"Planet/Entities/MyArticleModel\u002BSavePublic.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"c013d41a4e76228e1573f8c889804834eca6014abf9a3c5c07b55fdfa313334a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Fix how type 0 planet was mishandled as a dnslink \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":"Planet/Entities/FollowingArticleModel.swift"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbaa682d132d97958350629084c9d0fdedcf60392d71ae2408d00deb584b9d5d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This issue still exists as of 2024-Feb-21 \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":"Planet/Entities/FollowingArticleModel.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf4ef949683411b9d4d0e76f3af584e4a4dd784a57202ce04b1670130d71312"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: SwiftUI Image has \u0060resizable\u0060 and \u0060aspectRatio\u0060 modifier, check if these options can resize image for us \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":"Planet/Helper/ViewUtils.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"a06511ea45520e61c0d1846856a2f82f645938d0340872f1e7432d13b9e81c94"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Make an UI for this choice \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":"Planet/Helper/FeedUtils.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"03514a9de47e10fd1dd8841e3935c043f80a2be14f3746ebb79345e7070d1f8a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Should prefer HTML from the feed \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":"Planet/Helper/FeedUtils.swift"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"981144dfcc8eb5f12f42b23b025f0bccab9347836e4e02def922bcb0a1dac939"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Extract og:image and put it 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":"Planet/Helper/FeedUtils.swift"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a114d0a412ca4cee45f012c6631c3c66c389f725b6a7744004713d2acb1984d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Control this with a xcconfig \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":"Planet/Helper/Extensions.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7a5b13ad22f3a868691053b107a98242b90e2c9c05c3fcc6918db872abf6eab"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: What if user simply pastes an http:// or https:// link?"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/IPFS/Open Views/IPFSOpenView.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d5362f9c66a4a978addfb61844029eafc1d12d848d44c4223c7596ca5b22f7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Support tags in Quick Post \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":"Planet/Labs/Quick Post/QuickPostView.swift"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"fceca7bcc807eaf0fbef7fe3c846e31a22a3f8acb42a53f1b48c27eb0e4d719e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Save the transaction \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":"Planet/Labs/Wallet/WalletManager.swift"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8993b9b76df09a64a43553c8857fd656a6fd6361f880c76d3b657d2c3cd372c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: code for handling Sign \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":"Planet/Labs/Wallet/WalletManager.swift"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3793d17b006c77a4e537a928aea7c723b21370efeec0c8161df63768e7b9ed1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Since Sign can work with MetaMask, we\u0027ll remove Auth after Sign is fully working. \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":"Planet/Labs/Wallet/WalletManager.swift"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b193e9cf81bbeb68858ea3f964b695257bd798fa8820a75f7e65b4e03176f30"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: If we want to allow users to switch network, we need to add this back, and pass the chain ID to the send function \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":"Planet/Labs/Wallet/TipSelectView.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"07f84f822ae8c521ac6e953cad9cb35a6c8f4dac514d94a92335d9e815bd0fb4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: handle mp3 \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":"Planet/Quick Share/PlanetQuickShareViewModel.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"65071b8f2e5c732cec37ee532c6d543fc10ceba215040b9ddf2c789c0af73723"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: move this func to MyPlanetModel \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":"Planet/Quick Share/PlanetQuickShareView.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"2631449a791a96fad35217fd055641aadbe128b8196f4b36474e743596d5ecb8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Consolidate duplicated code in MyArticleItemView \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":"Planet/Quick Share/PlanetQuickShareView.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec0d0192d66aa2d732f1a60ad92f80615c14383f801b1d5a832074c61733eb38"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Needs a general method for opening template in various installed apps. \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":"Planet/TemplateBrowser/TemplateBrowserSidebar.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"06d20d8f79e81ad1b2ad74fd36627058d7097a0566082a684b786a9cef153f2d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: A more detailed documentation about the template structure \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":"Planet/TemplateBrowser/Template.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f25073fbe85fa06e2bbab9ae190783cca2ecbd76aff1dba93c58f700cf8dfdf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Include an example 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":"Planet/Views/Articles/ArticleWebViewModel.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae8e210740f1b2f9ed8cb27c243692c84b35b5c91c2d573da25a091315fd7727"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Include an example URL 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":"Planet/Views/Articles/ArticleWebViewModel.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fa7d8fbfbeaa336d86177fa0e3163ca278dbaa0eb9a6c3d455093f668627ffc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Include an example URL 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":"Planet/Views/Articles/ArticleWebViewModel.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"380d9524ab7291e230f2bc153b64967e67b2a7a25531606415de72f2039d8d6b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Include an example URL 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":"Planet/Views/Articles/ArticleWebViewModel.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6487a821d936e6d267630de16646e4650b2fc56d0148712d35aa1bce8752b68"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // MARK: TODO: detect running downloads before start new one. \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":"Planet/Views/Articles/ArticleWebView.swift"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e0a44293971549eecdfe4d23de5cf8636fe5fc03d9bde7d1dd216332216fe2c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // MARK: TODO: handle failed download task. \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":"Planet/Views/Articles/ArticleWebView.swift"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"63b9af02c229391ceea872e0fa12f8445106a87be231af87df499315c31de4f5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // MARK: TODO: should hide download button if any \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":"Planet/Views/Articles/ArticleView.swift"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"109a166954f81fd53dbf67b65f79ced5daaca7cf5ae4b393c1f0e354fa292f2d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: - use a better signal to update progress \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":"Planet/Views/My/RebuildProgressView.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"2656da005b900ddcee172902985f5261ef03c6b78f58f662eb0bbac9a34de899"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Better sanity check goes 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":"Planet/Views/My/MyPlanetEditView.swift"},"region":{"startLine":1404}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ca6b70b0e4ad7516f3e326787331deedcbfceb5fd2003b95e0391cc5e27890e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // MARK: TODO: Add a offset if there\u0027s an opened writer window in the center. \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":"Planet/Writer/WriterWindow.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"72d846a8b5be63f7c3b92930fea2df552f72ed891ae420db934b3bd8848f66ff"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Some duplicated code here, needs to be refactored \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":"PlanetLite/AppSidebarItemView.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea86b2bfd4b1266083bdb98baada3c3b3ce8b92cc676fa5760fb299059909f6a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add an illustration 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":"PlanetLite/AppContentView.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"badbbb9446cfe5a5ae74d3f3c3c0a0c90723bf0626bed73fecfef796ef81ecb6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Audio support \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":"PlanetLite/AppContentView.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f93a45c0347d6f603611212c202b1e754514e196f83450fed124e852f2bed97"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Rename this to QuickShareDropDelegate and use it in ArticleList too \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":"PlanetLite/AppContentDropDelegate.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4aec98877680f63496e321c55abd55f4d6935769fa2fef8e850086af3483bce"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d2bea044ff79d7d275f5a91a6e2f548586178eaf480274c33960ad020c854631"}},{"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":"39aae15e92d3ce463a9a4bc60b97a8770ead65231e301e6c44f4c8252fd9ac29"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9d4568a4574f71449ebe5289b22bb4b59e3ad1680c7e632b8dc6f64b6f104571"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"638cac5a63d301d12e6694bdbefdb651d2f0521158fd6fbe48158cd5f3b45e08"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e706be5fa117846fdc39916cba636a039a114cc1fb5ee52b95659973985712ad"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f3ac134459312694f62241b7fc6f5082d3ae29afced306f95fe4e70030d60668"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8c502953f527a175963a2c72c426dfc6c81ee455059f3fe0af1030c6770f1148"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c2ff77664eb344e8d2ee6d287db3f711cf4a71b25b208ed6dfb6f65a680b590f"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"15034b5b013d3ab28e131762cee8d99d1413e678e0690a1ac2215f92deee4aac"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f87fe096479f42a94fde84d16677b360da6c5aad02e76217f371e90df184251d"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"56a70e76c15cac65ec65ee083e90f03a8c446f5315be3280b6831061e179c462"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5f10390393c7fe23a8a860980a91a3148e3a7bed6ac89f85c0ddccb62428ad09"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6a5271af0c15b7d94c6a0e9321bf98c353ad55cd55d847131f8cf1c3b6633a92"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"55d1884b72610edc273921d461a3b74e8f152327f4f167ba9828823a3c461f22"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"838838654f986c0b9c09797db4561277682845356d5f215c2fbb6851260fd6c4"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9f3218a7cc2d22ca4634bae79eafb84b1da0393ef386708254af7ecf86e02fe8"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"818cdfd222098dd4783792ef972d501de4825dedc791d0d8b9a3ba1983d58335"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"87d4359be57b9387d16bf83447011f5fb41cea27cb1be133022078c7d8c6b9b4"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"225bf991fce2cb1b2c138e88bb8d25547c3d83c0880ce3842214f611728224c1"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e7f2e6cfacf4f3eb7bda51461e72ded335b506515865edb6629187fcd47e3320"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"026f70ff3230175a9c88b3c32f3409b95ff426dcc0821cc8c3c5b04c8e6e2698"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bf6dbde2ab06471b1c0e4aa7d431f40d751ae5102f5760aee15d5d504aca9b04"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b2c35af8dcc78e98a0d76c42727c15dc63cee3024a4a48c7636672f6eb7dd6ae"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8bf191448d12e25cea779f1e1c764a8ae8ee5f2b48bf605b5664f27524e1a0eb"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a9c75d6f909a596a886f7f050ad72604489bd8ae779642cdbaf74cb3e50577d6"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"48c3e6290caec16c08bc37657441c0e54538d7ecadd2ece8b190ca42b2da323e"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2f5673ad19bd5f6d3596ece35d6a655c2a4679dcb849efe81b7ec9fe846073dd"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7f2450f9f314be793c43f8c7543256fc60628be547afaab262d4a000af87ca57"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bdc4840671bcc82487def4b88b7f2fc1ab4be9367d72e481fcf9553c2a6c954f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e55fe010223181323a9e639b37a99c5debda98bdddf7854551587ea24ac214a7"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8c1308468587aac501a0ec5420e3249d8c9e6f5e9cba311500cb04ae4f6e2c07"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8a4deeb54ed1f86dcd758c4ee0b1ff2e56448c0f26d8a2d6a58afeabe8686d96"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2b988eed96902826bff5f844a4a6cb090554a3d3e500da7faf1ad858ec881d10"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8eea83e850d909f92c5805e2050d069fcff9c0c567f2bf9c8ca1f6948a838456"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8542177c13c25e5ff4287d9e9ca4bb1756434f70e3c55a7585b87658f21a26d7"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f0d176dfc2df38bdf2c657b7d9b17df2558094467715a8393a976bc843545804"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"69a563dc7a7dccbb77a3297311a79845f1e8bbdc356ece597458c087ec91f8cd"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"82686494f445bc1cb7a7d2558de5ed7b0feac960a487e9b7dc4c01a625d2982b"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0c6517b520223bc38b81a63841f36ffe19b5a5fb3de44a450a099cce17558f09"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"044146c1c46b18d03ce4f65e115fbfe1ab020ccce0bb0f5a5a58179aa1d09123"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ff9a0af5d4023425ec33c3e5f40647887624fff7fe4059b7a009c21fdc3a359d"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a4865591739c944a91e4eb556f7b47f73868880165c1b74aaa703106649e2a22"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"31e15292ee7781495cff3025f3779e23aded0d07be93120b45c65e1d6518c389"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1bc914839f9c9daed6eb9d98801cf20f47c0e4061d01ac7479e7339d647095fb"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a623502b951ace97dbbe57c8e8c031fda0ef36945a3d42e769fb23b79e961170"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9580a343d14cd8b01a5edeb14a403a4868b91ede42ba175f1bb8882ff8ebaf69"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ee67355b85057054f74519e182f133227d120f4edf0696d138d3fc2c1c8ae903"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"957b150e90b8de065e3fab913d6db8aa84cc38085b4826b482eaabde0c4cf347"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e28424fedc360265a4515c4fa929e6bf297e08d2621025a4f057e7095c665354"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ed4ba7d09c9bfdc7014b7ab37a9e3c289c6aea67d5a27641c26bddb0bb15019f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"78d3a68cecb8bdb5faa2ba41b175d85a554f2f6a504f773d31c3e190511cbbd6"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"47a7f19038b304b26edbc27e4d03151673d0f5a417e03376907e8d70047a37ce"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"81b12190ff40e23d3dd2cae5f1d5988e6d9f3cc74fb5b054668577098b92cb0d"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3020634836adfc226cee981cff5e92b17ff1654812eed9f641aff40f72f987da"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cfbc47b637eeeeb59dd5ede1b6acf6849f421c1a8d111eb618a5459aaa49f96d"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f0cb746c32ab4fe842646fce71d388b92170fd2ae0e11040e38d26cee9126bab"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6bff9fea3b4ec0e7937e9fbcddb40068026e8e3d3a856bff0932d79b1831eb8a"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6f732ed262687cc9399512d8698eea41ceb8900e2feb9507b3f45fe245b49f9e"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7c98fc4bdc449ea57e84a74734f25566760a001ac729e49ddd9b0a08dc07984a"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0273f1f8ef684bb72883804533639131f96c0120292ff8d6d44ba088a15dfad8"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ea0ec41ecd16c70f6e5c632a1dbfaae7b5e7a243e16f30fda14a885745394555"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9c3e141e45e49cfdb477ed33095f46c876ce3d185419c56f3c2a68f71fefe7bc"},"taxa":[{"id":"CWE-311","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ee75f3e6f22b7dc82afb57c3fae0e444c4c43228d51c2b54549550a85cef054a"},"taxa":[{"id":"CWE-311","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"017f103a03176532e72c03fc7955a249da0d0fbb16091bd66a05e5cc36d562d0"},"taxa":[{"id":"CWE-311","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"538ba5a0f3e35dfa1ee152eaec88b9e3ceb2442ebe26e254f0031edc9c7d5991"},"taxa":[{"id":"CWE-311","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"86b23b798404c2c3f2a2124d4b5d8d70cec7c0ac6164a35ab28f63c81eec1407"},"taxa":[{"id":"CWE-311","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"682a3fcefdbc9d734e9d13b0c56ce915d80893612740c481efdcab8eb9642f15"},"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"}}]},{"ruleId":"D29","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":"57da6897c9fae2fc2b6f14766b045f8c664722c51dbae4e31e7dfdbb316cb7bf"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Labs/Published Folders/Dashboard/PFDashboardWindowController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"883ffd9ef64831d0b164d700f77a6a374053626e08c8c37f2b1874a2dedc916b"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 28 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than raised one row each \u2014 most significant first: Planet/Views/Articles/ArticleWebViewModel.swift, Planet/TemplateBrowser/Window Controller/TBWindowController.swift, Planet/IPFS/Status Views/IPFSTrafficChartView.swift, Planet/Helper/HttpRequest.swift, Planet/Labs/Published Folders/Dashboard/PFDashboardInspectorView.swift, Planet/Labs/Published Folders/Dashboard/PFDashboardContentView.swift, Planet/Writer/AttachmentThumbnailView.swift, PlanetLite/CroptopApp.swift (and 20 more) (29 orphaned of 172 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated and example/demo trees and test files identified by path convention, largest first; 172 of the 268 production source files in this repository met that bar). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: PFDashboardContentView.swift \u2194 PFDashboardWindowController.swift: \u0060Planet/Labs/Published Folders/Dashboard/PFDashboardContentView.swift\u0060 and \u0060Planet/Labs/Published Folders/Dashboard/PFDashboardWindowController.swift\u0060 change together 80% of the time (8 of the 10 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 8 shared commits counted here, the most recent 3 are \u0060134a3601\u0060 Separate IPFS daemon process.; \u006041edc5a2\u0060 Add auto-refresh logic to dashboard window titles.; \u0060d85c9d29\u0060 Fixed some crashes in dashboard navigation when daemon was not online. \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Labs/Published Folders/Dashboard/PFDashboardContentView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5a4619d4dd545d3e778e333a7614002dd50ce655f7e6ef9169f786523afcc3b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: MyArticleModel\u002BSave.swift \u2194 MyArticleModel\u002BSavePublic.swift: \u0060Planet/Entities/MyArticleModel\u002BSave.swift\u0060 and \u0060Planet/Entities/MyArticleModel\u002BSavePublic.swift\u0060 change together 73% of the time (11 of the 15 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). 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 11 shared commits counted here, the most recent 3 are \u00607d92bb46\u0060 Fix article.md not saved reliably by making saveMarkdown synchronous; \u0060bbba0436\u0060 Improve rebuild publishing and rendering performance; \u0060fab55465\u0060 Restore full CPU utilization during rebuild \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/MyArticleModel\u002BSave.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a203237172b5db6df99178cedad281d74fdc21ab83f81f2ef2d570da6fca5388"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: PFDashboardView.swift \u2194 PFDashboardWindowController.swift: \u0060Planet/Labs/Published Folders/Dashboard/PFDashboardView.swift\u0060 and \u0060Planet/Labs/Published Folders/Dashboard/PFDashboardWindowController.swift\u0060 change together 73% of the time (8 of the 11 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 8 shared commits counted here, the most recent 3 are \u0060e8899268\u0060 Minor updates to last commit.; \u0060e4ec88c7\u0060 Improved preview logic for published folders dashboard.; \u006041edc5a2\u0060 Add auto-refresh logic to dashboard window titles. \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Labs/Published Folders/Dashboard/PFDashboardView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0131738f3431e85fdffe2419a2228b63ddd4ac57824f87b1361918aa1497c0e7"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: BackupMyPlanetModel.swift \u2194 MyPlanetEditView.swift: \u0060Planet/Entities/BackupMyPlanetModel.swift\u0060 and \u0060Planet/Views/My/MyPlanetEditView.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 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 9 shared commits counted here, the most recent 3 are \u006096833457\u0060 Add Cloudflare Pages publishing support; \u006009b036b9\u0060 Add SSH rsync as optional publishing destination (#453); \u00601191259f\u0060 Add Publishing settings tab with Publish as IPNS toggle \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/BackupMyPlanetModel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a55939f2f8ef6f19cffb088400a5a3081ef2f0c2807d64aaf91538ede38b298"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: FollowingArticleItemView.swift \u2194 MyArticleItemView.swift: \u0060Planet/Views/Following/FollowingArticleItemView.swift\u0060 and \u0060Planet/Views/My/MyArticleItemView.swift\u0060 change together 62% of the time (18 of the 29 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). 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 18 shared commits counted here, the most recent 3 are \u00604181d16a\u0060 Fix star action localization; \u006084f80f25\u0060 Add \u0022Find Related Articles\u0022 using NLEmbedding vector similarity; \u0060d0b239f8\u0060 Optimize article list performance for unread view with many items \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Views/Following/FollowingArticleItemView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffcff08e12ea20475c67ef014649bf759ac17e9ce953d50bd77bcf58cb0b3a53"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: DraftModel.swift \u2194 WriterViewModel.swift: \u0060Planet/Entities/DraftModel.swift\u0060 and \u0060Planet/Writer/WriterViewModel.swift\u0060 change together 58% of the time (7 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). 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 7 shared commits counted here, the most recent 3 are \u00606cc94261\u0060 Add Revert to Original flow and compression status report for Writer \u2026; \u006014e6f3ed\u0060 When attaching images, convert .heic to .jpg; \u0060d3b2854e\u0060 Handle discard choice for draft \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/DraftModel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49025f6f3c5a41e460b2883f4909ddabf42829c32489e6cf4c97190897a1bf65"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: MyArticleModel\u002BSavePublic.swift \u2194 MyPlanetModel.swift: \u0060Planet/Entities/MyArticleModel\u002BSavePublic.swift\u0060 and \u0060Planet/Entities/MyPlanetModel.swift\u0060 change together 53% of the time (8 of the 15 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). 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 8 shared commits counted here, the most recent 3 are \u0060bbba0436\u0060 Improve rebuild publishing and rendering performance; \u0060fab55465\u0060 Restore full CPU utilization during rebuild; \u0060ceb2a69f\u0060 Use atomic writes for all persistent data and published content \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Entities/MyArticleModel\u002BSavePublic.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"43d63a53a129f814da1c3a27f48347ad367ed12d087db6978713cf01b8af28fa"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: IPFSDaemon.swift \u2194 PFDashboardContentView.swift: \u0060Planet/IPFS/IPFSDaemon.swift\u0060 and \u0060Planet/Labs/Published Folders/Dashboard/PFDashboardContentView.swift\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \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 5 shared commits counted here, the most recent 3 are \u0060134a3601\u0060 Separate IPFS daemon process.; \u0060eb5aa635\u0060 Folder navigation works as expected now.; \u006086604112\u0060 Add basic web view navigation, need a better way to handle edge cases\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/IPFS/IPFSDaemon.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d77c202e4abce104c64fb89cc5623265bb0d0cf385194595c6f5d0e9474b9b5f"}},{"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"}},{"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"}},{"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"}},{"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":"9658270ba49f37ed04e99ab1263b6393cd42aed8bdfb7aafd9fa1070f5491895"}},{"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":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Credits.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"d80025f5c56d14aef0403bde7ec39300ff771990155f1ee35efe1722d7e5c093"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Templates/NoSelection.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf9754775c0396a8174f2ddfb001fd0abdf5907db371dcf716803fc02e276b48"}},{"ruleId":"AC3","level":"error","message":{"text":"Document without a \u003Ctitle\u003E: A page with no \u003Ctitle\u003E gives no name in the tab, history or screen-reader page list. Add a descriptive \u003Ctitle\u003E in \u003Chead\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Templates/NoSelection.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0af4c4826e6454f3e9304e66cc9f917de89c29c3a5a8a4382806ac4cb8fa6ea"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Templates/NoSelection.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"774e3357bff4ceeef6711a796cece25bd0fb06635cf2441bb2d47d279cc864aa"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Templates/TemplatePlaceholder.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbbe0a23117e270bb018c62bb6762a1a37caac1b0094603240c0770765e7e28c"}},{"ruleId":"AC3","level":"error","message":{"text":"Document without a \u003Ctitle\u003E: A page with no \u003Ctitle\u003E gives no name in the tab, history or screen-reader page list. Add a descriptive \u003Ctitle\u003E in \u003Chead\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Templates/TemplatePlaceholder.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"55cc482d772409fd52157d3802d76993f4411617fc31eabb0540d507d736264e"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Templates/WriterBasic.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbdf1c71f8437cfa59f97fb6778ab9720b41a4054f17826098b4e2dba2792350"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: This stylesheet animates but never checks prefers-reduced-motion, so motion-sensitive users can\u0027t opt out. Wrap motion in @media (prefers-reduced-motion: no-preference)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Templates/TemplatePlaceholder.html"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d8c0a26804ddb8b31a1fdacb5b77a6be61f417d8ac97303d1c540a12db4f868"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (1.0:1): \u0060hr\u0060 sets color: #2b2b2d on background-color: #2b2b2d \u2014 1.0:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/Templates/WriterBasic.html"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"a900f3d2558d78b74a2edaa1db84b920b86a9bf4f587953e7b36b2e86c321237"}},{"ruleId":"AC7","level":"warning","message":{"text":"Accessibility enforcement below the top rung: No accessibility enforcement found \u2014 no accessibility linting at author time and no automated accessibility check in tests or CI. Add your UI toolkit\u0027s own accessibility assertion to the test suite (Flutter \u0060meetsGuideline\u0060, Espresso \u0060AccessibilityChecks\u0060, XCTest \u0060performAccessibilityAudit\u0060), then gate that test in the pipeline. What was searched, so you can tell an absence from a miss: the 5 markup file(s) this pass actually assessed, the linter configuration checked in beside them, and this repository\u0027s test and CI files \u2014 matched by name against the accessibility checkers this dimension carries. An audit run outside the repository, a hosted scanner, or a check whose name is not one of those, is not seen here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d46019b86eff5ddad9db289e6802ac158899e980df54c34f67722442787ead62"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful handler: PlanetAPIController: \u0060PlanetAPIController\u0060 serves requests (Vapor route handlers run concurrently \u2014 SwiftNIO serves one event loop per core and async handlers run on the cooperative thread pool \u2014 and every request shares the one \u0060PlanetAPIController\u0060 instance the router holds) but writes shared state outside any lock (PlanetStore.shared; e.g. \u0060PlanetStore.shared\u0060 in \u0060routeCreatePlanet\u0060 at line 628). Unsynchronised concurrent writes are a data race in Swift: an update is lost, and a concurrent Array or Dictionary write corrupts its storage."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Planet/API/PlanetAPIController.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"b06f3c0bf1630847cc7f2c27664914e3a13bd84d447dee44ef631eb13297799d"}},{"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":"M3","level":"note","message":{"text":"No src/ separation: Production code isn\u0027t grouped under a src/ folder \u2014 it\u0027s spread across several top-level directories, so there\u0027s no one place that says \u0027this is the product\u0027."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"fdf7f5b24e313364d10170a5c2542959902fe0d26ed70edef3eaa10ec5bcdb1d"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: README claims a sandboxed macOS app built with SwiftUI 3 but the evidence shows no such project \u2014 searched for: \u0060SwiftUI 3\u0060. Each was matched case- and separator-insensitively against file and directory NAMES anywhere in the tree, and against the CONTENTS of manifest files (package.json, *.csproj, *.props, *.slnx, *.yml, Dockerfile); the README\u0027s own prose never counts, so a claim is never refuted by merely being made. Nothing outside that search was read \u2014 a footprint living only in a submodule, in a file type not listed here, or under a name none of those terms matches is not seen, and this row is then wrong."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"343bbbd51ceb8de7a9ff88d79f7c797abf9b5921f8727b67b4d0f4f8a22c5e49"}},{"ruleId":"P1","level":"note","message":{"text":"CI test execution not evidenced: A CI pipeline exists but no test-runner invocation (your stack\u0027s test command, or a test job) was found \u2014 changes may merge without the suite running."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"860902100b1c048f49c648730bdf23459de2d8ca6af82ef0ec593ecb3995a80c"}},{"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 26837 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":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060urllib.request.urlopen(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout. 3 of the 3 files that make outbound calls are unbounded; the first 3 are listed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/claude-code-skill/save_session.py"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d4812ad290645161a02b891f1d0618ffba68e831b7875282804181166f2108e"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.Session(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generate-sparkle-notes/planet.py"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e190c33261d68ef90112cf8679c8a7fc41fa3430188feddb44ea9b6913b1ac2"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060urllib.request.urlopen(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/save-session/scripts/save_session.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eb2e5d2f4f4344018ad82a4b5edcd0298fdc1c869c8273691828a856abe925e"}}],"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-1104","guid":"4c918cb5-b2a6-6c55-9963-a44ee464305e","name":"CWE-1104","shortDescription":{"text":"CWE-1104"},"helpUri":"https://cwe.mitre.org/data/definitions/1104.html"},{"id":"CWE-1329","guid":"f70f1c3f-4ccf-cb5e-bdd3-03ba4868d36d","name":"CWE-1329","shortDescription":{"text":"CWE-1329"},"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-214","guid":"b10ad120-fb22-1351-9348-aa23b453e815","name":"CWE-214","shortDescription":{"text":"CWE-214"},"helpUri":"https://cwe.mitre.org/data/definitions/214.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-311","guid":"51c30837-1e31-e25f-abf9-52b0cbfcbbae","name":"CWE-311","shortDescription":{"text":"CWE-311"},"helpUri":"https://cwe.mitre.org/data/definitions/311.html"},{"id":"CWE-319","guid":"7af97476-9f0d-4458-9163-3d2043918a1a","name":"CWE-319","shortDescription":{"text":"CWE-319"},"helpUri":"https://cwe.mitre.org/data/definitions/319.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"CWE-353","shortDescription":{"text":"CWE-353"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"CWE-522","shortDescription":{"text":"CWE-522"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-532","guid":"1cd8877a-76e8-ce54-b40b-779af23364a0","name":"CWE-532","shortDescription":{"text":"CWE-532"},"helpUri":"https://cwe.mitre.org/data/definitions/532.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"CWE-829","shortDescription":{"text":"CWE-829"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":73,"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."]}]}