{"$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"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"DM4","name":"Rich vs anemic domain model","shortDescription":{"text":"Rich vs anemic domain model"},"helpUri":"https://codehealth.canine.dev/dimensions/DM4"},{"id":"DM5","name":"Encapsulated state","shortDescription":{"text":"Encapsulated state"},"helpUri":"https://codehealth.canine.dev/dimensions/DM5"},{"id":"DM6","name":"Domain \u2194 infrastructure boundary","shortDescription":{"text":"Domain \u2194 infrastructure boundary"},"helpUri":"https://codehealth.canine.dev/dimensions/DM6"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"Parser.parseEhSetting (cyclomatic 108): Parser.parseEhSetting has cyclomatic complexity 108 (threshold 15). Of this number, 97 points are the body\u0027s own statements and 11 belong to 5 function items inside it that branch. 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: EhPanda/App/Tools/Parser.swift holds 10 of the 30 methods over the threshold \u2014 including the worst \u2014 and 181 of the 604 points over it (30%), 2.2\u00D7 the next-largest file (EhPanda/View/Reading/ReadingReducer.swift at 81). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/App/Tools/Parser.swift"},"region":{"startLine":1053}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5df6203c2dc261d24d73f3574ba172db93278e600cd65bd95b5a00719d3c42a"}},{"ruleId":"D1","level":"warning","message":{"text":"ReadingReducer.body (cyclomatic 96): ReadingReducer.body has cyclomatic complexity 96 (threshold 15). Of this number, 93 points are the body\u0027s own statements and 3 belong to 2 function items inside it that branch. 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":"EhPanda/View/Reading/ReadingReducer.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a998f3f91c9f0d568ffbb12765afc4d559ee358178adbec9d845d125abe0317"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingReducer.body (cyclomatic 77): SettingReducer.body has cyclomatic complexity 77 (threshold 15). Of this number, 74 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Setting/SettingReducer.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"29b8915ccf8c4e4258d13a8713d8f1d8ac38511d65ea986bd626b0e57c2f3b00"}},{"ruleId":"D1","level":"warning","message":{"text":"DetailReducer.coreReducer (cyclomatic 66): DetailReducer.coreReducer has cyclomatic complexity 66 (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":"EhPanda/View/Detail/DetailReducer.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a5c0a2e9dbae5aa72555b8d53324bb05507a7afbe8fd5b641dd009ea1b64053"}},{"ruleId":"D1","level":"warning","message":{"text":"AppReducer.body (cyclomatic 44): AppReducer.body 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":"EhPanda/DataFlow/AppReducer.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e914e230958c0324d63356a1b01d076a804a8a2a048323e9a72dbf94e7923cb"}},{"ruleId":"D1","level":"warning","message":{"text":"HomeReducer.body (cyclomatic 38): HomeReducer.body has cyclomatic complexity 38 (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":"EhPanda/View/Home/HomeReducer.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"e66cdadea6a6410fc23ec75c5fd0c0e5036c08d9e0f2e8b40fa819c13a68d057"}},{"ruleId":"D1","level":"warning","message":{"text":"CommentsReducer.body (cyclomatic 38): CommentsReducer.body has cyclomatic complexity 38 (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":"EhPanda/View/Detail/Comments/CommentsReducer.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5474924dc0c82ebbf4588cfdddeb2ca977fa7cce4da73c1be23d2f6ea93f8c4"}},{"ruleId":"D1","level":"warning","message":{"text":"URL.applyingFilter (cyclomatic 36): URL.applyingFilter has cyclomatic complexity 36 (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":"EhPanda/App/Tools/Utilities/URLUtil.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cc993cbce15241fb70bfe00b18f0f88d6181bb79d467ae087cea5b866b3da30"}},{"ruleId":"D1","level":"warning","message":{"text":"Parser.parseGalleryDetail (cyclomatic 36): Parser.parseGalleryDetail has cyclomatic complexity 36 (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. This shape REPEATS in the file: one other method here (Parser.parseGalleryDetail::parseInfoPanel) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: EhPanda/App/Tools/Parser.swift holds 10 of the 30 methods over the threshold \u2014 including the worst \u2014 and 181 of the 604 points over it (30%), 2.2\u00D7 the next-largest file (EhPanda/View/Reading/ReadingReducer.swift at 81). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/App/Tools/Parser.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e185ac6dfd0edbe9ade7f86bc35c0b215ddad1d590201c5c32c26e4f4314a87"}},{"ruleId":"D1","level":"warning","message":{"text":"ToplistsReducer.body (cyclomatic 35): ToplistsReducer.body has cyclomatic complexity 35 (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":"EhPanda/View/Home/Toplists/ToplistsReducer.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1389e0d4f5eb0427c58bbbf44cb36796d15807a9ed1b7ab95647e667ee905b7"}},{"ruleId":"D1","level":"warning","message":{"text":"Parser.parseCommentContent (cyclomatic 32): Parser.parseCommentContent 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: EhPanda/App/Tools/Parser.swift holds 10 of the 30 methods over the threshold \u2014 including the worst \u2014 and 181 of the 604 points over it (30%), 2.2\u00D7 the next-largest file (EhPanda/View/Reading/ReadingReducer.swift at 81). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/App/Tools/Parser.swift"},"region":{"startLine":1561}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d896a2821ef0b3632a9323f923951f9ea4750b65be6e32271736b6ccea991e"}},{"ruleId":"D1","level":"warning","message":{"text":"FavoritesReducer.body (cyclomatic 31): FavoritesReducer.body 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":"EhPanda/View/Favorites/FavoritesReducer.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"e835116503fef966fde6be4b356f349d4232581c7dca39efcb82735366549697"}},{"ruleId":"D1","level":"warning","message":{"text":"SearchReducer.body (cyclomatic 29): SearchReducer.body 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":"EhPanda/View/Search/SearchReducer.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"df6a1e0c59ec8970304e9be37654d4a55c5b8124a5f9754df57822f1c18078d5"}},{"ruleId":"D1","level":"warning","message":{"text":"DetailSearchReducer.body (cyclomatic 29): DetailSearchReducer.body 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":"EhPanda/View/Detail/DetailSearch/DetailSearchReducer.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd3a4e5e42ed676aeb61c212679fcdd8c191128a52858ca18f6f86cb0480939a"}},{"ruleId":"D1","level":"warning","message":{"text":"WatchedReducer.body (cyclomatic 29): WatchedReducer.body 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":"EhPanda/View/Home/Watched/WatchedReducer.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbb2a43dac9787d97b53c9d613f816ce030e56a254f3784ad5e18a3513d1de3c"}},{"ruleId":"D1","level":"warning","message":{"text":"ArchivesReducer.body (cyclomatic 28): ArchivesReducer.body has cyclomatic complexity 28 (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":"EhPanda/View/Detail/Archives/ArchivesReducer.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"13d361e45bc19e085192a7a015c7d50b897318efdc7f8fc1a8446303f45879fa"}},{"ruleId":"D1","level":"warning","message":{"text":"AppRouteReducer.body (cyclomatic 27): AppRouteReducer.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":"EhPanda/DataFlow/AppRouteReducer.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c53429cf9b6f60e0c6fd50d97b8e0c9d646d7ef256ec9a61e73b2f3943d898b"}},{"ruleId":"D1","level":"warning","message":{"text":"Parser.parseGalleryTorrents (cyclomatic 26): Parser.parseGalleryTorrents has cyclomatic complexity 26 (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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: EhPanda/App/Tools/Parser.swift holds 10 of the 30 methods over the threshold \u2014 including the worst \u2014 and 181 of the 604 points over it (30%), 2.2\u00D7 the next-largest file (EhPanda/View/Reading/ReadingReducer.swift at 81). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/App/Tools/Parser.swift"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"8084159231996623bb268b7dab90bea5d7e90e64177f8e4233451751f685c16f"}},{"ruleId":"D1","level":"warning","message":{"text":"FrontpageReducer.body (cyclomatic 26): FrontpageReducer.body has cyclomatic complexity 26 (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":"EhPanda/View/Home/Frontpage/FrontpageReducer.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1185f4d0948fb8a1650537caff67689c6fe92ea37001764afaed77390516586"}},{"ruleId":"D1","level":"warning","message":{"text":"Parser.parseGalleries::parseThumbnailPanel (cyclomatic 25): Parser.parseGalleries::parseThumbnailPanel has cyclomatic complexity 25 (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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: EhPanda/App/Tools/Parser.swift holds 10 of the 30 methods over the threshold \u2014 including the worst \u2014 and 181 of the 604 points over it (30%), 2.2\u00D7 the next-largest file (EhPanda/View/Reading/ReadingReducer.swift at 81). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/App/Tools/Parser.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dc7bf3f247f8e72db0992b0d30394380de9efdd0715fe86725ec256529b3de4"}},{"ruleId":"D1","level":"warning","message":{"text":"Parser.parsePreviewURLs (cyclomatic 25): Parser.parsePreviewURLs has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 3 of the 25 points are its own statements and the rest belongs to 2 function items inside it that branch (parseCombinedPreviewURLs, parseStandalonePreviewURLs). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: EhPanda/App/Tools/Parser.swift holds 10 of the 30 methods over the threshold \u2014 including the worst \u2014 and 181 of the 604 points over it (30%), 2.2\u00D7 the next-largest file (EhPanda/View/Reading/ReadingReducer.swift at 81). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/App/Tools/Parser.swift"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"29773b4abbcd3dcb075583d46a0f943f96cd445946c389232caf62d8afadde6a"}},{"ruleId":"D1","level":"warning","message":{"text":"Parser.parseGreeting (cyclomatic 23): Parser.parseGreeting has cyclomatic complexity 23 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: EhPanda/App/Tools/Parser.swift holds 10 of the 30 methods over the threshold \u2014 including the worst \u2014 and 181 of the 604 points over it (30%), 2.2\u00D7 the next-largest file (EhPanda/View/Reading/ReadingReducer.swift at 81). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/App/Tools/Parser.swift"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"6683610aaa6aad02b201c2655cd3df0a637c8f88dbc4e322c59677dd82ad79af"}},{"ruleId":"D1","level":"warning","message":{"text":"PreviewsReducer.body (cyclomatic 23): PreviewsReducer.body has cyclomatic complexity 23 (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":"EhPanda/View/Detail/Previews/PreviewsReducer.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"96127b98168132f2d5e0ee654316faf230cd876c23be339386658e1d706571de"}},{"ruleId":"D1","level":"warning","message":{"text":"EhSettingReducer.body (cyclomatic 22): EhSettingReducer.body has cyclomatic complexity 22 (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":"EhPanda/View/Setting/EhSetting/EhSettingReducer.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dc22097375aa91567fe2ffe9fcd83a18206145b4618bd9f6113dabeccc1bbf0"}},{"ruleId":"D1","level":"warning","message":{"text":"Parser.parseComments (cyclomatic 21): Parser.parseComments 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: EhPanda/App/Tools/Parser.swift holds 10 of the 30 methods over the threshold \u2014 including the worst \u2014 and 181 of the 604 points over it (30%), 2.2\u00D7 the next-largest file (EhPanda/View/Reading/ReadingReducer.swift at 81). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/App/Tools/Parser.swift"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b68a8efbc21321b1d5289d442c9849f8dbfc65dd6d6fecf7b80c0b4c7d790bc"}},{"ruleId":"D1","level":"warning","message":{"text":"Parser.parseBanInterval (cyclomatic 18): Parser.parseBanInterval 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: EhPanda/App/Tools/Parser.swift holds 10 of the 30 methods over the threshold \u2014 including the worst \u2014 and 181 of the 604 points over it (30%), 2.2\u00D7 the next-largest file (EhPanda/View/Reading/ReadingReducer.swift at 81). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/App/Tools/Parser.swift"},"region":{"startLine":1774}}}],"partialFingerprints":{"codehealthFindingId/v1":"0311221c93bd2473f41d3e9340bc57af5953e8a8eca2c533e7220ea00f70bb35"}},{"ruleId":"D1","level":"warning","message":{"text":"Parser.parseGalleryDetail::parseInfoPanel (cyclomatic 17): Parser.parseGalleryDetail::parseInfoPanel 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. This shape REPEATS in the file: one other method here (Parser.parseGalleryDetail) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: EhPanda/App/Tools/Parser.swift holds 10 of the 30 methods over the threshold \u2014 including the worst \u2014 and 181 of the 604 points over it (30%), 2.2\u00D7 the next-largest file (EhPanda/View/Reading/ReadingReducer.swift at 81). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/App/Tools/Parser.swift"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cf9dfad02510114610b9e5bece2ee32e6bbd175a5b056c8d05ec86ebd6696a3"}},{"ruleId":"D1","level":"warning","message":{"text":"TorrentsReducer.body (cyclomatic 17): TorrentsReducer.body has cyclomatic complexity 17 (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":"EhPanda/View/Detail/Torrents/TorrentsReducer.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"33eec08e9b24d53f10406ccb301bf34f58cb1f34a0a4af9183eb47943a2d602a"}},{"ruleId":"D1","level":"warning","message":{"text":"SubmitEhSettingChangesRequest.publisher (cyclomatic 16): SubmitEhSettingChangesRequest.publisher has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/Network/Request.swift"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"feb164cabf499a0a607806b8281a2cda598494c668b792f250655613cad47c92"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveTextHandler.polygonsIntersecting (cyclomatic 16): LiveTextHandler.polygonsIntersecting 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":"EhPanda/View/Reading/Support/LiveTextHandler.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"2827cfa9ee336e50ddfea74887f69278f1b50ba342b7a585413e4d80b9870502"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser.parseEhSetting (cognitive 173): Parser.parseEhSetting has cognitive complexity 173 (threshold 15). Drivers by points: if/else 56 (116 pts), boolean chains 41, loops 8 (12 pts), match/switch 2 (4 pts) (nesting depth added 66). Of this number, 160 points are the body\u0027s own statements and 13 belong to 5 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass\u0027s cognitive complexity CONCENTRATES: EhPanda/App/Tools/Parser.swift holds 12 of the 31 methods over the threshold \u2014 including the worst \u2014 and 414 of the 834 points over it (50%), 4.5\u00D7 the next-largest file (EhPanda/View/Reading/ReadingReducer.swift at 91). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/App/Tools/Parser.swift"},"region":{"startLine":1053}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d2ddcb7d629d84342bb5ea46d45642a3a6bf21950b271f66c2cc0b98493f0fd"}},{"ruleId":"D2","level":"warning","message":{"text":"ReadingReducer.body (cognitive 106): ReadingReducer.body has cognitive complexity 106 (threshold 15). Drivers by points: if/else 34 (72 pts), match/switch 8 (16 pts), boolean chains 10, ternaries 3 (8 pts) (nesting depth added 51). Of this number, 101 points are the body\u0027s own statements and 5 belong to 2 function items inside it that branch. 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":"EhPanda/View/Reading/ReadingReducer.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"30555a59904c7d08e256787825831d2a40cdfbfae4e80b3f378a704dd82ee710"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingReducer.body (cognitive 80): SettingReducer.body has cognitive complexity 80 (threshold 15). Drivers by points: if/else 35 (65 pts), boolean chains 8, match/switch 3 (5 pts), ternaries 1 (2 pts) (nesting depth added 33). Of this number, 75 points are the body\u0027s own statements and 5 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Setting/SettingReducer.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"02a215f76f1fc02bf16230d4819eac48f0ec5cbcf2d6173b2740441e7cda6cde"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser.parseGalleryTorrents (cognitive 59): Parser.parseGalleryTorrents has cognitive complexity 59 (threshold 15). Drivers by points: if/else 9 (40 pts), boolean chains 13, loops 3 (6 pts) (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass\u0027s cognitive complexity CONCENTRATES: EhPanda/App/Tools/Parser.swift holds 12 of the 31 methods over the threshold \u2014 including the worst \u2014 and 414 of the 834 points over it (50%), 4.5\u00D7 the next-largest file (EhPanda/View/Reading/ReadingReducer.swift at 91). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/App/Tools/Parser.swift"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ab4322c6fd6f5009fa570fd4c4c9011895eb03160c0a52812c921359da0f9a8"}},{"ruleId":"D2","level":"warning","message":{"text":"AppReducer.body (cognitive 56): AppReducer.body has cognitive complexity 56 (threshold 15). Drivers by points: if/else 17 (39 pts), ternaries 5 (10 pts), match/switch 3 (6 pts), boolean chains 1 (nesting depth added 30). 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":"EhPanda/DataFlow/AppReducer.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"763c772500ec48e9266618fade210b20ab396eb3a33b12c73847e07925fdb661"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser.parseCommentContent (cognitive 55): Parser.parseCommentContent has cognitive complexity 55 (threshold 15). Drivers by points: if/else 20 (40 pts), boolean chains 12, loops 3 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass\u0027s cognitive complexity CONCENTRATES: EhPanda/App/Tools/Parser.swift holds 12 of the 31 methods over the threshold \u2014 including the worst \u2014 and 414 of the 834 points over it (50%), 4.5\u00D7 the next-largest file (EhPanda/View/Reading/ReadingReducer.swift at 91). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/App/Tools/Parser.swift"},"region":{"startLine":1561}}}],"partialFingerprints":{"codehealthFindingId/v1":"14f0bd7bf1f7629a6634d473ad729b4055caba9d5b90e5ccef16e1d182e821e0"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser.parseComments (cognitive 53): Parser.parseComments has cognitive complexity 53 (threshold 15). Drivers by points: if/else 9 (38 pts), boolean chains 8, loops 3 (7 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: EhPanda/App/Tools/Parser.swift holds 12 of the 31 methods over the threshold \u2014 including the worst \u2014 and 414 of the 834 points over it (50%), 4.5\u00D7 the next-largest file (EhPanda/View/Reading/ReadingReducer.swift at 91). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/App/Tools/Parser.swift"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a6242942045721d8d5e9f1d012a34a312af6af85f860534d1b0670efb01630d"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser.parseGalleryDetail (cognitive 45): Parser.parseGalleryDetail has cognitive complexity 45 (threshold 15). Drivers by points: if/else 39 (67 pts), boolean chains 37, ternaries 6 (10 pts), loops 6 (7 pts), 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. This shape REPEATS in the file: one other method here (Parser.parseGalleryDetail::parseInfoPanel) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass\u0027s cognitive complexity CONCENTRATES: EhPanda/App/Tools/Parser.swift holds 12 of the 31 methods over the threshold \u2014 including the worst \u2014 and 414 of the 834 points over it (50%), 4.5\u00D7 the next-largest file (EhPanda/View/Reading/ReadingReducer.swift at 91). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/App/Tools/Parser.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbfd4b331c7e48afb64ddfede7a3893a8c390de3783faa8141a338d14bd773ba"}},{"ruleId":"D2","level":"warning","message":{"text":"DetailReducer.coreReducer (cognitive 45): DetailReducer.coreReducer has cognitive complexity 45 (threshold 15). Drivers by points: if/else 16 (36 pts), boolean chains 4, match/switch 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 22). 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":"EhPanda/View/Detail/DetailReducer.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca2a6c869015917396ff79985b213e8655d229a030e2cf5cbdb9aababb1c3bfe"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser.parseGreeting (cognitive 42): Parser.parseGreeting has cognitive complexity 42 (threshold 15). Drivers by points: if/else 15 (31 pts), loops 4 (7 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 21). Of this number, 37 points are the body\u0027s own statements and 5 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass\u0027s cognitive complexity CONCENTRATES: EhPanda/App/Tools/Parser.swift holds 12 of the 31 methods over the threshold \u2014 including the worst \u2014 and 414 of the 834 points over it (50%), 4.5\u00D7 the next-largest file (EhPanda/View/Reading/ReadingReducer.swift at 91). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/App/Tools/Parser.swift"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"eed462b128d9ddcca94eff079320e33ea22c8814fa844cd2b2044e24c513fc29"}},{"ruleId":"D2","level":"warning","message":{"text":"URL.applyingFilter (cognitive 39): URL.applyingFilter has cognitive complexity 39 (threshold 15). Drivers by points: if/else 18 (24 pts), ternaries 10, boolean chains 3, match/switch 1 (2 pts) (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/App/Tools/Utilities/URLUtil.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"f708cc07c1654be2a79f7a4da186431dbfb6f7637a2a475bb5317bf6e1e1ca86"}},{"ruleId":"D2","level":"warning","message":{"text":"ToplistsReducer.body (cognitive 36): ToplistsReducer.body has cognitive complexity 36 (threshold 15). Drivers by points: if/else 11 (23 pts), boolean chains 5, match/switch 3 (5 pts), ternaries 2 (3 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":"EhPanda/View/Home/Toplists/ToplistsReducer.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"853041290d641a943d1ef9fa98522be50195a0ebc9841e78238e3b254508a4a8"}},{"ruleId":"D2","level":"warning","message":{"text":"FavoritesReducer.body (cognitive 34): FavoritesReducer.body has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (22 pts), match/switch 3 (5 pts), boolean chains 4, ternaries 2 (3 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":"EhPanda/View/Favorites/FavoritesReducer.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b74dc5eabbab1b50c9a244df3c9eb2c8aa2d78e68f694189f181fad8ad3792e"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser.parseGalleryArchive (cognitive 33): Parser.parseGalleryArchive has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (26 pts), boolean chains 4, loops 2 (3 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: EhPanda/App/Tools/Parser.swift holds 12 of the 31 methods over the threshold \u2014 including the worst \u2014 and 414 of the 834 points over it (50%), 4.5\u00D7 the next-largest file (EhPanda/View/Reading/ReadingReducer.swift at 91). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/App/Tools/Parser.swift"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b0f38e905fd83e51d902bad4874c23f82f472b4c5087d2cd2a77264fdc5b79e"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser.parseGalleryDetail::parseInfoPanel (cognitive 32): Parser.parseGalleryDetail::parseInfoPanel has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (30 pts), boolean chains 1, loops 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. This shape REPEATS in the file: one other method here (Parser.parseGalleryDetail) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass\u0027s cognitive complexity CONCENTRATES: EhPanda/App/Tools/Parser.swift holds 12 of the 31 methods over the threshold \u2014 including the worst \u2014 and 414 of the 834 points over it (50%), 4.5\u00D7 the next-largest file (EhPanda/View/Reading/ReadingReducer.swift at 91). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/App/Tools/Parser.swift"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"291ecde8763f794294bcd86de12fcf130d01f80ac1b9bc0457a296523b931c12"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveTextHandler.polygonsIntersecting (cognitive 32): LiveTextHandler.polygonsIntersecting has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (23 pts), boolean chains 6, loops 2 (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":"EhPanda/View/Reading/Support/LiveTextHandler.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"419dbd7b997e295093879dafee242e6af238bb6c62a984d81484bd0f3a1c4aba"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeReducer.body (cognitive 30): HomeReducer.body has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (20 pts), match/switch 4 (7 pts), ternaries 2 (3 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":"EhPanda/View/Home/HomeReducer.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"853891363e39541fd0ef9a724da42abd77be2a855753c9b0b4765f1d5d5adf33"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser.parseGalleries::parseThumbnailPanel (cognitive 29): Parser.parseGalleries::parseThumbnailPanel has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 16, if/else 7 (12 pts), loops 1 (nesting depth added 5). 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. This shape REPEATS in the file: one other method here (Parser.parseGalleries::parseGalleryTags) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass\u0027s cognitive complexity CONCENTRATES: EhPanda/App/Tools/Parser.swift holds 12 of the 31 methods over the threshold \u2014 including the worst \u2014 and 414 of the 834 points over it (50%), 4.5\u00D7 the next-largest file (EhPanda/View/Reading/ReadingReducer.swift at 91). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/App/Tools/Parser.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d470b2a801ab6b87bc5f8bcdeff875eefd84df38424a74830c14d5de53e30ec"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchReducer.body (cognitive 29): SearchReducer.body has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (18 pts), match/switch 3 (5 pts), boolean chains 3, ternaries 2 (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":"EhPanda/View/Search/SearchReducer.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"717b069be8e4769639d03c9d5814aa5d32dd0294cdc88bdf8393a43ae7624a52"}},{"ruleId":"D2","level":"warning","message":{"text":"ArchivesReducer.body (cognitive 29): ArchivesReducer.body has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (17 pts), match/switch 4 (8 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 13). 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":"EhPanda/View/Detail/Archives/ArchivesReducer.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc0328961d8df1019efc7fda22cb30de7e9dd9abdd4d4243ffdf703cd65a9f1a"}},{"ruleId":"D2","level":"warning","message":{"text":"DetailSearchReducer.body (cognitive 29): DetailSearchReducer.body has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (18 pts), match/switch 3 (5 pts), boolean chains 3, ternaries 2 (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":"EhPanda/View/Detail/DetailSearch/DetailSearchReducer.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a1e21d19485d4d077489411f1ccc92f8726c83a8d8df14349b2a913a0cf2030"}},{"ruleId":"D2","level":"warning","message":{"text":"CommentsReducer.body (cognitive 28): CommentsReducer.body has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (18 pts), ternaries 3 (5 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Detail/Comments/CommentsReducer.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3e3f9fbcbc7eac8b185112ed61f2d4116a80dfa9d4b69018d0c517b97ef63fb"}},{"ruleId":"D2","level":"warning","message":{"text":"WatchedReducer.body (cognitive 28): WatchedReducer.body has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (17 pts), match/switch 3 (5 pts), boolean chains 3, ternaries 2 (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":"EhPanda/View/Home/Watched/WatchedReducer.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"29f5137d54d75ea9dc90bfc2af6685c6dbad0f098764c14801715672accd3c81"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser.parsePreviewURLs (cognitive 26): Parser.parsePreviewURLs has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 18, if/else 3 (5 pts), loops 2, ternaries 1 (nesting depth added 2). Most of this is not in the body itself: 2 of the 26 points are its own statements and the rest belongs to 2 function items inside it that branch (parseCombinedPreviewURLs, parseStandalonePreviewURLs). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This file is where this pass\u0027s cognitive complexity CONCENTRATES: EhPanda/App/Tools/Parser.swift holds 12 of the 31 methods over the threshold \u2014 including the worst \u2014 and 414 of the 834 points over it (50%), 4.5\u00D7 the next-largest file (EhPanda/View/Reading/ReadingReducer.swift at 91). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/App/Tools/Parser.swift"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"25232c976d24b471d39487e52d70fbc950da022aa5913cde7462581ef32430ee"}},{"ruleId":"D2","level":"warning","message":{"text":"FrontpageReducer.body (cognitive 26): FrontpageReducer.body has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (15 pts), match/switch 3 (5 pts), boolean chains 3, ternaries 2 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Home/Frontpage/FrontpageReducer.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"10668c39da114f1b52eaebacbc066b05622cd9e20aa19e06280dcd25e2d521f7"}},{"ruleId":"D2","level":"warning","message":{"text":"AppRouteReducer.body (cognitive 24): AppRouteReducer.body has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (17 pts), match/switch 2 (3 pts), ternaries 2 (3 pts), boolean chains 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":"EhPanda/DataFlow/AppRouteReducer.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"a50466eb9d79f06018408a4bc800a409443efb769648976a8b0feda4eecb42db"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser.parseBanInterval (cognitive 24): Parser.parseBanInterval has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 10 (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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: EhPanda/App/Tools/Parser.swift holds 12 of the 31 methods over the threshold \u2014 including the worst \u2014 and 414 of the 834 points over it (50%), 4.5\u00D7 the next-largest file (EhPanda/View/Reading/ReadingReducer.swift at 91). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/App/Tools/Parser.swift"},"region":{"startLine":1774}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2c113dee3895d555487fa814d61b58fc031e6f9ae973dd26f31a1205ed97942"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser.parseGalleries::parseGalleryTags (cognitive 23): Parser.parseGalleries::parseGalleryTags has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 6, 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. This shape REPEATS in the file: one other method here (Parser.parseGalleries::parseThumbnailPanel) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared. This file is where this pass\u0027s cognitive complexity CONCENTRATES: EhPanda/App/Tools/Parser.swift holds 12 of the 31 methods over the threshold \u2014 including the worst \u2014 and 414 of the 834 points over it (50%), 4.5\u00D7 the next-largest file (EhPanda/View/Reading/ReadingReducer.swift at 91). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/App/Tools/Parser.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba86ef5541692af0c4589674992bd29b62613d8bc3a5f23933089cc797b26e38"}},{"ruleId":"D2","level":"warning","message":{"text":"DFStreamEventHandler.endEncountered (cognitive 19): DFStreamEventHandler.endEncountered has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 7 (nesting depth added 3). 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":"EhPanda/Network/DFStreamHandler.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fabf54ea49abf4253229b8c7f1611b57bb23dc4ffa524bc71fe105855d7ba15"}},{"ruleId":"D2","level":"warning","message":{"text":"PreviewsReducer.body (cognitive 18): PreviewsReducer.body has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (11 pts), match/switch 2 (3 pts), ternaries 2 (3 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":"EhPanda/View/Detail/Previews/PreviewsReducer.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bbc872d60ccbb7a9d0db1c248f4b85f12d8f05d815bdbf5b8667a4051f968ef"}},{"ruleId":"D2","level":"warning","message":{"text":"SubmitEhSettingChangesRequest.publisher (cognitive 17): SubmitEhSettingChangesRequest.publisher has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 6 (9 pts), if/else 7, match/switch 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":"EhPanda/Network/Request.swift"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f6c40c19bc22b9173e15e5707cfac916a6861874ba2966050fcedc44da651a3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ReadingReducer.body: MethodTooLong \u2014 body runs 342 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 242 over it, 3.42\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":"EhPanda/View/Reading/ReadingReducer.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb8e894bf29d1eba7e8ccc370627b769eb95b896a5a5c397563e54c75928ca34"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SettingReducer.body: MethodTooLong \u2014 body runs 282 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 182 over it, 2.82\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":"EhPanda/View/Setting/SettingReducer.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"f164a6bbe380a593ba5b076485892f729178769069e40f899cc3b1abb6bf168f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Tools/Parser.swift: FileTooLong \u2014 1264 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 764 over it, 2.53\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":"EhPanda/App/Tools/Parser.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4beb1d966b6211cad26d736e3b5a45962ca18cb71bc193efa212620888672667"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DetailReducer.coreReducer: MethodTooLong \u2014 coreReducer runs 229 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 129 over it, 2.29\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":"EhPanda/View/Detail/DetailReducer.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d27cea6688ce006d6a7982fce4d26a9fabcf7d359654ddfd950596f99a02e2d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Parser.parseGalleries: MethodTooLong \u2014 parseGalleries 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":"EhPanda/App/Tools/Parser.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"8544a13920d0a881f945c7adc641e2c3f729abb70de361101d071e55ce34220a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Parser.parseGalleryDetail: MethodTooLong \u2014 parseGalleryDetail runs 194 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 94 over it, 1.94\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":"EhPanda/App/Tools/Parser.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c37144ee5ecccd05dd35d1055e74e35cafe707ad8ad002d5e0e55c0b72d054c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Parser: ClassTooLong \u2014 696 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods. The bar is 400 significant lines; this is 296 over it, 1.74\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":"EhPanda/App/Tools/Parser.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ddf1bf9347e69a2d3ab1ff9560c4603e6e0f1a02c2531b5a5b32b5c11386663"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Parser.parseEhSetting: MethodTooLong \u2014 parseEhSetting runs 169 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 69 over it, 1.69\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":"EhPanda/App/Tools/Parser.swift"},"region":{"startLine":1053}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0f0c2770d5116cecdcf650d39605ca397f26710423b984c6d213316b5af9f4d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DatabaseClient: TooManyMethods \u2014 47 methods. The bar is 30 methods; this is 17 over it, 1.57\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":"EhPanda/App/Tools/Clients/DatabaseClient.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1566f94701a310b28b2d96a0a8e2093ae668e3ea8dbe6c31769bf06719e498f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Network/Request.swift: FileTooLong \u2014 771 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 271 over it, 1.54\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":"EhPanda/Network/Request.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c22f56278f5687c8aeb51783a58c1aeeb48fc05138133e537d49efcfb6bdcbc9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CommentsReducer.body: MethodTooLong \u2014 body runs 142 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 42 over it, 1.42\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":"EhPanda/View/Detail/Comments/CommentsReducer.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"214df663c9a2b4511b2702b073796eb8025d28b30bfc2a25063f510fb4c79d25"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HomeReducer.body: MethodTooLong \u2014 body runs 132 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 32 over it, 1.32\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":"EhPanda/View/Home/HomeReducer.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b93c43bd89939190d7e580da04d125411d9a2ab1a78b98bec774a8c288b058c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Detail/DetailView.swift: FileTooLong \u2014 641 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 141 over it, 1.28\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":"EhPanda/View/Detail/DetailView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"30c806d2ba0dfd8c8eb622be9921a546f6c8ab08bd19bfbfc839b56ace597433"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: EhSetting/EhSettingView.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":"EhPanda/View/Setting/EhSetting/EhSettingView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3453f886084c8a56c93ab337aafc338818a7983cb1a9efc00f66f5cee4766d6a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ReadingReducer: ClassTooLong \u2014 476 significant lines (blank, comment-only and punctuation-only lines excluded), 0 methods. The bar is 400 significant lines; this is 76 over it, 1.19\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":"EhPanda/View/Reading/ReadingReducer.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"76cd354b0a87385c7d80e6f122b2f748b8641533fac8a73d5f56bf498fbf2b09"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Parser.parseCommentContent: MethodTooLong \u2014 parseCommentContent runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\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":"EhPanda/App/Tools/Parser.swift"},"region":{"startLine":1561}}}],"partialFingerprints":{"codehealthFindingId/v1":"af3d10dea01da5abf64e5b78a8dcc8580d413e30955f200baa2319339c811bfe"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AppReducer.body: MethodTooLong \u2014 body runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\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":"EhPanda/DataFlow/AppReducer.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea7a2cac33496215321731f67906136f527989791e3ac104220ec60a0afdb1e6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Support/BrowsingCountry.swift: FileTooLong \u2014 514 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 14 over it, 1.03\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":"EhPanda/Models/Support/BrowsingCountry.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e22f87326ba84a6f0a061cfe2d2504870d5cde5b208256d38ef18415db4f423"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 22 shared lines): EhPanda/View/Detail/DetailSearch/DetailSearchView.swift:29-94 | EhPanda/View/Favorites/FavoritesView.swift:33-102 | EhPanda/View/Home/Toplists/ToplistsView.swift:31-82 | EhPanda/View/Home/Watched/WatchedView.swift:27-98 | EhPanda/View/Search/SearchView.swift:29-94 \u2014 These 5 members are variants of one another: a block of 22 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Detail/DetailSearch/DetailSearchView.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"22a29f3dd573e7e12bd4c97fc637effbef7671e939635c49e5a51a278348b23f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (40 shared lines): EhPanda/View/Favorites/FavoritesReducer.swift:79-200 | EhPanda/View/Home/Toplists/ToplistsReducer.swift:89-218 \u2014 These two members are variants of one another: 40 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":"EhPanda/View/Favorites/FavoritesReducer.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c2cb743c6e8646954dec0ede1cc3ea7055ce38c88dc40518d171e56b95314e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (12 members, 50\u002B identical tokens): EhPanda/DataFlow/AppRouteReducer.swift:57-193 | EhPanda/View/Detail/Comments/CommentsReducer.swift:74-267 | EhPanda/View/Detail/DetailSearch/DetailSearchReducer.swift:68-197 | EhPanda/View/Detail/Previews/PreviewsReducer.swift:60-151 | EhPanda/View/Favorites/FavoritesReducer.swift:79-200 | EhPanda/View/Home/Frontpage/FrontpageReducer.swift:68-170 | EhPanda/View/Home/History/HistoryReducer.swift:52-103 | EhPanda/View/Home/Popular/PopularReducer.swift:56-119 | EhPanda/View/Home/Watched/WatchedReducer.swift:68-192 | EhPanda/View/Search/SearchReducer.swift:68-198 | EhPanda/View/Search/Support/QuickSearchReducer.swift:65-138 | EhPanda/View/Setting/GeneralSetting/GeneralSettingReducer.swift:51-109 \u2014 These 12 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 12 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 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/DataFlow/AppRouteReducer.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"e054f9212dd7931495914d77c5af5fcd2e0f35f9b1d879e703941c844bfe4713"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (11 members, 50\u002B identical tokens): EhPanda/View/Detail/Comments/CommentsView.swift:141-149 | EhPanda/View/Detail/DetailSearch/DetailSearchView.swift:96-106 | EhPanda/View/Favorites/FavoritesView.swift:104-114 | EhPanda/View/Home/Frontpage/FrontpageView.swift:76-86 | EhPanda/View/Home/History/HistoryView.swift:70-80 | EhPanda/View/Home/HomeView.swift:139-147 | EhPanda/View/Home/Popular/PopularView.swift:73-83 | EhPanda/View/Home/Toplists/ToplistsView.swift:84-94 | EhPanda/View/Home/Watched/WatchedView.swift:100-110 | EhPanda/View/Search/SearchRootView.swift:127-135 | EhPanda/View/Search/SearchView.swift:96-106 \u2014 These 11 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 11 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Detail/Comments/CommentsView.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"41ebbf99923bb3b32f1522080f4f361acd20c4d052dc09601edf81999d3f800a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): EhPanda/Network/Request.swift:162-171 | EhPanda/Network/Request.swift:179-188 | EhPanda/Network/Request.swift:194-201 | EhPanda/Network/Request.swift:208-215 | EhPanda/Network/Request.swift:235-242 | EhPanda/Network/Request.swift:250-259 | EhPanda/Network/Request.swift:315-324 | EhPanda/Network/Request.swift:331-342 \u2014 These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/Network/Request.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"47fef4a0aff1952391320b28c4d513052b372ea293e17336a680b67304a48792"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): EhPanda/Network/Request.swift:882-901 | EhPanda/Network/Request.swift:907-924 | EhPanda/Network/Request.swift:983-999 | EhPanda/Network/Request.swift:1007-1024 \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":"EhPanda/Network/Request.swift"},"region":{"startLine":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad45b08570b9d3deb04a146ee4cc387eb0e1e2e20fc17d081a5ba546d3501723"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): EhPanda/View/Detail/DetailSearch/DetailSearchView.swift:51-83 | EhPanda/View/Search/SearchView.swift:51-83 \u2014 before extracting anything, compare \u0060EhPanda/View/Detail/DetailSearch/DetailSearchView.swift\u0060 and \u0060EhPanda/View/Search/SearchView.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 155 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 \u0060EhPanda/View/Detail/DetailSearch/DetailSearchView.swift:51\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 \u0060store\u0060 to \u0060StoreOf\u003CDetailSearchReducer\u003E\u0060 in one and \u0060StoreOf\u003CSearchReducer\u003E\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":"EhPanda/View/Detail/DetailSearch/DetailSearchView.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"da098d07738ff5f48ac5d7fe578df83affe22bb8775e9b461ac4a7df274cbba2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): EhPanda/View/Detail/DetailSearch/DetailSearchReducer.swift:163-193 | EhPanda/View/Search/SearchReducer.swift:163-193 \u2014 before extracting anything, compare \u0060EhPanda/View/Detail/DetailSearch/DetailSearchReducer.swift\u0060 and \u0060EhPanda/View/Search/SearchReducer.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 162 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 \u0060EhPanda/View/Detail/DetailSearch/DetailSearchReducer.swift:163\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060EhPanda/View/Search/SearchReducer.swift:197\u0060 calls \u0060Scope\u0060 and \u0060EhPanda/View/Detail/DetailSearch/DetailSearchReducer.swift:197\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":"EhPanda/View/Detail/DetailSearch/DetailSearchReducer.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"be7094042a2a93fafdc7c2ab4f738a4e510b9368f118e6c19dae4c14dff3aee7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 4): EhPanda/View/Detail/DetailSearch/DetailSearchReducer.swift:114-141 | EhPanda/View/Home/Frontpage/FrontpageReducer.swift:98-125 | EhPanda/View/Home/Watched/WatchedReducer.swift:108-135 | EhPanda/View/Search/SearchReducer.swift:114-141 \u2014 before extracting anything, compare \u0060EhPanda/View/Detail/DetailSearch/DetailSearchReducer.swift\u0060 and \u0060EhPanda/View/Home/Frontpage/FrontpageReducer.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 91 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 \u0060EhPanda/View/Detail/DetailSearch/DetailSearchReducer.swift:114\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":"EhPanda/View/Detail/DetailSearch/DetailSearchReducer.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ea814400fb3a60c298fc044be53efaa709f97f22d39a5548057b45bda35cc21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201328 lines \u00D7 2): EhPanda/App/Tools/Parser.swift:1163-1187 | EhPanda/App/Tools/Parser.swift:1257-1284 \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 \u0060EhPanda/App/Tools/Parser.swift:1163\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":"EhPanda/App/Tools/Parser.swift"},"region":{"startLine":1163}}}],"partialFingerprints":{"codehealthFindingId/v1":"48436f8bc33218c71b1711cf6e0bf726b19fe1a840f903d1d19a1e313e9827a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201327 lines \u00D7 4): EhPanda/View/Detail/DetailSearch/DetailSearchReducer.swift:146-172 | EhPanda/View/Home/Frontpage/FrontpageReducer.swift:129-153 | EhPanda/View/Home/Watched/WatchedReducer.swift:140-166 | EhPanda/View/Search/SearchReducer.swift:146-172 \u2014 before extracting anything, compare \u0060EhPanda/View/Detail/DetailSearch/DetailSearchReducer.swift\u0060 and \u0060EhPanda/View/Home/Frontpage/FrontpageReducer.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 91 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 \u0060EhPanda/View/Detail/DetailSearch/DetailSearchReducer.swift:146\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":"EhPanda/View/Detail/DetailSearch/DetailSearchReducer.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"52baa45e22410dd07d8a0d04773f6075099502fb1b60e2cc5ccfc65bdd2342f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): EhPanda/View/Detail/DetailSearch/DetailSearchReducer.swift:68-92 | EhPanda/View/Search/SearchReducer.swift:68-92 \u2014 before extracting anything, compare \u0060EhPanda/View/Detail/DetailSearch/DetailSearchReducer.swift\u0060 and \u0060EhPanda/View/Search/SearchReducer.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 162 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 \u0060EhPanda/View/Detail/DetailSearch/DetailSearchReducer.swift:68\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":"EhPanda/View/Detail/DetailSearch/DetailSearchReducer.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"c14d535eb653aba164a388c7799d2d36531d41d491ede52fc443c827468f0ece"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201323 lines \u00D7 2): EhPanda/View/Reading/ReadingView.swift:375-397 | EhPanda/View/Reading/ReadingView.swift:508-522 \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 \u0060EhPanda/View/Reading/ReadingView.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Reading/ReadingView.swift"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"ede18bf3378de985dbbef7857cbb2c86a4a1fd572e88b554b31805c2c52702ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): EhPanda/DataFlow/AppRouteReducer.swift:120-138 | EhPanda/View/Detail/Comments/CommentsReducer.swift:146-164 \u2014 before extracting anything, compare \u0060EhPanda/DataFlow/AppRouteReducer.swift\u0060 and \u0060EhPanda/View/Detail/Comments/CommentsReducer.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060EhPanda/DataFlow/AppRouteReducer.swift:118\u0060 calls \u0060init\u0060, \u0060send\u0060, \u0060detail\u0060 and \u0060EhPanda/View/Detail/Comments/CommentsReducer.swift:145\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":"EhPanda/DataFlow/AppRouteReducer.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c4fcc287af179bc97784f5881c69caaae4699a8df0d0cf449a2a456c493f2f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): EhPanda/View/Home/Frontpage/FrontpageView.swift:38-56 | EhPanda/View/Home/Popular/PopularView.swift:35-53 \u2014 before extracting anything, compare \u0060EhPanda/View/Home/Frontpage/FrontpageView.swift\u0060 and \u0060EhPanda/View/Home/Popular/PopularView.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 97 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 \u0060EhPanda/View/Home/Frontpage/FrontpageView.swift:38\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060store\u0060 to \u0060StoreOf\u003CFrontpageReducer\u003E\u0060 in one and \u0060StoreOf\u003CPopularReducer\u003E\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":"EhPanda/View/Home/Frontpage/FrontpageView.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"08d80589b8f6b1f4117524a73c96378e4b79ec38d30029a2f6ba89315c9817eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): EhPanda/View/Home/Frontpage/FrontpageReducer.swift:153-170 | EhPanda/View/Home/Popular/PopularReducer.swift:102-119 \u2014 before extracting anything, compare \u0060EhPanda/View/Home/Frontpage/FrontpageReducer.swift\u0060 and \u0060EhPanda/View/Home/Popular/PopularReducer.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 55 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 \u0060EhPanda/View/Home/Frontpage/FrontpageReducer.swift:153\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":"EhPanda/View/Home/Frontpage/FrontpageReducer.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2594dd022f73308841993758c6387d991f6f23b3b48c967a708bd7efba5af80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): EhPanda/View/Detail/DetailSearch/DetailSearchView.swift:29-45 | EhPanda/View/Search/SearchView.swift:29-45 \u2014 before extracting anything, compare \u0060EhPanda/View/Detail/DetailSearch/DetailSearchView.swift\u0060 and \u0060EhPanda/View/Search/SearchView.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 155 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 \u0060EhPanda/View/Detail/DetailSearch/DetailSearchView.swift:29\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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060store\u0060 to \u0060StoreOf\u003CDetailSearchReducer\u003E\u0060 in one and \u0060StoreOf\u003CSearchReducer\u003E\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":"EhPanda/View/Detail/DetailSearch/DetailSearchView.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"334fbe58f25cf618b2c9deeab90bc86de754b564a0ef34559dd49168b44a7987"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 8): EhPanda/View/Detail/DetailSearch/DetailSearchView.swift:79-94 | EhPanda/View/Favorites/FavoritesView.swift:86-101 | EhPanda/View/Home/Frontpage/FrontpageView.swift:59-74 | EhPanda/View/Home/History/HistoryView.swift:53-68 | EhPanda/View/Home/Popular/PopularView.swift:56-71 | EhPanda/View/Home/Toplists/ToplistsView.swift:67-82 | EhPanda/View/Home/Watched/WatchedView.swift:83-98 | EhPanda/View/Search/SearchView.swift:79-94 \u2014 before extracting anything, compare \u0060EhPanda/View/Detail/DetailSearch/DetailSearchView.swift\u0060 and \u0060EhPanda/View/Favorites/FavoritesView.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 68 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 \u0060EhPanda/View/Detail/DetailSearch/DetailSearchView.swift:79\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060store\u0060 to \u0060StoreOf\u003CDetailSearchReducer\u003E\u0060 in one and \u0060StoreOf\u003CFavoritesReducer\u003E\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":"EhPanda/View/Detail/DetailSearch/DetailSearchView.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"59f4ac027658a1bce076f2be372e1c7c949c9b46d41c212699e072ede1a0dcad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): EhPanda/View/Favorites/FavoritesReducer.swift:171-186 | EhPanda/View/Home/Toplists/ToplistsReducer.swift:198-213 \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 \u0060EhPanda/View/Favorites/FavoritesReducer.swift:171\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":"EhPanda/View/Favorites/FavoritesReducer.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"73045087391609904a6c8f30656886a93c235bb23415a7770f18f521e245d709"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u201315 lines \u00D7 4): EhPanda/View/Detail/DetailSearch/DetailSearchReducer.swift:181-195 | EhPanda/View/Home/Watched/WatchedReducer.swift:175-189 | EhPanda/View/Search/SearchReducer.swift:181-195 | EhPanda/View/Search/SearchRootReducer.swift:199-200 \u2014 before extracting anything, compare \u0060EhPanda/View/Detail/DetailSearch/DetailSearchReducer.swift\u0060 and \u0060EhPanda/View/Home/Watched/WatchedReducer.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 106 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 \u0060EhPanda/View/Detail/DetailSearch/DetailSearchReducer.swift:181\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060EhPanda/View/Home/Watched/WatchedReducer.swift:191\u0060 calls \u0060Scope\u0060 and \u0060EhPanda/View/Detail/DetailSearch/DetailSearchReducer.swift:197\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":"EhPanda/View/Detail/DetailSearch/DetailSearchReducer.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"fee3afde200ff4f226bc1bacd530106e0dfcc841548af4798e4a84ea61c3912c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): EhPanda/View/Favorites/FavoritesView.swift:45-59 | EhPanda/View/Home/Watched/WatchedView.swift:38-52 \u2014 before extracting anything, compare \u0060EhPanda/View/Favorites/FavoritesView.swift\u0060 and \u0060EhPanda/View/Home/Watched/WatchedView.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 92 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 \u0060EhPanda/View/Favorites/FavoritesView.swift:45\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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060store\u0060 to \u0060StoreOf\u003CFavoritesReducer\u003E\u0060 in one and \u0060StoreOf\u003CWatchedReducer\u003E\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":"EhPanda/View/Favorites/FavoritesView.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"12f5b90972a993cf9bafdc3f1f2da4043cc39e17010726a2572bae7335f9d016"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): EhPanda/View/Home/Watched/WatchedReducer.swift:76-90 | EhPanda/View/Search/SearchReducer.swift:84-98 \u2014 before extracting anything, compare \u0060EhPanda/View/Home/Watched/WatchedReducer.swift\u0060 and \u0060EhPanda/View/Search/SearchReducer.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 121 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 \u0060EhPanda/View/Home/Watched/WatchedReducer.swift:76\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":"EhPanda/View/Home/Watched/WatchedReducer.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"62459deb907a8cb4da2d59e74ebb6b0ce93983efd9481bb6d7833aeb704c5b4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): EhPanda/View/Reading/Support/LiveTextHandler.swift:140-154 | EhPanda/View/Reading/Support/LiveTextHandler.swift:156-170 \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":"EhPanda/View/Reading/Support/LiveTextHandler.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0178ec8c506c2dbf249cd48e7052858d14755d2966ef110a22d00a236b6233a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): EhPanda/View/Support/Components/GenericList.swift:83-97 | EhPanda/View/Support/Components/GenericList.swift:155-169 \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":"EhPanda/View/Support/Components/GenericList.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdb732e3f10707293c8989978bf699d0546545188b188a7dd365dcc05c649f89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 10): EhPanda/DataFlow/AppRouteReducer.swift:57-70 | EhPanda/View/Detail/Comments/CommentsReducer.swift:74-87 | EhPanda/View/Detail/Previews/PreviewsReducer.swift:60-73 | EhPanda/View/Favorites/FavoritesReducer.swift:79-92 | EhPanda/View/Home/Frontpage/FrontpageReducer.swift:68-81 | EhPanda/View/Home/History/HistoryReducer.swift:52-65 | EhPanda/View/Home/Popular/PopularReducer.swift:56-69 | EhPanda/View/Home/Watched/WatchedReducer.swift:68-81 | EhPanda/View/Search/Support/QuickSearchReducer.swift:65-78 | EhPanda/View/Setting/GeneralSetting/GeneralSettingReducer.swift:51-64 \u2014 before extracting anything, compare \u0060EhPanda/DataFlow/AppRouteReducer.swift\u0060 and \u0060EhPanda/View/Detail/Comments/CommentsReducer.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 \u0060EhPanda/DataFlow/AppRouteReducer.swift:57\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, \u0060EhPanda/DataFlow/AppRouteReducer.swift:72\u0060 calls \u0060setHUDConfig\u0060 and \u0060EhPanda/View/Detail/Comments/CommentsReducer.swift:89\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":"EhPanda/DataFlow/AppRouteReducer.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"86740868e64187daf5fd7f5f23bc776daae435eda20ce5f07cd81274ec5cd7dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): EhPanda/DataFlow/AppRouteReducer.swift:156-169 | EhPanda/View/Detail/Comments/CommentsReducer.swift:243-256 \u2014 before extracting anything, compare \u0060EhPanda/DataFlow/AppRouteReducer.swift\u0060 and \u0060EhPanda/View/Detail/Comments/CommentsReducer.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 \u0060EhPanda/DataFlow/AppRouteReducer.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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060EhPanda/View/Detail/Comments/CommentsReducer.swift:241\u0060 calls \u0060cancellable\u0060 and \u0060EhPanda/DataFlow/AppRouteReducer.swift:154\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":"EhPanda/DataFlow/AppRouteReducer.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe4731460a10bb1dd8251e9216b1a896ba6673b223f0f51a4b6f50d7a0f7288c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): EhPanda/Network/Request.swift:270-282 | EhPanda/Network/Request.swift:295-308 \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 \u0060EhPanda/Network/Request.swift:270\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":"EhPanda/Network/Request.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7df59953ed27ba3651bacddb696006485c036890d7095b3105d154c2ac2b742"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): EhPanda/View/Detail/Comments/CommentsView.swift:164-177 | EhPanda/View/Detail/DetailView.swift:838-850 \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 \u0060EhPanda/View/Detail/Comments/CommentsView.swift:164\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":"EhPanda/View/Detail/Comments/CommentsView.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"421ebbcef60c4f2345e6ce2b3e620e4f3a453f1e44393357dbb8fabc43015e17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): EhPanda/View/Home/History/HistoryView.swift:27-40 | EhPanda/View/Home/Popular/PopularView.swift:27-39 \u2014 before extracting anything, compare \u0060EhPanda/View/Home/History/HistoryView.swift\u0060 and \u0060EhPanda/View/Home/Popular/PopularView.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 85 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 \u0060EhPanda/View/Home/History/HistoryView.swift:27\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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060store\u0060 to \u0060StoreOf\u003CHistoryReducer\u003E\u0060 in one and \u0060StoreOf\u003CPopularReducer\u003E\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":"EhPanda/View/Home/History/HistoryView.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"b87b1058425ef68a3923d880be234318182f3c8baa5727bc045c1de6f85d92f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): EhPanda/View/Support/Components/Cells/GalleryDetailCell.swift:35-48 | EhPanda/View/Support/Components/Cells/GalleryThumbnailCell.swift:52-65 \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":"EhPanda/View/Support/Components/Cells/GalleryDetailCell.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"705c18136db52847871aab5645f2f1865c914acf039b68ee60f838805b4c46a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): EhPanda/View/Detail/DetailSearch/DetailSearchReducer.swift:82-93 | EhPanda/View/Home/Frontpage/FrontpageReducer.swift:74-85 | EhPanda/View/Home/Popular/PopularReducer.swift:62-73 | EhPanda/View/Home/Watched/WatchedReducer.swift:74-85 | EhPanda/View/Search/SearchReducer.swift:82-93 \u2014 before extracting anything, compare \u0060EhPanda/View/Detail/DetailSearch/DetailSearchReducer.swift\u0060 and \u0060EhPanda/View/Home/Frontpage/FrontpageReducer.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 91 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 \u0060EhPanda/View/Detail/DetailSearch/DetailSearchReducer.swift:82\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":"EhPanda/View/Detail/DetailSearch/DetailSearchReducer.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"857cd7bb4853a9b9460b704f7326de7ad8c24d54940ad5c947b99dedebc531f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): EhPanda/Network/Request.swift:965-976 | EhPanda/Network/Request.swift:1044-1055 | EhPanda/Network/Request.swift:1075-1086 \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 \u0060EhPanda/Network/Request.swift:965\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":"EhPanda/Network/Request.swift"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"296ef600f5b99aadf80c7d206dfb3198f79758b58243806676ef4bb05288c4b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): EhPanda/Network/Request.swift:986-997 | EhPanda/Network/Request.swift:1011-1022 \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 \u0060EhPanda/Network/Request.swift:986\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":"EhPanda/Network/Request.swift"},"region":{"startLine":986}}}],"partialFingerprints":{"codehealthFindingId/v1":"90426329a87dadd0cad445225e4f511ca7e62c8302183dbcd4dca1e643a799a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 8): EhPanda/View/Detail/DetailSearch/DetailSearchView.swift:96-106 | EhPanda/View/Favorites/FavoritesView.swift:104-114 | EhPanda/View/Home/Frontpage/FrontpageView.swift:76-86 | EhPanda/View/Home/History/HistoryView.swift:70-80 | EhPanda/View/Home/Popular/PopularView.swift:73-83 | EhPanda/View/Home/Toplists/ToplistsView.swift:84-94 | EhPanda/View/Home/Watched/WatchedView.swift:100-110 | EhPanda/View/Search/SearchView.swift:96-106 \u2014 before extracting anything, compare \u0060EhPanda/View/Detail/DetailSearch/DetailSearchView.swift\u0060 and \u0060EhPanda/View/Favorites/FavoritesView.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 68 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060store\u0060 to \u0060StoreOf\u003CDetailSearchReducer\u003E\u0060 in one and \u0060StoreOf\u003CFavoritesReducer\u003E\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":"EhPanda/View/Detail/DetailSearch/DetailSearchView.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"75b6691e7daedbf3dac37fb621c130b40aa6209f0b696531608573f05bbf8b61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): EhPanda/View/Detail/Comments/CommentsReducer.swift:80-90 | EhPanda/View/Detail/DetailSearch/DetailSearchReducer.swift:82-92 | EhPanda/View/Home/Frontpage/FrontpageReducer.swift:74-84 | EhPanda/View/Home/Popular/PopularReducer.swift:62-72 | EhPanda/View/Home/Watched/WatchedReducer.swift:74-84 | EhPanda/View/Search/SearchReducer.swift:82-92 \u2014 before extracting anything, compare \u0060EhPanda/View/Detail/DetailSearch/DetailSearchReducer.swift\u0060 and \u0060EhPanda/View/Home/Frontpage/FrontpageReducer.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 91 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 \u0060EhPanda/View/Detail/Comments/CommentsReducer.swift:80\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":"EhPanda/View/Detail/Comments/CommentsReducer.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"985c7cd823e1b5d5b4de174e231aa934101a532c2b945df7374263ed19e830c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 4): EhPanda/View/Detail/DetailSearch/DetailSearchView.swift:56-65 | EhPanda/View/Favorites/FavoritesView.swift:62-72 | EhPanda/View/Search/SearchRootView.swift:58-68 | EhPanda/View/Search/SearchView.swift:56-65 \u2014 before extracting anything, compare \u0060EhPanda/View/Detail/DetailSearch/DetailSearchView.swift\u0060 and \u0060EhPanda/View/Favorites/FavoritesView.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 68 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 \u0060EhPanda/View/Detail/DetailSearch/DetailSearchView.swift:56\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 \u0060store\u0060 to \u0060StoreOf\u003CDetailSearchReducer\u003E\u0060 in one and \u0060StoreOf\u003CFavoritesReducer\u003E\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":"EhPanda/View/Detail/DetailSearch/DetailSearchView.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"673ee7487c19d288ba271796aa1ba08c2d3e8f5006053a47969b42afb8f14190"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): EhPanda/View/Detail/DetailSearch/DetailSearchView.swift:58-68 | EhPanda/View/Favorites/FavoritesView.swift:65-75 | EhPanda/View/Home/Watched/WatchedView.swift:62-72 | EhPanda/View/Search/SearchView.swift:58-68 \u2014 before extracting anything, compare \u0060EhPanda/View/Detail/DetailSearch/DetailSearchView.swift\u0060 and \u0060EhPanda/View/Favorites/FavoritesView.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 68 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 \u0060EhPanda/View/Detail/DetailSearch/DetailSearchView.swift:58\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060store\u0060 to \u0060StoreOf\u003CDetailSearchReducer\u003E\u0060 in one and \u0060StoreOf\u003CFavoritesReducer\u003E\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":"EhPanda/View/Detail/DetailSearch/DetailSearchView.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"488f8a2d6f9ea91a6172dacc56cd0ab606106e19162384a9da8c0aae4b1c16d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): EhPanda/View/Detail/DetailReducer.swift:232-242 | EhPanda/View/Detail/Previews/PreviewsReducer.swift:84-94 \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 \u0060EhPanda/View/Detail/DetailReducer.swift:232\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":"EhPanda/View/Detail/DetailReducer.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ff62b8b3133ad5e1f0c23d01c08f8b20d57f5e423c4cfa791c34d282501122b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): EhPanda/View/Detail/Previews/PreviewsReducer.swift:95-105 | EhPanda/View/Reading/ReadingReducer.swift:351-361 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060EhPanda/View/Reading/ReadingReducer.swift:350\u0060 calls \u0060fetchGalleryDetail\u0060 and \u0060EhPanda/View/Detail/Previews/PreviewsReducer.swift:94\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":"EhPanda/View/Detail/Previews/PreviewsReducer.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"74e86d635436b37f26d9f28570351fc83476f4256543e750e786f9c1c4a34a9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): EhPanda/Network/Request.swift:892-901 | EhPanda/Network/Request.swift:915-924 | EhPanda/Network/Request.swift:990-999 | EhPanda/Network/Request.swift:1015-1024 \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 \u0060EhPanda/Network/Request.swift:892\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":"EhPanda/Network/Request.swift"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"70ed62f2dab6531ce28b036afe527f6a51c2c4a6ed140abc11449155e5495542"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): EhPanda/App/Tools/Parser.swift:206-215 | EhPanda/App/Tools/Parser.swift:234-243 | EhPanda/App/Tools/Parser.swift:261-270 \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 \u0060EhPanda/App/Tools/Parser.swift:206\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, \u0060EhPanda/App/Tools/Parser.swift:216\u0060 calls \u0060parseUploader\u0060 and \u0060EhPanda/App/Tools/Parser.swift:244\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":"EhPanda/App/Tools/Parser.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e27b0bbe3ad801c9b9cb7ec456d59d1d68d09f0f29e1cf71015ac0c1ad5e274"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): EhPanda/View/Detail/DetailSearch/DetailSearchView.swift:31-40 | EhPanda/View/Home/Watched/WatchedView.swift:31-40 | EhPanda/View/Search/SearchView.swift:31-40 \u2014 before extracting anything, compare \u0060EhPanda/View/Detail/DetailSearch/DetailSearchView.swift\u0060 and \u0060EhPanda/View/Home/Watched/WatchedView.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 88 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 \u0060EhPanda/View/Detail/DetailSearch/DetailSearchView.swift:31\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060store\u0060 to \u0060StoreOf\u003CDetailSearchReducer\u003E\u0060 in one and \u0060StoreOf\u003CWatchedReducer\u003E\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":"EhPanda/View/Detail/DetailSearch/DetailSearchView.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ae84877dcf68bb214948662e8aa004cc79361ad972317cc64c7f24a3e027a8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): EhPanda/View/Favorites/FavoritesView.swift:55-64 | EhPanda/View/Home/Watched/WatchedView.swift:48-57 | EhPanda/View/Search/SearchView.swift:44-53 \u2014 before extracting anything, compare \u0060EhPanda/View/Favorites/FavoritesView.swift\u0060 and \u0060EhPanda/View/Home/Watched/WatchedView.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 92 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 \u0060EhPanda/View/Favorites/FavoritesView.swift:55\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060store\u0060 to \u0060StoreOf\u003CFavoritesReducer\u003E\u0060 in one and \u0060StoreOf\u003CWatchedReducer\u003E\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":"EhPanda/View/Favorites/FavoritesView.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ddbfba960b8d2328f0c7ad9fca5d70e5991001653e4f90fd1922716f5daa4b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): EhPanda/View/Home/Frontpage/FrontpageView.swift:47-56 | EhPanda/View/Home/History/HistoryView.swift:41-50 | EhPanda/View/Home/Popular/PopularView.swift:44-53 \u2014 before extracting anything, compare \u0060EhPanda/View/Home/Frontpage/FrontpageView.swift\u0060 and \u0060EhPanda/View/Home/History/HistoryView.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 \u0060EhPanda/View/Home/Frontpage/FrontpageView.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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060store\u0060 to \u0060StoreOf\u003CFrontpageReducer\u003E\u0060 in one and \u0060StoreOf\u003CHistoryReducer\u003E\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":"EhPanda/View/Home/Frontpage/FrontpageView.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a600ca7cf5a327f36988e54ef052e14cb2fcd741fa0b09cdf201169256f0160"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): EhPanda/View/Support/Components/GenericList.swift:26-35 | EhPanda/View/Support/Components/GenericList.swift:87-96 | EhPanda/View/Support/Components/GenericList.swift:159-168 \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 \u0060EhPanda/View/Support/Components/GenericList.swift:26\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":"EhPanda/View/Support/Components/GenericList.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"332cf498ca0078672ab583317722af0b13d6133ccd7d402c53cc483fd9f0e98f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): EhPanda/App/Tools/Extensions/ViewModifiers.swift:40-49 | EhPanda/App/Tools/Extensions/ViewModifiers.swift:54-63 \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 \u0060EhPanda/App/Tools/Extensions/ViewModifiers.swift:40\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":"EhPanda/App/Tools/Extensions/ViewModifiers.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"07890ba7f0dd7cf5d58c7130d18aeb8610af822becc0af4f22de2dab6a486fdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): EhPanda/View/Detail/DetailView.swift:134-143 | EhPanda/View/Detail/Previews/PreviewsView.swift:72-79 \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 \u0060EhPanda/View/Detail/DetailView.swift:134\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":"EhPanda/View/Detail/DetailView.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"b317cba02a4be383c34b4192e102868a6f86de2697edfcd9362bceccfce1b5d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): EhPanda/View/Favorites/FavoritesReducer.swift:137-145 | EhPanda/View/Home/Toplists/ToplistsReducer.swift:168-177 \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 \u0060EhPanda/View/Favorites/FavoritesReducer.swift:137\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. 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":"EhPanda/View/Favorites/FavoritesReducer.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"37f4a3d791002ab11a45fe070f07e3fbe53650a008493c3050e87d0ada057003"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): EhPanda/View/Home/HomeView.swift:252-261 | EhPanda/View/Home/HomeView.swift:332-341 \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 \u0060EhPanda/View/Home/HomeView.swift:252\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":"EhPanda/View/Home/HomeView.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"4033eaa85afcf2179e640bd473499a397f809f2d52093bb737821c2930eb53b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): EhPanda/App/Tools/Parser.swift:177-185 | EhPanda/App/Tools/Parser.swift:205-213 | EhPanda/App/Tools/Parser.swift:233-241 | EhPanda/App/Tools/Parser.swift:260-268 \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 \u0060EhPanda/App/Tools/Parser.swift:177\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, \u0060EhPanda/App/Tools/Parser.swift:216\u0060 calls \u0060parseUploader\u0060 and \u0060EhPanda/App/Tools/Parser.swift:244\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":"EhPanda/App/Tools/Parser.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ec5396a012343230c9d15d4e5effeba8767aea4619379393a961307bdbb6642"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): EhPanda/App/Tools/Parser.swift:1167-1175 | EhPanda/App/Tools/Parser.swift:1205-1213 | EhPanda/App/Tools/Parser.swift:1261-1269 \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 \u0060EhPanda/App/Tools/Parser.swift:1167\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":"EhPanda/App/Tools/Parser.swift"},"region":{"startLine":1167}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfc08949a07329ceff7dc46dc54e0c0612d1917127f7f6925c6a10ebfbcb5996"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): EhPanda/Database/Migration/Policies/Model5toModel6MigrationPolicy.swift:10-18 | EhPanda/Database/Migration/Policies/Model5toModel6MigrationPolicy.swift:29-37 | EhPanda/Database/Migration/Policies/Model5toModel6MigrationPolicy.swift:50-58 \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 \u0060EhPanda/Database/Migration/Policies/Model5toModel6MigrationPolicy.swift:10\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":"EhPanda/Database/Migration/Policies/Model5toModel6MigrationPolicy.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"df59e103e7bfccf317456c8274bd8f6c8dc4e6d7542b6d8a70cc2bc207a34be2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): EhPanda/View/Detail/DetailSearch/DetailSearchView.swift:47-55 | EhPanda/View/Home/Watched/WatchedView.swift:51-59 | EhPanda/View/Search/SearchView.swift:47-55 \u2014 before extracting anything, compare \u0060EhPanda/View/Detail/DetailSearch/DetailSearchView.swift\u0060 and \u0060EhPanda/View/Home/Watched/WatchedView.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 88 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 \u0060EhPanda/View/Detail/DetailSearch/DetailSearchView.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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060store\u0060 to \u0060StoreOf\u003CDetailSearchReducer\u003E\u0060 in one and \u0060StoreOf\u003CWatchedReducer\u003E\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":"EhPanda/View/Detail/DetailSearch/DetailSearchView.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"e80c65a70bc19e69d8b589fd3c28458a852a1034e9f3cbdbc0f506014af2566b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): EhPanda/Network/Request.swift:772-780 | EhPanda/Network/Request.swift:866-874 \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 \u0060EhPanda/Network/Request.swift:772\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":"EhPanda/Network/Request.swift"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"a15f13e001452e25fd36248dd75ab90dea3c1af875b298d2af6080165e59424f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): EhPanda/App/Tools/Parser.swift:1786-1793 | EhPanda/App/Tools/Parser.swift:1799-1806 \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 \u0060EhPanda/App/Tools/Parser.swift:1786\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":"EhPanda/App/Tools/Parser.swift"},"region":{"startLine":1786}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a3154d6e8da27d6c26c97b524e18aa8ab2fa24916c8ea42925f85c9802c8d28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): EhPanda/App/Tools/Utilities/URLUtil.swift:52-59 | EhPanda/App/Tools/Utilities/URLUtil.swift:77-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060EhPanda/App/Tools/Utilities/URLUtil.swift:52\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/App/Tools/Utilities/URLUtil.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"c23ce847af0e196166b766e9bfb6d94502419fb9c0a40d600d48899b1dc49bdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): EhPanda/View/Favorites/FavoritesView.swift:40-47 | EhPanda/View/Home/Toplists/ToplistsView.swift:35-42 \u2014 before extracting anything, compare \u0060EhPanda/View/Favorites/FavoritesView.swift\u0060 and \u0060EhPanda/View/Home/Toplists/ToplistsView.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060EhPanda/View/Favorites/FavoritesView.swift:40\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060store\u0060 to \u0060StoreOf\u003CFavoritesReducer\u003E\u0060 in one and \u0060StoreOf\u003CToplistsReducer\u003E\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":"EhPanda/View/Favorites/FavoritesView.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"e74a382a711892b43d359371dac9aa4e7f6478a6621affa3d67f1bbd3d48ae91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 11): EhPanda/View/Detail/Comments/CommentsView.swift:143-149 | EhPanda/View/Detail/DetailSearch/DetailSearchView.swift:99-105 | EhPanda/View/Favorites/FavoritesView.swift:107-113 | EhPanda/View/Home/Frontpage/FrontpageView.swift:79-85 | EhPanda/View/Home/History/HistoryView.swift:73-79 | EhPanda/View/Home/HomeView.swift:141-147 | EhPanda/View/Home/Popular/PopularView.swift:76-82 | EhPanda/View/Home/Toplists/ToplistsView.swift:87-93 | EhPanda/View/Home/Watched/WatchedView.swift:103-109 | EhPanda/View/Search/SearchRootView.swift:129-135 | EhPanda/View/Search/SearchView.swift:99-105 \u2014 before extracting anything, compare \u0060EhPanda/View/Detail/DetailSearch/DetailSearchView.swift\u0060 and \u0060EhPanda/View/Favorites/FavoritesView.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 68 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 \u0060EhPanda/View/Detail/Comments/CommentsView.swift:143\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060store\u0060 to \u0060StoreOf\u003CDetailSearchReducer\u003E\u0060 in one and \u0060StoreOf\u003CFavoritesReducer\u003E\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":"EhPanda/View/Detail/Comments/CommentsView.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"e901ef3711996f12ad0005c40862be7d6888c8e2def67e3b273851ce033d0b22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): EhPanda/App/Tools/Parser.swift:1786-1792 | EhPanda/App/Tools/Parser.swift:1799-1805 | EhPanda/App/Tools/Parser.swift:1812-1818 \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. 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":"EhPanda/App/Tools/Parser.swift"},"region":{"startLine":1786}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea4dcc1c71fa77a5133f6ef03fe39832b88620b369f75ac771d03668dc0d0de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): EhPanda/Network/Request.swift:770-776 | EhPanda/Network/Request.swift:864-870 | EhPanda/Network/Request.swift:937-943 \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. 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":"EhPanda/Network/Request.swift"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd1d0a7f85a7743fab44bb5e3651e1c8563f8d63deb955674bf99a9d1a19dfca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): EhPanda/App/Tools/Parser.swift:584-590 | EhPanda/App/Tools/Parser.swift:613-619 \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 \u0060EhPanda/App/Tools/Parser.swift:584\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":"EhPanda/App/Tools/Parser.swift"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"f341a4d74cd7ca17eef287b6a8f8744591246380738db434d884f0fe2103267b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): EhPanda/View/Favorites/FavoritesReducer.swift:95-101 | EhPanda/View/Home/Toplists/ToplistsReducer.swift:113-119 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Favorites/FavoritesReducer.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"651fa68683d30fd089a6ef18c181d1a0d6610a81334aa7777779173cdc84d5be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): EhPanda/View/Favorites/FavoritesReducer.swift:129-135 | EhPanda/View/Home/Toplists/ToplistsReducer.swift:161-167 \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":"EhPanda/View/Favorites/FavoritesReducer.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"03412e827dfa239803fa3cd7a4dbccea80261b4744da2f1dcff2811aaad0a4a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 9): EhPanda/View/Detail/DetailSearch/DetailSearchView.swift:79-84 | EhPanda/View/Favorites/FavoritesView.swift:86-91 | EhPanda/View/Home/Frontpage/FrontpageView.swift:59-64 | EhPanda/View/Home/History/HistoryView.swift:53-58 | EhPanda/View/Home/HomeView.swift:99-104 | EhPanda/View/Home/Popular/PopularView.swift:56-61 | EhPanda/View/Home/Toplists/ToplistsView.swift:67-72 | EhPanda/View/Home/Watched/WatchedView.swift:83-88 | EhPanda/View/Search/SearchView.swift:79-84 \u2014 before extracting anything, compare \u0060EhPanda/View/Detail/DetailSearch/DetailSearchView.swift\u0060 and \u0060EhPanda/View/Favorites/FavoritesView.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 68 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 \u0060EhPanda/View/Detail/DetailSearch/DetailSearchView.swift:79\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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060store\u0060 to \u0060StoreOf\u003CDetailSearchReducer\u003E\u0060 in one and \u0060StoreOf\u003CFavoritesReducer\u003E\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":"EhPanda/View/Detail/DetailSearch/DetailSearchView.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"614c0edc0682b0df470dcab2b5027c111694e2042ad0268f6e29d0d80a3fa70f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 8): EhPanda/Network/Request.swift:165-171 | EhPanda/Network/Request.swift:182-188 | EhPanda/Network/Request.swift:196-201 | EhPanda/Network/Request.swift:210-215 | EhPanda/Network/Request.swift:237-242 | EhPanda/Network/Request.swift:253-259 | EhPanda/Network/Request.swift:318-324 | EhPanda/Network/Request.swift:335-342 \u2014 all 8 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 \u0060EhPanda/Network/Request.swift:165\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":"EhPanda/Network/Request.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e597f06d4223e9008fa21a467b50f5dc31af256e680aa317ae3f8ad70710e8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): EhPanda/View/Detail/DetailSearch/DetailSearchReducer.swift:159-164 | EhPanda/View/Favorites/FavoritesReducer.swift:170-175 | EhPanda/View/Home/Frontpage/FrontpageReducer.swift:140-145 | EhPanda/View/Home/Toplists/ToplistsReducer.swift:197-202 | EhPanda/View/Home/Watched/WatchedReducer.swift:153-158 | EhPanda/View/Search/SearchReducer.swift:159-164 \u2014 before extracting anything, compare \u0060EhPanda/View/Detail/DetailSearch/DetailSearchReducer.swift\u0060 and \u0060EhPanda/View/Home/Frontpage/FrontpageReducer.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 91 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 \u0060EhPanda/View/Detail/DetailSearch/DetailSearchReducer.swift:159\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":"EhPanda/View/Detail/DetailSearch/DetailSearchReducer.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"17836ea5238b705d15641b47995d80b9044b1109b662f44dee0c706f139e4d8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): EhPanda/View/Detail/DetailSearch/DetailSearchView.swift:38-43 | EhPanda/View/Favorites/FavoritesView.swift:45-50 | EhPanda/View/Home/Toplists/ToplistsView.swift:40-45 | EhPanda/View/Home/Watched/WatchedView.swift:38-43 | EhPanda/View/Search/SearchView.swift:38-43 \u2014 before extracting anything, compare \u0060EhPanda/View/Detail/DetailSearch/DetailSearchView.swift\u0060 and \u0060EhPanda/View/Favorites/FavoritesView.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 68 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 \u0060EhPanda/View/Detail/DetailSearch/DetailSearchView.swift:38\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060store\u0060 to \u0060StoreOf\u003CDetailSearchReducer\u003E\u0060 in one and \u0060StoreOf\u003CFavoritesReducer\u003E\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":"EhPanda/View/Detail/DetailSearch/DetailSearchView.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"04418fbb90231115ee9d1cea313c8fc3e54038dc3701e11108afd882654f340c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): EhPanda/View/Detail/DetailSearch/DetailSearchView.swift:38-43 | EhPanda/View/Home/Frontpage/FrontpageView.swift:37-42 | EhPanda/View/Search/SearchView.swift:38-43 \u2014 before extracting anything, compare \u0060EhPanda/View/Detail/DetailSearch/DetailSearchView.swift\u0060 and \u0060EhPanda/View/Home/Frontpage/FrontpageView.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 \u0060EhPanda/View/Detail/DetailSearch/DetailSearchView.swift:38\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060store\u0060 to \u0060StoreOf\u003CDetailSearchReducer\u003E\u0060 in one and \u0060StoreOf\u003CFrontpageReducer\u003E\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":"EhPanda/View/Detail/DetailSearch/DetailSearchView.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc7e7e2a3b6b0d20444321dcbade543b6550cbff76f04a4ff22dd2ef66dc3fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): EhPanda/App/Tools/Parser.swift:573-578 | EhPanda/App/Tools/Parser.swift:606-611 \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 \u0060EhPanda/App/Tools/Parser.swift:573\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":"EhPanda/App/Tools/Parser.swift"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"06f4bc8854160d3da3e545837e43671d7ebdf6f01d89c0546bfdce69276d1d36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): EhPanda/View/Detail/Components/RatingView.swift:20-24 | EhPanda/View/Detail/Components/RatingView.swift:27-31 | EhPanda/View/Detail/Components/RatingView.swift:34-38 | EhPanda/View/Detail/Components/RatingView.swift:41-45 \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 \u0060EhPanda/View/Detail/Components/RatingView.swift:20\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, \u0060EhPanda/View/Detail/Components/RatingView.swift:26\u0060 calls \u0060ForEach\u0060, \u0060FilledStar\u0060 and \u0060EhPanda/View/Detail/Components/RatingView.swift:19\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":"EhPanda/View/Detail/Components/RatingView.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"7833c676c5511d3be7dc63a21ced310aeefc9d277aa930bcb99b65f3df40547e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): EhPanda/Models/Gallery/Gallery.swift:52-59 | EhPanda/Models/Gallery/GalleryDetail.swift:44-51 \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":"EhPanda/Models/Gallery/Gallery.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b125a3cf13b51c0f823440ede659d2644d6c9a354ddb2c66665a7aa56314a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): EhPanda/View/Detail/DetailSearch/DetailSearchReducer.swift:40-46 | EhPanda/View/Home/Frontpage/FrontpageReducer.swift:41-47 | EhPanda/View/Home/Watched/WatchedReducer.swift:39-45 | EhPanda/View/Search/SearchReducer.swift:40-46 \u2014 before extracting anything, compare \u0060EhPanda/View/Detail/DetailSearch/DetailSearchReducer.swift\u0060 and \u0060EhPanda/View/Home/Frontpage/FrontpageReducer.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 91 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"EhPanda/View/Detail/DetailSearch/DetailSearchReducer.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"df5b796879a2b4280887d77c41f1a226416edead035a9544b75fc6dac74aa431"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): EhPanda/View/Detail/DetailSearch/DetailSearchView.swift:107-118 | EhPanda/View/Home/Watched/WatchedView.swift:111-122 | EhPanda/View/Search/SearchView.swift:107-118 \u2014 before extracting anything, compare \u0060EhPanda/View/Detail/DetailSearch/DetailSearchView.swift\u0060 and \u0060EhPanda/View/Home/Watched/WatchedView.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 88 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Detail/DetailSearch/DetailSearchView.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"e942b3f03815c8de991616100904ed38e40d9b01b9b47252c8c923d36a6dc509"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): EhPanda/View/Home/Frontpage/FrontpageView.swift:87-93 | EhPanda/View/Home/Popular/PopularView.swift:84-90 \u2014 before extracting anything, compare \u0060EhPanda/View/Home/Frontpage/FrontpageView.swift\u0060 and \u0060EhPanda/View/Home/Popular/PopularView.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 97 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Home/Frontpage/FrontpageView.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"91016743712e41e95b0afadcd91ddb3fb5553c74c31423c2a5427fd38bdc919b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): EhPanda/View/Support/Components/Cells/GalleryDetailCell.swift:16-20 | EhPanda/View/Support/Components/Cells/GalleryThumbnailCell.swift:16-20 \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":"EhPanda/View/Support/Components/Cells/GalleryDetailCell.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"9abfeead37e47f26e651dc12515bc9e58bb8645501386b162509fddbbfb138c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): EhPanda/View/Detail/Previews/PreviewsView.swift:16-24 | EhPanda/View/Reading/ReadingView.swift:25-33 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060store\u0060 to \u0060StoreOf\u003CPreviewsReducer\u003E\u0060 in one and \u0060StoreOf\u003CReadingReducer\u003E\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":"EhPanda/View/Detail/Previews/PreviewsView.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"252f251a5c15d781ca1cf4090525d5a90f81b6f7948ec25bc06151c818f33cdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): EhPanda/View/Favorites/FavoritesReducer.swift:51-57 | EhPanda/View/Home/Toplists/ToplistsReducer.swift:58-64 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Favorites/FavoritesReducer.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff37d47e5d0504670b9718c9a1106f80caa0eaf9e3be90e2d8d27278ca4f8030"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 8): EhPanda/View/Favorites/FavoritesView.swift:17-26 | EhPanda/View/Home/Frontpage/FrontpageView.swift:17-26 | EhPanda/View/Home/History/HistoryView.swift:16-25 | EhPanda/View/Home/HomeView.swift:19-28 | EhPanda/View/Home/Popular/PopularView.swift:16-25 | EhPanda/View/Home/Toplists/ToplistsView.swift:16-25 | EhPanda/View/Home/Watched/WatchedView.swift:16-25 | EhPanda/View/Search/SearchRootView.swift:16-25 \u2014 before extracting anything, compare \u0060EhPanda/View/Favorites/FavoritesView.swift\u0060 and \u0060EhPanda/View/Home/Frontpage/FrontpageView.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060store\u0060 to \u0060StoreOf\u003CFavoritesReducer\u003E\u0060 in one and \u0060StoreOf\u003CFrontpageReducer\u003E\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060EhPanda/View/Home/Toplists/ToplistsView.swift:28\u0060 calls \u0060joined\u0060 and \u0060EhPanda/View/Home/Frontpage/FrontpageView.swift:28\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":"EhPanda/View/Favorites/FavoritesView.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8afbf7786573ef0b0ab7fea2f086c34997285259be9df77b3a5a13c9154e01b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): EhPanda/View/Favorites/FavoritesView.swift:135-143 | EhPanda/View/Home/HomeView.swift:521-529 | EhPanda/View/Search/SearchRootView.swift:428-436 \u2014 before extracting anything, compare \u0060EhPanda/View/Favorites/FavoritesView.swift\u0060 and \u0060EhPanda/View/Home/HomeView.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Favorites/FavoritesView.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8d533b69071a48d930d16412004ce71f4a15c10762f8cdff3dff7c476380edc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): EhPanda/View/Home/Frontpage/FrontpageView.swift:97-107 | EhPanda/View/Home/History/HistoryView.swift:103-113 | EhPanda/View/Home/Popular/PopularView.swift:94-104 | EhPanda/View/Home/Toplists/ToplistsView.swift:152-162 | EhPanda/View/Home/Watched/WatchedView.swift:126-136 \u2014 before extracting anything, compare \u0060EhPanda/View/Home/Frontpage/FrontpageView.swift\u0060 and \u0060EhPanda/View/Home/History/HistoryView.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"EhPanda/View/Home/Frontpage/FrontpageView.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"73282ad3bbcf4272945cfd972b1eae2a543957ab6be4c0c03aaaa4888ea8189c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): EhPanda/App/Tools/Parser.swift:430-434 | EhPanda/App/Tools/Parser.swift:443-447 \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 \u0060EhPanda/App/Tools/Parser.swift:430\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":"EhPanda/App/Tools/Parser.swift"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"414d5745ea5753aa05e90585a8109726d15fddee8ba16d9b72e5a09b2112092e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: DFURLProtocol (LCOM4 6): DFURLProtocol\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":"EhPanda/Network/DFURLProtocol.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"5779b8fa8c52b57016937f44ea4c4c8676939dda8e2298e456919b43ea77e052"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testExample: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPandaTests/Tests/Parser/Gallery/GalleryImageURLParserTests.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8fe17278613a05251c6ffeeb1938c061b6b0d158ae419cc92d3dbddaeaf2c1b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testExample: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPandaTests/Tests/Parser/Other/EhSettingParserTests.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b3c4518f1ba743255b94dba29711d8d5dd2a923e758ea78365602f369f430e6"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: alertkit: Dependency \u0060alertkit\u0060 is resolved in EhPanda.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved against branch \u0060custom\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":"61e95dcccdc4afc0c7ed3332852d5f049a0136f67098b1b9f07d248f40bfcaef"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: deprecatedapi: Dependency \u0060deprecatedapi\u0060 is resolved in EhPanda.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":"efb01d206dbe3b5c2e6508adca5e7b1bafab9fdff7b5e6e97f6339743b83c14b"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: ttprogresshud: Dependency \u0060ttprogresshud\u0060 is resolved in EhPanda.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved against branch \u0060custom\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":"7221cf7ea606297e3f3be1cc79b182c199e3731d97b5df35fe4347ef85e74e34"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 4 significant file(s) lose their only recent owner: EhPanda/View/Setting/EhSetting/EhSettingView.swift, EhPanda/View/Search/SearchRootView.swift, EhPanda/View/Setting/GeneralSetting/GeneralSettingView.swift, EhPanda/View/Setting/Components/AboutView.swift. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9cd5de7f5552ae8fa30415b0624a496f4b4e2661f561ec9a3a4b4ba2a844d5ba"}},{"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":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 1 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is \u0060(repository root)\u0060 (27221 LoC, 744 module-visible types across 56 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d5b8f11381d61a58459ffc7c595fd52d09c03c711894a63a9578043d2338412b"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1f6e5814896f3d94efb5a534134f5ef5b0436d18734db012de4d07085ddbe0fd"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f931729687ce81c2bbb7f1ee1a152ada354dd55bd24d5781e96aeb1037f38fd3"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"98470c0d778213faa35986f8c50dc835eceba136ef6ac81dc00a4cb3eee386ef"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"56c61434eaf4670351758975ee828017fe0a69d913220c8c05c40931bb1a4cad"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bda8c6e9e1d9bf4fafb57bfc3d07e3d3a9a8a46931cfcd971002cb20852b34d3"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7c3b2695e507122f7536ff3563265513718eefb963ab19a1d58002010e98c4c8"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cca653a637c6d7e84cb7f421c2302cff5b6798c2b6d58ebecd042b52af6d061"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"45eacba5cd25bd92b7dbe0798b955f0b1505b7ce6664a8f5d3cf58cb8782be9a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6dd3874e16a619eb6b32acd753cbce85fa4d5ca0d02958001075df38c3365229"},"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"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"da03799fc3118d150d08138b70314aa440345b1d41b31bf8ec40bdf77dadcc32"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b6bbba0b6f365c0fa4e4937cc0adcc80dd41ec8e10ff08306e447a536b1c8880"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7c1083f5d06a26735c2e6d47220a1c1f3fa19f356c8a28fa707d96b91f78df60"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d625e673f7ea242679e88874d9597161c4c1b8dbcf71cefb2d540eb2459e0ffb"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"db58a5578713dd045533c631e54e78c3ab59568dea4d9406e9ff92f3db3b2118"},"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"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"ae23296b9cf39206549cd6f3230898c31ddcd81c6584837968106aa3f305944b"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f40c27c54f93b395372c91a6b6fa1ca4d85572db88b56a270fe613fccc0884df"},"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"}},{"id":"A09:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"51deb5f11d29da72484d112de68af7e38e0a51818f441a6e0dd487a6031a58d2"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eaa9c40d433621153ed9e89d9bc3b0a66c7486b243554679716864ed51a798f0"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D34","level":"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":"EhPanda/App/Tools/Parser.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffa3026aa73d846fc9fb85a620d9d80318d51a31f6eda76a9999b188400b365c"}},{"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":"EhPanda/Network/Request.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce5abecbd0b4c069777ff12e9e87bea6ce7789f6d5de94feddb6ab2b09ca46d4"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 45 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: EhPanda/View/Home/HomeView.swift, EhPanda/Models/Support/EhSetting.swift, EhPanda/App/Tools/Clients/DatabaseClient.swift, EhPanda/View/Detail/Comments/CommentsView.swift, EhPanda/App/Tools/Extensions/Extensions.swift, EhPanda/View/Support/FiltersView.swift, EhPanda/View/Setting/AccountSetting/AccountSettingView.swift, EhPanda/Models/Persistent/Setting.swift (and 37 more) (47 orphaned of 106 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 106 of the 179 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":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Home/HomeView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1855def0a84f2b27e30258dfa74c67352df99e0ad1a89126dec9edc08554462"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/App/Tools/Clients/DatabaseClient.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ce43cb234eb0bf6373c6464c2fb6a90d59be156a305a67939ff0bacd3753de5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/Models/Support/EhSetting.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ba7ece99e49f5ad807793ed05a4e42885892a6b540aec5a115b292e730e5673"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/App/Tools/Clients/CookieClient.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed1a668398be935d5aebfa7bf8638715a4688206e688f3184414f13deadb82e9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Detail/Comments/CommentsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"af00bec90dbaeca323ca23df01d4aa651dc6b4fd8a0ae885957cbbb7e2924655"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/App/Tools/Extensions/Extensions.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f969133e5af0e5a66b26b580f5eaf40f29874a4bf282d96c163c8d5aa585168d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Support/FiltersView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3f4dfd3cf6d7533e3e04df2d6171e84b25032fe3c6982dbf48bb7c82f640fa8"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Setting/AccountSetting/AccountSettingView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c10a7435691c721b4ff2c8c6bab79259f2cb22159dbd2da1a2f334a824a0d5fb"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/Models/Persistent/Setting.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"36692b8c3467e2240dbcbb0f69dcbf6ad75ab5ea61cbc5c33b2f5a8120462dff"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/App/Tools/Utilities/URLUtil.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"30417e47b36c1d4ad540cd987b2144aaa9b275da01b3457236d92e294feefb2f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Detail/Archives/ArchivesView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6c1ece05d73c30506d4f834ea03f87e8b9f6c120df73d42f9aa475a30400459"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Search/Support/QuickSearchView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cf733a8be58a0f699740654c5b0caa809f5b59e7e6e21d0b8380621ca5f6c27"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/Network/DFExtensions.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"16828dc7dad4ab548a573004c5bc57925259b103b53f7e23df8f86dbc430e540"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Support/Components/GenericList.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"54650e94aeced84908815ebf7e3d1d5472d9833e4b2393483c997dd178e6aae8"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Setting/SettingView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"61b143fd644f30e4b7bda03fa6f12db213462a2a4658f3eff1789b7417b7961f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Support/Components/TagSuggestionView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"027ffb72788902d70c3570403091d0c00a31b1ced0af2e813791ac8f59248f41"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Reading/Support/LiveTextView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"003f9f3ea33aa12e158e9761c2af550457cf07c5718343b8f534e3993ccf9765"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/App/Tools/Defaults.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e460a8d4e8212236f6041c7d13cd02f06022fef2a77ec34e2380ea5beb2f004"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/Network/DFStreamHandler.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"baff9eba945ab9d4ad2c40a24c6a921cafe26d9a6d795921c8ec502d02b063f8"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/App/Tools/Extensions/ViewModifiers.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c68f9a454974bce03ad895a40434fdd17485944d52062231e39b50c5027dc5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Home/Toplists/ToplistsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e14ae1ec343279b3cb42d70812380a989409df3b4d0af38e5f17ba520c6e3096"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/Models/Support/AppError.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cddea722db68a5bca14a8ce47b275938e5002107b554cd92a56e5900b474d60a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Support/Components/ToolbarItems.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"42ccebd8302cb64a74d7b0dc799bf971b21353fe342132125ec222b85967275b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/Models/Support/LiveText.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"301d0bb752f7681bb580627c08883d9e30d96f0d5e9917387b5a7c5d04e6775d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Setting/Components/ReadingSettingView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8724fa78d36257403ea9611e7f3f6803bf5861da59bfe3291d0026aeaa63b3b3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Setting/Logs/LogsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8b10bdca8becfa5a863e6b3722c5f4a0fce415a22f9e24de326e3d2937b8eec"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/Database/Migration/CoreDataMigrator.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"37a3dbca983b3a099c0625407380f93777eb1d6bac5876fd7fb5be4900179bc9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/App/Tools/Clients/FileClient.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0197be3f5c6ed4d4f020a5fb86d63aa6447a8393ed0af788ee19d5f0ab797444"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Support/Components/AlertView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d53c4ad2a91d8820483455c686ce18a6b7f56e76ece81822b92a3f4bf9aac0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Support/NewDawnView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02540e9ac6f55c47746f4c207f602170e263cf79cea2e33426fe3a8445835645"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/Database/Migration/Policies/Model5toModel6MigrationPolicy.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"650248fdae41c1fe5cbacf72b7185a0fd4a4b3ab0f47f899bd2a2d2812b86d9b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Detail/Components/TagDetailView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f0eccf73062c3f564a0ee363c096bc51537b702fa549a46434caaa202bdc7d8"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/Models/Persistent/Filter.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e06652643dcd96f2c9ff937b9ae2d65ceefc7391c749d5d4cd4ab747d8026f2c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Home/History/HistoryView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e75e5bfe39d6aadedeaa96f606522d2c106e936b506c0c1618bd37ae81a7312"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Support/Components/TagCloudView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ff9e0177bd71d8ce3b099c9d940bde4be5a48006a87e925d940c7f44aa4597"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/Database/Persistence.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9500cc373a0f301efdd3298faab616dc484e36d8c20b85d496aba2400a9e4f97"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Support/Components/Cells/GalleryThumbnailCell.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaa7bb160ce281b02ae5e1726a6b3ddadbc231833f9736c71264e687df246347"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Support/Components/Cells/GalleryDetailCell.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d8eefeb8087aa50c972ef5d343d7b40d71160498ecf674946ab01c3e8e2be76"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Detail/Previews/PreviewsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"28eec1042159fbda5c1b4bfbb4f9746d9f1ebca0ce65409b0f1c5f7b6b1da6a1"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/Models/Tags/TagTranslation.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2535fcdeda5dc6b86fec1a903785a9be6388e03c1164601ccc9da22e9d98d9b8"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/Models/Gallery/GalleryState.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c0d9d56fcb1aae74b26416479d84388b64887f590a1c67fef15a0c5dd081088"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/Models/Gallery/Gallery.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b2ea59aa0db4b4d529413451e66a116d7b6ead9b768b0682669341c44cbcca4"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Setting/Components/WebView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c76ce0c5dc424da755851555fecf56784a700bce06458716cdca8a6850607f6e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/Models/Gallery/GalleryDetail.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"67527f7e7a9fa4f1916b3e0bbe78d6e84ee7650a0248b60a77b4b128ff7a7d3d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Support/Components/Cells/GalleryCardCell.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"11946094f6d052e026ad3b060ca65742780a2ec63610066deb1bcc67837236c8"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: DetailSearchView.swift \u2192 FavoritesView.swift, FrontpageView.swift, HistoryView.swift, PopularView.swift, ToplistsView.swift, WatchedView.swift, SearchRootView.swift, SearchView.swift, SettingView.swift: \u0060EhPanda/View/Detail/DetailSearch/DetailSearchView.swift\u0060 changes together with 9 other files \u2014 \u0060EhPanda/View/Favorites/FavoritesView.swift\u0060, \u0060EhPanda/View/Home/Frontpage/FrontpageView.swift\u0060, \u0060EhPanda/View/Home/History/HistoryView.swift\u0060, \u0060EhPanda/View/Home/Popular/PopularView.swift\u0060, \u0060EhPanda/View/Home/Toplists/ToplistsView.swift\u0060, \u0060EhPanda/View/Home/Watched/WatchedView.swift\u0060, \u0060EhPanda/View/Search/SearchRootView.swift\u0060, \u0060EhPanda/View/Search/SearchView.swift\u0060, \u0060EhPanda/View/Setting/SettingView.swift\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 9 separate couplings, not 9 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 9."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Detail/DetailSearch/DetailSearchView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"67bef98c1c692f8b55fad50a36d9a3df9b08f4e69304e55ab5a7256efe86790d"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: PopularView.swift \u2192 FavoritesView.swift, FrontpageView.swift, ToplistsView.swift, WatchedView.swift, SearchView.swift, TabBarView.swift: \u0060EhPanda/View/Home/Popular/PopularView.swift\u0060 changes together with 6 other files \u2014 \u0060EhPanda/View/Favorites/FavoritesView.swift\u0060, \u0060EhPanda/View/Home/Frontpage/FrontpageView.swift\u0060, \u0060EhPanda/View/Home/Toplists/ToplistsView.swift\u0060, \u0060EhPanda/View/Home/Watched/WatchedView.swift\u0060, \u0060EhPanda/View/Search/SearchView.swift\u0060, \u0060EhPanda/View/TabBar/TabBarView.swift\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 6 separate couplings, not 6 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 6."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Home/Popular/PopularView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cd93342aed16d0bdd6492d83d81c4b45db0c71212012bde961eddafb4da9c48"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: WatchedView.swift \u2192 FavoritesView.swift, FrontpageView.swift, ToplistsView.swift, SearchRootView.swift, SearchView.swift: \u0060EhPanda/View/Home/Watched/WatchedView.swift\u0060 changes together with 5 other files \u2014 \u0060EhPanda/View/Favorites/FavoritesView.swift\u0060, \u0060EhPanda/View/Home/Frontpage/FrontpageView.swift\u0060, \u0060EhPanda/View/Home/Toplists/ToplistsView.swift\u0060, \u0060EhPanda/View/Search/SearchRootView.swift\u0060, \u0060EhPanda/View/Search/SearchView.swift\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 5 separate couplings, not 5 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 5."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Home/Watched/WatchedView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"32f69727a9a08cbd26f103c8185da0b8cc377787692dafd15f24d568509e9261"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: FrontpageView.swift \u2194 ToplistsView.swift: \u0060EhPanda/View/Home/Frontpage/FrontpageView.swift\u0060 and \u0060EhPanda/View/Home/Toplists/ToplistsView.swift\u0060 change together 86% of the time (18 of the 21 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 \u00609a02e113\u0060 Migrate TCA to 1.5; \u0060253056d6\u0060 Fix \u0027binding(_:fileID:line:)\u0027; \u0060ebb23871\u0060 Fix \u0027init(_:)\u0027 is deprecated \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Home/Frontpage/FrontpageView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"73e427537f22711f3be51b9067b2e900a04e67e13096e0d28716aff7b0c35943"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: HistoryView.swift \u2192 FavoritesView.swift, FrontpageView.swift, PopularView.swift, ToplistsView.swift, WatchedView.swift, SearchView.swift, AccountSettingView.swift, GeneralSettingView.swift: \u0060EhPanda/View/Home/History/HistoryView.swift\u0060 changes together with 8 other files \u2014 \u0060EhPanda/View/Favorites/FavoritesView.swift\u0060, \u0060EhPanda/View/Home/Frontpage/FrontpageView.swift\u0060, \u0060EhPanda/View/Home/Popular/PopularView.swift\u0060, \u0060EhPanda/View/Home/Toplists/ToplistsView.swift\u0060, \u0060EhPanda/View/Home/Watched/WatchedView.swift\u0060, \u0060EhPanda/View/Search/SearchView.swift\u0060, \u0060EhPanda/View/Setting/AccountSetting/AccountSettingView.swift\u0060, \u0060EhPanda/View/Setting/GeneralSetting/GeneralSettingView.swift\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 8 separate couplings, not 8 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 8."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Home/History/HistoryView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ec5f8a3524e9f45121c0ab0f40e6403b5ec0e9ad043f47693143ea96ef9ecd9"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: FavoritesView.swift \u2192 FrontpageView.swift, ToplistsView.swift, SearchView.swift: \u0060EhPanda/View/Favorites/FavoritesView.swift\u0060 changes together with 3 other files \u2014 \u0060EhPanda/View/Home/Frontpage/FrontpageView.swift\u0060, \u0060EhPanda/View/Home/Toplists/ToplistsView.swift\u0060, \u0060EhPanda/View/Search/SearchView.swift\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Favorites/FavoritesView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"66c8c4f6b61f3b67042bae6b0e601f088cfc8d6699887ffb3d490444f0a9bcc9"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ToplistsView.swift \u2194 SearchView.swift: \u0060EhPanda/View/Home/Toplists/ToplistsView.swift\u0060 and \u0060EhPanda/View/Search/SearchView.swift\u0060 change together 71% of the time (15 of the 21 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 15 shared commits counted here, the most recent 3 are \u00609a02e113\u0060 Migrate TCA to 1.5; \u0060253056d6\u0060 Fix \u0027binding(_:fileID:line:)\u0027; \u0060ebb23871\u0060 Fix \u0027init(_:)\u0027 is deprecated \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Home/Toplists/ToplistsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b11f13b0643d49aa155cfc0b12604470c29fd5a62585b7db3b06b8871f540651"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: FrontpageView.swift \u2194 SearchView.swift: \u0060EhPanda/View/Home/Frontpage/FrontpageView.swift\u0060 and \u0060EhPanda/View/Search/SearchView.swift\u0060 change together 64% of the time (16 of the 25 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 16 shared commits counted here, the most recent 3 are \u00609a02e113\u0060 Migrate TCA to 1.5; \u0060253056d6\u0060 Fix \u0027binding(_:fileID:line:)\u0027; \u0060ebb23871\u0060 Fix \u0027init(_:)\u0027 is deprecated \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Home/Frontpage/FrontpageView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e27d505a071d8ae2a2a2797450fba1b288577d486f6d8e4383c5835707959fa7"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: HomeView.swift \u2192 AppearanceSettingView.swift, GeneralSettingView.swift, SettingView.swift, FiltersView.swift: \u0060EhPanda/View/Home/HomeView.swift\u0060 changes together with 4 other files \u2014 \u0060EhPanda/View/Setting/AppearanceSetting/AppearanceSettingView.swift\u0060, \u0060EhPanda/View/Setting/GeneralSetting/GeneralSettingView.swift\u0060, \u0060EhPanda/View/Setting/SettingView.swift\u0060, \u0060EhPanda/View/Support/FiltersView.swift\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 4 separate couplings, not 4 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 4."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Home/HomeView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e5a28d9ea2580cb20b84eb51c7db77b38b8668e113e7f2420491230a83ef0ee"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: CommentsView.swift \u2192 PreviewsView.swift, FavoritesView.swift, FrontpageView.swift, HistoryView.swift, HomeView.swift, PopularView.swift, ToplistsView.swift, WatchedView.swift, SearchView.swift, AccountSettingView.swift, EhSettingView.swift, TabBarView.swift: \u0060EhPanda/View/Detail/Comments/CommentsView.swift\u0060 changes together with 12 other files \u2014 \u0060EhPanda/View/Detail/Previews/PreviewsView.swift\u0060, \u0060EhPanda/View/Favorites/FavoritesView.swift\u0060, \u0060EhPanda/View/Home/Frontpage/FrontpageView.swift\u0060, \u0060EhPanda/View/Home/History/HistoryView.swift\u0060, \u0060EhPanda/View/Home/HomeView.swift\u0060, \u0060EhPanda/View/Home/Popular/PopularView.swift\u0060, \u0060EhPanda/View/Home/Toplists/ToplistsView.swift\u0060, \u0060EhPanda/View/Home/Watched/WatchedView.swift\u0060, \u0060EhPanda/View/Search/SearchView.swift\u0060, \u0060EhPanda/View/Setting/AccountSetting/AccountSettingView.swift\u0060, \u0060EhPanda/View/Setting/EhSetting/EhSettingView.swift\u0060, \u0060EhPanda/View/TabBar/TabBarView.swift\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 12 separate couplings, not 12 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 12."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Detail/Comments/CommentsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"652b3ced1f6dddd2c52a12c9cf40bf04c5b5d303327d6ad708252165473772cf"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: DetailView.swift \u2192 AppearanceSettingView.swift, GeneralSettingView.swift, SettingView.swift: \u0060EhPanda/View/Detail/DetailView.swift\u0060 changes together with 3 other files \u2014 \u0060EhPanda/View/Setting/AppearanceSetting/AppearanceSettingView.swift\u0060, \u0060EhPanda/View/Setting/GeneralSetting/GeneralSettingView.swift\u0060, \u0060EhPanda/View/Setting/SettingView.swift\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Detail/DetailView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a8e872075e68d2404eec8114a4e38a927233caefefbc7ceb763869463f91396"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: AppearanceSettingView.swift \u2194 GeneralSettingView.swift: \u0060EhPanda/View/Setting/AppearanceSetting/AppearanceSettingView.swift\u0060 and \u0060EhPanda/View/Setting/GeneralSetting/GeneralSettingView.swift\u0060 change together 53% of the time (27 of the 51 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 27 shared commits counted here, the most recent 3 are \u0060253056d6\u0060 Fix \u0027binding(_:fileID:line:)\u0027; \u0060ebb23871\u0060 Fix \u0027init(_:)\u0027 is deprecated; \u006090c262a2\u0060 Fix \u0027init(initialState:reducer:prepareDependencies:)\u0027 is deprecated \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Setting/AppearanceSetting/AppearanceSettingView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd334e5977041d19cd72cb8a6abbf358bad16ee35fae2e4aa33c7483ec360391"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: QuickSearchView.swift \u2194 EhSettingView.swift: \u0060EhPanda/View/Search/Support/QuickSearchView.swift\u0060 and \u0060EhPanda/View/Setting/EhSetting/EhSettingView.swift\u0060 change together 53% of the time (10 of the 19 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 10 shared commits counted here, the most recent 3 are \u0060253056d6\u0060 Fix \u0027binding(_:fileID:line:)\u0027; \u0060ebb23871\u0060 Fix \u0027init(_:)\u0027 is deprecated; \u006090c262a2\u0060 Fix \u0027init(initialState:reducer:prepareDependencies:)\u0027 is deprecated \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Search/Support/QuickSearchView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"33950c66f219fea4faa1824d1c038b8dc4ceda4b05ef037c6fab0e91d6cd9d17"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"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":"5484ebc100852c82624b2f9d29d22b26290a1daeb6a0823c13bb92fe667a9888"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bb83de7dcfd64e97b9df2e2ca9c4812adb5a103d5a5647f09c7d63ad65727095"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bee16a916192bc47803c755fa5c777c01a15fb56e69ce46b43bdf718adcb77fa"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"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":"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 14348 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":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isLandscape \u0026\u0026 setting.enablesDualPageMode \u0026\u0026 setting.readingDirection != .vertical\u0060 appears character-identically in 2 files \u2014 EhPanda/View/Reading/ReadingReducer.swift, EhPanda/View/Reading/Support/PageHandler.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EhPanda/View/Reading/ReadingReducer.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"66392aea4b8ed155f258fa373fcf954d2ed4f8751438f0e6d42979191e54bcda"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-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-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"Insufficiently Protected Credentials","shortDescription":{"text":"Insufficiently Protected Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-532","guid":"1cd8877a-76e8-ce54-b40b-779af23364a0","name":"Insertion of Sensitive Information into Log File","shortDescription":{"text":"Insertion of Sensitive Information into Log File"},"helpUri":"https://cwe.mitre.org/data/definitions/532.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"},{"id":"A09:2025","guid":"78892bc9-3c98-495d-881c-8af1390d643c","name":"Security Logging \u0026 Alerting Failures","shortDescription":{"text":"Security Logging \u0026 Alerting Failures"},"helpUri":"https://top10.owasp.org/2025/A09_2025-Security_Logging_and_Alerting_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":27,"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."]}]}