{"$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":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D24","name":"Comment Value","shortDescription":{"text":"Comment Value"},"helpUri":"https://codehealth.canine.dev/dimensions/D24"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02: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":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"DM2","name":"Strongly-typed ids","shortDescription":{"text":"Strongly-typed ids"},"helpUri":"https://codehealth.canine.dev/dimensions/DM2"},{"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":"ED4","name":"Outbox / dual-write","shortDescription":{"text":"Outbox / dual-write"},"helpUri":"https://codehealth.canine.dev/dimensions/ED4"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P5","name":"DR \u0026 Backup","shortDescription":{"text":"DR \u0026 Backup"},"helpUri":"https://codehealth.canine.dev/dimensions/P5"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R4","name":"Test Coverage","shortDescription":{"text":"Test Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/R4"},{"id":"R5","name":"Dependency Freshness","shortDescription":{"text":"Dependency Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/R5"},{"id":"R6","name":"Tooling","shortDescription":{"text":"Tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/R6"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R8","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/R8"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"S1","name":"Web-Security Posture","shortDescription":{"text":"Web-Security Posture"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"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":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"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":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"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":"ReaderView.buildBody (cyclomatic 127): ReaderView.buildBody has cyclomatic complexity 127 (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":"Modules/Features/Reader/ReaderView.swift"},"region":{"startLine":1885}}}],"partialFingerprints":{"codehealthFindingId/v1":"2996a47c731c9bea220cef4c6b99bdd5c3b7a164a6e52fdcd041a7882824f363"}},{"ruleId":"D1","level":"warning","message":{"text":"_grabArticle (cyclomatic 118): _grabArticle has cyclomatic complexity 118 (threshold 15). Of this number, 106 points are the body\u0027s own statements and 12 belong to 4 function literals 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":"Resources/Assets/Readability.js"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"785e2ea8b02800e6597566a1393bb00612fb6bf8d10ed3545962f03e1bc60182"}},{"ruleId":"D1","level":"warning","message":{"text":"HTMLAttributedStringBuilder.apply (cyclomatic 105): HTMLAttributedStringBuilder.apply has cyclomatic complexity 105 (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":"Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift"},"region":{"startLine":1761}}}],"partialFingerprints":{"codehealthFindingId/v1":"4acc747c955521158324816448c530a12ad9ab0ab2e67600e346916ec0e50b86"}},{"ruleId":"D1","level":"warning","message":{"text":"HTMLTableRasterizer.renderPages (cyclomatic 92): HTMLTableRasterizer.renderPages has cyclomatic complexity 92 (threshold 15). Of this number, 57 points are the body\u0027s own statements and 35 belong to 8 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":"Modules/Core/ReaderCore/CoreText/HTMLTableSupport.swift"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"b31b987e595ef8d37bd2166e6bc2aceb82bcf3e75c0bebbb0128b23f52abe4c1"}},{"ruleId":"D1","level":"warning","message":{"text":"AIAgenticAssistant.answerQuestion (cyclomatic 83): AIAgenticAssistant.answerQuestion has cyclomatic complexity 83 (threshold 15). Of this number, 59 points are the body\u0027s own statements and 24 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIAgenticAssistant\u002BQuestion.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"a207a25023d38df302174a5928d56158669513fdf72caec8975dd09a695f5282"}},{"ruleId":"D1","level":"warning","message":{"text":"ReaderStyleCSSCodec.apply (cyclomatic 77): ReaderStyleCSSCodec.apply has cyclomatic complexity 77 (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":"Modules/Core/ReaderCore/Customization/ReaderStyleCSSCodec.swift"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4798bf83d28ca23be2d98f75b095752b70ca6d71991bd2268f133dacd3539ff"}},{"ruleId":"D1","level":"warning","message":{"text":"LegadoRhinoNormalizer.normalize (cyclomatic 69): LegadoRhinoNormalizer.normalize has cyclomatic complexity 69 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoRhinoNormalizer.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"33e210218120ffefbb950e93e8bc4afef4cc47a17f7eab12f8e801a50290d9a9"}},{"ruleId":"D1","level":"warning","message":{"text":"RuleModuleValidator.validateFields (cyclomatic 67): RuleModuleValidator.validateFields has cyclomatic complexity 67 (threshold 15). Of this number, 66 points are the body\u0027s own statements and 1 belongs 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":"Modules/Services/RuleModules/RuleModuleValidator.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fdd8255cd09fdcd95481a8919f95e979cba067c28255d68bf6207462dc78c5f"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreTextPaginator.computeLayout (cyclomatic 62): CoreTextPaginator.computeLayout has cyclomatic complexity 62 (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":"Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"eebc267a0e46692bd65349c12138d0be666d102e9e7ec215e4f2bc13a751fbf0"}},{"ruleId":"D1","level":"warning","message":{"text":"NodeAttributedStringRenderer.render (cyclomatic 58): NodeAttributedStringRenderer.render has cyclomatic complexity 58 (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":"Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e108ed4d08c86b5bddd524c55a2b449844edbed2ef0f25e0b2d9374c59a427a"}},{"ruleId":"D1","level":"warning","message":{"text":"StatementReader.readStatement (cyclomatic 56): StatementReader.readStatement has cyclomatic complexity 56 (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":"Modules/Core/RuleEngine/ModernParser/JS/LegadoCompletionValue.swift"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dcb707796ea2718ca6f55490aa1f939b0e928f7c46f930894041e3f4d3e9a32"}},{"ruleId":"D1","level":"warning","message":{"text":"NodeAttributedStringRenderer.renderBlock (cyclomatic 55): NodeAttributedStringRenderer.renderBlock has cyclomatic complexity 55 (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":"Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"143093fa77cca3e2f9735d2f2da12b77cfde463b7ae1d4ef375a79243390078f"}},{"ruleId":"D1","level":"warning","message":{"text":"ModernParserBridge.wireJSEngine (cyclomatic 54): ModernParserBridge.wireJSEngine has cyclomatic complexity 54 (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":"Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c7fd2036561dd9ca72f69003b331dcdaeac1a660fcc7ab20c40760afd281994"}},{"ruleId":"D1","level":"warning","message":{"text":"ReaderViewportFragmentHost.update (cyclomatic 52): ReaderViewportFragmentHost.update has cyclomatic complexity 52 (threshold 15). Of this number, 45 points are the body\u0027s own statements and 7 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":"Modules/Features/Reader/ReaderViewportFragmentHost.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce060f3d23ed71cc39db9f2136971b111661abedf43bf7486b9d5b3632e8f6ec"}},{"ruleId":"D1","level":"warning","message":{"text":"ElementNode.asRenderableNode (cyclomatic 51): ElementNode.asRenderableNode has cyclomatic complexity 51 (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":"Modules/Core/ReaderCore/CoreText/HTMLStyledASTRenderableNodeConverter.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"56bf01bc74b9b9dcc9da16929615be689cd661c2484e16cf61f9eda3248d8185"}},{"ruleId":"D1","level":"warning","message":{"text":"ruleEngine.routeExtractValue (cyclomatic 50): ruleEngine.routeExtractValue has cyclomatic complexity 50 (threshold 15). Of this number, 47 points are the body\u0027s own statements and 3 belong to one function literal 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":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"11bf5f4ef4c34c89020fa239e968da077c9406847f70e9ee072f0ebdacd35fca"}},{"ruleId":"D1","level":"warning","message":{"text":"RuleModuleValidator.validate (cyclomatic 49): RuleModuleValidator.validate has cyclomatic complexity 49 (threshold 15). Of this number, 48 points are the body\u0027s own statements and 1 belongs 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":"Modules/Services/RuleModules/RuleModuleValidator.swift"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"b77cbe8d0c0266f2269081060b9e2b46ccef71593f5c50fd1621a47d97c821f7"}},{"ruleId":"D1","level":"warning","message":{"text":"ChapterFetchManager.fetchChapter (cyclomatic 48): ChapterFetchManager.fetchChapter has cyclomatic complexity 48 (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":"Modules/Services/Online/OnlineReadingPipeline.swift"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"347dfa214ed4282a8495d43b50579ff45598e4864ce76f270b2f0e3c7ff58197"}},{"ruleId":"D1","level":"warning","message":{"text":"NodeAttributedStringRenderer.applyBlockStyle (cyclomatic 46): NodeAttributedStringRenderer.applyBlockStyle has cyclomatic complexity 46 (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":"Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift"},"region":{"startLine":1071}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a0bd0f178bcd00c2d80a39f124025a7d6493db7db4822dc9d03d09efe368d84"}},{"ruleId":"D1","level":"warning","message":{"text":"HTMLSourceValidator.validate (cyclomatic 46): HTMLSourceValidator.validate has cyclomatic complexity 46 (threshold 15). Of this number, 40 points are the body\u0027s own statements and 6 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":"Modules/Core/ReaderCore/Customization/ChapterTitleHTMLCodec.swift"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fa06f81499c7e683bcee2efe456dcba5c6e393e0ad3463f2f2eb7c612f89f3c"}},{"ruleId":"D1","level":"warning","message":{"text":"LegadoRhinoNormalizer.lex (cyclomatic 45): LegadoRhinoNormalizer.lex has cyclomatic complexity 45 (threshold 15). Of this number, 33 points are the body\u0027s own statements and 12 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoRhinoNormalizer.swift"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e2fb0c065b138a65a4679fb8ba34b8a20534054738940dedde4eae7446b6f39"}},{"ruleId":"D1","level":"warning","message":{"text":"ReaderStyleCSSCodec.decodeChapterLayerDeclarations (cyclomatic 43): ReaderStyleCSSCodec.decodeChapterLayerDeclarations has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderStyleCSSCodec.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a8cad0b6cfdc617c9f4a58f3929bcc72bd8e70d8b61606d49c53686788a0cb8"}},{"ruleId":"D1","level":"warning","message":{"text":"CommentBubbleSVGRecognizer.parseSVG (cyclomatic 42): CommentBubbleSVGRecognizer.parseSVG has cyclomatic complexity 42 (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":"Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aaf883bbaa597a42ebde163ad9c826d8fa9d81634e91780fbd1db45dd7eb5c0"}},{"ruleId":"D1","level":"warning","message":{"text":"HTMLAttributedStringBuilder.resolvedStyle (cyclomatic 42): HTMLAttributedStringBuilder.resolvedStyle has cyclomatic complexity 42 (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":"Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift"},"region":{"startLine":1296}}}],"partialFingerprints":{"codehealthFindingId/v1":"71e093d4cffd901147a234cae007567c3ee24ec5651bbf342cbe8940b45136bf"}},{"ruleId":"D1","level":"warning","message":{"text":"RSSXMLParserDelegate.handleArticleElementEnd (cyclomatic 40): RSSXMLParserDelegate.handleArticleElementEnd has cyclomatic complexity 40 (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":"Modules/Services/RSS/RSSFetcher.swift"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc869742eb6ce0290ccd64f38d867b215d85133ea3f5ff705cc40c0c2c1d427"}},{"ruleId":"D1","level":"warning","message":{"text":"SVGPathParser.execute (cyclomatic 40): SVGPathParser.execute has cyclomatic complexity 40 (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":"Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift"},"region":{"startLine":1613}}}],"partialFingerprints":{"codehealthFindingId/v1":"33956b55303fbdc015949a94c69372bdbcd4cfdedf08c782e1466ef8045e4cd9"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreTextScrollEngine.loadChapter (cyclomatic 40): CoreTextScrollEngine.loadChapter has cyclomatic complexity 40 (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":"Modules/Core/ReaderCore/CoreText/CoreTextScrollEngine.swift"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"32af6987498e6e10d9b87d68adc25d95f5e0eea306cbfe4ffe011b5507f86653"}},{"ruleId":"D1","level":"warning","message":{"text":"HighlightPackImporter.parseQiReader (cyclomatic 40): HighlightPackImporter.parseQiReader has cyclomatic complexity 40 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 18 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":"Modules/Core/ReaderCore/Customization/HighlightPackImporter.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"9290683743e1161869c6597280a87604efdf942fbffe10ad84beaa47e060df45"}},{"ruleId":"D1","level":"warning","message":{"text":"ReaderTranslationLayout.splice (cyclomatic 38): ReaderTranslationLayout.splice has cyclomatic complexity 38 (threshold 15). Of this number, 31 points are the body\u0027s own statements and 7 belong to 3 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":"Modules/Core/ReaderCore/Translation/ReaderTranslationLayout.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fd925a5f652ee7469618f577c37466a19f8d42aea19b07062faf42b51eed519"}},{"ruleId":"D1","level":"warning","message":{"text":"LegadoRhinoNormalizer.letReadsItsOwnName (cyclomatic 37): LegadoRhinoNormalizer.letReadsItsOwnName has cyclomatic complexity 37 (threshold 15). Of this number, 31 points are the body\u0027s own statements and 6 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":"Modules/Core/RuleEngine/ModernParser/JS/LegadoRhinoNormalizer.swift"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1a9771ca48020dea57802504b6a72d2f309b3e760b9b23b4d7f27db7bfe6ce4"}},{"ruleId":"D1","level":"warning","message":{"text":"AnalyzeUrl.normalizeLegadoOptionJSON (cyclomatic 37): AnalyzeUrl.normalizeLegadoOptionJSON has cyclomatic complexity 37 (threshold 15). Of this number, 31 points are the body\u0027s own statements and 6 belong to one function item inside it that branches. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/URL/AnalyzeUrl.swift"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b650948ee3295211415d19008cbc1c99d6317d6099c75edc9331f98a7c4db27"}},{"ruleId":"D1","level":"warning","message":{"text":"ruleEngine.parseSearchResultsJSON (cyclomatic 37): ruleEngine.parseSearchResultsJSON has cyclomatic complexity 37 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":1101}}}],"partialFingerprints":{"codehealthFindingId/v1":"dac884a343037feaac0377c879e784f6fbc0302babef52427ddf56d6127277ef"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreTextPaginator.extractImages (cyclomatic 36): CoreTextPaginator.extractImages 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift"},"region":{"startLine":2554}}}],"partialFingerprints":{"codehealthFindingId/v1":"040dfa8f21ff77a4166e8962667977ddf2646dda77992c0eac00f767483421c2"}},{"ruleId":"D1","level":"warning","message":{"text":"ReaderStyleCSSCodec.canonicalDeclarations (cyclomatic 36): ReaderStyleCSSCodec.canonicalDeclarations 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderStyleCSSCodec.swift"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ec11ed28f28fb34013a5c2c4c32bf53c8e816fdb8fa27f8d78fabcf6dc5eef0"}},{"ruleId":"D1","level":"warning","message":{"text":"errors.mapIdentityToolkitError (cyclomatic 36): errors.mapIdentityToolkitError 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":"gateway/src/errors.ts"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"83b0b12359a8716a62e436db7e877532edf72caffdb42f1dbad7b54c607fe2e1"}},{"ruleId":"D1","level":"warning","message":{"text":"_getJSONLD (cyclomatic 36): _getJSONLD has cyclomatic complexity 36 (threshold 15). Most of this is not in the body itself: 2 of the 36 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 1643, 1657, 1681, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/Readability.js"},"region":{"startLine":1638}}}],"partialFingerprints":{"codehealthFindingId/v1":"f97034a37c00947bfd6e0a359ff56e5a1c93ebab10fa3ab525eebb8e2f371db3"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreTextPageEngineView.updateUIViewController (cyclomatic 35): CoreTextPageEngineView.updateUIViewController 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":"Modules/Features/Reader/CoreTextPagedView.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a961ee7976450214e7e79cd3133b0f838e119ef2c27c1e553dbacb9080b9ec"}},{"ruleId":"D1","level":"warning","message":{"text":"JSONPathEvaluator.apply (cyclomatic 35): JSONPathEvaluator.apply 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":"Modules/Core/RuleEngine/ModernParser/JsonExtractor.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"023a449d366fdde95ac86acd3d157b2a6cfd81ff3edd72d51c553b308ff4e3f9"}},{"ruleId":"D1","level":"warning","message":{"text":"HTMLParser.swift.matches (cyclomatic 35): HTMLParser.swift.matches 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":"Modules/Core/RuleEngine/HTMLParser.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f48e3865eafca67cad78fb64c6488be3c7e34e9808e27dcc918aa5ce913b753"}},{"ruleId":"D1","level":"warning","message":{"text":"_getArticleMetadata (cyclomatic 35): _getArticleMetadata has cyclomatic complexity 35 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 7 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/Readability.js"},"region":{"startLine":1763}}}],"partialFingerprints":{"codehealthFindingId/v1":"72c53fbb8e608ca2f6e3bd24d7c6a6dffe1ec983646c2b1125f6fdd18ad0db91"}},{"ruleId":"D1","level":"warning","message":{"text":"ChapterContentCleaner.cleanChapterContent (cyclomatic 34): ChapterContentCleaner.cleanChapterContent has cyclomatic complexity 34 (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":"Modules/Core/RuleEngine/ChapterContentCleaner.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1836126cd1f0cba93af943034987a1ed6def95290b6f726db1916543a8db5f2"}},{"ruleId":"D1","level":"warning","message":{"text":"OnlineBookView.loadTOC (cyclomatic 34): OnlineBookView.loadTOC has cyclomatic complexity 34 (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":"Modules/Features/BookDetail/OnlineBookView.swift"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"18677343877d8fd44d445326ed692bd8eb39510d3e48dc6d06820bd000f1de11"}},{"ruleId":"D1","level":"warning","message":{"text":"AIBookSummaryService.run (cyclomatic 34): AIBookSummaryService.run has cyclomatic complexity 34 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 11 belong to 4 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":"Modules/Services/AI/AIBookSummaryService.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"d26a0cbe94cef9bf59a9036759fe664b8bb197c4b17c14d5048c988f81e911e1"}},{"ruleId":"D1","level":"warning","message":{"text":"OPDSFeedParserDelegate.parser (cyclomatic 34): OPDSFeedParserDelegate.parser has cyclomatic complexity 34 (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":"Modules/Services/OPDS/OPDSClient.swift"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f69411173ddb776b73b5dbe31182839730d2af67cd656d6a765c67a0d75f69c"}},{"ruleId":"D1","level":"warning","message":{"text":"JsoupDefaultExtractor.parseSingleRule (cyclomatic 34): JsoupDefaultExtractor.parseSingleRule has cyclomatic complexity 34 (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":"Modules/Core/RuleEngine/ModernParser/JsoupDefaultExtractor.swift"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"286a8e2b8e03165caa1b2e8959c5d0a463934d55c55f3810c1ec155b00a835c6"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteLibraryResourceClient.loadRequest (cyclomatic 33): RemoteLibraryResourceClient.loadRequest has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RemoteLibrary/RemoteLibraryCache.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"a633db19dc4f3948e91e3a9e29d615e33bdfbb96ce41a99b45c390bde77fbec7"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserTextInteractionController.editMenuInteraction (cyclomatic 33): BrowserTextInteractionController.editMenuInteraction has cyclomatic complexity 33 (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":"Modules/Core/ReaderCore/BrowserLayout/BrowserTextInteractionController.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"c052b367f60bc295410f58646de4dff28c0fe9ee3fc59535e6eb7b661058132f"}},{"ruleId":"D1","level":"warning","message":{"text":"JsoupDefaultExtractor.applyIndexFilter (cyclomatic 33): JsoupDefaultExtractor.applyIndexFilter has cyclomatic complexity 33 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 5 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":"Modules/Core/RuleEngine/ModernParser/JsoupDefaultExtractor.swift"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"b917bb35aacd9258e3bf693725c2d17f8da9969575dae9ab2898bb2cefad031a"}},{"ruleId":"D1","level":"warning","message":{"text":"Lexer.lex (cyclomatic 33): Lexer.lex has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoCompletionValue.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"613c5213e5ca76e78effad3284f8b379e6cde7731aa50513c3916fc9c1624c9a"}},{"ruleId":"D1","level":"warning","message":{"text":"ruleEngine.extractValueFromObject (cyclomatic 33): ruleEngine.extractValueFromObject has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc6b82f1639b9dcd2267d1e7053251f94877a236c88903d62a16c8cd043c09c6"}},{"ruleId":"D1","level":"warning","message":{"text":"BookSourceFetcher.fetchChapterPackageInner (cyclomatic 32): BookSourceFetcher.fetchChapterPackageInner has cyclomatic complexity 32 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. 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":"Modules/Core/BookSource/BookSourceFetcher\u002BChapter.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"c15f5257c8fc3ce3db21bebb619f9cdf48a43ffe3784e3a752bd262ada5e093b"}},{"ruleId":"D1","level":"warning","message":{"text":"RuleEngine.extractValueList (cyclomatic 32): RuleEngine.extractValueList has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"db0105247f8af1c1e4e8fbdcaa974a1a48305a93c6a6489445010fa798392443"}},{"ruleId":"D1","level":"warning","message":{"text":"OPDSFeedParserDelegate.handleLink (cyclomatic 32): OPDSFeedParserDelegate.handleLink has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/OPDS/OPDSClient.swift"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"755a67dbdabf1e439e8fdb172507477ed628c9ad858ae7ee3054d86b701d1a04"}},{"ruleId":"D1","level":"warning","message":{"text":"TTSAudioPayload.looksLikeAudioContainer (cyclomatic 31): TTSAudioPayload.looksLikeAudioContainer has cyclomatic complexity 31 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/TTSAudioProvider.swift"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fbcad89c2748440a01e82240bcda57097eea5c5f86a274a420a60d7c327ca38"}},{"ruleId":"D1","level":"warning","message":{"text":"Coordinator.handleCoverPan (cyclomatic 31): Coordinator.handleCoverPan 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":"Modules/Features/Reader/CoreTextPagedView.swift"},"region":{"startLine":2595}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a51bc213c45205e7d3aebb70f7d4232b13d35d802f71ef384161cfd2c6ec887"}},{"ruleId":"D1","level":"warning","message":{"text":"ChapterFetcher.looksLikeRejectedChapterPage (cyclomatic 31): ChapterFetcher.looksLikeRejectedChapterPage has cyclomatic complexity 31 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/ChapterFetcher.swift"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"21abc088967b04c7e49ed7734f41e5c6c915a1a5d0a8649d412328b4d9ee40bb"}},{"ruleId":"D1","level":"warning","message":{"text":"RelatedWorks.pick (cyclomatic 31): RelatedWorks.pick has cyclomatic complexity 31 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 11 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":"Modules/Services/Works/RelatedWorks.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"31ff42e2aaf828b4a0ddd6629767cfbf9ec04e69d8d0d19a3c1af8916cecd728"}},{"ruleId":"D1","level":"warning","message":{"text":"ICloudSyncManager.performSyncPass (cyclomatic 31): ICloudSyncManager.performSyncPass 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":"Modules/Services/iCloud/ICloudSyncManager.swift"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"0809d7afdd8aa171f17b4c8e821c0b7f5c1bce58bb94aa2ba9c8096b410517be"}},{"ruleId":"D1","level":"warning","message":{"text":"CommentBubbleSVGRecognizer.draw (cyclomatic 31): CommentBubbleSVGRecognizer.draw 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":"Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift"},"region":{"startLine":1255}}}],"partialFingerprints":{"codehealthFindingId/v1":"e87beab87bcf727552a999469b1af52ab171bc09686ad21d2b95e357ca11f995"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreTextPaginator.extractFrameBlockRenderables (cyclomatic 31): CoreTextPaginator.extractFrameBlockRenderables has cyclomatic complexity 31 (threshold 15). Of this number, 28 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":"Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift"},"region":{"startLine":2879}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f1b88920e0a3a6cf9f0b516f546087635a189a7e6fddb6d2e95d4c73e261184"}},{"ruleId":"D1","level":"warning","message":{"text":"AIMemoryExtraction.validate (cyclomatic 30): AIMemoryExtraction.validate has cyclomatic complexity 30 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 7 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":"Modules/Core/AI/AICharacterMemoryExtraction.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"c906afac5b2097c7ffcbb2bc55f88d1836a9e60ba476a818d553272f00c15630"}},{"ruleId":"D1","level":"warning","message":{"text":"MOBIMarkupNormalizer.normalizeElement (cyclomatic 30): MOBIMarkupNormalizer.normalizeElement has cyclomatic complexity 30 (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":"Modules/Core/MOBI/MOBIMarkupNormalizer.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"eea798218f44804d0866bfa26e681f92f28feb313c69afe62a8fc78168d9c26d"}},{"ruleId":"D1","level":"warning","message":{"text":"TXTChapterParser.detectMappedTitleMatches (cyclomatic 30): TXTChapterParser.detectMappedTitleMatches has cyclomatic complexity 30 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 5 belong to 3 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":"Modules/Core/TXT/TXTChapterParser.swift"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d5232a2a71f1b238de4397b745884615640ad312e42b66965f6c970022d08a0"}},{"ruleId":"D1","level":"warning","message":{"text":"AICharacterMemoryService.execute (cyclomatic 30): AICharacterMemoryService.execute has cyclomatic complexity 30 (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":"Modules/Services/AI/AICharacterMemoryService.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c5333ba9c0abce57b7ef757b95ae6c75808fea0f638d0aea564b93e89aadfb5"}},{"ruleId":"D1","level":"warning","message":{"text":"LegadoSymmetricCipher.commonCrypto (cyclomatic 30): LegadoSymmetricCipher.commonCrypto has cyclomatic complexity 30 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoSymmetricCipher.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe44c120b38a0b47fe7b399b6630d88e2cfb8702442acb035718d70eeed9ec8"}},{"ruleId":"D1","level":"warning","message":{"text":"NextPageLinkExtractor.extractNextPageURL (cyclomatic 29): NextPageLinkExtractor.extractNextPageURL 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":"Modules/Core/RuleEngine/NextPageLinkExtractor.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"bacdab896c6968c85e6c1aa0872a82044a748c4b8b3f24a68784a0861534c3ad"}},{"ruleId":"D1","level":"warning","message":{"text":"RuleEngine.jsonGet (cyclomatic 29): RuleEngine.jsonGet 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":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":1496}}}],"partialFingerprints":{"codehealthFindingId/v1":"21abf75ad7064b1a1db3296f832dede7bacd00bf1608645e6240a20d038e57db"}},{"ruleId":"D1","level":"warning","message":{"text":"TXTReaderIndexMigrationService.complete (cyclomatic 29): TXTReaderIndexMigrationService.complete has cyclomatic complexity 29 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 7 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":"Modules/Core/TXT/TXTReaderIndexMigrationService.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a39db11e299b6ead2cb21a17cdb0f60c95dfc73fb4477c70d1562bff610b91d"}},{"ruleId":"D1","level":"warning","message":{"text":"RSSXMLParser.parser (cyclomatic 29): RSSXMLParser.parser 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":"Modules/Services/RSS/RSSFetcher.swift"},"region":{"startLine":1365}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9a7c2ddd31852fb951689a2bfbdd56dff9f5bef1dbac61e90eb25a69d5c8682"}},{"ruleId":"D1","level":"warning","message":{"text":"GlobalSettings.init (cyclomatic 29): GlobalSettings.init has cyclomatic complexity 29 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/GlobalSettings.swift"},"region":{"startLine":2121}}}],"partialFingerprints":{"codehealthFindingId/v1":"b199aa81f0730795725d31b5be188fc6ff7c63e7fa200002b0d4e95d35c94b39"}},{"ruleId":"D1","level":"warning","message":{"text":"GlobalSettings.writeAppearanceExtras (cyclomatic 29): GlobalSettings.writeAppearanceExtras has cyclomatic complexity 29 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/AppearanceThemeExtrasApplier.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"33605f85fd40f73e59a0dbc259eb2ab6e07649d9015ef0aadda409e99732548d"}},{"ruleId":"D1","level":"warning","message":{"text":"QiThemeImporter.applyAppearance (cyclomatic 29): QiThemeImporter.applyAppearance 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":"Modules/Core/ReaderCore/Customization/QiThemeImporter.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"54d4d9b6d0e9946b2a41a19aaa0ad51bb02a0ae28b169ced9afe7f80bb712f07"}},{"ruleId":"D1","level":"warning","message":{"text":"JSONPathEvaluator.resolveFilterPath (cyclomatic 29): JSONPathEvaluator.resolveFilterPath 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":"Modules/Core/RuleEngine/ModernParser/JsonExtractor.swift"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"325509216c32c50c8ddc4f05af258c6caae1321d9df45a338365394dd12bebcf"}},{"ruleId":"D1","level":"warning","message":{"text":"ruleEngine.routeExtractList (cyclomatic 29): ruleEngine.routeExtractList 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":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":911}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ca96835522867d4c0c550d631f379a10d82a1d7549f2c0bc6d488c68c06ef19"}},{"ruleId":"D1","level":"warning","message":{"text":"OnlineBookContentInference.kind (cyclomatic 28): OnlineBookContentInference.kind has cyclomatic complexity 28 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSource.swift"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb9e6ef8670700684f64eac0304504e928307046303a32f4b6887ae8584aab72"}},{"ruleId":"D1","level":"warning","message":{"text":"MOBI6Converter.convert (cyclomatic 28): MOBI6Converter.convert has cyclomatic complexity 28 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 7 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":"Modules/Core/MOBI/MOBI6Converter.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e44fd4f9e782d69445ebcaad8743eea47aa4c936a98f7c2eea528a38fdc420e"}},{"ruleId":"D1","level":"warning","message":{"text":"RuleEngine.parseJsoupSegment (cyclomatic 28): RuleEngine.parseJsoupSegment has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"818f132ad6f5e89ee71d082367059763f7000f60c9e1a93197c4bb2329bacd13"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkDetailView.workPage (cyclomatic 28): WorkDetailView.workPage has cyclomatic complexity 28 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/WorkDetailView.swift"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"39f3fefebe4ba4b13ac2c670dd149368fa8c44abbec026e0cb3ee49487aa0195"}},{"ruleId":"D1","level":"warning","message":{"text":"ReaderRenderSettings.refreshIntent (cyclomatic 28): ReaderRenderSettings.refreshIntent has cyclomatic complexity 28 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/ReaderRenderRefresh.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dcbd64e441dc415d7f0575e2f3f8c179ba504b1b7337f35b2f4ed8b899830ce"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreTextFontRegistrationService.registerUncached (cyclomatic 28): CoreTextFontRegistrationService.registerUncached has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageEngine.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"282a573c5188ad0912fed660af3a7d449a413017ff2fcdeb4306c51f0faaf15d"}},{"ruleId":"D1","level":"warning","message":{"text":"ChapterTitleHTMLCodec.parseCanonical (cyclomatic 28): ChapterTitleHTMLCodec.parseCanonical has cyclomatic complexity 28 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ChapterTitleHTMLCodec.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"8428902d4074ee45c301a1dfdb3e52d1984fcc13d83fe8b2a65e9010c605f726"}},{"ruleId":"D1","level":"warning","message":{"text":"QiThemeImporter.chapterTitleStyle (cyclomatic 28): QiThemeImporter.chapterTitleStyle has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/QiThemeImporter.swift"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"268a88894cca2247fe8656dd32f2b15641bbe577c5c47a27db8cb6c340e27378"}},{"ruleId":"D1","level":"warning","message":{"text":"HTMLParser.swift.parseSingleSelector (cyclomatic 28): HTMLParser.swift.parseSingleSelector has cyclomatic complexity 28 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 5 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":"Modules/Core/RuleEngine/HTMLParser.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bcfb93da5659233327cdb40ffefd80e9c7ac2ae46c987815436803789c65b0e"}},{"ruleId":"D1","level":"warning","message":{"text":"BookSourceHealthChecker.runStages (cyclomatic 27): BookSourceHealthChecker.runStages 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":"Modules/Core/BookSource/BookSourceHealthChecker.swift"},"region":{"startLine":1046}}}],"partialFingerprints":{"codehealthFindingId/v1":"a668afcf84e855fbc970bc6511921d5da84c49976ead4a12a7455d4994edddf0"}},{"ruleId":"D1","level":"warning","message":{"text":"RuleEngine.routeExtractList (cyclomatic 27): RuleEngine.routeExtractList 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":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"303c62526bb63fd1c23d282524fb250db9d18657525688e15455233addca496c"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomHTTPProvider.evaluateArithmetic (cyclomatic 27): CustomHTTPProvider.evaluateArithmetic has cyclomatic complexity 27 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 8 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":"Modules/Core/TTS/TTSAudioProvider.swift"},"region":{"startLine":1121}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ac4082157525a45c37932a2eb956c3ca895f62332951b90cc8623aeeca7c6ac"}},{"ruleId":"D1","level":"warning","message":{"text":"Multibyte.character (cyclomatic 27): Multibyte.character has cyclomatic complexity 27 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TXT/TXTEncodingDetector.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da936775520926f300f602ce8e15988d1604352d0ac230adc665b5f13ea7bf2"}},{"ruleId":"D1","level":"warning","message":{"text":"AudiobookDetailView.body (cyclomatic 27): AudiobookDetailView.body has cyclomatic complexity 27 (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":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"6665da38c608ff310da0b1f4d211a14e6578631b79291c48998bfb88aa70df6f"}},{"ruleId":"D1","level":"warning","message":{"text":"CalibreWirelessService.handle (cyclomatic 27): CalibreWirelessService.handle has cyclomatic complexity 27 (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":"Modules/Services/Calibre/CalibreWirelessService.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c9f342eddb71cd9b01bc58087ddef50391ad49bc28c3412b8d00d05db415d31"}},{"ruleId":"D1","level":"warning","message":{"text":"RSSFeedDiscovery.feedURLs (cyclomatic 27): RSSFeedDiscovery.feedURLs 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":"Modules/Services/RSS/RSSUtilities.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"e14f46792b50f076ee6873ab2d943620f0dbd471eb3fa4ba6a834040bfba1042"}},{"ruleId":"D1","level":"warning","message":{"text":"NextInSeries.pick (cyclomatic 27): NextInSeries.pick has cyclomatic complexity 27 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/NextInSeries.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9fc3bd6baa2551a4cb02fa427484069c252724e959b39e1a3fa868929371318"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreTextPageEngine.preloadChapterInternal (cyclomatic 27): CoreTextPageEngine.preloadChapterInternal 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":"Modules/Core/ReaderCore/CoreText/CoreTextPageEngine.swift"},"region":{"startLine":1150}}}],"partialFingerprints":{"codehealthFindingId/v1":"f31f3b78f2318b12426ae4218ade275edb51139dd515fc45ab51f1f140d2cae2"}},{"ruleId":"D1","level":"warning","message":{"text":"RuleAnalyzer.splitRule (cyclomatic 27): RuleAnalyzer.splitRule 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":"Modules/Core/RuleEngine/ModernParser/RuleAnalyzer.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b2273a9ccc7a8ba17e1b89eb548b466e649ff2a1d32dd8b03480a8fcb63f118"}},{"ruleId":"D1","level":"warning","message":{"text":"WebDAVProvider.fixedHTTPDate (cyclomatic 27): WebDAVProvider.fixedHTTPDate has cyclomatic complexity 27 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/HomeSectionProviding.swift"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7db50c189644f77668d24a834af1365c2520cd4d2025639d5fc892b76b3562f"}},{"ruleId":"D1","level":"warning","message":{"text":"StatementReader.skipExpression (cyclomatic 27): StatementReader.skipExpression 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":"Modules/Core/RuleEngine/ModernParser/JS/LegadoCompletionValue.swift"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d52465cdc5bd8772928bac8e79c28c5e59adebf52235abe24e5af4ffde12497"}},{"ruleId":"D1","level":"warning","message":{"text":"HTMLParser.swift.parseTagAttributes (cyclomatic 27): HTMLParser.swift.parseTagAttributes has cyclomatic complexity 27 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/HTMLParser.swift"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"e70ca19053415700b4d7b57c8b291dbaa9499a9737f85d48e36083fc3ab32f1a"}},{"ruleId":"D1","level":"warning","message":{"text":"AIBookSummaryPlanner.plan (cyclomatic 26): AIBookSummaryPlanner.plan 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":"Modules/Core/AI/AIBookSummary.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"3817b3a651ab3a43d6e326f4adfaa27189377102dbeda5d6817004930dce2543"}},{"ruleId":"D1","level":"warning","message":{"text":"BookSourceFetcher.searchOutcome (cyclomatic 26): BookSourceFetcher.searchOutcome 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":"Modules/Core/BookSource/BookSourceFetcher\u002BSearch.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"b97cde06901b4d60eaa42b9bb711a28b3afdc2b1f2bf06713bca689ba69de8ea"}},{"ruleId":"D1","level":"warning","message":{"text":"OnlineBookView.body (cyclomatic 26): OnlineBookView.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":"Modules/Features/BookDetail/OnlineBookView.swift"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"d51640d10b0944d02d836692cb020c700396d6bf0e8d8deff5ef2bfad9664b49"}},{"ruleId":"D1","level":"warning","message":{"text":"BookReaderContent.body (cyclomatic 26): BookReaderContent.body has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/BookReaderView.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"93f29c51a23b949fd847aaf84a42b8e7b14e7532b11cdcdac750351ee5a0b841"}},{"ruleId":"D1","level":"warning","message":{"text":"LegadoSourceJSONParser.exportJSON (cyclomatic 26): LegadoSourceJSONParser.exportJSON has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/LegadoSourceJSONParser.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"00d8460c153a2e8774e82196659fc6c60ebbbbfd285e25034b6da72d6c8b6c87"}},{"ruleId":"D1","level":"warning","message":{"text":"ReviewCardSVGMetrics.rewrittenTag (cyclomatic 26): ReviewCardSVGMetrics.rewrittenTag 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":"Modules/Core/ReaderCore/CoreText/ReviewCardSVGMetrics.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"fea7f248d5b7122e3c1478dfb04832231634d8f5584d02242f3fe912c4d86a5b"}},{"ruleId":"D1","level":"warning","message":{"text":"ruleEngine.applyJsonToken (cyclomatic 26): ruleEngine.applyJsonToken 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":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"95b039988a6d8995427049f90a67c222b23bd6cf6fff8b40597425070a861a99"}},{"ruleId":"D1","level":"warning","message":{"text":"SharedImportPayloadClassifier.classify (cyclomatic 25): SharedImportPayloadClassifier.classify has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/SharedImportQueueDrainer.swift"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"91b1225559fa1e0d8f9a11d0fef9e4e29424210f0d27f37fbdf622f607a159a9"}},{"ruleId":"D1","level":"warning","message":{"text":"KF8Converter.convert (cyclomatic 25): KF8Converter.convert has cyclomatic complexity 25 (threshold 15). Of this number, 22 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":"Modules/Core/MOBI/KF8Converter.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a98f479cb12859e7a8d15d1f5012cca398515e64922424384358f770d936fc5"}},{"ruleId":"D1","level":"warning","message":{"text":"AIReadingConversation.send (cyclomatic 25): AIReadingConversation.send has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/AI/AIReadingConversation.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"57f43a2c0581af35a910a9197224536136c385f9026e2794cf4244c4a52598ec"}},{"ruleId":"D1","level":"warning","message":{"text":"BookStore.commitRefreshedList (cyclomatic 25): BookStore.commitRefreshedList has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/BookStore.swift"},"region":{"startLine":2578}}}],"partialFingerprints":{"codehealthFindingId/v1":"c010aeb24bc154d4bbb785bea865df6ab778e4c0453c3b70acdad15d5546fe36"}},{"ruleId":"D1","level":"warning","message":{"text":"HomeSection.displayTitle (cyclomatic 25): HomeSection.displayTitle has cyclomatic complexity 25 (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":"Modules/Features/Explore/Home/HomeRowView.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b996745d888be6bea676944917f07b1050c533710f26190c167b4380c9f4570"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkIndex.build (cyclomatic 25): WorkIndex.build has cyclomatic complexity 25 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/WorkIndex.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"93492623565b2b27815f08e72fa8eb7e0f6642abe5586fa1502cc02484ab18ba"}},{"ruleId":"D1","level":"warning","message":{"text":"RootTabBarTransitionCover.pageWillChange (cyclomatic 25): RootTabBarTransitionCover.pageWillChange 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/SharedUI/Adaptive/RootTabBarTransitionCover.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a050d2bbdba7ce75b64eebfb5975ea06939a60443a3ad99649061a8747cac8"}},{"ruleId":"D1","level":"warning","message":{"text":"AppearanceThemeExtras.isEmpty (cyclomatic 25): AppearanceThemeExtras.isEmpty 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/AppearanceThemeExtras.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a615a5a85ff96bc076ad431801ebc4e979cddb2e92f9db550da9dcb4e5189c3"}},{"ruleId":"D1","level":"warning","message":{"text":"AnalyzeUrl.parseOptions (cyclomatic 25): AnalyzeUrl.parseOptions has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/URL/AnalyzeUrl.swift"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"a22318d11ccc7479b58fcd92dc9ca08cd1c134221f883196e352567dbde258b3"}},{"ruleId":"D1","level":"warning","message":{"text":"_cleanConditionally::(anonymous)::shouldRemoveNode (cyclomatic 25): _cleanConditionally::(anonymous)::shouldRemoveNode 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/Readability.js"},"region":{"startLine":2561}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c2896926dca21dffbd25497cb96b5007e4a6c6ad26ca67d923cd9f092241743"}},{"ruleId":"D1","level":"warning","message":{"text":"RuleEngine.parseXPathSteps (cyclomatic 24): RuleEngine.parseXPathSteps has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"da305d39f18308466ac47dfda0a6b5c4e4f1014e8d113051c40a6336be3532c8"}},{"ruleId":"D1","level":"warning","message":{"text":"AozoraMarkupParser.parse (cyclomatic 24): AozoraMarkupParser.parse has cyclomatic complexity 24 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 1 belongs 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":"Modules/Core/TXT/AozoraMarkupParser.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"85e91dc086f6c7b3c37656c432cad0c0f0a05ba06a1fc046fab4ebeb45e3609a"}},{"ruleId":"D1","level":"warning","message":{"text":"Mapper.entry (cyclomatic 24): Mapper.entry has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/OPDS/OPDS2FeedParser.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"182bd4d3d3c0acb24384a35c81c63ca090ffa1454cd16e88a9abd20f2e97b988"}},{"ruleId":"D1","level":"warning","message":{"text":"CalibreProgressService.process (cyclomatic 24): CalibreProgressService.process has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RemoteLibrary/CalibreProgressService.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e1c136fd7b8f316700f52a58261bc6697f96e3ae34bfde43656c043fd7280c2"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteLibraryHTTPClient.stream (cyclomatic 24): RemoteLibraryHTTPClient.stream has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RemoteLibrary/RemoteLibraryHTTPClient.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d142566c0984cca2b3ee7c0d99478066d2fc7849fe8bd06899ed9d34ead7787"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteLibraryService.prepare (cyclomatic 24): RemoteLibraryService.prepare has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RemoteLibrary/RemoteLibraryService.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"2039fdf276c3f895b23b80d07dbb31a157aaee7d0b6f60f96bf40f84376b1f00"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserLayoutPageEngine.preloadChapter (cyclomatic 24): BrowserLayoutPageEngine.preloadChapter has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageEngine.swift"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"926b404fa6531d828c6197756d0fef4023ec8d1a0412c726a5f171a2267ed192"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserLayoutPageEngine.layoutBrowserChapter (cyclomatic 24): BrowserLayoutPageEngine.layoutBrowserChapter has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageEngine.swift"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"f412ddf86dd7aee821139fa0997a1ef450d3a591ce101112f75ffe32d7054a90"}},{"ruleId":"D1","level":"warning","message":{"text":"OnlineProviderAttributedStringBuilder.chapterFormatProbe (cyclomatic 24): OnlineProviderAttributedStringBuilder.chapterFormatProbe has cyclomatic complexity 24 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 11 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":"Modules/Core/ReaderCore/CoreText/OnlineProviderAttributedStringBuilder.swift"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"91be768d0b1831a03531165e19ba19253aa5c433b989d5c6991e60998d0ffea3"}},{"ruleId":"D1","level":"warning","message":{"text":"DialogueBubbleScriptImporter.configLiteral (cyclomatic 24): DialogueBubbleScriptImporter.configLiteral has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/DialogueBubbleScriptImporter.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"7856c01b56167b97ddd431e89f766db0cfa4f715cd410c703a38e96e7839df7c"}},{"ruleId":"D1","level":"warning","message":{"text":"auth.authRouter (cyclomatic 24): auth.authRouter has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 1 of the 24 points is its own statement and the rest belongs to 11 function literals inside it that branch (lines 160, 188, 92, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/routes/auth.ts"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"c156d16a9059b36106e3e845335d5cbb6bbf975bec6442701e24ad4dbbb68b91"}},{"ruleId":"D1","level":"warning","message":{"text":"_fixLazyImages (cyclomatic 24): _fixLazyImages has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 1 of the 24 points is its own statement and the rest belongs to one function literal inside it that branches (line 2341). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/Readability.js"},"region":{"startLine":2338}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e5fb83ad36effc19517661a292900d506a459552a0672cf69c8a8721c73b46a"}},{"ruleId":"D1","level":"warning","message":{"text":"AIReadingEvidence.requestedChapters (cyclomatic 23): AIReadingEvidence.requestedChapters has cyclomatic complexity 23 (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":"Modules/Core/AI/AIReadingEvidence.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"0864eae0e898d8703d24f74f4384affbbad68f604c22bbb8e3554f1f22dfa6f4"}},{"ruleId":"D1","level":"warning","message":{"text":"CalibreCFIMapper.match (cyclomatic 23): CalibreCFIMapper.match has cyclomatic complexity 23 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 7 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":"Modules/Core/EPUB/CalibreCFIMapper.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8141adf8f454d371062c8b2ff79529d67d690bf7851d5b4c3eef4dfc3ccdf1b"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomizationImportOverview.appearanceItems (cyclomatic 23): CustomizationImportOverview.appearanceItems has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Settings/CustomizationImportOverview.swift"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"d36899db2bf69473bab6cb2a6167fb93fe019231e778a105be2f35f09cfea87b"}},{"ruleId":"D1","level":"warning","message":{"text":"BookStore.importEpub (cyclomatic 23): BookStore.importEpub has cyclomatic complexity 23 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 5 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":"Modules/Services/LibraryStore/BookStore.swift"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"58598f1fb75403790aa2ebf49abd2b563fb8dee2ae9277501cadc663edc00942"}},{"ruleId":"D1","level":"warning","message":{"text":"WebDAVPropfindParserDelegate.parser (cyclomatic 23): WebDAVPropfindParserDelegate.parser has cyclomatic complexity 23 (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":"Modules/Services/WebDAV/WebDAVBrowseClient.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"d56cafae4d2aa2618594aa582eeb66bdd5c103427f7b7840de6c3dbd862ab8d6"}},{"ruleId":"D1","level":"warning","message":{"text":"LanguageTag.init (cyclomatic 23): LanguageTag.init has cyclomatic complexity 23 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/WorkMatchKey.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"8315f35181b0c8720e0b7684f26460dc55eaa69289e8f20f8268a9755c6ea03c"}},{"ruleId":"D1","level":"warning","message":{"text":"EPUBStylesheetIngestion.collect (cyclomatic 23): EPUBStylesheetIngestion.collect has cyclomatic complexity 23 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 5 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":"Modules/Core/ReaderCore/BrowserLayout/EPUBStylesheetIngestion.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"c94890b7b80ee6fd480549f46c4a9ab86a22fa546c206700c68dd4028484a6f3"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreTextPageView.handleTap (cyclomatic 23): CoreTextPageView.handleTap has cyclomatic complexity 23 (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":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":1474}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d057d9172e3c58c141c843769eaf7686d3c6db83d7da8c5578f24d127709805"}},{"ruleId":"D1","level":"warning","message":{"text":"NodeAttributedStringRenderer.applyInlineStyle (cyclomatic 23): NodeAttributedStringRenderer.applyInlineStyle has cyclomatic complexity 23 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift"},"region":{"startLine":1254}}}],"partialFingerprints":{"codehealthFindingId/v1":"a44142e610240891361e69c42164ff5d171020640527c692125c8e46b3041306"}},{"ruleId":"D1","level":"warning","message":{"text":"XPathExtractor.splitXPathAndAccessor (cyclomatic 23): XPathExtractor.splitXPathAndAccessor has cyclomatic complexity 23 (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":"Modules/Core/RuleEngine/ModernParser/XPathExtractor.swift"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9e7fcc4282c2b4cd5901f1aad1d53f69863402159948e6db95a1c2ec1e915b2"}},{"ruleId":"D1","level":"warning","message":{"text":"LegadoBase64.androidDecode (cyclomatic 23): LegadoBase64.androidDecode has cyclomatic complexity 23 (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":"Modules/Core/RuleEngine/ModernParser/JS/LegadoBase64.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef7ecdac070797f4349ddaaf02ff65511378869a573f9235a0e8a6028131d0a6"}},{"ruleId":"D1","level":"warning","message":{"text":"ruleEngine.parseTOCJSON (cyclomatic 23): ruleEngine.parseTOCJSON has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 4 of the 23 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 1227, 1242). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":1221}}}],"partialFingerprints":{"codehealthFindingId/v1":"55495ef8056cf93991d662248274b6e081ce310d0de65c1648bb0bf688b5fb58"}},{"ruleId":"D1","level":"warning","message":{"text":"legado-engine.queryElements (cyclomatic 23): legado-engine.queryElements has cyclomatic complexity 23 (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":"Resources/Assets/legado-engine.js"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"09debda75bf024c1435c51c3a7cb45152485319b5f7ae0ed4dee0015d9f92131"}},{"ruleId":"D1","level":"warning","message":{"text":"BookSourceDebugEngine.debugEntry (cyclomatic 22): BookSourceDebugEngine.debugEntry has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceDebugEngine.swift"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"a64eeaca564e0a6817ea0c234304fc7ed61e235d527f3862a891724aa898c34b"}},{"ruleId":"D1","level":"warning","message":{"text":"RefreshPreparation.preparePaged (cyclomatic 22): RefreshPreparation.preparePaged has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/EPUBPageRenderer.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e2fa9553807d27f676fed25df2937f7a91d17f8d0c57a44ad2cafab705204c9"}},{"ruleId":"D1","level":"warning","message":{"text":"RuleEngine.applyIndexSpec (cyclomatic 22): RuleEngine.applyIndexSpec has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca4cb605d3842a232a045d45944682cf7962f8cd54ba6bb15bba9202fb02b81a"}},{"ruleId":"D1","level":"warning","message":{"text":"RuleEngine.sanitizeExtractedURL (cyclomatic 22): RuleEngine.sanitizeExtractedURL has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d63678ca1659ca60d53c9f343c7a3ff922eba5431f294f214681652a128a4e"}},{"ruleId":"D1","level":"warning","message":{"text":"ImportedBookPresentationController.presentPending (cyclomatic 22): ImportedBookPresentationController.presentPending has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Bookshelf/ImportedBookPresentation.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"742991bb011de23c0feb9b4f01cd2b125418dd0af0885fbc78b7c6f790c59239"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreTextCollectionScrollViewController.commitViewportGeometry (cyclomatic 22): CoreTextCollectionScrollViewController.commitViewportGeometry has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/CoreTextCollectionScrollViewController.swift"},"region":{"startLine":1924}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8bcdbb5b9255d68c3735f214303a5bc4d74b630e71e7714158a49ab39a80b61"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreTextPaintFragment.make (cyclomatic 22): CoreTextPaintFragment.make has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/CoreTextPaintFragment.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"44d000779b37b5cc3bd54dbbe3f75bcffbcd5db87e10f1c4e8847af0b36e8f6e"}},{"ruleId":"D1","level":"warning","message":{"text":"ReaderBookSearchSession.run (cyclomatic 22): ReaderBookSearchSession.run has cyclomatic complexity 22 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 1 belongs 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":"Modules/Features/Reader/ReaderBookSearchSession.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d044b8c18cad8dc308f412b85c629cd2e9fec4b7adfd3bd48099ee3b0ee453"}},{"ruleId":"D1","level":"warning","message":{"text":"ReaderCardTransitionAnimator.interruptibleAnimator (cyclomatic 22): ReaderCardTransitionAnimator.interruptibleAnimator has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderCardTransitionAnimator.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ef34f48aff1a8deb2b8337cab435ddeb82d4e65389e5d96623058ea4a19a9bd"}},{"ruleId":"D1","level":"warning","message":{"text":"ReaderView.loadContent (cyclomatic 22): ReaderView.loadContent has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderView\u002BPageBuilding.swift"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"e24dad5991216064ca2396ef81d782184d6345fd3bc441a9f34d6a558e376173"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAICompatibleProvider.generateDeepSeek (cyclomatic 22): OpenAICompatibleProvider.generateDeepSeek has cyclomatic complexity 22 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/AI/OpenAICompatibleProvider.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"775de1deb15c9d5c606f6a96ca359eaea2374f1dbae9f05db63bb0f027d958b4"}},{"ruleId":"D1","level":"warning","message":{"text":"BookOriginSearchService.stream (cyclomatic 22): BookOriginSearchService.stream has cyclomatic complexity 22 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 2 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":"Modules/Services/Online/BookOriginSearchService.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e5d185a1d37e9c09a32e3b6ec37ad2eec48bd0ea241d583a2365243742d53e1"}},{"ruleId":"D1","level":"warning","message":{"text":"AuthorWorksModel.load (cyclomatic 22): AuthorWorksModel.load has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/AuthorWorks.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"686a26191cee4b4b1dc49f72a4228dd090beef949741f5c66765b7b5ac01f243"}},{"ruleId":"D1","level":"warning","message":{"text":"MetadataResolver.resolve (cyclomatic 22): MetadataResolver.resolve has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/MetadataResolver.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e509e2bbf0a83b9e472664030a4e2fc1221dea49303b18dc98498d79425f295"}},{"ruleId":"D1","level":"warning","message":{"text":"ReaderConfig.setupBindings (cyclomatic 22): ReaderConfig.setupBindings has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/GlobalSettings.swift"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c7b6fdcad3a632a751aa68469d7989e108d42af1a32fda6a15304e24c0ce8a0"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserLayoutPageEngine.decideEngine (cyclomatic 22): BrowserLayoutPageEngine.decideEngine has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageEngine.swift"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf26217d0e93a239f1d0ee0f1b01a429e39e5cea582660eb58fbfb3fe152825e"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreTextChunkAttachmentExtractor.extract (cyclomatic 22): CoreTextChunkAttachmentExtractor.extract has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextChunkAttachmentExtractor.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d4fc8007f8e22b19649fd9d051db6a064012961e30e222e0c5eeaae7d699efc"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreTextChunkSlicer.slice (cyclomatic 22): CoreTextChunkSlicer.slice has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextChunkSlicer.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae0f4c2032e1acf3b004b30652819d6ca75218bb7b86333ca0e730fbf2df00d3"}},{"ruleId":"D1","level":"warning","message":{"text":"LottieTitleTemplateImporter.\u0060import\u0060 (cyclomatic 22): LottieTitleTemplateImporter.\u0060import\u0060 has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/LottieTitleTemplateImporter.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"684b07d2c8066594c7b284c82f2fd9c99c656a5223f4fa5600cd50f438d27042"}},{"ruleId":"D1","level":"warning","message":{"text":"ModernParserBridge.parseExploreResults (cyclomatic 22): ModernParserBridge.parseExploreResults has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift"},"region":{"startLine":2674}}}],"partialFingerprints":{"codehealthFindingId/v1":"273e42f7df62a9fb729314426b543700f2fd2b4c0da49cc4a9acccfaca8662c0"}},{"ruleId":"D1","level":"warning","message":{"text":"HomeSectionForm.body (cyclomatic 22): HomeSectionForm.body has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Explore/Home/HomeSectionForm.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c65c6fb5ad012b1b9624214f3ef62b91ec7063f4e816c2582034615683a0c60"}},{"ruleId":"D1","level":"warning","message":{"text":"VideoPlayerView.body (cyclomatic 22): VideoPlayerView.body has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/Video/VideoPlayerView.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"907a7908411ad8eb14aeffb06f85023fadad7d2268af0b14abea0e7afa4a106c"}},{"ruleId":"D1","level":"warning","message":{"text":"Lexer.skipNumber (cyclomatic 22): Lexer.skipNumber has cyclomatic complexity 22 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoCompletionValue.swift"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b83d5c5c02577141f23d600b2030e9c6f3177c9792f44973b92691d20e8bb14"}},{"ruleId":"D1","level":"warning","message":{"text":"LegadoRuleScope.callerNames (cyclomatic 22): LegadoRuleScope.callerNames has cyclomatic complexity 22 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoRuleScope.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"95c61e67faf74eec873ff287c04ee9100e0d6f099b4e0968a9677ccfa8c0ada7"}},{"ruleId":"D1","level":"warning","message":{"text":"LegadoRuleScope.seededNames (cyclomatic 22): LegadoRuleScope.seededNames has cyclomatic complexity 22 (threshold 15). Of this number, 19 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":"Modules/Core/RuleEngine/ModernParser/JS/LegadoRuleScope.swift"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2eb29318d076aa57ebf773fceaf328ab9e3e420e22118efc4db42cb5f25ae3d"}},{"ruleId":"D1","level":"warning","message":{"text":"ruleEngine.evaluateRuleLike (cyclomatic 22): ruleEngine.evaluateRuleLike has cyclomatic complexity 22 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"e91be6a4c45ee26eeb6ed7379762fd355b41add6435295b36f8dd15bea6b9685"}},{"ruleId":"D1","level":"warning","message":{"text":"AITextCoordinates.mappedRange (cyclomatic 21): AITextCoordinates.mappedRange has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AISourceSnapshot.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c1020c8a8f2c63e0384e17ef11dac1086514b7995e57c5135abe67950322a72"}},{"ruleId":"D1","level":"warning","message":{"text":"SourceAPIErrorLog.chapterTransportFailureMessage (cyclomatic 21): SourceAPIErrorLog.chapterTransportFailureMessage has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/SourceAPIErrorLog.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"b965032a38488c6184e0e5e9d52f66b1ed5b03b3ab87aea483ed43e1952823e8"}},{"ruleId":"D1","level":"warning","message":{"text":"ReaderHTMLUtilities.promoteBreakSeparatedParagraphs (cyclomatic 21): ReaderHTMLUtilities.promoteBreakSeparatedParagraphs has cyclomatic complexity 21 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 1 belongs 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":"Modules/Core/ReaderCore/ReaderHTMLUtilities.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"f98f757dc4b78d1e2e4537e8d5a948becb7da55a9fce566c8db6205f354b0de0"}},{"ruleId":"D1","level":"warning","message":{"text":"TXTChapterParser.enumerateMappedTitleLines (cyclomatic 21): TXTChapterParser.enumerateMappedTitleLines has cyclomatic complexity 21 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 4 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":"Modules/Core/TXT/TXTChapterParser.swift"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"538f714f94ce1abb100960d028739b15a18ba5036c742eab4f47b5f9414df18f"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreTextCollectionScrollViewController.scrollViewDidScroll (cyclomatic 21): CoreTextCollectionScrollViewController.scrollViewDidScroll has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/CoreTextCollectionScrollViewController.swift"},"region":{"startLine":2281}}}],"partialFingerprints":{"codehealthFindingId/v1":"78b1187a22cddbbfe89ad07ada70bfbf6bb842311b6865dcfbb893b6189896bb"}},{"ruleId":"D1","level":"warning","message":{"text":"Coordinator.handleChapterReady (cyclomatic 21): Coordinator.handleChapterReady has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/CoreTextPagedView.swift"},"region":{"startLine":1564}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3070d4db4b10c1b5207032ad27a46e1329e5d76af5191a7af1456d468dbcf7e"}},{"ruleId":"D1","level":"warning","message":{"text":"SingleWriteHTTPExchange.requestBytes (cyclomatic 21): SingleWriteHTTPExchange.requestBytes has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Network/SingleWriteHTTPExchange.swift"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"44c2d23640b05d8485eb19a2db6ffab23bea8ca32a1f04766fb34a916629b8e4"}},{"ruleId":"D1","level":"warning","message":{"text":"ChapterFetcher.reattachStandaloneParagraphReviews (cyclomatic 21): ChapterFetcher.reattachStandaloneParagraphReviews has cyclomatic complexity 21 (threshold 15). Of this number, 18 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":"Modules/Services/Online/ChapterFetcher.swift"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"cacd4987d179c331743a2ef853605ed7d592413b774dc44d9c622fa534aa14c6"}},{"ruleId":"D1","level":"warning","message":{"text":"RSSArticleHTMLSanitizer.normalizeNodes (cyclomatic 21): RSSArticleHTMLSanitizer.normalizeNodes has cyclomatic complexity 21 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 4 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":"Modules/Services/RSS/RSSUtilities.swift"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b1b6aa8790dfc5c553c4e4c2eda2ff89b31d9374faef0b5d34a556b538bdb7c"}},{"ruleId":"D1","level":"warning","message":{"text":"RuleModuleRepositoryIndex.parse (cyclomatic 21): RuleModuleRepositoryIndex.parse has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/RuleModuleRepository.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcc07fe5cff26ee47890556cc49c23af52d74d3f7de2194a303ef22da66bd00f"}},{"ruleId":"D1","level":"warning","message":{"text":"HomeDefaultsLanguageSwap.apply (cyclomatic 21): HomeDefaultsLanguageSwap.apply has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/HomeDefaultsLanguageSwap.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"9771dd9f6126aa0ea9693ebe7d44d5e56c3672bdb521d0775764a146cf8e410c"}},{"ruleId":"D1","level":"warning","message":{"text":"HomeModel.build (cyclomatic 21): HomeModel.build has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/HomeModel.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dce362619486a68d58b8ee95df1a87af0d7f2945284c306efbb21d5810c65b9"}},{"ruleId":"D1","level":"warning","message":{"text":"GlobalSettings.writeReadingSettings (cyclomatic 21): GlobalSettings.writeReadingSettings has cyclomatic complexity 21 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 2 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":"Targets/Yuedu/SharedApp/AppearanceThemeReadingApplier.swift"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"88e1aea97992f57bb489333bc9122b0ec649280df87029b00093c1a0b68176ae"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreTextPageView.editMenuInteraction (cyclomatic 21): CoreTextPageView.editMenuInteraction has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"fabc52dc5f926a5cb101a993deaad9652a9b3a59d67a1eb8a042ed8049c8fb81"}},{"ruleId":"D1","level":"warning","message":{"text":"ChapterLayout.appearanceUpdated (cyclomatic 21): ChapterLayout.appearanceUpdated has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d3fc1b5c0ae64de8f343b7575b1d5dde64c736274b8896d278913e9b828738e"}},{"ruleId":"D1","level":"warning","message":{"text":"NodeAttributedStringRenderer.collapseAdjacentParagraphSpacing (cyclomatic 21): NodeAttributedStringRenderer.collapseAdjacentParagraphSpacing has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift"},"region":{"startLine":2912}}}],"partialFingerprints":{"codehealthFindingId/v1":"788aeed41bb0089cc238ed7404b0c9f42bd03d6f0dfdd0e131662e7b4e34ea2f"}},{"ruleId":"D1","level":"warning","message":{"text":"RuleModuleManifestSections.body (cyclomatic 21): RuleModuleManifestSections.body has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Library/Modules/RuleModuleImportSheet.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a28eb380c6d193179877d5f6ceed6f51cb2e3c27198ef8702969016c02123fb"}},{"ruleId":"D1","level":"warning","message":{"text":"LegadoRuleScope.declaredNames (cyclomatic 21): LegadoRuleScope.declaredNames has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoRuleScope.swift"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc7ccd69f85112e52e72a90f9a8af9f25657a80c7517af4d54295650d66df6f9"}},{"ruleId":"D1","level":"warning","message":{"text":"AnalyzeUrl.javaAbsoluteURL (cyclomatic 21): AnalyzeUrl.javaAbsoluteURL has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/URL/AnalyzeUrl.swift"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"55e80e9a005b43ae4bce30324c00de19dff1d9b3842a847e2c726a8d9d34853d"}},{"ruleId":"D1","level":"warning","message":{"text":"legado-engine.getList (cyclomatic 21): legado-engine.getList has cyclomatic complexity 21 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 2 belong to 2 function literals 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":"Resources/Assets/legado-engine.js"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"05af1773858928a1726e51dd228530eaf25f8a745a0e6cd72a4dd8471605a596"}},{"ruleId":"D1","level":"warning","message":{"text":"AISelfAssessmentStreamParser.finish (cyclomatic 20): AISelfAssessmentStreamParser.finish has cyclomatic complexity 20 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AISelfAssessment.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ce7b1647bb74dbb66e5b412290f2cb2c237c8c249421b49e42b4b4f9d063c88"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomHTTPProvider.buildJSRequestOrThrow (cyclomatic 20): CustomHTTPProvider.buildJSRequestOrThrow has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/TTSAudioProvider.swift"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"728e99375ee5d52f27c2c5aad4641400a12c6c0e83d950d68874f452eec24665"}},{"ruleId":"D1","level":"warning","message":{"text":"TXTChapterParser.skipLeadingWhitespaceBytes (cyclomatic 20): TXTChapterParser.skipLeadingWhitespaceBytes has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TXT/TXTChapterParser.swift"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d144021d3e2feb26f8c7b6ac9f02d6d47237b0513952d3e2381e277e2201847"}},{"ruleId":"D1","level":"warning","message":{"text":"TXTEncodingDetector.detect (cyclomatic 20): TXTEncodingDetector.detect has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TXT/TXTEncodingDetector.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aeb0b2e64bce1eb2b60d6ae5334720408c9cc1feebd3e9303a8f412206e3833"}},{"ruleId":"D1","level":"warning","message":{"text":"HomeView.body (cyclomatic 20): HomeView.body has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Bookshelf/HomeView.swift"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"81e31569667c69b1f7394f9790a8879f72ec03e506d93c34c69b19ab440467e5"}},{"ruleId":"D1","level":"warning","message":{"text":"OPDSFeedView.body (cyclomatic 20): OPDSFeedView.body has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Bookshelf/OPDSImportView.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"d254c5915d2b4202ec3949e53ff4fde9d065514f5b4608338d206bcd3712356c"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserScrollTileCell.configure (cyclomatic 20): BrowserScrollTileCell.configure has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/BrowserScrollTileCell.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab25e794fccc62273e588d5a8d885a3af5d8a6c0595da403c9d520a01b5a900b"}},{"ruleId":"D1","level":"warning","message":{"text":"ReaderView.scrollBody (cyclomatic 20): ReaderView.scrollBody has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderView\u002BTXTVerticalScroll.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bc9e9fcffc4258b5cd00a1d168d6eee32d8f6ce893b36e5f5812790b3766d97"}},{"ruleId":"D1","level":"warning","message":{"text":"UserDetailView.body (cyclomatic 20): UserDetailView.body has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Settings/UserDetailView.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"913f4eae80b17a7dc023e1c43742d022d66a9368195fb4ae4aa5fa5d136ff024"}},{"ruleId":"D1","level":"warning","message":{"text":"BookStore.mergeOnlineChapters (cyclomatic 20): BookStore.mergeOnlineChapters has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/BookStore.swift"},"region":{"startLine":3784}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f2d960cc89b108ff80482435bfcad5e4abb90a00fa4cc3fc1319acfa5f34622"}},{"ruleId":"D1","level":"warning","message":{"text":"HTTPResponseReader.advance (cyclomatic 20): HTTPResponseReader.advance has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Network/SingleWriteHTTPExchange.swift"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"6246589a17015bbde2f217770c5657e4213e17f16e83d3785280f47e411fe455"}},{"ruleId":"D1","level":"warning","message":{"text":"RSSXMLParserDelegate.parser (cyclomatic 20): RSSXMLParserDelegate.parser has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSFetcher.swift"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"078276a7824498025b048d8396850aff7429f9fbddfcb669899c13456b395147"}},{"ruleId":"D1","level":"warning","message":{"text":"RSSXMLParser.parser (cyclomatic 20): RSSXMLParser.parser has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSFetcher.swift"},"region":{"startLine":1402}}}],"partialFingerprints":{"codehealthFindingId/v1":"90bd0c07808aa6c0f5a47391bead4ba3715c7079746c7c095f7723fe3f93fbf6"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteLibraryHTTPClient.validContentRange (cyclomatic 20): RemoteLibraryHTTPClient.validContentRange has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RemoteLibrary/RemoteLibraryHTTPClient.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8fe3440cddb397bccecc1c4c50c0fc75eef9d55fb553d83139a9572420d323f"}},{"ruleId":"D1","level":"warning","message":{"text":"SearchWorkResolver.resolve (cyclomatic 20): SearchWorkResolver.resolve has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/SearchWorkResolver.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"d59fde3d261ccbdec76bb683f4d1a7864df39ab96e7605249471b9a04eb7df17"}},{"ruleId":"D1","level":"warning","message":{"text":"yuedu_appApp.init (cyclomatic 20): yuedu_appApp.init has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/yuedu_appApp.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"eba5cea18b14fe3b226bb7500665c22c566aa11f18262099d6250be6c755396d"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreTextPageView.drawBlockRenderables (cyclomatic 20): CoreTextPageView.drawBlockRenderables has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":1156}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c805637d9f0ca24d8dd67f7b9ce11e510a9283d8ec9e305b66461975189e27c"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreTextPaginator.applyOrphanControl (cyclomatic 20): CoreTextPaginator.applyOrphanControl has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift"},"region":{"startLine":2426}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccb28a4df2efdf8fdc9c7ab641761fd7c16415eb9e8c10d3025d23f749b18398"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreTextPaginator.computeExplicitBlockRenderableRect (cyclomatic 20): CoreTextPaginator.computeExplicitBlockRenderableRect has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift"},"region":{"startLine":3440}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb906952e617901a3f7018b190322be044c03edc8c7559e6c1090d41ffa518ff"}},{"ruleId":"D1","level":"warning","message":{"text":"EmbeddedTrueTypeFontIdentity.namespaced (cyclomatic 20): EmbeddedTrueTypeFontIdentity.namespaced has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/EmbeddedTrueTypeFontIdentity.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d50596720fb023800874f5c63bb20b39ff3dd39df91819dc63883f5884466ec"}},{"ruleId":"D1","level":"warning","message":{"text":"NodeAttributedStringRenderer.applyVerticalSealBreaks (cyclomatic 20): NodeAttributedStringRenderer.applyVerticalSealBreaks has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"1733a2c6788eba8efb724119c78437869937c45e9d1f92a53da2777c543e4ebe"}},{"ruleId":"D1","level":"warning","message":{"text":"RegexHighlightEngine.cascade (cyclomatic 20): RegexHighlightEngine.cascade has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/RegexHighlightEngine.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e437a063c4c919ac2fe8e462cdfa4a7f275605acd9f709e56906015eaffd2c8"}},{"ruleId":"D1","level":"warning","message":{"text":"ReaderStyleDeclarationScanner.scan::declaration (cyclomatic 20): ReaderStyleDeclarationScanner.scan::declaration has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (ReaderStyleDeclarationScanner.scan) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderStyleCSSCodec.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"f938e61d504fabed25c2a9fa9573f8d8e8454c24f5d15096abc8c1cf26895b37"}},{"ruleId":"D1","level":"warning","message":{"text":"JsoupDefaultExtractor.getResultLast (cyclomatic 20): JsoupDefaultExtractor.getResultLast has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JsoupDefaultExtractor.swift"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dfbbffeaf306eaf21d40cec06dbbc4ce7924de970ea58b3eb521fe06516d010"}},{"ruleId":"D1","level":"warning","message":{"text":"LegadoRuleScope.isAssigned (cyclomatic 20): LegadoRuleScope.isAssigned has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoRuleScope.swift"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"47ddbee6a05d5035da36b7ccff53dd0b6883a5e799eae38fcaa1eab98e242668"}},{"ruleId":"D1","level":"warning","message":{"text":"HTMLParser.swift.parseHTML (cyclomatic 20): HTMLParser.swift.parseHTML has cyclomatic complexity 20 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 1 belongs 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":"Modules/Core/RuleEngine/HTMLParser.swift"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba1821db890d9bb7b7e65b7204afe6720f21f5a1ee7373831702f176f8c083c5"}},{"ruleId":"D1","level":"warning","message":{"text":"ruleEngine.evaluateTemplateExpression (cyclomatic 20): ruleEngine.evaluateTemplateExpression has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"c90c262f1ab51bdd80e253155cf4e2adacb15f7d69d5c42240ea9b33864a5c61"}},{"ruleId":"D1","level":"warning","message":{"text":"parseTOC (cyclomatic 20): parseTOC has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 6 of the 20 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 1183, 1201, 1198, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":1175}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2fa28eb2e5aa2162117bf3e0ad3b9dfec59e59a55aac76c77e679dd957cd7a6"}},{"ruleId":"D1","level":"warning","message":{"text":"AIAgenticAssistant.run (cyclomatic 19): AIAgenticAssistant.run has cyclomatic complexity 19 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIAgenticAssistant.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e3e3d99da795516b81fb4175f9d0b16142504999c5cc5317ad0bd91c6bc1b4"}},{"ruleId":"D1","level":"warning","message":{"text":"AIMemoryPlanner.plan (cyclomatic 19): AIMemoryPlanner.plan has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AICharacterMemoryPlanner.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f07703b309da3e213d94a3b8208022ea6d275175e86b4c4ae276a8d3fa0c76"}},{"ruleId":"D1","level":"warning","message":{"text":"RuleEngine.routeExtractValue (cyclomatic 19): RuleEngine.routeExtractValue has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7db6e71fcb372bace0721cbd22d815287ccae598b77b0ab25b4ad26808abdf4"}},{"ruleId":"D1","level":"warning","message":{"text":"TXTEncodingDetector.multibyteMatch (cyclomatic 19): TXTEncodingDetector.multibyteMatch has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TXT/TXTEncodingDetector.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddff5305e6d4515f20e9a820a12a1f437d71984f8ee9badb6aec173edce95671"}},{"ruleId":"D1","level":"warning","message":{"text":"BookSourceManagementModel.rebuildRows (cyclomatic 19): BookSourceManagementModel.rebuildRows has cyclomatic complexity 19 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 4 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":"Modules/Features/BookSource/BookSourceManagementModel.swift"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e7d7642557c0776da77c35e50a8040e014d2b06e35471b391828fd5b3f956d"}},{"ruleId":"D1","level":"warning","message":{"text":"FixedPageReaderView.readerContent (cyclomatic 19): FixedPageReaderView.readerContent has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/FixedPageReader/FixedPageReaderView.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab71102b33d1ae7f838d293743f9c93f5f1fff22c20d4f044e78fb3a4a8b6066"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreTextCollectionScrollViewController.applyReadingPositionIfPossible (cyclomatic 19): CoreTextCollectionScrollViewController.applyReadingPositionIfPossible has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/CoreTextCollectionScrollViewController.swift"},"region":{"startLine":1256}}}],"partialFingerprints":{"codehealthFindingId/v1":"a14f04454489027875a212b26f191c5a55a6863a9bf8adcb949fbd8e84ddf092"}},{"ruleId":"D1","level":"warning","message":{"text":"ReaderChapterCommentDecorator.placements (cyclomatic 19): ReaderChapterCommentDecorator.placements has cyclomatic complexity 19 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. 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":"Modules/Features/Reader/ReaderChapterCommentDecorator.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"a64c3bb72ad38243d84ed5bbcc2b197ff3b31be5c7150ff9a881a01e4cb3859a"}},{"ruleId":"D1","level":"warning","message":{"text":"CalibreWireBuffer.nextFrame (cyclomatic 19): CalibreWireBuffer.nextFrame has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Calibre/CalibreWirelessProtocol.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3b9f8f973b5c4654fcc4606099d0f31269b8879461e7ef1633222e1769345fe"}},{"ruleId":"D1","level":"warning","message":{"text":"BookStore.snapshotForSync (cyclomatic 19): BookStore.snapshotForSync has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/BookStore.swift"},"region":{"startLine":2882}}}],"partialFingerprints":{"codehealthFindingId/v1":"b268f9fc4785aabc119f9e00e658046ca2e757d6081ab8beed62ce018c1f58fe"}},{"ruleId":"D1","level":"warning","message":{"text":"UniversalBookResourceAdapter.rewriteResourceReferences (cyclomatic 19): UniversalBookResourceAdapter.rewriteResourceReferences has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/UniversalBookResourceAdapter.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"59eebb64890f86039a87a34ca76d5cea5f3679fcb021870194b78d8c60ddf23f"}},{"ruleId":"D1","level":"warning","message":{"text":"RSSFetcher.fetchItems (cyclomatic 19): RSSFetcher.fetchItems has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSFetcher.swift"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6ecd5c4d3019e6113acc482102f00a30cb380fa5f73be5d7b22f6a6c96f00a3"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkIndexService.compute (cyclomatic 19): WorkIndexService.compute has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/WorkIndexService.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2d9eab96639b220691d957397e5d8be14e886fa1446df8012ca370645acb8ca"}},{"ruleId":"D1","level":"warning","message":{"text":"GeneratedCoverTextLayout.glyphs (cyclomatic 19): GeneratedCoverTextLayout.glyphs has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/SharedUI/Components/GeneratedBookCover.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"c720beff24cf9ce7b6dfebb18b18ad3660be24b935cc3a2639aab1ebeea18e18"}},{"ruleId":"D1","level":"warning","message":{"text":"yuedu_appApp.body (cyclomatic 19): yuedu_appApp.body has cyclomatic complexity 19 (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":"Targets/Yuedu/SharedApp/yuedu_appApp.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"d829aa8bd6501abed75482760b3a9c04af46ba55e3d89f6ae6639fd422bc484c"}},{"ruleId":"D1","level":"warning","message":{"text":"ChapterTitleDesignRenderer.compile (cyclomatic 19): ChapterTitleDesignRenderer.compile has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ChapterTitleDesignRenderer.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"23a5999d659406bcdc92a13efbad8767a4f1a9d69da8212ceefb306bc83ba989"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreTextPageView.handleSelectionHandlePan (cyclomatic 19): CoreTextPageView.handleSelectionHandlePan has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":1682}}}],"partialFingerprints":{"codehealthFindingId/v1":"250d2f306b09c2bb31a31b8545fe7bb799955983ef1748c44003e618358760b9"}},{"ruleId":"D1","level":"warning","message":{"text":"HTMLAttributedStringBuilder.buildChildren (cyclomatic 19): HTMLAttributedStringBuilder.buildChildren has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: HTMLAttributedStringBuilder.userAgentDeclarations (cyclomatic 25) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ca2b1f4a37fc5b26f2817b28b646522e1e0eee48acabb6fa4050b90ae7df470"}},{"ruleId":"D1","level":"warning","message":{"text":"HTMLStyledASTRenderableNodeConverter.mapChildren (cyclomatic 19): HTMLStyledASTRenderableNodeConverter.mapChildren has cyclomatic complexity 19 (threshold 15). Of this number, 16 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":"Modules/Core/ReaderCore/CoreText/HTMLStyledASTRenderableNodeConverter.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0451c9ae9807169a87894b32755e5f616fea8d625d48eee3c426254190818af"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownRenderableNodeConverter.convertBody (cyclomatic 19): MarkdownRenderableNodeConverter.convertBody has cyclomatic complexity 19 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 4 belong to 4 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 is NOT this file\u0027s highest cyclomatic complexity: MarkdownRenderableNodeConverter.topLevelText (cyclomatic 21) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/MarkdownAttributedStringBuilder.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"995e6462fd251769d8c8a144e70dbdd227d56a039f14b2480e71b6151e7695fc"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownInlineParser.parse (cyclomatic 19): MarkdownInlineParser.parse has cyclomatic complexity 19 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 1 belongs 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 is NOT this file\u0027s highest cyclomatic complexity: MarkdownRenderableNodeConverter.topLevelText (cyclomatic 21) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/MarkdownAttributedStringBuilder.swift"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c140e0916fdde987da72ba24ed32a35816fdc5154671877bc19ccd11a29418d"}},{"ruleId":"D1","level":"warning","message":{"text":"SVGWebViewRasterizer.beginCapture (cyclomatic 19): SVGWebViewRasterizer.beginCapture has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/SVGWebViewRasterizer.swift"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"a93ca7afae55815d0f09183a73f1feb62129c64937cedc71664095c768874a41"}},{"ruleId":"D1","level":"warning","message":{"text":"ReaderStyleDeclarationScanner.scan (cyclomatic 19): ReaderStyleDeclarationScanner.scan has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (ReaderStyleDeclarationScanner.scan::declaration) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderStyleCSSCodec.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d6b3966dc43d8581bff63c76f436e0bee37b3674fb50e0b5315c72e5ff3adfd"}},{"ruleId":"D1","level":"warning","message":{"text":"ReaderStylePackage.validateManifest (cyclomatic 19): ReaderStylePackage.validateManifest has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderStylePackage.swift"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa7b00e0e58b8ee2547de16456dd0081f6336056a783650158224df221a2fa3c"}},{"ruleId":"D1","level":"warning","message":{"text":"ModernParserBridge.exploreItems (cyclomatic 19): ModernParserBridge.exploreItems has cyclomatic complexity 19 (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":"Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift"},"region":{"startLine":2407}}}],"partialFingerprints":{"codehealthFindingId/v1":"06f46cb8eaf179a85ba58756dc743043658a8829b97304b78e62e4efb57cbec4"}},{"ruleId":"D1","level":"warning","message":{"text":"ModernRuleEngine.modeQualifiedRule (cyclomatic 19): ModernRuleEngine.modeQualifiedRule has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/ModernRuleEngine.swift"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8510cf5a0cd28b8238bc9b200c0e399083db4210c9258610710ab322f6b8ba7"}},{"ruleId":"D1","level":"warning","message":{"text":"OrderedJSON.javaDouble (cyclomatic 19): OrderedJSON.javaDouble has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/OrderedJSON.swift"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"e75dab95466eb85434fea8a3b501d5b888d7943351d49d7fa4f00d8cfcaf77cc"}},{"ruleId":"D1","level":"warning","message":{"text":"KeyOrderScanner.walkObject (cyclomatic 19): KeyOrderScanner.walkObject has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/OrderedJSON.swift"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"e62e0d5e227f51bbe6018fbaa9aaebb0f8623d24184661ade72d1d8452847c45"}},{"ruleId":"D1","level":"warning","message":{"text":"HomeSectionCards.body (cyclomatic 19): HomeSectionCards.body has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Explore/Home/HomeSectionCards.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"f596e392e3b5b850cebe9fb7f58adf166619d326296392e2f4d4fd1271376688"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreTextHorizontalLineDrawer.drawInlineBorderBoxes (cyclomatic 19): CoreTextHorizontalLineDrawer.drawInlineBorderBoxes has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextHorizontal/CoreTextHorizontalLineDrawer.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"777e1977b7746db97e78c0e4ab608872ae8b2eb7bfeedf70fc7c8c683927c9a3"}},{"ruleId":"D1","level":"warning","message":{"text":"JSCoreEngine.extractBytes (cyclomatic 19): JSCoreEngine.extractBytes has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/JSCoreEngine.swift"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"6676f1557db9ce06f3b217c0f6f7f82a8198d83445900667d0e3537a24c77fbd"}},{"ruleId":"D1","level":"warning","message":{"text":"JSCoreEngine.configureContext (cyclomatic 19): JSCoreEngine.configureContext has cyclomatic complexity 19 (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":"Modules/Core/RuleEngine/ModernParser/JS/JSCoreEngine.swift"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"73d459e0765e907ab4d83da12f3edc4f7088e79c0bb5d695996055e29c79e86b"}},{"ruleId":"D1","level":"warning","message":{"text":"LegadoJSBridge.runAjaxBatch (cyclomatic 19): LegadoJSBridge.runAjaxBatch has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift"},"region":{"startLine":1102}}}],"partialFingerprints":{"codehealthFindingId/v1":"db3f1f9ee87cbec0b486894294137a57abaa8d9318dad8caebb5ff132f43d0fa"}},{"ruleId":"D1","level":"warning","message":{"text":"ruleEngine.splitTopLevel (cyclomatic 19): ruleEngine.splitTopLevel has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"550d2a0f43c88b5a3fb9e9158295fe9d2ce73946671fb3245e97a153d419156d"}},{"ruleId":"D1","level":"warning","message":{"text":"legado-engine.getAttr (cyclomatic 19): legado-engine.getAttr has cyclomatic complexity 19 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. 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":"Resources/Assets/legado-engine.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0140e3cf97b24f439fc00c4706f232ce25936b0a6cfaabe7718fa59c3646472"}},{"ruleId":"D1","level":"warning","message":{"text":"PublicationSession.makeSession (cyclomatic 18): PublicationSession.makeSession has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/PublicationSession.swift"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ee619e6cf37df67c4961083357abe19dc3807e0e156ddb196778ed2181bfa8e"}},{"ruleId":"D1","level":"warning","message":{"text":"MOBIFile.init (cyclomatic 18): MOBIFile.init has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/MOBI/MOBIFile.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"2618d3d01f6e8ba4fd122c3af03591d9ba9b4ae8e5e315b434fb014a9c929d1f"}},{"ruleId":"D1","level":"warning","message":{"text":"ReaderHTMLUtilities.qidianReviewTarget (cyclomatic 18): ReaderHTMLUtilities.qidianReviewTarget has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/ReaderHTMLUtilities.swift"},"region":{"startLine":1917}}}],"partialFingerprints":{"codehealthFindingId/v1":"6409401441580a2ed606d24717166a3d17d77d9cfc0b89c4c3a3c3a5fa126441"}},{"ruleId":"D1","level":"warning","message":{"text":"TTSChunkDecoder.fileTypeHint (cyclomatic 18): TTSChunkDecoder.fileTypeHint has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/TTSChunkDecoder.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9fda9e8d320be199a0e08817c1b612b5daad12f2be3f337852496be3e01dee9"}},{"ruleId":"D1","level":"warning","message":{"text":"BookGridCell.body (cyclomatic 18): BookGridCell.body has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Bookshelf/HomeView.swift"},"region":{"startLine":2171}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6745678c7a9277f57289064c51e5c7350d9858d90757dbc04d255a75c137587"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreTextCollectionScrollViewController.update (cyclomatic 18): CoreTextCollectionScrollViewController.update has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/CoreTextCollectionScrollViewController.swift"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"23eb6ca4b55ade82599f9e3cbf535bd588dbad526babe983d1d8ce2654e3339e"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreTextCollectionScrollViewController.handleTap (cyclomatic 18): CoreTextCollectionScrollViewController.handleTap has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/CoreTextCollectionScrollViewController.swift"},"region":{"startLine":1465}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8d7dcf00f47c4fb91777d56ce87e666c1b3813fd1a1b8c8910cddd2a8b9d2ce"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreTextCollectionScrollViewController.resolveVisibleViewport (cyclomatic 18): CoreTextCollectionScrollViewController.resolveVisibleViewport has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/CoreTextCollectionScrollViewController.swift"},"region":{"startLine":2061}}}],"partialFingerprints":{"codehealthFindingId/v1":"46e44d102017a0e2595ab8eeb7bc8bdbca6d8d38772de1583c36c6ebce406bf4"}},{"ruleId":"D1","level":"warning","message":{"text":"ReaderNavigationTransitionDriver.handleEdgePan (cyclomatic 18): ReaderNavigationTransitionDriver.handleEdgePan has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderNavigationTransitionDriver.swift"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"30a60353d160b0fc851c3bbe67c3bf2dd89f09a3c73dad245d7a24c9320032ea"}},{"ruleId":"D1","level":"warning","message":{"text":"ReaderOverlayValueFormatter.text (cyclomatic 18): ReaderOverlayValueFormatter.text has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderOverlayContent.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"44d939716bdc7251f1b6bb3f933391183b2b1fe26a6f843647e64ded53f2fe61"}},{"ruleId":"D1","level":"warning","message":{"text":"ReaderView.followTTSPlaybackHighlight (cyclomatic 18): ReaderView.followTTSPlaybackHighlight has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderView\u002BSourceChange.swift"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"729c1cf16069c32e1b8666faa151d7f08c7f75364c9ddd2be24239db48dac94b"}},{"ruleId":"D1","level":"warning","message":{"text":"ReaderView.startTTSChapter (cyclomatic 18): ReaderView.startTTSChapter has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderView\u002BSourceChange.swift"},"region":{"startLine":1034}}}],"partialFingerprints":{"codehealthFindingId/v1":"5494085bcb67a8ff07ba01a371ca90e79d1a919b5ee5054b5a7a5d8f732ba356"}},{"ruleId":"D1","level":"warning","message":{"text":"BookSearchView.body (cyclomatic 18): BookSearchView.body has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Search/BookSearchView.swift"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"b36dce15092211403625f58c17cde3a10638d6cad2c6b42ed400a614cdee2dfb"}},{"ruleId":"D1","level":"warning","message":{"text":"BookStore.refreshOnlineBookMetadata (cyclomatic 18): BookStore.refreshOnlineBookMetadata has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/BookStore.swift"},"region":{"startLine":2263}}}],"partialFingerprints":{"codehealthFindingId/v1":"c81e65eccf26ad7632a6207c30fdb246c3816663c36a05ce30652ee2fd5daf9e"}},{"ruleId":"D1","level":"warning","message":{"text":"BookStore.rereadTXTHeaders (cyclomatic 18): BookStore.rereadTXTHeaders has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/BookStore.swift"},"region":{"startLine":3500}}}],"partialFingerprints":{"codehealthFindingId/v1":"091cb011bf1b389884ffe7be8eb150f88a1ad76020443333af5987a440530386"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalBookImportService.importBook (cyclomatic 18): LocalBookImportService.importBook has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/LocalBookImportService.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"1935f6b75c1535ac1e0f178ca456c51ef46bb98b965715bd046323add29f04d0"}},{"ruleId":"D1","level":"warning","message":{"text":"ShelfWorkMerger.absorb (cyclomatic 18): ShelfWorkMerger.absorb has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/ShelfWorkService.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"e72f4d639006c8b6862111dd470489ac68941d599fc0b11a4869161295627409"}},{"ruleId":"D1","level":"warning","message":{"text":"DiscoverViewModel.reload (cyclomatic 18): DiscoverViewModel.reload has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/DiscoverViewModel.swift"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"de1b7b87643ae5f40e89e3a8528946fca1b8c9a93fa6079549add9ef26ef4de3"}},{"ruleId":"D1","level":"warning","message":{"text":"AtomXMLParserDelegate.handleArticleElementEnd (cyclomatic 18): AtomXMLParserDelegate.handleArticleElementEnd has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSFetcher.swift"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed6f2e40c2bc66d239dfcc999d3f721c36211832a32f74127ca51b23f76592e4"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteLibraryService.probe (cyclomatic 18): RemoteLibraryService.probe has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RemoteLibrary/RemoteLibraryService.swift"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"62f9e76b7e214a4f92b771a205d5225f41d4a9ca94f81586b96dd79037260b9a"}},{"ruleId":"D1","level":"warning","message":{"text":"ImportedMetadataCapture.classify (cyclomatic 18): ImportedMetadataCapture.classify has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/ImportedMetadataCapture.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"b842ab3e0b09723a4c2d2a63b4aa0664bf2dd9999458639e109903649278a623"}},{"ruleId":"D1","level":"warning","message":{"text":"ReaderBackgroundMigration.migrateSavedBackgrounds (cyclomatic 18): ReaderBackgroundMigration.migrateSavedBackgrounds has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/ReaderBackgroundMigration.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc996d98804ed835c60fd3ece35d5c48fab036a296de90c6f8a71d550f7af24"}},{"ruleId":"D1","level":"warning","message":{"text":"SVGPathParser.numberEnd (cyclomatic 18): SVGPathParser.numberEnd has cyclomatic complexity 18 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift"},"region":{"startLine":1582}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d92a12f185ade848fd7d191f6e5b3bfa2f94319972ae52b6dcc132c4c6afe2"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreTextPageView.renderPage (cyclomatic 18): CoreTextPageView.renderPage has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"0222e29d9c3e920645676b22a780e7b0b0df5b9fc6ee38d9f282289683a0583c"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreTextPaginator.standaloneImageRenderableRect (cyclomatic 18): CoreTextPaginator.standaloneImageRenderableRect has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift"},"region":{"startLine":3355}}}],"partialFingerprints":{"codehealthFindingId/v1":"82af4e70b349b841ce007eb4c64e9f76720b82a1b0014572bfc16594aa135ae5"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreTextPaginator.makeBlockImageAttachment (cyclomatic 18): CoreTextPaginator.makeBlockImageAttachment has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift"},"region":{"startLine":3532}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fe083251586196af72125694d84b546cda0f7a3c5166d7b1e663255ce69ad91"}},{"ruleId":"D1","level":"warning","message":{"text":"EPUBStyleResolver.registerFontFaces (cyclomatic 18): EPUBStyleResolver.registerFontFaces has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/EPUBStyleResolver.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec135d82cc20a4192f4b7458197f8799cbfd9a50a53117b2e9bb808b3b635e2a"}},{"ruleId":"D1","level":"warning","message":{"text":"ReaderBatterySVGRasterRequestValidator.validate (cyclomatic 18): ReaderBatterySVGRasterRequestValidator.validate has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/SVGWebViewRasterizer.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"83b2bddcf6d3734f0d7a22b3e5b60ba5c71333a5319c36e3ed7d8ea072647024"}},{"ruleId":"D1","level":"warning","message":{"text":"ReaderStylePackage.importContents (cyclomatic 18): ReaderStylePackage.importContents has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderStylePackage.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8fdcaed43d8e4166eb2589fd2254b34475b3150672f2d3ff9a6f871b9c10cea"}},{"ruleId":"D1","level":"warning","message":{"text":"ReedenThemeImporter.appendUnmappedAppearanceNotes (cyclomatic 18): ReedenThemeImporter.appendUnmappedAppearanceNotes has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReedenThemeImporter.swift"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce9593e3fee88509683b4f17073fac0f5cae53f1aab82fdaf88cb4619ea97320"}},{"ruleId":"D1","level":"warning","message":{"text":"ModernParserBridge.reviewSummaryIdentifiers (cyclomatic 18): ModernParserBridge.reviewSummaryIdentifiers has cyclomatic complexity 18 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"d30c8299875a87e12f119fe6990891257a3b4b45e73f41c5873b350ad3ff8621"}},{"ruleId":"D1","level":"warning","message":{"text":"ModernParserBridge.parseBookInfo (cyclomatic 18): ModernParserBridge.parseBookInfo has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift"},"region":{"startLine":1255}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c0400983c23a1bef9a7f47f41390675005adb33c9498d62112850e72c4d4e07"}},{"ruleId":"D1","level":"warning","message":{"text":"RuleAnalyzer.chompCodeBalanced (cyclomatic 18): RuleAnalyzer.chompCodeBalanced has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/RuleAnalyzer.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"06e37fc297099047d7c2e7443b2369e0e4a7928f96a4ec3b222ab1e6640b308e"}},{"ruleId":"D1","level":"warning","message":{"text":"Readability.Readability (cyclomatic 18): Readability.Readability has cyclomatic complexity 18 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/Readability.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab7e9d1f25b4aeb13a66126562b03b145a17a0fcba7f3b2345bc1528aafcda27"}},{"ruleId":"D1","level":"warning","message":{"text":"ruleEngine.getAttr (cyclomatic 18): ruleEngine.getAttr has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"e93bb08a0973ba075616e06489bfb06bcb348afeef3d0427721b00dfb5d9f88e"}},{"ruleId":"D1","level":"warning","message":{"text":"policy.sanitizePreferences (cyclomatic 18): policy.sanitizePreferences has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/policy.ts"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"b208c3baf5a075fa3b7f784a7f15f29d27b90caa279074922501ae8c9e8a6673"}},{"ruleId":"D1","level":"warning","message":{"text":"feedback.feedbackRouter (cyclomatic 18): feedback.feedbackRouter has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to 10 function literals inside it that branch (lines 170, 230, 114, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/routes/feedback.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"f107d8bb892ae69cfd3fb1d312222324a549e7b13bb87e9a856f114bfe8a5c79"}},{"ruleId":"D1","level":"warning","message":{"text":"_unwrapNoscriptImages (cyclomatic 18): _unwrapNoscriptImages has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 1923, 1902). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest. This is NOT this file\u0027s highest cyclomatic complexity: _initializeNode (cyclomatic 20) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/Readability.js"},"region":{"startLine":1898}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4f4beaf51e97323aee767574cce68dfa0ffa567549b0b986f25e8348c510a4d"}},{"ruleId":"D1","level":"warning","message":{"text":"AIAnswerMarkdown.blocks (cyclomatic 17): AIAnswerMarkdown.blocks has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 1 belongs 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":"Modules/Core/AI/AIAnswerMarkdown.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"79374466eeea2ec28b410be4fa7a6bc976abda1e60117810002b86f0fd5d8771"}},{"ruleId":"D1","level":"warning","message":{"text":"BookSourceHealthChecker.checkMarks (cyclomatic 17): BookSourceHealthChecker.checkMarks 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":"Modules/Core/BookSource/BookSourceHealthChecker.swift"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"f96d000b14e3fb6c7455c0375467e0fb2f34038fb9d90b7e75a949c2c7f69a29"}},{"ruleId":"D1","level":"warning","message":{"text":"SourceAPIErrorLog.chapterErrorEnvelopeMessage (cyclomatic 17): SourceAPIErrorLog.chapterErrorEnvelopeMessage has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/SourceAPIErrorLog.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"3614a70b24bf260f30c84dcc8638ac4d5e04bec6714f0e91355ac53833abf21d"}},{"ruleId":"D1","level":"warning","message":{"text":"ReaderHTMLUtilities.normalizeQidianGodReviewImage (cyclomatic 17): ReaderHTMLUtilities.normalizeQidianGodReviewImage has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/ReaderHTMLUtilities.swift"},"region":{"startLine":1538}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4190b018d0f118d43c92e84fab659a39fc8e654c362b02a76d00e50ed406e78"}},{"ruleId":"D1","level":"warning","message":{"text":"ReaderHTMLUtilities.reviewTarget (cyclomatic 17): ReaderHTMLUtilities.reviewTarget has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/ReaderHTMLUtilities.swift"},"region":{"startLine":1837}}}],"partialFingerprints":{"codehealthFindingId/v1":"69f6017f8ce6cfd3decc4f972a2afdf28d7031b4847a69e9cf26a659bfec48a5"}},{"ruleId":"D1","level":"warning","message":{"text":"ReplaceRuleEngine.edits (cyclomatic 17): ReplaceRuleEngine.edits has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 1 belongs 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":"Modules/Core/Replace/ReplaceRuleEngine.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1c2b89ac01e1726da46b90e947fa5fe2b88e2741c54977d3b9871fe6db3c52f"}},{"ruleId":"D1","level":"warning","message":{"text":"RuleEngine.extractValueByJsoupDefault (cyclomatic 17): RuleEngine.extractValueByJsoupDefault 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 (RuleEngine.extractValueByJsoupDefault) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f8ad3ca095c1e3dec9baafc870f52d660e2f886a32ca873c23ce147f4a4c0e9"}},{"ruleId":"D1","level":"warning","message":{"text":"RuleEngine.extractValueByJsoupDefault (cyclomatic 17): RuleEngine.extractValueByJsoupDefault 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 (RuleEngine.extractValueByJsoupDefault) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"55f27eceeec11a10dcef94025568096e61d478c49e23858489940493e486cc80"}},{"ruleId":"D1","level":"warning","message":{"text":"WebNovelParser.parseTOC (cyclomatic 17): WebNovelParser.parseTOC has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/WebNovelParser.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a012e27bd783875a2bd6199f45cc1549230814453ee4e9e1aa3923b047b14bf"}},{"ruleId":"D1","level":"warning","message":{"text":"AIAssistantPanelView.body (cyclomatic 17): AIAssistantPanelView.body has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/AI/AIAssistantPanelView.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"aecb6803041d4be9ccccf2c6ff6214b3ac0081ad0a89de4657bbce159ec9a146"}},{"ruleId":"D1","level":"warning","message":{"text":"AICharacterMemoryView.body (cyclomatic 17): AICharacterMemoryView.body has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/AI/AICharacterMemoryView.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"4321662616b99bce975bdb709108125dd9da5a3593aebbb6a31a5be6e8625809"}},{"ruleId":"D1","level":"warning","message":{"text":"BookSourceFormLoginView.configureLegadoRuntime (cyclomatic 17): BookSourceFormLoginView.configureLegadoRuntime has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookSource/BookSourceFormLoginView.swift"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"c80a4077040411249a8583fc0d7ca99fc2879eedee309a263369e008d60a8fd2"}},{"ruleId":"D1","level":"warning","message":{"text":"CalibreWirelessView.body (cyclomatic 17): CalibreWirelessView.body has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Bookshelf/CalibreWirelessView.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e9884d02c571a0f4ae46262e6020a6b0c8878a1ee06dd721d187988c38cea00"}},{"ruleId":"D1","level":"warning","message":{"text":"Coordinator.handleInstantPan (cyclomatic 17): Coordinator.handleInstantPan has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/CoreTextPagedView.swift"},"region":{"startLine":2540}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dfec5c2537bd40ab4e55a79b1579884dbb516aec90bf9780949774ed055abad"}},{"ruleId":"D1","level":"warning","message":{"text":"ReaderNavigationTransitionDriver.schedulePendingReconciliation (cyclomatic 17): ReaderNavigationTransitionDriver.schedulePendingReconciliation has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderNavigationTransitionDriver.swift"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"788ac907b2689d8a4e411102c2debd691d5e2beb87061a5f5f4be1fa44cdfa0e"}},{"ruleId":"D1","level":"warning","message":{"text":"ReaderView.applyChapterRefreshAction (cyclomatic 17): ReaderView.applyChapterRefreshAction has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderView\u002BOnlineChapterLoading.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"36b0989650d5a829101339b5b5a15370bc52510428aa454f2322b736ecbb4c48"}},{"ruleId":"D1","level":"warning","message":{"text":"ReaderView.gatherAIBookText (cyclomatic 17): ReaderView.gatherAIBookText has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderView\u002BSourceChange.swift"},"region":{"startLine":1641}}}],"partialFingerprints":{"codehealthFindingId/v1":"81b4054d9ffffed4c73b1b865a07d92c3b2701b75c4e3823f4d08966d9e580af"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserPage.addressField (cyclomatic 17): BrowserPage.addressField has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/WebBrowser/BrowserView.swift"},"region":{"startLine":1053}}}],"partialFingerprints":{"codehealthFindingId/v1":"796b35735e2377b4fcb150bbd18403aadfcea5e9993a1990c9ad4d06889bf425"}},{"ruleId":"D1","level":"warning","message":{"text":"AIRecommendationService.fillCovers (cyclomatic 17): AIRecommendationService.fillCovers has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/AI/AIRecommendationService.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fe173224a90a714fe1dede2e6d7d173dee3c3096b074484309aa10925d1d95d"}},{"ruleId":"D1","level":"warning","message":{"text":"BookReaderSettingsStore.migrateLegacyFixedPageReadingModes (cyclomatic 17): BookReaderSettingsStore.migrateLegacyFixedPageReadingModes has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/BookReaderSettingsStore.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"c57c6640ec7dd247d629dd4050796c49472b472eb2b8b481c149460d3f422aa1"}},{"ruleId":"D1","level":"warning","message":{"text":"CacheManagementService.automaticCleanupCandidates (cyclomatic 17): CacheManagementService.automaticCleanupCandidates has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/CacheManagementService.swift"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5619aa3a80b503972ee4e627cd3449cfef2d3727823cd1f75822ea1fc5e9fed"}},{"ruleId":"D1","level":"warning","message":{"text":"HTMLResponseDecoder.decode (cyclomatic 17): HTMLResponseDecoder.decode has cyclomatic complexity 17 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 5 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":"Modules/Services/Network/HTMLResponseDecoder.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"66553554512722e501f9d1a197549383b8930242b550dcfeacb42e07c016d473"}},{"ruleId":"D1","level":"warning","message":{"text":"SingleWriteHTTPExchange.redirectRequest (cyclomatic 17): SingleWriteHTTPExchange.redirectRequest has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Network/SingleWriteHTTPExchange.swift"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f57e3eb0c5e0a76d4fe68b9627eece296397fdcc6b1e436ba879b1b58677a2e"}},{"ruleId":"D1","level":"warning","message":{"text":"WebFetcher.buildRequest (cyclomatic 17): WebFetcher.buildRequest has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Network/WebFetcher.swift"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"28dfeb98df18a312f3f1bc93abf1d464fbd17b094f163f8322f35888189640cc"}},{"ruleId":"D1","level":"warning","message":{"text":"OfflineChapterStore.persistMangaImages (cyclomatic 17): OfflineChapterStore.persistMangaImages has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Offline/OfflineChapterStore.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e26262df3f1a8f70349524b4666dd97ec52ae3caf47b7c4a975475701715bfa"}},{"ruleId":"D1","level":"warning","message":{"text":"ChapterFetcher.buildRenderableNormalizedHTML (cyclomatic 17): ChapterFetcher.buildRenderableNormalizedHTML has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/ChapterFetcher.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b0d03ab9c4f7709be8f9ea79521669578e7e3ad1cc7dd128a4cb898d51fd35f"}},{"ruleId":"D1","level":"warning","message":{"text":"SearchAggregator.runSearch (cyclomatic 17): SearchAggregator.runSearch has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/SearchAggregator.swift"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"1283a7b69f0e6371ab078becf8bda1cb19c38b7f87b8b00426694d5fbc1bd5de"}},{"ruleId":"D1","level":"warning","message":{"text":"AozoraLibraryDownloadService.importWork (cyclomatic 17): AozoraLibraryDownloadService.importWork has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/PublicLibrary/AozoraLibraryDownloadService.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca07aa2c8cdd0d6ef968b7167ed9004270c4e485e18c04395ab2eaaa1906a051"}},{"ruleId":"D1","level":"warning","message":{"text":"RSSXMLParserDelegate.parser (cyclomatic 17): RSSXMLParserDelegate.parser has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSFetcher.swift"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"73bdca2d7f5822f841add6d1d5fc15842b3a6f5f536e16eaf62a5f31b1ce14e4"}},{"ruleId":"D1","level":"warning","message":{"text":"RSSXMLParser.handleFeedElementEnd (cyclomatic 17): RSSXMLParser.handleFeedElementEnd has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSFetcher.swift"},"region":{"startLine":1430}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f0fa85c98ffc196e8f098a682dbcb4f1ed71e1e7560eca4bc16d44bc6ee076"}},{"ruleId":"D1","level":"warning","message":{"text":"RuleModuleValidator.validate (cyclomatic 17): RuleModuleValidator.validate has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. 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":"Modules/Services/RuleModules/RuleModuleValidator.swift"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6230622d87cf3b01a4675ae22d0935657bc68df206de4b00cf47e69cbba3c4f"}},{"ruleId":"D1","level":"warning","message":{"text":"WebDAVIndexCoordinator.refreshStatuses (cyclomatic 17): WebDAVIndexCoordinator.refreshStatuses has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/WebDAVIndexCoordinator.swift"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"95315482ce7bb550206cf292b0296fcdde6f04ce25828d287dd6a056d98fc773"}},{"ruleId":"D1","level":"warning","message":{"text":"WebDAVIndexer.run (cyclomatic 17): WebDAVIndexer.run has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/WebDAVIndexer.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"b53b4fbefed5071863938da1fe8ed955a0de0968bd65eec87df84d499ebba7d8"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserLayoutPageEngine.pageViewController (cyclomatic 17): BrowserLayoutPageEngine.pageViewController has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageEngine.swift"},"region":{"startLine":1589}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a65f2ce2c76d4eca51aa1748572c3fa6e98792c73bfe4edbb4ccbe48057b134"}},{"ruleId":"D1","level":"warning","message":{"text":"ChapterTitleAttributedBuilder.append (cyclomatic 17): ChapterTitleAttributedBuilder.append has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ChapterTitleAttributedBuilder.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6c7b0128edc348bb42d1ce68e529d6e4c28dcdf2fa58dbf9f3480f06ea091eb"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreTextChunk.stringIndex (cyclomatic 17): CoreTextChunk.stringIndex has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextChunk.swift"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"a74e9c70d01e64cc830b33c76f54886decd78e38c66bb4be6442dfc807e7caba"}},{"ruleId":"D1","level":"warning","message":{"text":"SVGWebViewRasterizer.resolveSVGSize (cyclomatic 17): SVGWebViewRasterizer.resolveSVGSize has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/SVGWebViewRasterizer.swift"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"4481a4ad459cd81a3f0e31a369a1d9e5a675340ac0fcf62c8da76259a4c5303d"}},{"ruleId":"D1","level":"warning","message":{"text":"ChapterTitleHTMLCodec.decodeContent (cyclomatic 17): ChapterTitleHTMLCodec.decodeContent has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ChapterTitleHTMLCodec.swift"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc607b1655e411af9fa39f4871c012ca3c59d73f4681ebdb275f13ae294e606"}},{"ruleId":"D1","level":"warning","message":{"text":"ReaderStyleAssetStore.importValidatedPackageAssets (cyclomatic 17): ReaderStyleAssetStore.importValidatedPackageAssets has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderStyleAssetStore.swift"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6855bba954d6845a6e690044e460bdd751521a752dd3465588195b59c5e68cf"}},{"ruleId":"D1","level":"warning","message":{"text":"ReaderStyleAssetStore.prepareImage (cyclomatic 17): ReaderStyleAssetStore.prepareImage has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderStyleAssetStore.swift"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"ede25252f7cc35e8876057a57e204626a443db1032566f8af4bfbc38adf8c361"}},{"ruleId":"D1","level":"warning","message":{"text":"ReaderStyleCSSCodec.parseGradient (cyclomatic 17): ReaderStyleCSSCodec.parseGradient has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderStyleCSSCodec.swift"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"5784f581379533d7720ec621c15d23ea04065819166aa04ad750f7dbb5e4b1aa"}},{"ruleId":"D1","level":"warning","message":{"text":"ModernRuleEngine.getStringList (cyclomatic 17): ModernRuleEngine.getStringList has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/ModernRuleEngine.swift"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5a877f228386c79e54eda72609c834fbcd6dcb15d49100ef0cad4440e5d684f"}},{"ruleId":"D1","level":"warning","message":{"text":"OrderedJSON.appendJSON (cyclomatic 17): OrderedJSON.appendJSON has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/OrderedJSON.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8b1c83582f15c7902668c29b41e28195770c62f55d348cdd11660022ce7095d"}},{"ruleId":"D1","level":"warning","message":{"text":"JSCoreEngine.setResult (cyclomatic 17): JSCoreEngine.setResult has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/JSCoreEngine.swift"},"region":{"startLine":2129}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7c6278e00ca0a107771ff6eedc8992fc5ad2ce0af70bd6e6f80817ec3f2b437"}},{"ruleId":"D1","level":"warning","message":{"text":"ruleEngine.safeQuerySelectorAll (cyclomatic 17): ruleEngine.safeQuerySelectorAll has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal 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":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f2b9093dcf04e7b80783f68c6dc2439ab99adf72eeb62c0fdd6107efdb25e78"}},{"ruleId":"D1","level":"warning","message":{"text":"ruleEngine.extractValueByJsoupDefaultFromElements (cyclomatic 17): ruleEngine.extractValueByJsoupDefaultFromElements has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"86da8dd07c97a4d40c1ab5bbffea379bd7d66e867bbf9d7bd7b188b31b4705c0"}},{"ruleId":"D1","level":"warning","message":{"text":"AIReadingEvidence.collect (cyclomatic 16): AIReadingEvidence.collect 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":"Modules/Core/AI/AIReadingEvidence.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"241940e1505612d1d54ab50c09ae3ae53a3f883cafbce2579a76a3551f0227fe"}},{"ruleId":"D1","level":"warning","message":{"text":"BookSource.legacySearchURLParts (cyclomatic 16): BookSource.legacySearchURLParts 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":"Modules/Core/BookSource/BookSourceURLRendering.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"19ab508befa721571d86a52ef41a4502a9ff2d8ca4ea2fe1e236037bb02f0409"}},{"ruleId":"D1","level":"warning","message":{"text":"BookSourceFetcher.fetchWebContent (cyclomatic 16): BookSourceFetcher.fetchWebContent 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":"Modules/Core/BookSource/BookSourceFetcher\u002BWebContent.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"0383feb5f30832a05fdc4438da6baa90a19d72296cb4ecf65b8d1e4df7503612"}},{"ruleId":"D1","level":"warning","message":{"text":"SharedImportPayloadClassifier.classify (cyclomatic 16): SharedImportPayloadClassifier.classify 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":"Modules/Core/BookSource/SharedImportQueueDrainer.swift"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dbd41ad95850f1dd3192fe158ccd349f165072062dbed5deb4d2bd6682e857f"}},{"ruleId":"D1","level":"warning","message":{"text":"FixedLayoutSpreadPairingBuilder.build (cyclomatic 16): FixedLayoutSpreadPairingBuilder.build has cyclomatic complexity 16 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 5 belong to 3 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":"Modules/Core/EPUB/PublicationSession.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b33bfd17f94510e87da25f5dd1f4072af4687377105d90cef94abb9dec5aa60"}},{"ruleId":"D1","level":"warning","message":{"text":"PublicationSession.parseOPFMetadataXML (cyclomatic 16): PublicationSession.parseOPFMetadataXML 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":"Modules/Core/EPUB/PublicationSession.swift"},"region":{"startLine":1364}}}],"partialFingerprints":{"codehealthFindingId/v1":"13dbb19333df6d629c936aa07e906c838b7f847d7c7b039fbc127a5cff45530e"}},{"ruleId":"D1","level":"warning","message":{"text":"RuleEngine.isJsoupDefaultRule (cyclomatic 16): RuleEngine.isJsoupDefaultRule has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b422b25ec11d9d8f1c5fff998ba4db768ea17ab587abb899a1dcb34c6b3eab4"}},{"ruleId":"D1","level":"warning","message":{"text":"OnlineBookView.openReader (cyclomatic 16): OnlineBookView.openReader 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":"Modules/Features/BookDetail/OnlineBookView.swift"},"region":{"startLine":1085}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d8c45907ad4f0c7fd454c7c345d95b475a9e86d44be77de1729785ac38e0225"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkDetailView.body (cyclomatic 16): WorkDetailView.body 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":"Modules/Features/BookDetail/WorkDetailView.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"10024f3dda2831d0852180c9348421addffcfdf4935c295e1816761472448c16"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteLibraryManagementView.body (cyclomatic 16): RemoteLibraryManagementView.body has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Bookshelf/RemoteLibraryManagementView.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6ef6140c007c4654ee067d811df74b05aff0ed20fcdb9730a3dacee6ddf02b1"}},{"ruleId":"D1","level":"warning","message":{"text":"RSSFeedView.body (cyclomatic 16): RSSFeedView.body has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/RSS/RSSFeedView.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a8c57ccd0f9b110254f3cc20b1746141c1999210c57181c20284f7bfa4bf747"}},{"ruleId":"D1","level":"warning","message":{"text":"Coordinator.bindEngineCallbacks (cyclomatic 16): Coordinator.bindEngineCallbacks 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":"Modules/Features/Reader/CoreTextPagedView.swift"},"region":{"startLine":1240}}}],"partialFingerprints":{"codehealthFindingId/v1":"d154b722e9659c820478bad8dd0073d64bff06fac4f85d04bc5eff3992a626d7"}},{"ruleId":"D1","level":"warning","message":{"text":"ReaderSettingsExportSnapshot.make (cyclomatic 16): ReaderSettingsExportSnapshot.make 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":"Modules/Features/Reader/ReaderSettingsImportService.swift"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b3d64e7bc53d97c05e9cbf7cc1dc0bb9bfee132c5cfc7e5eeb826fb70a9a710"}},{"ruleId":"D1","level":"warning","message":{"text":"ReaderView.handleTouchAction (cyclomatic 16): ReaderView.handleTouchAction has cyclomatic complexity 16 (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":"Modules/Features/Reader/ReaderView.swift"},"region":{"startLine":3257}}}],"partialFingerprints":{"codehealthFindingId/v1":"0073054f54ea6fbb96efcbb80be66980951b19a0f8ab1cdbfaed5b0487e07bca"}},{"ruleId":"D1","level":"warning","message":{"text":"ReaderView.currentMediaOverlayHighlightText (cyclomatic 16): ReaderView.currentMediaOverlayHighlightText has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderView\u002BSourceChange.swift"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"b15d9d83b13f6a803e080d9d888030e026ec330fefae79dcb582193b71ae0259"}},{"ruleId":"D1","level":"warning","message":{"text":"TXTTocRuleEditView.refreshPreview (cyclomatic 16): TXTTocRuleEditView.refreshPreview 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":"Modules/Features/Settings/TXTTocRuleEditView.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"45f7d9ac95fa8db9326d4f5fe86efaa46cb8bddbd66b3f67f8b68c28d7dff201"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAICompatibleProvider.stream (cyclomatic 16): OpenAICompatibleProvider.stream has cyclomatic complexity 16 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/AI/OpenAICompatibleProvider.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"19378e13d90ab7b1622532240cbde9d40935d5740558dcd98ebee73ffe3e90ab"}},{"ruleId":"D1","level":"warning","message":{"text":"OfflineChapterStore.persistTextImages (cyclomatic 16): OfflineChapterStore.persistTextImages has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Offline/OfflineChapterStore.swift"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d99fd48282fbe1828c0fdf3bc7392b4e54386d265bd614b5567acf7335c6334"}},{"ruleId":"D1","level":"warning","message":{"text":"OfflineChapterStore.isSupportedImageData (cyclomatic 16): OfflineChapterStore.isSupportedImageData 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":"Modules/Services/Offline/OfflineChapterStore.swift"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"b79ab6c8d3c87127a83ad780ed9ee58f0ed4ce8bd34a21cffe600898025d9ddf"}},{"ruleId":"D1","level":"warning","message":{"text":"OfflineDownloadManager.reconcileInterruptedDownloads (cyclomatic 16): OfflineDownloadManager.reconcileInterruptedDownloads 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":"Modules/Services/Offline/OfflineDownloadManager.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c00b6abc390417d92f0104e8b7b2c5235ae0f40052043362b9f6683151409bf"}},{"ruleId":"D1","level":"warning","message":{"text":"OfflineDownloadManager.runBook (cyclomatic 16): OfflineDownloadManager.runBook 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":"Modules/Services/Offline/OfflineDownloadManager.swift"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"3153e3488885e8a2bb3e76aa11160de8e1ff323c8278a984d8a8fc63cfb9539f"}},{"ruleId":"D1","level":"warning","message":{"text":"ChapterAlignment.alignedIndex (cyclomatic 16): ChapterAlignment.alignedIndex 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":"Modules/Services/Online/ChapterAlignment.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"078264e11426dd985a33fa0a8bc350815627a0470d8b03a0ed5055ff54673d8a"}},{"ruleId":"D1","level":"warning","message":{"text":"ChapterAlignment.numericValue (cyclomatic 16): ChapterAlignment.numericValue 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":"Modules/Services/Online/ChapterAlignment.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a563a3aff37c3cf879c663fe2d322f4e517e8990dfdb10ec5472590384d31fc"}},{"ruleId":"D1","level":"warning","message":{"text":"SearchResultCoverURLPolicy.normalizedString (cyclomatic 16): SearchResultCoverURLPolicy.normalizedString has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/SearchResultCoverURLPolicy.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"08bc37dee3e791c967b8e26a155d557797da80604537207afc70a53e7322ff06"}},{"ruleId":"D1","level":"warning","message":{"text":"CalibreProgressService.save (cyclomatic 16): CalibreProgressService.save has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RemoteLibrary/CalibreProgressService.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae7a2cdbe4f21a4e1304af83999661cdc009d7072d080900dbb927c4299ebbae"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteLibraryWritingService.updateMetadata (cyclomatic 16): RemoteLibraryWritingService.updateMetadata 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":"Modules/Services/RemoteLibrary/RemoteLibraryWritingService.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad2fef0daccee4775be1803954b962a7c623298304797e1e1bac7965e761b8c5"}},{"ruleId":"D1","level":"warning","message":{"text":"RuleModule.localized (cyclomatic 16): RuleModule.localized 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":"Modules/Services/RuleModules/RuleModule.swift"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"078c53bf70ac47c0c036ee52107c7dba7f0ce297f0724bfa95581fee57831842"}},{"ruleId":"D1","level":"warning","message":{"text":"RuleModuleValidator.validate (cyclomatic 16): RuleModuleValidator.validate 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":"Modules/Services/RuleModules/RuleModuleValidator.swift"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"f09ae12687c6eb9159a9e84e3e7027fd32c3d94456659d2697063db05abd351c"}},{"ruleId":"D1","level":"warning","message":{"text":"AuthorShelf.adding (cyclomatic 16): AuthorShelf.adding has cyclomatic complexity 16 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 6 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":"Modules/Services/Works/AuthorShelf.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"91aa31a2052c62919baabd5db0c798a5032f6508e317f594a110b7c1301a140f"}},{"ruleId":"D1","level":"warning","message":{"text":"HomeModel.fetch (cyclomatic 16): HomeModel.fetch 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":"Modules/Services/Works/HomeModel.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"be08963c5242a7a5724d70b9d82d5484beb6cf53d987a1377b8567d39e9d33f8"}},{"ruleId":"D1","level":"warning","message":{"text":"CollectionSummary.cards (cyclomatic 16): CollectionSummary.cards 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":"Modules/Services/Works/HomeListCards.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"efca9319dc850853f26b3ddfc271d36c41278cefad5324a617cad0a551daa95b"}},{"ruleId":"D1","level":"warning","message":{"text":"ChapterDocumentStore.document (cyclomatic 16): ChapterDocumentStore.document 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":"Modules/Core/ReaderCore/CoreText/ChapterDocument.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"507de4d0c64be13dd04d6be8956829ee356e5617f37767dd409537222e7ac53b"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreTextPaginator.debugUnitDescription (cyclomatic 16): CoreTextPaginator.debugUnitDescription 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":"Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift"},"region":{"startLine":2285}}}],"partialFingerprints":{"codehealthFindingId/v1":"21248d78751aec3e88995da733d3c62cca6d33a4a463c3f355279d7d076329e1"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreTextPaginator.explicitRenderableText (cyclomatic 16): CoreTextPaginator.explicitRenderableText 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":"Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift"},"region":{"startLine":3645}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c9a662f5414e73475c642345dcb7fd95921a55832d07516e7c8344c5a6bfd6f"}},{"ruleId":"D1","level":"warning","message":{"text":"HTMLAttributedStringBuilder.styleProbeKey (cyclomatic 16): HTMLAttributedStringBuilder.styleProbeKey has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This is NOT this file\u0027s highest cyclomatic complexity: HTMLAttributedStringBuilder.userAgentDeclarations (cyclomatic 25) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"04129046606e1eb7740bfe5eedf0c196ed68475d67a9ebe78fa5e20ebfc8171a"}},{"ruleId":"D1","level":"warning","message":{"text":"HTMLAttributedStringBuilder.resolveLength (cyclomatic 16): HTMLAttributedStringBuilder.resolveLength 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. This is NOT this file\u0027s highest cyclomatic complexity: HTMLAttributedStringBuilder.userAgentDeclarations (cyclomatic 25) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift"},"region":{"startLine":2313}}}],"partialFingerprints":{"codehealthFindingId/v1":"35b39a15d2dae309ddd9c6bf4eef3ae6da37401019138416b1c3ffb838be0edb"}},{"ruleId":"D1","level":"warning","message":{"text":"HTMLAttributedStringBuilder.applyMarginShorthand (cyclomatic 16): HTMLAttributedStringBuilder.applyMarginShorthand 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. This is NOT this file\u0027s highest cyclomatic complexity: HTMLAttributedStringBuilder.userAgentDeclarations (cyclomatic 25) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift"},"region":{"startLine":2349}}}],"partialFingerprints":{"codehealthFindingId/v1":"76d000304f18d0d2551552252841bc4583e0bd0e20b0f8afa06e739c653962b6"}},{"ruleId":"D1","level":"warning","message":{"text":"MathMLTableLatexConverter.latex (cyclomatic 16): MathMLTableLatexConverter.latex 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":"Modules/Core/ReaderCore/CoreText/MathMLRendering.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"32cc2c4e88b4e387cff9b610341c7abcf4cc1783f1bd08ea1797963b21685644"}},{"ruleId":"D1","level":"warning","message":{"text":"ReviewCardFullText.restoringCutComments (cyclomatic 16): ReviewCardFullText.restoringCutComments 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":"Modules/Core/ReaderCore/CoreText/ReviewCardFullText.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"54ebbab4a428751269493c292d80d7dc5e0a3b3f82a26e0434704696cf008771"}},{"ruleId":"D1","level":"warning","message":{"text":"ReedenThemeImporter.applyReaderSchemas (cyclomatic 16): ReedenThemeImporter.applyReaderSchemas 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":"Modules/Core/ReaderCore/Customization/ReedenThemeImporter.swift"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bffb174f3b47f04200a89141a06fad42bc6827d457f7b3ffb0580244e63458f"}},{"ruleId":"D1","level":"warning","message":{"text":"ReedenThemeImporter.highlightRules (cyclomatic 16): ReedenThemeImporter.highlightRules 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":"Modules/Core/ReaderCore/Customization/ReedenThemeImporter.swift"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"809ab749768ec64fd186156428ad2afcf32c0113549c5fb7507715d16bcefcbd"}},{"ruleId":"D1","level":"warning","message":{"text":"JSONPathEvaluator.tokenize (cyclomatic 16): JSONPathEvaluator.tokenize 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":"Modules/Core/RuleEngine/ModernParser/JsonExtractor.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"a971ea65fcf39a24b0b552f78f887d0bea78f7a54b19861ac79d220f95ae768a"}},{"ruleId":"D1","level":"warning","message":{"text":"ModernRuleEngine.evaluateElements (cyclomatic 16): ModernRuleEngine.evaluateElements 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":"Modules/Core/RuleEngine/ModernParser/ModernRuleEngine.swift"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fd85b7502f8b9c004e53bfb477803ba4dfc225f0d357386089318ffce8beb42"}},{"ruleId":"D1","level":"warning","message":{"text":"ModernRuleEngine.extractElementsWithOperators (cyclomatic 16): ModernRuleEngine.extractElementsWithOperators 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":"Modules/Core/RuleEngine/ModernParser/ModernRuleEngine.swift"},"region":{"startLine":1024}}}],"partialFingerprints":{"codehealthFindingId/v1":"67738085a553b6cf986eb1805f74e472cb08503ceacd9010946bcba53b9720e0"}},{"ruleId":"D1","level":"warning","message":{"text":"ExploreHomeRoot.home (cyclomatic 16): ExploreHomeRoot.home 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":"Modules/Features/Explore/Home/ExploreHome.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d7542ae718fa0515da8bdadffc55802137337a16d81f16a616e9f563e79b6bc"}},{"ruleId":"D1","level":"warning","message":{"text":"LegadoSharedJsLibrary.orderedKeys (cyclomatic 16): LegadoSharedJsLibrary.orderedKeys 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":"Modules/Core/RuleEngine/ModernParser/JS/LegadoSharedJsLibrary.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"e87e675df5fc2871340abfd540b3a6f504de26362297ec7c153504c345df4603"}},{"ruleId":"D1","level":"warning","message":{"text":"AnalyzeUrl.canonicalRequestURLString (cyclomatic 16): AnalyzeUrl.canonicalRequestURLString has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/URL/AnalyzeUrl.swift"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f15221579bd4256960291c09781f70cd8528c2363be93c11d5eaca13be914d1"}},{"ruleId":"D1","level":"warning","message":{"text":"feedbackTriage.onFeedbackThreadCreated (cyclomatic 16): feedbackTriage.onFeedbackThreadCreated has cyclomatic complexity 16 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. 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":"functions/src/feedbackTriage.ts"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"38247222fac7243500ba8f5f375e6ec2654964de932aae15c8356977dfc4c689"}},{"ruleId":"D1","level":"warning","message":{"text":"identityToolkit.signInWithIdp (cyclomatic 16): identityToolkit.signInWithIdp 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":"gateway/src/identityToolkit.ts"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"a78b77e29772f13da826b52795e5ba5aedc1bf836869c1ba5282b8ed11168b61"}},{"ruleId":"D2","level":"warning","message":{"text":"_grabArticle (cognitive 272): _grabArticle has cognitive complexity 272 (threshold 15). Drivers by points: if/else 62 (171 pts), loops 18 (66 pts), boolean chains 27, ternaries 3 (7 pts), other 1 (nesting depth added 161). Of this number, 250 points are the body\u0027s own statements and 22 belong to 4 function literals 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/Readability.js"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"9025912dc823327591dcd7b400cb6f11ebd786f5f9af6a8b9410beaf005c2026"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderView.buildBody (cognitive 154): ReaderView.buildBody has cognitive complexity 154 (threshold 15). Drivers by points: if/else 81 (85 pts), ternaries 21 (37 pts), boolean chains 26, error handling 2 (4 pts), match/switch 2 (nesting depth added 22). 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":"Modules/Features/Reader/ReaderView.swift"},"region":{"startLine":1885}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b3fdc4ca4a313d17d0d15ff8a9f387af11e0a7cbc41ea00a5003f1499950baf"}},{"ruleId":"D2","level":"warning","message":{"text":"HTMLTableRasterizer.renderPages (cognitive 148): HTMLTableRasterizer.renderPages has cognitive complexity 148 (threshold 15). Drivers by points: if/else 52 (94 pts), boolean chains 23, loops 11 (16 pts), ternaries 6 (12 pts), match/switch 1 (3 pts) (nesting depth added 55). Of this number, 106 points are the body\u0027s own statements and 42 belong to 8 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/HTMLTableSupport.swift"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcf8ab7bb8220aa02cd251bb32d30100ab1cb5d7ec61a55486c20c028d6279a2"}},{"ruleId":"D2","level":"warning","message":{"text":"JsoupDefaultExtractor.parseSingleRule (cognitive 124): JsoupDefaultExtractor.parseSingleRule has cognitive complexity 124 (threshold 15). Drivers by points: if/else 25 (75 pts), ternaries 5 (29 pts), loops 3 (10 pts), boolean chains 6, match/switch 1 (4 pts) (nesting depth added 84). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JsoupDefaultExtractor.swift"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0197f1ec91af055f256e8abd7619519564dbfcbdb07e01d1c605d3c2914e139"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextPaginator.extractImages (cognitive 117): CoreTextPaginator.extractImages has cognitive complexity 117 (threshold 15). Drivers by points: if/else 16 (54 pts), match/switch 4 (24 pts), ternaries 4 (24 pts), boolean chains 9, loops 3 (6 pts) (nesting depth added 81). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift"},"region":{"startLine":2554}}}],"partialFingerprints":{"codehealthFindingId/v1":"48aac6e66aa3290942047ff35daf6c1c1dab0bffdbbc0f1a6969a7eabba155a9"}},{"ruleId":"D2","level":"warning","message":{"text":"HTMLAttributedStringBuilder.apply (cognitive 114): HTMLAttributedStringBuilder.apply has cognitive complexity 114 (threshold 15). Drivers by points: if/else 65 (77 pts), boolean chains 35, match/switch 1 (2 pts) (nesting depth added 13). 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":"Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift"},"region":{"startLine":1761}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0e496af0d628de718b5508f5c09c21cf56916b0c4de6eaa3c7a02e3b4e65a1b"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleModuleValidator.validateFields (cognitive 108): RuleModuleValidator.validateFields has cognitive complexity 108 (threshold 15). Drivers by points: if/else 47 (79 pts), loops 7 (17 pts), boolean chains 12 (nesting depth added 42). Of this number, 107 points are the body\u0027s own statements and 1 belongs 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":"Modules/Services/RuleModules/RuleModuleValidator.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c81c12bf1e44fed26d6db5d5965279f97d8df605aa215a712a52034901accf9"}},{"ruleId":"D2","level":"warning","message":{"text":"AIAgenticAssistant.answerQuestion (cognitive 102): AIAgenticAssistant.answerQuestion has cognitive complexity 102 (threshold 15). Drivers by points: if/else 36 (50 pts), boolean chains 36, ternaries 7 (10 pts), loops 4 (5 pts), error handling 1 (nesting depth added 18). Of this number, 73 points are the body\u0027s own statements and 29 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIAgenticAssistant\u002BQuestion.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d6958c55533b7f4ecb0439b2f4b3cd54b5a959fc2f71f7c331aa584fa0b78f"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextPaginator.computeLayout (cognitive 94): CoreTextPaginator.computeLayout has cognitive complexity 94 (threshold 15). Drivers by points: if/else 22 (39 pts), ternaries 15 (26 pts), boolean chains 21, loops 3 (4 pts), match/switch 1 (4 pts) (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"f53f57bce35763c5154a2beb08c37de95f5850ff5323eb403b508941f888664a"}},{"ruleId":"D2","level":"warning","message":{"text":"LegadoRhinoNormalizer.normalize (cognitive 87): LegadoRhinoNormalizer.normalize has cognitive complexity 87 (threshold 15). Drivers by points: boolean chains 43, if/else 14 (31 pts), loops 9 (10 pts), ternaries 2 (3 pts) (nesting depth added 19). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoRhinoNormalizer.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3bcbaecb6ee436430fbbdde3b097cac7dea636b5ba62ba66fa742319275fbc8"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderStyleCSSCodec.apply (cognitive 84): ReaderStyleCSSCodec.apply has cognitive complexity 84 (threshold 15). Drivers by points: if/else 34 (61 pts), boolean chains 16, match/switch 4 (7 pts) (nesting depth added 30). 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":"Modules/Core/ReaderCore/Customization/ReaderStyleCSSCodec.swift"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"226921dcc0d54ce207caa8eac4048edd295d2eafea0251c61c1f1f0b393911d6"}},{"ruleId":"D2","level":"warning","message":{"text":"JsoupDefaultExtractor.applyIndexFilter (cognitive 83): JsoupDefaultExtractor.applyIndexFilter has cognitive complexity 83 (threshold 15). Drivers by points: if/else 22 (54 pts), loops 7 (20 pts), boolean chains 6, match/switch 1 (3 pts) (nesting depth added 47). Of this number, 77 points are the body\u0027s own statements and 6 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":"Modules/Core/RuleEngine/ModernParser/JsoupDefaultExtractor.swift"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"420f0290ff9f800da6e1da91e71621001b457b1b3327aab3eefd427ee956e7ae"}},{"ruleId":"D2","level":"warning","message":{"text":"SVGPathParser.execute (cognitive 82): SVGPathParser.execute has cognitive complexity 82 (threshold 15). Drivers by points: ternaries 14 (42 pts), if/else 14 (35 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 50). 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":"Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift"},"region":{"startLine":1613}}}],"partialFingerprints":{"codehealthFindingId/v1":"b63414274bd065fe62250ae4a26b531d01374827d846716a85c3743a3a490aa3"}},{"ruleId":"D2","level":"warning","message":{"text":"HTMLSourceValidator.validate (cognitive 81): HTMLSourceValidator.validate has cognitive complexity 81 (threshold 15). Drivers by points: if/else 21 (51 pts), boolean chains 18, loops 7 (12 pts) (nesting depth added 35). Of this number, 75 points are the body\u0027s own statements and 6 belong to 2 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ChapterTitleHTMLCodec.swift"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca32e1420b081a495765bbfba97354d401b703eb3caf626606fbe5b91c1d7e6"}},{"ruleId":"D2","level":"warning","message":{"text":"AICharacterMemoryService.execute (cognitive 80): AICharacterMemoryService.execute has cognitive complexity 80 (threshold 15). Drivers by points: if/else 19 (54 pts), ternaries 2 (10 pts), error handling 4 (9 pts), boolean chains 5, loops 1 (2 pts) (nesting depth added 49). 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":"Modules/Services/AI/AICharacterMemoryService.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"00b671dcd2782b18635ded9409b31aee460c70f3d39059c68eb8691c3713655c"}},{"ruleId":"D2","level":"warning","message":{"text":"ChapterFetchManager.fetchChapter (cognitive 80): ChapterFetchManager.fetchChapter has cognitive complexity 80 (threshold 15). Drivers by points: if/else 31 (52 pts), error handling 6 (9 pts), ternaries 4 (9 pts), boolean chains 7, loops 1 (3 pts) (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/OnlineReadingPipeline.swift"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"da5e814655abd523b91b10effdd571a710d4be0fd9e8e3343d5fef75e12b2a4e"}},{"ruleId":"D2","level":"warning","message":{"text":"LegadoRhinoNormalizer.lex (cognitive 80): LegadoRhinoNormalizer.lex has cognitive complexity 80 (threshold 15). Drivers by points: if/else 18 (40 pts), boolean chains 19, loops 7 (19 pts), ternaries 1 (2 pts) (nesting depth added 35). Of this number, 66 points are the body\u0027s own statements and 14 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoRhinoNormalizer.swift"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"5932de43b113d499bbd5e68eb03125d4bef4b5dbbbf659d5bad33b4b0c19dd20"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderViewportFragmentHost.update (cognitive 79): ReaderViewportFragmentHost.update has cognitive complexity 79 (threshold 15). Drivers by points: if/else 25 (47 pts), loops 11 (13 pts), boolean chains 12, ternaries 4 (7 pts) (nesting depth added 27). Of this number, 72 points are the body\u0027s own statements and 7 belong to 2 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderViewportFragmentHost.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"af5518434499ab70df8b8e582a7b66d260bf75f008c6f2eb53628ae61b71575b"}},{"ruleId":"D2","level":"warning","message":{"text":"CommentBubbleSVGRecognizer.parseSVG (cognitive 77): CommentBubbleSVGRecognizer.parseSVG has cognitive complexity 77 (threshold 15). Drivers by points: if/else 17 (30 pts), ternaries 10 (28 pts), boolean chains 11, loops 4 (8 pts) (nesting depth added 35). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7a30a1fc4e8d0cc2c29056f60854409da0a7b9f1e73958472641f27294f4599"}},{"ruleId":"D2","level":"warning","message":{"text":"HTMLAttributedStringBuilder.resolvedStyle (cognitive 76): HTMLAttributedStringBuilder.resolvedStyle has cognitive complexity 76 (threshold 15). Drivers by points: if/else 19 (38 pts), loops 7 (20 pts), boolean chains 13, ternaries 3 (5 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift"},"region":{"startLine":1296}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4f9753d00a8e9d86e474f2f90e8bd2a43f9726c5ed7ffd9dcf03dc2e9222ea7"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleModuleValidator.validate (cognitive 72): RuleModuleValidator.validate has cognitive complexity 72 (threshold 15). Drivers by points: if/else 35 (57 pts), loops 6 (8 pts), boolean chains 7 (nesting depth added 24). Of this number, 71 points are the body\u0027s own statements and 1 belongs 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":"Modules/Services/RuleModules/RuleModuleValidator.swift"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"c57522595b463f5e52dd0e753992047e8da36c1d9e96288d3cef347031ca5e20"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextChunkAttachmentExtractor.extract (cognitive 69): CoreTextChunkAttachmentExtractor.extract has cognitive complexity 69 (threshold 15). Drivers by points: if/else 14 (34 pts), ternaries 4 (17 pts), match/switch 3 (14 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 45). 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":"Modules/Core/ReaderCore/CoreText/CoreTextChunkAttachmentExtractor.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bbfbcf2860f092a6db8b53b42c1c1532e22daf2a7387a16970a5d0b33c3d379"}},{"ruleId":"D2","level":"warning","message":{"text":"NodeAttributedStringRenderer.renderBlock (cognitive 69): NodeAttributedStringRenderer.renderBlock has cognitive complexity 69 (threshold 15). Drivers by points: if/else 24 (38 pts), boolean chains 26, match/switch 2 (4 pts), 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"e49e65f546e3ebaf0f6d6b4ca95bc51db0852a2ebada5e2106a453ff911c9bdb"}},{"ruleId":"D2","level":"warning","message":{"text":"AIBookSummaryService.run (cognitive 67): AIBookSummaryService.run has cognitive complexity 67 (threshold 15). Drivers by points: if/else 15 (35 pts), loops 6 (14 pts), error handling 5 (11 pts), boolean chains 7 (nesting depth added 34). Of this number, 44 points are the body\u0027s own statements and 23 belong to 4 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/AI/AIBookSummaryService.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"34fa81076c0e27129169626569fd16a9b9b4e0f0a81324e598de8726c56c68e2"}},{"ruleId":"D2","level":"warning","message":{"text":"Lexer.lex (cognitive 67): Lexer.lex has cognitive complexity 67 (threshold 15). Drivers by points: if/else 19 (47 pts), boolean chains 10, loops 4 (10 pts) (nesting depth added 34). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoCompletionValue.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0089d567f4265cb8056c5518bd8707ae5e25c224e045314d07ef0c3e0fd1f5f"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleEngine.jsonGet (cognitive 66): RuleEngine.jsonGet has cognitive complexity 66 (threshold 15). Drivers by points: if/else 17 (45 pts), ternaries 3 (10 pts), boolean chains 8, loops 2 (3 pts) (nesting depth added 36). 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":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":1496}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fb2e750fe68e96e723bc6fa9d32224cb0586b35756027e4d0ee165e7464393e"}},{"ruleId":"D2","level":"warning","message":{"text":"OnlineBookView.loadTOC (cognitive 66): OnlineBookView.loadTOC has cognitive complexity 66 (threshold 15). Drivers by points: if/else 21 (51 pts), boolean chains 9, error handling 2 (4 pts), ternaries 1 (2 pts) (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/OnlineBookView.swift"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2feea100f76cb3d305bc0cddf1705e53439823946b6183c579c146ed0135b61"}},{"ruleId":"D2","level":"warning","message":{"text":"StatementReader.readStatement (cognitive 66): StatementReader.readStatement has cognitive complexity 66 (threshold 15). Drivers by points: if/else 23 (47 pts), boolean chains 16, match/switch 2 (3 pts) (nesting depth added 25). 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":"Modules/Core/RuleEngine/ModernParser/JS/LegadoCompletionValue.swift"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbff559dbee6f5faa18efa96c3b60850fe6c865eb204f0e7916d11498421d2a1"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextScrollEngine.loadChapter (cognitive 65): CoreTextScrollEngine.loadChapter has cognitive complexity 65 (threshold 15). Drivers by points: if/else 21 (36 pts), ternaries 6 (14 pts), boolean chains 11, error handling 2, loops 1 (2 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextScrollEngine.swift"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"b16f0d2fbef27dd1becb378968c56e9163a796710e6c49654869edfe007c4954"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleEngine.parseXPathSteps (cognitive 64): RuleEngine.parseXPathSteps has cognitive complexity 64 (threshold 15). Drivers by points: if/else 12 (43 pts), loops 6 (16 pts), boolean chains 5 (nesting depth added 41). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"3756a10d2544a7da32caa48465fe5c4f26251a5540b2502c4336e2a09604f974"}},{"ruleId":"D2","level":"warning","message":{"text":"JSONPathEvaluator.resolveFilterPath (cognitive 64): JSONPathEvaluator.resolveFilterPath has cognitive complexity 64 (threshold 15). Drivers by points: if/else 14 (37 pts), loops 4 (12 pts), boolean chains 11, ternaries 1 (4 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JsonExtractor.swift"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c9c3524528b1cd5d23445940f3ff1a733435f206a678f34aa4be2a27a09d3a6"}},{"ruleId":"D2","level":"warning","message":{"text":"ruleEngine.routeExtractValue (cognitive 64): ruleEngine.routeExtractValue has cognitive complexity 64 (threshold 15). Drivers by points: if/else 19 (29 pts), boolean chains 16, ternaries 6 (10 pts), loops 2 (5 pts), error handling 2 (4 pts) (nesting depth added 19). Of this number, 53 points are the body\u0027s own statements and 11 belong to one function literal 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":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcbe760d52a24e1fab910f4246dc33e3ee5ba12bd555d189094cf512932bf7de"}},{"ruleId":"D2","level":"warning","message":{"text":"JSONPathEvaluator.apply (cognitive 62): JSONPathEvaluator.apply has cognitive complexity 62 (threshold 15). Drivers by points: if/else 13 (38 pts), loops 3 (9 pts), ternaries 2 (9 pts), boolean chains 4, match/switch 1 (2 pts) (nesting depth added 39). 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":"Modules/Core/RuleEngine/ModernParser/JsonExtractor.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"152011e8a1c2c750ad8fc27f183596a975aebd64bcf1a0f19be2de296220e653"}},{"ruleId":"D2","level":"warning","message":{"text":"ElementNode.asRenderableNode (cognitive 61): ElementNode.asRenderableNode has cognitive complexity 61 (threshold 15). Drivers by points: if/else 27 (39 pts), boolean chains 15, ternaries 2 (6 pts), match/switch 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/HTMLStyledASTRenderableNodeConverter.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"16e70d9c239c7121dd2b8fb50d56aa2e1d0e29ef40efd7d95c4c4a0cc05bfae1"}},{"ruleId":"D2","level":"warning","message":{"text":"NodeAttributedStringRenderer.render (cognitive 61): NodeAttributedStringRenderer.render has cognitive complexity 61 (threshold 15). Drivers by points: if/else 18 (38 pts), ternaries 5 (10 pts), boolean chains 7, loops 1 (3 pts), match/switch 2 (3 pts) (nesting depth added 28). 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":"Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"92383ca9e4dfdde57decdc690b8ace6310fbdde71752bc419c315648613e030f"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextPageEngineView.updateUIViewController (cognitive 60): CoreTextPageEngineView.updateUIViewController has cognitive complexity 60 (threshold 15). Drivers by points: if/else 25 (45 pts), ternaries 4 (10 pts), boolean chains 5 (nesting depth added 26). 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":"Modules/Features/Reader/CoreTextPagedView.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"b88af67b23fa29b6edddb288a65fa12afce25e7fa62a61ec3cec941dd626c65a"}},{"ruleId":"D2","level":"warning","message":{"text":"Coordinator.handleCoverPan (cognitive 60): Coordinator.handleCoverPan has cognitive complexity 60 (threshold 15). Drivers by points: if/else 21 (48 pts), ternaries 2 (6 pts), boolean chains 5, match/switch 1 (nesting depth added 31). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/CoreTextPagedView.swift"},"region":{"startLine":2595}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb184e8ead50212a7165ea6b7bbbba6777404349cd36d1074425c19c80c889fe"}},{"ruleId":"D2","level":"warning","message":{"text":"EPUBStylesheetIngestion.collect (cognitive 60): EPUBStylesheetIngestion.collect has cognitive complexity 60 (threshold 15). Drivers by points: if/else 15 (43 pts), loops 5 (11 pts), error handling 2 (3 pts), ternaries 1 (3 pts) (nesting depth added 37). Of this number, 49 points are the body\u0027s own statements and 11 belong to 2 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/BrowserLayout/EPUBStylesheetIngestion.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"cee47bb6bc40e3f0dad447ec31bb630d08e3ce3e01b74fbe05869991750e8bda"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextPaginator.extractFrameBlockRenderables (cognitive 60): CoreTextPaginator.extractFrameBlockRenderables has cognitive complexity 60 (threshold 15). Drivers by points: if/else 22 (38 pts), ternaries 5 (11 pts), loops 3 (4 pts), match/switch 1 (4 pts), boolean chains 3 (nesting depth added 26). Of this number, 56 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift"},"region":{"startLine":2879}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a9e1370c0239e0421f0508438d6bb3565b9e8602a1b0a1621b920791f9da7b4"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderStyleCSSCodec.decodeChapterLayerDeclarations (cognitive 60): ReaderStyleCSSCodec.decodeChapterLayerDeclarations has cognitive complexity 60 (threshold 15). Drivers by points: if/else 17 (36 pts), match/switch 5 (13 pts), boolean chains 9, loops 2 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderStyleCSSCodec.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"42481e365a15e6e482c430c0e925ad78f033c481d671b9a244fda0d14e66c7ed"}},{"ruleId":"D2","level":"warning","message":{"text":"AnalyzeUrl.normalizeLegadoOptionJSON (cognitive 60): AnalyzeUrl.normalizeLegadoOptionJSON has cognitive complexity 60 (threshold 15). Drivers by points: if/else 12 (24 pts), loops 6 (17 pts), boolean chains 8, match/switch 3 (6 pts), ternaries 2 (5 pts) (nesting depth added 29). Of this number, 55 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":"Modules/Core/RuleEngine/ModernParser/URL/AnalyzeUrl.swift"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"21e86f31c2737f7a714c09afa564f664b2070a85b647e7734dedc3b51a2f0289"}},{"ruleId":"D2","level":"warning","message":{"text":"ModernParserBridge.wireJSEngine (cognitive 58): ModernParserBridge.wireJSEngine has cognitive complexity 58 (threshold 15). Drivers by points: if/else 23 (25 pts), boolean chains 17, ternaries 9 (13 pts), match/switch 1 (2 pts), error handling 1 (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":"Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"e62aa4876f2886852ebada4ec5f78e12d21272b072f530e2bcd8f3a9ff90d219"}},{"ruleId":"D2","level":"warning","message":{"text":"ruleEngine.routeExtractList (cognitive 58): ruleEngine.routeExtractList has cognitive complexity 58 (threshold 15). Drivers by points: if/else 18 (31 pts), ternaries 5 (13 pts), loops 4 (12 pts), boolean chains 2 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":911}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa8f5ccbc30d6d6dbe0fc3ea677247cda045e1255e4bc237949cfa16f241e492"}},{"ruleId":"D2","level":"warning","message":{"text":"HTMLParser.swift.matches (cognitive 57): HTMLParser.swift.matches has cognitive complexity 57 (threshold 15). Drivers by points: if/else 21 (46 pts), boolean chains 6, loops 2 (3 pts), match/switch 1 (2 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/HTMLParser.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b54fc17b6e949ce7ebc34bec07e7277cc471da4af6d2527b42b85bc4dfab8ec"}},{"ruleId":"D2","level":"warning","message":{"text":"StatementReader.skipExpression (cognitive 56): StatementReader.skipExpression has cognitive complexity 56 (threshold 15). Drivers by points: if/else 14 (44 pts), boolean chains 11, loops 1 (nesting depth added 30). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoCompletionValue.swift"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"dce8c56b92aa02bdd1bf1589d3780b549b9a6ba51f0876269bfd2d0e6cf4b2d5"}},{"ruleId":"D2","level":"warning","message":{"text":"applyJsonToken (cognitive 55): applyJsonToken has cognitive complexity 55 (threshold 15). Drivers by points: if/else 11 (28 pts), loops 4 (10 pts), ternaries 3 (10 pts), boolean chains 7 (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":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"35aed94e2b031153da38987e97cd4a38b8bf7ae1ead4220d039c3c475eaee352"}},{"ruleId":"D2","level":"warning","message":{"text":"RSSXMLParserDelegate.handleArticleElementEnd (cognitive 54): RSSXMLParserDelegate.handleArticleElementEnd has cognitive complexity 54 (threshold 15). Drivers by points: if/else 18 (36 pts), boolean chains 14, ternaries 1 (3 pts), match/switch 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSFetcher.swift"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b2c622777f8b0e1f2e040ed719d7c8c2b701296a10a8608693d5f68931e57d0"}},{"ruleId":"D2","level":"warning","message":{"text":"ICloudSyncManager.performSyncPass (cognitive 54): ICloudSyncManager.performSyncPass has cognitive complexity 54 (threshold 15). Drivers by points: if/else 12 (28 pts), boolean chains 14, error handling 3 (7 pts), loops 2 (5 pts) (nesting depth added 23). 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":"Modules/Services/iCloud/ICloudSyncManager.swift"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"92e7f1c6b9d949668589f704f4d611d8e73b454f1da8df7c840522f818845991"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleEngine.extractValueList (cognitive 53): RuleEngine.extractValueList has cognitive complexity 53 (threshold 15). Drivers by points: if/else 17 (28 pts), loops 3 (10 pts), ternaries 4 (7 pts), boolean chains 6, match/switch 1 (2 pts) (nesting depth added 22). 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":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"35c4a674f13f516d40fe2c0c5bd430edeb3fb8626b22bc2fd13e947e3302c2fa"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextPageView.drawBlockRenderables (cognitive 53): CoreTextPageView.drawBlockRenderables has cognitive complexity 53 (threshold 15). Drivers by points: if/else 14 (37 pts), ternaries 3 (12 pts), boolean chains 3, loops 1 (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":1156}}}],"partialFingerprints":{"codehealthFindingId/v1":"89cb650320030513090d463fecc3a31a20469d84826750092e5da4bc4ff43e7a"}},{"ruleId":"D2","level":"warning","message":{"text":"NodeAttributedStringRenderer.applyBlockStyle (cognitive 53): NodeAttributedStringRenderer.applyBlockStyle has cognitive complexity 53 (threshold 15). Drivers by points: if/else 23 (24 pts), boolean chains 15, ternaries 9 (12 pts), match/switch 1 (2 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift"},"region":{"startLine":1071}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bc2ee3efc0be33750ea04ade803aed176a19e07b5b526cc3f3078da013f0bde"}},{"ruleId":"D2","level":"warning","message":{"text":"LegadoRhinoNormalizer.letReadsItsOwnName (cognitive 53): LegadoRhinoNormalizer.letReadsItsOwnName has cognitive complexity 53 (threshold 15). Drivers by points: if/else 10 (26 pts), boolean chains 24, loops 2 (3 pts) (nesting depth added 17). Of this number, 47 points are the body\u0027s own statements and 6 belong to 2 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoRhinoNormalizer.swift"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6214c6c51bfb28384eecbc3c99d294c7d20eef5c1a88a73e7ca1790ac24e6cb"}},{"ruleId":"D2","level":"warning","message":{"text":"HTMLParser.swift.parseHTML (cognitive 53): HTMLParser.swift.parseHTML has cognitive complexity 53 (threshold 15). Drivers by points: if/else 15 (44 pts), boolean chains 4, ternaries 1 (4 pts), loops 1 (nesting depth added 32). Of this number, 52 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/HTMLParser.swift"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1f4ae3777c1ead93a9efa40dce3edf2ac33b170a3d850d615ded40286e19e76"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleEngine.routeExtractList (cognitive 52): RuleEngine.routeExtractList has cognitive complexity 52 (threshold 15). Drivers by points: if/else 14 (22 pts), loops 4 (13 pts), ternaries 4 (12 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 26). 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":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"d49e1b04196df19e7e01e75a67586e7f6f8cc2596c85cb0f2871c3c054cc9f29"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderTranslationLayout.splice (cognitive 51): ReaderTranslationLayout.splice has cognitive complexity 51 (threshold 15). Drivers by points: if/else 19 (31 pts), boolean chains 11, ternaries 4 (6 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 15). Of this number, 44 points are the body\u0027s own statements and 7 belong to 3 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Translation/ReaderTranslationLayout.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"811149e8c17c2cdd3f262669fa051dc1809aeb7458494debe01f2ae98eed4e9a"}},{"ruleId":"D2","level":"warning","message":{"text":"LegadoRuleScope.declaredNames (cognitive 50): LegadoRuleScope.declaredNames has cognitive complexity 50 (threshold 15). Drivers by points: if/else 13 (42 pts), boolean chains 7, loops 1 (nesting depth added 29). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoRuleScope.swift"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"2abea70a10f302e2e9c0839e9aac38211f52e10b08e75727601e6248bb2ab114"}},{"ruleId":"D2","level":"warning","message":{"text":"_getJSONLD (cognitive 50): _getJSONLD has cognitive complexity 50 (threshold 15). Drivers by points: if/else 17 (32 pts), boolean chains 15, error handling 1 (2 pts), ternaries 1 (nesting depth added 16). Most of this is not in the body itself: 1 of the 50 points is its own statement and the rest belongs to 5 function literals inside it that branch (lines 1643, 1657, 1681, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/Readability.js"},"region":{"startLine":1638}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f89fe01c340c6b3b39fbd06081feeecc24766c9af8c1ba52040f2457a9ee698"}},{"ruleId":"D2","level":"warning","message":{"text":"CalibreProgressService.process (cognitive 49): CalibreProgressService.process has cognitive complexity 49 (threshold 15). Drivers by points: if/else 12 (33 pts), error handling 3 (8 pts), boolean chains 7, loops 1 (nesting depth added 26). 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":"Modules/Services/RemoteLibrary/CalibreProgressService.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"833fecec5b53f60e1a68ada3e05d7bdefc46c0999dd763b2557f931bac8c4c68"}},{"ruleId":"D2","level":"warning","message":{"text":"CommentBubbleSVGRecognizer.draw (cognitive 49): CommentBubbleSVGRecognizer.draw has cognitive complexity 49 (threshold 15). Drivers by points: if/else 14 (34 pts), match/switch 3 (6 pts), ternaries 5 (6 pts), loops 2, boolean chains 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift"},"region":{"startLine":1255}}}],"partialFingerprints":{"codehealthFindingId/v1":"b64c7a27eb20ae14fc877184a7b82e4ad01cb6d09a0eaea08f6b78c6f58e4c83"}},{"ruleId":"D2","level":"warning","message":{"text":"HTMLParser.swift.parseTagAttributes (cognitive 49): HTMLParser.swift.parseTagAttributes has cognitive complexity 49 (threshold 15). Drivers by points: loops 8 (19 pts), if/else 8 (18 pts), boolean chains 12 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/HTMLParser.swift"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"7837673960cfdac75f65dd08a6550ff4e905e0ceb6f7988f71d9240ae37edc16"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAICompatibleProvider.generateDeepSeek (cognitive 48): OpenAICompatibleProvider.generateDeepSeek has cognitive complexity 48 (threshold 15). Drivers by points: if/else 13 (37 pts), loops 2 (5 pts), error handling 4, boolean chains 2 (nesting depth added 27). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/AI/OpenAICompatibleProvider.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"14b096e17ffd48175d426ff73c11a9e3e4222d44ebca15d35951a3603debd779"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderHTMLUtilities.promoteBreakSeparatedParagraphs (cognitive 47): ReaderHTMLUtilities.promoteBreakSeparatedParagraphs has cognitive complexity 47 (threshold 15). Drivers by points: if/else 11 (28 pts), loops 8 (18 pts), error handling 1 (nesting depth added 27). Of this number, 45 points are the body\u0027s own statements and 2 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":"Modules/Core/ReaderCore/ReaderHTMLUtilities.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"6216e8e48358c6ba831f531beb1f51c5976d401b22d3e5ae9a4a6f656e42d0c7"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextFontRegistrationService.registerUncached (cognitive 47): CoreTextFontRegistrationService.registerUncached has cognitive complexity 47 (threshold 15). Drivers by points: if/else 15 (27 pts), ternaries 4 (10 pts), boolean chains 9, error handling 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageEngine.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b4086a68cd84c7cade18a68f8271dcda750d1dfe1a3507720fc5b283b58554b"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderStyleCSSCodec.canonicalDeclarations (cognitive 47): ReaderStyleCSSCodec.canonicalDeclarations has cognitive complexity 47 (threshold 15). Drivers by points: if/else 26 (35 pts), ternaries 2 (4 pts), boolean chains 3, loops 1 (3 pts), match/switch 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderStyleCSSCodec.swift"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"28c55443f66fdd964e00ffe3c87cdb3122a1a2b12e9e54e3813e672e49b33819"}},{"ruleId":"D2","level":"warning","message":{"text":"BookStore.importEpub (cognitive 46): BookStore.importEpub has cognitive complexity 46 (threshold 15). Drivers by points: error handling 8 (20 pts), if/else 11 (19 pts), ternaries 2 (4 pts), boolean chains 3 (nesting depth added 22). Of this number, 37 points are the body\u0027s own statements and 9 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":"Modules/Services/LibraryStore/BookStore.swift"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"ede1264270ac0f3e44d5c1e4f691dc19d5414a65569e13c590f4335216d0e0a4"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextPageEngine.preloadChapterInternal (cognitive 46): CoreTextPageEngine.preloadChapterInternal has cognitive complexity 46 (threshold 15). Drivers by points: if/else 15 (22 pts), ternaries 6 (17 pts), error handling 4, boolean chains 3 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageEngine.swift"},"region":{"startLine":1150}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d0d8b4e15cc94e2ecd4a943680a8bf9ff774b725562fe1eed267da3af18eee2"}},{"ruleId":"D2","level":"warning","message":{"text":"AIMemoryExtraction.validate (cognitive 45): AIMemoryExtraction.validate has cognitive complexity 45 (threshold 15). Drivers by points: if/else 15 (26 pts), ternaries 4 (9 pts), boolean chains 6, loops 3, error handling 1 (nesting depth added 16). Of this number, 35 points are the body\u0027s own statements and 10 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":"Modules/Core/AI/AICharacterMemoryExtraction.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f6a505d563c76ff70e41d1fdff0259cb1bf58f41004fdee0a743040b390bf48"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderView.loadContent (cognitive 45): ReaderView.loadContent has cognitive complexity 45 (threshold 15). Drivers by points: if/else 16 (36 pts), error handling 2 (5 pts), boolean chains 4 (nesting depth added 23). 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":"Modules/Features/Reader/ReaderView\u002BPageBuilding.swift"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"3972f6f352bc89f82e33e3389a4991b6e5d51999c9c6d1acd8d8f24ffb5f47bb"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteLibraryResourceClient.loadRequest (cognitive 45): RemoteLibraryResourceClient.loadRequest has cognitive complexity 45 (threshold 15). Drivers by points: if/else 12 (24 pts), boolean chains 13, match/switch 2 (5 pts), error handling 3 (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":"Modules/Services/RemoteLibrary/RemoteLibraryCache.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"a14b7c1a9ff052a1880daf33e1c8c213c33bd345aa8bd3b74dbdfeff681242d5"}},{"ruleId":"D2","level":"warning","message":{"text":"HTMLParser.swift.parseSingleSelector (cognitive 45): HTMLParser.swift.parseSingleSelector has cognitive complexity 45 (threshold 15). Drivers by points: if/else 13 (26 pts), ternaries 3 (8 pts), loops 4 (6 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 21). Of this number, 40 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":"Modules/Core/RuleEngine/HTMLParser.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"b571f23ccc1b043077d40e450cd3041737871b10e38c7943841a78bea27f92de"}},{"ruleId":"D2","level":"warning","message":{"text":"BookOriginSearchService.stream (cognitive 43): BookOriginSearchService.stream has cognitive complexity 43 (threshold 15). Drivers by points: if/else 15 (35 pts), loops 3 (4 pts), ternaries 2 (3 pts), boolean chains 1 (nesting depth added 22). Of this number, 41 points are the body\u0027s own statements and 2 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":"Modules/Services/Online/BookOriginSearchService.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"142bb186fe7ca03d069208072e2cfc14bbe39a0a3ef7de40c14126f067b1ac1a"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserLayoutPageEngine.layoutBrowserChapter (cognitive 43): BrowserLayoutPageEngine.layoutBrowserChapter has cognitive complexity 43 (threshold 15). Drivers by points: if/else 16 (34 pts), error handling 4, ternaries 1 (3 pts), boolean chains 2 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageEngine.swift"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4ea234af920939a5227572fd8f9796f9520fc4877d7d540ad492fae1ee636ce"}},{"ruleId":"D2","level":"warning","message":{"text":"EPUBStyleResolver.registerFontFaces (cognitive 43): EPUBStyleResolver.registerFontFaces has cognitive complexity 43 (threshold 15). Drivers by points: if/else 11 (32 pts), boolean chains 4, ternaries 1 (4 pts), loops 2 (3 pts) (nesting depth added 25). 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":"Modules/Core/ReaderCore/CoreText/EPUBStyleResolver.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d2b41cf0750642d3e71b3e8697dd13957996e919132ed1ecd94f40cea5bb81a"}},{"ruleId":"D2","level":"warning","message":{"text":"ChapterContentCleaner.cleanChapterContent (cognitive 42): ChapterContentCleaner.cleanChapterContent has cognitive complexity 42 (threshold 15). Drivers by points: if/else 17 (26 pts), boolean chains 12, loops 4 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ChapterContentCleaner.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"37334ce4fc351fc8cf6fa48c71e1c375e390b3358bc34d8f61931ba0bf49d442"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomHTTPProvider.evaluateArithmetic (cognitive 42): CustomHTTPProvider.evaluateArithmetic has cognitive complexity 42 (threshold 15). Drivers by points: if/else 14 (29 pts), loops 4 (7 pts), boolean chains 4, match/switch 1, ternaries 1 (nesting depth added 18). Of this number, 35 points are the body\u0027s own statements and 7 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":"Modules/Core/TTS/TTSAudioProvider.swift"},"region":{"startLine":1121}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eee3daf5503ba7dc3b4e86d5381e197a82fbe37a49682e9a498bc763ee0872a"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteLibraryHTTPClient.stream (cognitive 41): RemoteLibraryHTTPClient.stream has cognitive complexity 41 (threshold 15). Drivers by points: if/else 10 (26 pts), boolean chains 5, ternaries 1 (4 pts), match/switch 2 (3 pts), loops 1 (2 pts), error handling 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RemoteLibrary/RemoteLibraryHTTPClient.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d30be44a591604be80fc1463270648251a9fe798e457ba7b9733bc88cf88e6b"}},{"ruleId":"D2","level":"warning","message":{"text":"ChapterTitleAttributedBuilder.append (cognitive 41): ChapterTitleAttributedBuilder.append has cognitive complexity 41 (threshold 15). Drivers by points: if/else 11 (27 pts), ternaries 3 (11 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 25). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ChapterTitleAttributedBuilder.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf30d135428facd1436bca4041d12b1f084141c08af2fb612744228b8acd896b"}},{"ruleId":"D2","level":"warning","message":{"text":"ReviewCardSVGMetrics.rewrittenTag (cognitive 41): ReviewCardSVGMetrics.rewrittenTag has cognitive complexity 41 (threshold 15). Drivers by points: if/else 13 (26 pts), ternaries 3 (7 pts), boolean chains 5, loops 1 (2 pts), match/switch 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ReviewCardSVGMetrics.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"96385458d4bae94c7d8cc6fcb5a1f2b1ad97710bf3b4e0b2b205bf56421f10d4"}},{"ruleId":"D2","level":"warning","message":{"text":"OPDSFeedParserDelegate.parser (cognitive 40): OPDSFeedParserDelegate.parser has cognitive complexity 40 (threshold 15). Drivers by points: if/else 15 (26 pts), boolean chains 11, ternaries 1 (2 pts), match/switch 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/OPDS/OPDSClient.swift"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6600f321bd9f3e82430b53c4617924eacc0b1201c2b25f2d8b352613828642d"}},{"ruleId":"D2","level":"warning","message":{"text":"OfflineDownloadManager.downloadChapter (cognitive 40): OfflineDownloadManager.downloadChapter has cognitive complexity 40 (threshold 15). Drivers by points: if/else 10 (33 pts), error handling 2 (4 pts), boolean chains 2, loops 1 (nesting depth added 25). 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":"Modules/Services/Offline/OfflineDownloadManager.swift"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1f8ce17d0ebc7456fc581cb26e1a38d1b4be8c4978b1b523b7bb45e5ff59434"}},{"ruleId":"D2","level":"warning","message":{"text":"NodeAttributedStringRenderer.collapseAdjacentParagraphSpacing (cognitive 40): NodeAttributedStringRenderer.collapseAdjacentParagraphSpacing has cognitive complexity 40 (threshold 15). Drivers by points: if/else 10 (23 pts), boolean chains 8, ternaries 2 (8 pts), loops 1 (nesting depth added 19). 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":"Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift"},"region":{"startLine":2912}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b62295d71eef45c6bf8d1267f7c3d056e1de058791630d347c67048750e9a06"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleAnalyzer.splitRule (cognitive 40): RuleAnalyzer.splitRule has cognitive complexity 40 (threshold 15). Drivers by points: if/else 12 (28 pts), boolean chains 8, match/switch 1 (3 pts), loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/RuleAnalyzer.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0cd2f72a7182d691291400de35104303117e7be70287f3478beb0e970b31c83"}},{"ruleId":"D2","level":"warning","message":{"text":"extractValueFromObject (cognitive 40): extractValueFromObject has cognitive complexity 40 (threshold 15). Drivers by points: if/else 18 (24 pts), boolean chains 7, ternaries 3 (5 pts), error handling 1 (2 pts), loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f15b94267d3688a26f895ce8f5710ac8e4e9b86585502483c1bc7aaec2060e1"}},{"ruleId":"D2","level":"warning","message":{"text":"OPDSFeedParserDelegate.handleLink (cognitive 39): OPDSFeedParserDelegate.handleLink has cognitive complexity 39 (threshold 15). Drivers by points: if/else 18 (25 pts), boolean chains 13, ternaries 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/OPDS/OPDSClient.swift"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4097695479363acf0948fd7296753ad05daa0eacff9bf1c64261ea0abf39e3e"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeModel.build (cognitive 39): HomeModel.build has cognitive complexity 39 (threshold 15). Drivers by points: if/else 10 (23 pts), boolean chains 7, loops 5 (7 pts), ternaries 1 (2 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/HomeModel.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"d82b2bab0048929f00de31c6f1738cc719b4552498d12a4fdf3d62f7f5a8e805"}},{"ruleId":"D2","level":"warning","message":{"text":"WebDAVIndexer.run (cognitive 39): WebDAVIndexer.run has cognitive complexity 39 (threshold 15). Drivers by points: if/else 9 (26 pts), loops 3 (6 pts), boolean chains 3, error handling 1 (3 pts), ternaries 1 (nesting depth added 22). 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":"Modules/Services/Works/WebDAVIndexer.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"14ba42bff664c0ac3392b944b29f2a3c977e266c9474d0116c3b29c30b5c5665"}},{"ruleId":"D2","level":"warning","message":{"text":"LottieTitleTemplateImporter.\u0060import\u0060 (cognitive 39): LottieTitleTemplateImporter.\u0060import\u0060 has cognitive complexity 39 (threshold 15). Drivers by points: if/else 13 (27 pts), boolean chains 5, error handling 1 (4 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/LottieTitleTemplateImporter.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"babfea357a3d82687f5d29f38121f38e2df4e13286df199e27118ef7de1a5f08"}},{"ruleId":"D2","level":"warning","message":{"text":"MOBI6Converter.convert (cognitive 38): MOBI6Converter.convert has cognitive complexity 38 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 9, loops 4 (5 pts), ternaries 2 (nesting depth added 10). Of this number, 31 points are the body\u0027s own statements and 7 belong to 2 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/MOBI/MOBI6Converter.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"846234a733cefe4e1e8b63f3ec5becc56c522d0a3a27d9e6f09969ab7fab82ed"}},{"ruleId":"D2","level":"warning","message":{"text":"NextPageLinkExtractor.extractNextPageURL (cognitive 38): NextPageLinkExtractor.extractNextPageURL has cognitive complexity 38 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 17, loops 1, ternaries 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/NextPageLinkExtractor.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5142515ab491861d47f3a260657de3df884cba30fc5fa322e22266e710e3fe0"}},{"ruleId":"D2","level":"warning","message":{"text":"BookSourceManagementModel.rebuildRows (cognitive 38): BookSourceManagementModel.rebuildRows has cognitive complexity 38 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 3 (9 pts), ternaries 3 (8 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 20). Of this number, 31 points are the body\u0027s own statements and 7 belong to 2 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookSource/BookSourceManagementModel.swift"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"4810b3c0f8f1f554b185ebc52521b8f54c0c3cdd252290d225e50a89277de919"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserTextInteractionController.editMenuInteraction (cognitive 38): BrowserTextInteractionController.editMenuInteraction has cognitive complexity 38 (threshold 15). Drivers by points: if/else 17 (22 pts), boolean chains 13, ternaries 2, loops 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/BrowserLayout/BrowserTextInteractionController.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c74170a55bca91697354b14249dc650da62dd32048696de70951cb3964c5c32"}},{"ruleId":"D2","level":"warning","message":{"text":"JSONPathEvaluator.tokenize (cognitive 38): JSONPathEvaluator.tokenize has cognitive complexity 38 (threshold 15). Drivers by points: if/else 17 (36 pts), boolean chains 1, loops 1 (nesting depth added 19). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JsonExtractor.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"fee84be5a40aef7939ec86ce7f274243fc2b2685cd4ef574824f3073081b2981"}},{"ruleId":"D2","level":"warning","message":{"text":"parseSearchResultsJSON (cognitive 38): parseSearchResultsJSON has cognitive complexity 38 (threshold 15). Drivers by points: boolean chains 29, if/else 3 (5 pts), ternaries 1 (2 pts), error handling 1, loops 1 (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":1101}}}],"partialFingerprints":{"codehealthFindingId/v1":"22fc0c0590291a146bc903a9544faf43af76ad64d585e69ffddaa11b1aa09e92"}},{"ruleId":"D2","level":"warning","message":{"text":"BookSourceHealthChecker.runStages (cognitive 37): BookSourceHealthChecker.runStages has cognitive complexity 37 (threshold 15). Drivers by points: if/else 14 (25 pts), boolean chains 6, match/switch 3 (6 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceHealthChecker.swift"},"region":{"startLine":1046}}}],"partialFingerprints":{"codehealthFindingId/v1":"61d32f291860e877725a1dddbb3746149f24b5c647fb57f3c27a1b9b63252c38"}},{"ruleId":"D2","level":"warning","message":{"text":"TXTChapterParser.detectMappedTitleMatches (cognitive 37): TXTChapterParser.detectMappedTitleMatches has cognitive complexity 37 (threshold 15). Drivers by points: if/else 15 (22 pts), boolean chains 6, loops 6, ternaries 3 (nesting depth added 7). Of this number, 31 points are the body\u0027s own statements and 6 belong to 3 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TXT/TXTChapterParser.swift"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"6532d5fee649e2c84f78f2a8de2b71c52931e112b392d7dc9d470b90e23fb3dd"}},{"ruleId":"D2","level":"warning","message":{"text":"TXTReaderIndexMigrationService.complete (cognitive 37): TXTReaderIndexMigrationService.complete has cognitive complexity 37 (threshold 15). Drivers by points: if/else 19 (27 pts), boolean chains 9, loops 1 (nesting depth added 8). Of this number, 29 points are the body\u0027s own statements and 8 belong to 2 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TXT/TXTReaderIndexMigrationService.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"f823e4225cbaf248315803d7f7e0450e4c1f3fb9872ba4ba421664c0840cb07e"}},{"ruleId":"D2","level":"warning","message":{"text":"CacheManagementService.automaticCleanupCandidates (cognitive 37): CacheManagementService.automaticCleanupCandidates has cognitive complexity 37 (threshold 15). Drivers by points: if/else 7 (23 pts), loops 6 (11 pts), boolean chains 3 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/CacheManagementService.swift"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"8be08e94f167a7ed7467bf641e9e61480c8b609b5e599bcd2524cbb46ad728ce"}},{"ruleId":"D2","level":"warning","message":{"text":"RSSFeedDiscovery.feedURLs (cognitive 37): RSSFeedDiscovery.feedURLs has cognitive complexity 37 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 14, loops 2 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSUtilities.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"08f8a626a6202a84a6e213bedaf70fc369506602009026539f0dc1e0cc4389d3"}},{"ruleId":"D2","level":"warning","message":{"text":"RSSArticleHTMLSanitizer.normalizeNodes (cognitive 37): RSSArticleHTMLSanitizer.normalizeNodes has cognitive complexity 37 (threshold 15). Drivers by points: if/else 17 (32 pts), boolean chains 4, loops 1 (nesting depth added 15). Of this number, 32 points are the body\u0027s own statements and 5 belong to 2 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSUtilities.swift"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d30547518c5aa6c519650e9d685231b7ffd37c8d15e89acdaa0a27c286e3340"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkIndex.build (cognitive 37): WorkIndex.build has cognitive complexity 37 (threshold 15). Drivers by points: loops 17 (30 pts), if/else 2, match/switch 1 (2 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 15). Of this number, 35 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/WorkIndex.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"97ca7d2dab98a18834fb6cb54aa81102635c717deb86265da84034f90f4137e1"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserLayoutPageEngine.preloadChapter (cognitive 37): BrowserLayoutPageEngine.preloadChapter has cognitive complexity 37 (threshold 15). Drivers by points: if/else 12 (18 pts), ternaries 5 (12 pts), boolean chains 5, error handling 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageEngine.swift"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa40385cb6d0ec38e59c36d06bf4cacb21c71cf33cf5f80931edd52276370f7e"}},{"ruleId":"D2","level":"warning","message":{"text":"DialogueBubbleScriptImporter.configLiteral (cognitive 37): DialogueBubbleScriptImporter.configLiteral has cognitive complexity 37 (threshold 15). Drivers by points: if/else 15 (30 pts), boolean chains 4, match/switch 1 (2 pts), 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/DialogueBubbleScriptImporter.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"db094b367d528ca1041c7354e47d5977a234b850060b74417f0d1ec3fca071a7"}},{"ruleId":"D2","level":"warning","message":{"text":"BookSourceFetcher.fetchChapterPackageInner (cognitive 36): BookSourceFetcher.fetchChapterPackageInner has cognitive complexity 36 (threshold 15). Drivers by points: if/else 20 (23 pts), boolean chains 9, error handling 2 (3 pts), ternaries 1 (nesting depth added 4). Of this number, 29 points are the body\u0027s own statements and 7 belong to one function item inside it that branches. 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":"Modules/Core/BookSource/BookSourceFetcher\u002BChapter.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"76eb5cb3737f6052b3470e5ea49c9d5bd5f38f48c3b4e535a49809a860bea7f7"}},{"ruleId":"D2","level":"warning","message":{"text":"SharedImportPayloadClassifier.classify (cognitive 36): SharedImportPayloadClassifier.classify has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 7, ternaries 2 (7 pts), error handling 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/SharedImportQueueDrainer.swift"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1709cb3b845e8e7a2a47677c5c77febf1b7ba0d463acbb5fa276e0068d7779d"}},{"ruleId":"D2","level":"warning","message":{"text":"KF8Converter.convert (cognitive 36): KF8Converter.convert has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (20 pts), loops 8 (11 pts), boolean chains 5 (nesting depth added 11). Of this number, 33 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/MOBI/KF8Converter.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"5705c626a86fedcb2e6e847d736ed344beb3aad7fef962af6e2f0dd7feb41a5b"}},{"ruleId":"D2","level":"warning","message":{"text":"MOBIMarkupNormalizer.normalizeElement (cognitive 36): MOBIMarkupNormalizer.normalizeElement has cognitive complexity 36 (threshold 15). Drivers by points: if/else 16 (27 pts), boolean chains 6, ternaries 1 (2 pts), match/switch 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/MOBI/MOBIMarkupNormalizer.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"de39460dfc739b52c3c0ac3d83874b8ea80bf189c618825bd5f1fbf3d2e23b8a"}},{"ruleId":"D2","level":"warning","message":{"text":"AuthorWorksModel.load (cognitive 36): AuthorWorksModel.load has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (27 pts), error handling 2 (4 pts), ternaries 1 (3 pts), boolean chains 1, match/switch 1 (nesting depth added 19). 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":"Modules/Services/Works/AuthorWorks.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f9a8b3423d6f320e3384eecc5719550f44dfa9fd60d7134338df1715fba936"}},{"ruleId":"D2","level":"warning","message":{"text":"NextInSeries.pick (cognitive 36): NextInSeries.pick has cognitive complexity 36 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 13, loops 6 (8 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/NextInSeries.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"f05da35ec619634be8f4ca21b76da8609c59ea28250b49e8d4f76c7c8750efc0"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextChunkSlicer.slice (cognitive 36): CoreTextChunkSlicer.slice has cognitive complexity 36 (threshold 15). Drivers by points: if/else 11 (24 pts), boolean chains 8, loops 2 (4 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":"Modules/Core/ReaderCore/CoreText/CoreTextChunkSlicer.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"91e3bb9c89a44762d9210dbc4b780eb144f53a2b5604cd2479e59c8ce2093a36"}},{"ruleId":"D2","level":"warning","message":{"text":"ModernParserBridge.parseExploreResults (cognitive 36): ModernParserBridge.parseExploreResults has cognitive complexity 36 (threshold 15). Drivers by points: if/else 11 (23 pts), boolean chains 6, loops 1 (3 pts), error handling 1 (2 pts), ternaries 2 (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":"Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift"},"region":{"startLine":2674}}}],"partialFingerprints":{"codehealthFindingId/v1":"05c0aa8b1509f343e79478bf98867cc33d4afe19f04978b649a580fc79dad3ab"}},{"ruleId":"D2","level":"warning","message":{"text":"AIBookSummaryPlanner.plan (cognitive 35): AIBookSummaryPlanner.plan has cognitive complexity 35 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 10, loops 4 (5 pts), ternaries 3 (4 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIBookSummary.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bfeb49474324cf923e29a64db7cee5ee2a7eac18f581eb365b633d435a2c1ce"}},{"ruleId":"D2","level":"warning","message":{"text":"AIReadingConversation.send (cognitive 35): AIReadingConversation.send has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 7, ternaries 3 (5 pts), error handling 2, loops 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/AI/AIReadingConversation.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"6033f3110e5b69f322c34bc6bca1b4f8fa3bb8f4b217c8fe208c9fef6579f512"}},{"ruleId":"D2","level":"warning","message":{"text":"RSSXMLParser.parser (cognitive 35): RSSXMLParser.parser has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (22 pts), boolean chains 12, match/switch 1 (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSFetcher.swift"},"region":{"startLine":1365}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4cb6d94a6b437f7f25e4318e6860e5d25d8630aaf7b9d783d1955ff17413029"}},{"ruleId":"D2","level":"warning","message":{"text":"yuedu_appApp.init (cognitive 35): yuedu_appApp.init has cognitive complexity 35 (threshold 15). Drivers by points: if/else 15 (22 pts), error handling 3 (7 pts), loops 3 (6 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/yuedu_appApp.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"76abf0db9a39802e17fe9df6282cd44800ad5d73685214c69e34c47a2b8cfb3b"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownRenderableNodeConverter.convertBody (cognitive 35): MarkdownRenderableNodeConverter.convertBody has cognitive complexity 35 (threshold 15). Drivers by points: if/else 17 (33 pts), loops 1, ternaries 1 (nesting depth added 16). Of this number, 31 points are the body\u0027s own statements and 4 belong to 4 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/MarkdownAttributedStringBuilder.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba6995f1838e454b44760164a465442cbf7daa2dd70b6e4ec41ec4a0f63b2e52"}},{"ruleId":"D2","level":"warning","message":{"text":"_fixLazyImages (cognitive 35): _fixLazyImages has cognitive complexity 35 (threshold 15). Drivers by points: if/else 13 (26 pts), boolean chains 6, loops 2 (3 pts) (nesting depth added 14). None of this is in the body itself: all 35 points belong to one function literal inside it that branches (line 2341). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/Readability.js"},"region":{"startLine":2338}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1ccd03b35615630f8c977ebbd4b112deaee823daf73b59d4c4642d298b3284a"}},{"ruleId":"D2","level":"warning","message":{"text":"BookSourceFetcher.searchOutcome (cognitive 34): BookSourceFetcher.searchOutcome has cognitive complexity 34 (threshold 15). Drivers by points: if/else 17 (23 pts), boolean chains 5, match/switch 2 (4 pts), error handling 2 (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":"Modules/Core/BookSource/BookSourceFetcher\u002BSearch.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"7879c70398d0788eca391da92a62efa23c61b694e5b417ef2f5aed38c35208de"}},{"ruleId":"D2","level":"warning","message":{"text":"ReplaceRuleEngine.edits (cognitive 34): ReplaceRuleEngine.edits has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (25 pts), loops 2 (4 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 18). Of this number, 32 points are the body\u0027s own statements and 2 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":"Modules/Core/Replace/ReplaceRuleEngine.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a05e5559b1745a54ec75b03f70789698d02eebb5262f35160b3ab1aa39b83de"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleEngine.parseJsoupSegment (cognitive 34): RuleEngine.parseJsoupSegment has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 8, ternaries 2 (8 pts), match/switch 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"8184dd169a1b77fdb1bffade7bf541149d64d2ea504b10a41b8a9a66be2d14ff"}},{"ruleId":"D2","level":"warning","message":{"text":"AozoraMarkupParser.parse (cognitive 34): AozoraMarkupParser.parse has cognitive complexity 34 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 7, loops 4 (6 pts), match/switch 2 (4 pts), ternaries 1 (2 pts) (nesting depth added 13). Of this number, 33 points are the body\u0027s own statements and 1 belongs 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":"Modules/Core/TXT/AozoraMarkupParser.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"889c16698b15420370293727ad55167e91b6d5142982c626af7c4f1c899482c2"}},{"ruleId":"D2","level":"warning","message":{"text":"TXTEncodingDetector.multibyteMatch (cognitive 34): TXTEncodingDetector.multibyteMatch has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (22 pts), boolean chains 4, loops 2 (4 pts), ternaries 2 (4 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":"Modules/Core/TXT/TXTEncodingDetector.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"1961f299c99a663acc7c499a074084602290a93c18b7f307c201e755728c1cbc"}},{"ruleId":"D2","level":"warning","message":{"text":"BookStore.delete (cognitive 34): BookStore.delete has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (17 pts), error handling 5 (15 pts), boolean chains 1, loops 1 (nesting depth added 19). 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":"Modules/Services/LibraryStore/BookStore.swift"},"region":{"startLine":1575}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca60ae9f65eda77fba99309a4ddb9e0f8e678603799a9b758fa0641a802706fd"}},{"ruleId":"D2","level":"warning","message":{"text":"QiThemeImporter.applyAppearance (cognitive 34): QiThemeImporter.applyAppearance has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 9, loops 3, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/QiThemeImporter.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3eb0358f6d09154e5d0f4e1522241e7714bec2a3865a3751dc3d551955428a9"}},{"ruleId":"D2","level":"warning","message":{"text":"queryElements (cognitive 34): queryElements has cognitive complexity 34 (threshold 15). Drivers by points: ternaries 5 (13 pts), if/else 8 (11 pts), boolean chains 5, error handling 2 (3 pts), loops 1 (2 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":"Resources/Assets/legado-engine.js"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"7964eeca3f1a001d2c7f6813312964c1143f7b0ff8229d9d14f7dc5dccb47507"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkerSearch.find (cognitive 33): MarkerSearch.find has cognitive complexity 33 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 4 (12 pts), boolean chains 4 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/MarkupMarkerSearch.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9bb5676266738d86bd083795485d446d4c99838c1b63321cbbb45bc2dd637ce"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleEngine.sanitizeExtractedURL (cognitive 33): RuleEngine.sanitizeExtractedURL has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (23 pts), boolean chains 9, ternaries 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9bb2de2782c213011906577d109cd52f2c2fdb5980c4ff48279a4b1c981fbc5"}},{"ruleId":"D2","level":"warning","message":{"text":"RSSFetcher.fetchItems (cognitive 33): RSSFetcher.fetchItems has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (27 pts), boolean chains 5, error handling 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSFetcher.swift"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"20cfdc80ae4eeb3b87fee14f21552b18cb6e90c2722729caeb4f23588548251f"}},{"ruleId":"D2","level":"warning","message":{"text":"RegexHighlightEngine.cascade (cognitive 33): RegexHighlightEngine.cascade has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 5 (8 pts), boolean chains 6 (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":"Modules/Core/ReaderCore/CoreText/RegexHighlightEngine.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed798cddca866e10cbd1ab7baa6585312bde5989f3a2412286e5471f485eedb3"}},{"ruleId":"D2","level":"warning","message":{"text":"QiThemeImporter.chapterTitleStyle (cognitive 33): QiThemeImporter.chapterTitleStyle has cognitive complexity 33 (threshold 15). Drivers by points: if/else 16 (22 pts), boolean chains 9, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/QiThemeImporter.swift"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ef026daffaa70ac10f21542c36e6c27007693ab9e243ad2ca729d18c89b983f"}},{"ruleId":"D2","level":"warning","message":{"text":"JsoupDefaultExtractor.getResultLast (cognitive 33): JsoupDefaultExtractor.getResultLast has cognitive complexity 33 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 5 (10 pts), ternaries 1 (3 pts), boolean chains 1, match/switch 1 (nesting depth added 18). 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":"Modules/Core/RuleEngine/ModernParser/JsoupDefaultExtractor.swift"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ba304679e6d75bf9751816f90012751340a9d07c55abf3080ed640c6291de10"}},{"ruleId":"D2","level":"warning","message":{"text":"LegadoRuleScope.callerNames (cognitive 33): LegadoRuleScope.callerNames has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (22 pts), boolean chains 9, loops 2 (nesting depth added 12). Of this number, 29 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoRuleScope.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"59ca0958df16f7075883ee5aeb8c1f8721034b1116fb24a1a7072887693d59ff"}},{"ruleId":"D2","level":"warning","message":{"text":"LegadoSharedJsLibrary.orderedKeys (cognitive 33): LegadoSharedJsLibrary.orderedKeys has cognitive complexity 33 (threshold 15). Drivers by points: if/else 8 (25 pts), loops 2 (4 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoSharedJsLibrary.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"f966fb1f8b723f29153fe614058a56d4d4049a25c9ee9ec5270d188c5b4a0e14"}},{"ruleId":"D2","level":"warning","message":{"text":"AIAgenticAssistant.run (cognitive 32): AIAgenticAssistant.run has cognitive complexity 32 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 4 (9 pts), loops 4 (7 pts), boolean chains 4 (nesting depth added 14). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIAgenticAssistant.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"76b409553f66819271623fb9bc320764415df63fd6d2b2a335d917b8af59e613"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleEngine.applyIndexSpec (cognitive 32): RuleEngine.applyIndexSpec has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 5 (11 pts), if/else 5 (10 pts), loops 3 (7 pts), boolean chains 3, match/switch 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"a16d130139d7bf7bf1b7abced2676c678c5d8c2ab1d30a4c65ec9bb041a0740c"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderView.scrollBody (cognitive 32): ReaderView.scrollBody has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 6, ternaries 3 (6 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":"Modules/Features/Reader/ReaderView\u002BTXTVerticalScroll.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"784e3500f9ca33d275d9d4321b6ca17c9dce877c9bbe5fe1c0fb63a769089a26"}},{"ruleId":"D2","level":"warning","message":{"text":"BookStore.commitRefreshedList (cognitive 32): BookStore.commitRefreshedList has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 15 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/BookStore.swift"},"region":{"startLine":2578}}}],"partialFingerprints":{"codehealthFindingId/v1":"e06e6b6c95a2181d19b95d0f4383ef7488ecb644665a3be07c208b8ce0599c01"}},{"ruleId":"D2","level":"warning","message":{"text":"OfflineChapterStore.persistMangaImages (cognitive 32): OfflineChapterStore.persistMangaImages has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 4 (8 pts), error handling 4 (6 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Offline/OfflineChapterStore.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eccb46b3869eb0205cc24be0f38f5f2e668ad26b70970bc8408460fa695b313"}},{"ruleId":"D2","level":"warning","message":{"text":"OfflineDownloadManager.runBook (cognitive 32): OfflineDownloadManager.runBook has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (27 pts), boolean chains 4, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Offline/OfflineDownloadManager.swift"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a9b52f26cd5d2666c4dd70c1143aca5c1a3397e5d3f5542d4330675d1581080"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteLibraryService.prepare (cognitive 32): RemoteLibraryService.prepare has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 9, error handling 3 (5 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RemoteLibrary/RemoteLibraryService.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"be34d0ca3d1370c8cb3cc419928af49dc5f9e1be4cb1d73ccf94d2b9b85016d2"}},{"ruleId":"D2","level":"warning","message":{"text":"GeneratedCoverTextLayout.glyphs (cognitive 32): GeneratedCoverTextLayout.glyphs has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (17 pts), ternaries 3 (6 pts), boolean chains 5, loops 2 (4 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":"Modules/SharedUI/Components/GeneratedBookCover.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0d2863dbafef38c500b75b469d34f7ed8edac57897a22c8ac25eb25366dff9e"}},{"ruleId":"D2","level":"warning","message":{"text":"GlobalSettings.writeAppearanceExtras (cognitive 32): GlobalSettings.writeAppearanceExtras has cognitive complexity 32 (threshold 15). Drivers by points: if/else 24 (25 pts), ternaries 3 (6 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/AppearanceThemeExtrasApplier.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"0de6b6ef8a4c099508fd175c7c44467ac0872e57afdc2e8ee0c7e52b5dccdb37"}},{"ruleId":"D2","level":"warning","message":{"text":"HTMLAttributedStringBuilder.buildChildren (cognitive 32): HTMLAttributedStringBuilder.buildChildren has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (22 pts), boolean chains 6, error handling 1 (3 pts), loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e461feeab1abebac8dc2cdd664e29d6d93f6d3ed2411f40d6904931ae26ff4f"}},{"ruleId":"D2","level":"warning","message":{"text":"UniversalBookResourceAdapter.rewriteResourceReferences (cognitive 31): UniversalBookResourceAdapter.rewriteResourceReferences has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (24 pts), loops 4 (5 pts), boolean chains 2 (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":"Modules/Services/LibraryStore/UniversalBookResourceAdapter.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"52aac5a68975505c58e64fba7760a908c42c71dd0b32c9c758d51e2412298b5f"}},{"ruleId":"D2","level":"warning","message":{"text":"RelatedWorks.pick (cognitive 31): RelatedWorks.pick has cognitive complexity 31 (threshold 15). Drivers by points: if/else 17 (31 pts), loops 8 (11 pts), boolean chains 6 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (RelatedWorks.pick::addWorks) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/RelatedWorks.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"896080340cda3292cf81ddfce0e98bcb62830bfe0f1c11b961845a4e9897bbc8"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchWorkResolver.resolve (cognitive 31): SearchWorkResolver.resolve has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 8 (13 pts), ternaries 2, 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":"Modules/Services/Works/SearchWorkResolver.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0cee379ef4578b390efed3455635812e9f4a4bac268d1f4b74c350b4810bde5"}},{"ruleId":"D2","level":"warning","message":{"text":"GlobalSettings.init (cognitive 31): GlobalSettings.init has cognitive complexity 31 (threshold 15). Drivers by points: if/else 24, boolean chains 3, ternaries 3, match/switch 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/GlobalSettings.swift"},"region":{"startLine":2121}}}],"partialFingerprints":{"codehealthFindingId/v1":"e06795a6510763531c0819bec670d5e941f0ba68dd77552b16284dee8134b1a5"}},{"ruleId":"D2","level":"warning","message":{"text":"ChapterTitleHTMLCodec.parseCanonical (cognitive 31): ChapterTitleHTMLCodec.parseCanonical has cognitive complexity 31 (threshold 15). Drivers by points: boolean chains 18, if/else 7 (10 pts), error handling 1 (2 pts), loops 1 (nesting depth added 4). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ChapterTitleHTMLCodec.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd5aa0d3a0dfb45ea471b21f29e4283b66a325d53ba15a39ef0cc1df7c2eb009"}},{"ruleId":"D2","level":"warning","message":{"text":"LegadoBase64.androidDecode (cognitive 31): LegadoBase64.androidDecode has cognitive complexity 31 (threshold 15). Drivers by points: if/else 15 (27 pts), match/switch 2 (3 pts), loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoBase64.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"33bf46a2b6a8df275a7cd1b3f84124bda0c8633d59c8d0f93ad3162ae9c4579b"}},{"ruleId":"D2","level":"warning","message":{"text":"LegadoRuleScope.seededNames (cognitive 31): LegadoRuleScope.seededNames has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 9, match/switch 1 (2 pts), loops 1 (nesting depth added 11). Of this number, 28 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoRuleScope.swift"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e2fc084a5cc87c5867a182e27da9a73a924bf54df614888dc62bc0d631b7ef9"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderHTMLUtilities.reviewTarget (cognitive 30): ReaderHTMLUtilities.reviewTarget has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 5 (14 pts), if/else 7 (12 pts), boolean chains 4 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/ReaderHTMLUtilities.swift"},"region":{"startLine":1837}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f6933c486a629425e0a0952286e7e4fef2fb607057b8ea60503ea38b7b4b41f"}},{"ruleId":"D2","level":"warning","message":{"text":"TTSAudioPayload.looksLikeAudioContainer (cognitive 30): TTSAudioPayload.looksLikeAudioContainer has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 21, if/else 9. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/TTSAudioProvider.swift"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f6eb447f23af9cd2d1d41a5c70fccc50fc93388c174a6c251e0afe614dcf88c"}},{"ruleId":"D2","level":"warning","message":{"text":"BookReaderContent.body (cognitive 30): BookReaderContent.body has cognitive complexity 30 (threshold 15). Drivers by points: if/else 16 (19 pts), boolean chains 6, error handling 4, ternaries 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":"Modules/Features/Reader/BookReaderView.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"00fb5b4382928742d15c1dc1131398a11272b9165cbe3443f7bb3777d10a2e55"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextCollectionScrollViewController.commitViewportGeometry (cognitive 30): CoreTextCollectionScrollViewController.commitViewportGeometry has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 9, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/CoreTextCollectionScrollViewController.swift"},"region":{"startLine":1924}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c1a424fa1b1120c1d2dc38ead422a052fd80edd59b5db91a4fa01da6c96bc9"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderBookSearchSession.run (cognitive 30): ReaderBookSearchSession.run has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 5, error handling 1 (3 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 11). Of this number, 29 points are the body\u0027s own statements and 1 belongs 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":"Modules/Features/Reader/ReaderBookSearchSession.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"e14c19f85725182a36f55634a445f47a40ebf3ce0e5bf325c6d9a71538352403"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserPage.addressField (cognitive 30): BrowserPage.addressField has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 7 (14 pts), if/else 10 (13 pts), boolean chains 3 (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":"Modules/Features/WebBrowser/BrowserView.swift"},"region":{"startLine":1053}}}],"partialFingerprints":{"codehealthFindingId/v1":"f66f38718350cd24309ff9adf1ad478d50c227996c8ae6cf73c013bdf2ecf961"}},{"ruleId":"D2","level":"warning","message":{"text":"ChapterFetcher.looksLikeRejectedChapterPage (cognitive 30): ChapterFetcher.looksLikeRejectedChapterPage has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 27, if/else 3. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/ChapterFetcher.swift"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"6388a512150e5810f4540d8bf1ac6c304b93d113e9a0a79e13ffac70b3272c77"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleModule.localized (cognitive 30): RuleModule.localized has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (22 pts), loops 3 (6 pts), boolean chains 2 (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":"Modules/Services/RuleModules/RuleModule.swift"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"95a32a11f5cd526ad3a7fa867fdc65c6f4d25f23c1e9d43041e71f7244224d4b"}},{"ruleId":"D2","level":"warning","message":{"text":"WebDAVPropfindParserDelegate.parser (cognitive 30): WebDAVPropfindParserDelegate.parser has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (25 pts), boolean chains 4, match/switch 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/WebDAV/WebDAVBrowseClient.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"26de2b9540ea8cec2b9451c8dc852875730464875dc780f2def3728d05602111"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextPaginator.applyOrphanControl (cognitive 30): CoreTextPaginator.applyOrphanControl has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 7, loops 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift"},"region":{"startLine":2426}}}],"partialFingerprints":{"codehealthFindingId/v1":"d23db77a1730eb0532756e00a47697fd848fc7665920f9e8ba1cbbe6d3f23e9e"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownInlineParser.parse (cognitive 30): MarkdownInlineParser.parse has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (22 pts), boolean chains 6, loops 1, ternaries 1 (nesting depth added 12). Of this number, 29 points are the body\u0027s own statements and 1 belongs 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":"Modules/Core/ReaderCore/CoreText/MarkdownAttributedStringBuilder.swift"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"b57dea54017faecc7c53183ef7d97effc09c70b585787d95fa8a3187bcfbd498"}},{"ruleId":"D2","level":"warning","message":{"text":"ModernParserBridge.parseTOC (cognitive 30): ModernParserBridge.parseTOC has cognitive complexity 30 (threshold 15). Drivers by points: if/else 6 (15 pts), ternaries 3 (9 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift"},"region":{"startLine":1363}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd4d624dbc43a9492be37be93bc3f7ca033eabed1b5fb4c734a26b106660377e"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextHorizontalLineDrawer.drawInlineBorderBoxes (cognitive 30): CoreTextHorizontalLineDrawer.drawInlineBorderBoxes has cognitive complexity 30 (threshold 15). Drivers by points: if/else 17 (27 pts), boolean chains 3 (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":"Modules/Core/ReaderCore/CoreText/CoreTextHorizontal/CoreTextHorizontalLineDrawer.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"e68e82b52a007640690ef5b1eaf842e3aa8bb4f5c3f1e6e896cbeddda828a868"}},{"ruleId":"D2","level":"warning","message":{"text":"legado-engine.getList (cognitive 30): legado-engine.getList has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 5, ternaries 3 (5 pts), error handling 2 (4 pts), loops 2 (4 pts) (nesting depth added 10). Of this number, 26 points are the body\u0027s own statements and 4 belong to 2 function literals 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/legado-engine.js"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"1625f4d6bfb449aac35910cbf467e0b41962ff743d6dc7d603a0ae13cf4a22a2"}},{"ruleId":"D2","level":"warning","message":{"text":"BookSourceFetcher.fetchWebContent (cognitive 29): BookSourceFetcher.fetchWebContent has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (16 pts), ternaries 3 (8 pts), error handling 2 (3 pts), boolean chains 1, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceFetcher\u002BWebContent.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"76594afd7de834e59bc92ed571aa6f097cb7a5175fc0fb90f43fd320bf28d16b"}},{"ruleId":"D2","level":"warning","message":{"text":"TXTChapterParser.enumerateMappedTitleLines (cognitive 29): TXTChapterParser.enumerateMappedTitleLines has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 7, ternaries 3 (5 pts), loops 2 (3 pts) (nesting depth added 9). Of this number, 24 points are the body\u0027s own statements and 5 belong to 2 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TXT/TXTChapterParser.swift"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"82fbb4a169072bafc513c3ece128ab6d6a889671133ed7c7d20fc1e9006f92ed"}},{"ruleId":"D2","level":"warning","message":{"text":"Multibyte.character (cognitive 29): Multibyte.character has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 13, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TXT/TXTEncodingDetector.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"06718e3bac3b73873b481fb5f624dc8c273dcf0d71ff5ebefc95d00060e51dc7"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderNavigationTransitionDriver.handleEdgePan (cognitive 29): ReaderNavigationTransitionDriver.handleEdgePan has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (19 pts), ternaries 2 (6 pts), boolean chains 3, match/switch 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderNavigationTransitionDriver.swift"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"502dbcc854a7bfba4e33a66634cf63632e8eacdea063c464932f2aab15649980"}},{"ruleId":"D2","level":"warning","message":{"text":"Mapper.entry (cognitive 29): Mapper.entry has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 7, loops 3 (4 pts), match/switch 1 (3 pts), ternaries 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":"Modules/Services/OPDS/OPDS2FeedParser.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"02bba0269cdb7c36d91f02a4d713dea5f965ff6a57b3bf1dac832385e664dc9f"}},{"ruleId":"D2","level":"warning","message":{"text":"OfflineChapterStore.persistTextImages (cognitive 29): OfflineChapterStore.persistTextImages has cognitive complexity 29 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 5 (10 pts), boolean chains 3, error handling 1 (3 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Offline/OfflineChapterStore.swift"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a6cea0bf1ef03e3dd21158bcdc24ff62f427f2f770ce57e37708675424302b4"}},{"ruleId":"D2","level":"warning","message":{"text":"ChapterFetcher.reattachStandaloneParagraphReviews (cognitive 29): ChapterFetcher.reattachStandaloneParagraphReviews has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 9, error handling 1 (2 pts), loops 2 (nesting depth added 7). Of this number, 25 points are the body\u0027s own statements and 4 belong to 2 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/ChapterFetcher.swift"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c1e0ca9fc2202ea78ee4f4e15a6e4499ee71f1891864c623d5190ad5ad66d12"}},{"ruleId":"D2","level":"warning","message":{"text":"RSSXMLParser.parser (cognitive 29): RSSXMLParser.parser has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (19 pts), ternaries 2 (6 pts), boolean chains 3, match/switch 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSFetcher.swift"},"region":{"startLine":1402}}}],"partialFingerprints":{"codehealthFindingId/v1":"70aa9e4e1440cac596f5b91ce03a7710d319cfdd786e6d379ac022f1445c20c3"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleModuleValidator.validateScope (cognitive 29): RuleModuleValidator.validateScope has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (20 pts), loops 3 (7 pts), boolean chains 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/RuleModuleValidator.swift"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"769ba575ab21392a4ac0abbbbdd802658da0869cef0b5ab007a0bd77c9ce350c"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderBackgroundMigration.migrateSavedBackgrounds (cognitive 29): ReaderBackgroundMigration.migrateSavedBackgrounds has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (21 pts), loops 3 (5 pts), boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/ReaderBackgroundMigration.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d65f97185c8560bd5338ecddaef8df6d3046843d37a10a7ce988153ad15c62d"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextPageView.handleTap (cognitive 29): CoreTextPageView.handleTap has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (21 pts), boolean chains 8 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":1474}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfe2479793ba542784205848fb84a0e76d40285ec0298d71f4767568e6dc3d2f"}},{"ruleId":"D2","level":"warning","message":{"text":"HTMLAttributedStringBuilder.resolveCalc (cognitive 29): HTMLAttributedStringBuilder.resolveCalc has cognitive complexity 29 (threshold 15). Drivers by points: if/else 5 (13 pts), ternaries 3 (11 pts), boolean chains 3, loops 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift"},"region":{"startLine":2450}}}],"partialFingerprints":{"codehealthFindingId/v1":"681d6c698f14baf1faea30b2f9623a567f3c8b0cbefcdeddfd5d1e68698fe90f"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderTextDecorationRenderer.paint (cognitive 29): ReaderTextDecorationRenderer.paint has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 5 (16 pts), if/else 4 (7 pts), loops 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ReaderTextDecorationRenderer.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d1869023efc5bf056218d23fa7585d41c19008aedf33d403a30bceb9b1c93d3"}},{"ruleId":"D2","level":"warning","message":{"text":"HighlightPackImporter.parseQiReader (cognitive 29): HighlightPackImporter.parseQiReader has cognitive complexity 29 (threshold 15). Drivers by points: if/else 23 (42 pts), boolean chains 10, error handling 4 (6 pts), ternaries 2 (3 pts), loops 1 (nesting depth added 22). 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 (HighlightPackImporter.parseQiReader::style) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/HighlightPackImporter.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bb56a70dac7470d325dde88b33802ce578b31d6cd0f97e170d3cdc99d722d04"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderStyleDeclarationScanner.scan (cognitive 29): ReaderStyleDeclarationScanner.scan has cognitive complexity 29 (threshold 15). Drivers by points: if/else 28 (47 pts), boolean chains 8, loops 3 (nesting depth added 19). 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 (ReaderStyleDeclarationScanner.scan::declaration) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderStyleCSSCodec.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"626b7ed64b3f20d659a3548c0b880a3e6bc7ea722bb1b2f5c71087901a3add12"}},{"ruleId":"D2","level":"warning","message":{"text":"OrderedJSON.appendJSON (cognitive 29): OrderedJSON.appendJSON has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (23 pts), loops 2 (4 pts), boolean chains 2 (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":"Modules/Core/RuleEngine/ModernParser/OrderedJSON.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"c236c3a53971368d19c3f3e305ad187e571b6fcddeb7600beb039466c7eb15ef"}},{"ruleId":"D2","level":"warning","message":{"text":"KeyOrderScanner.walkObject (cognitive 29): KeyOrderScanner.walkObject has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 4, match/switch 1 (2 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/OrderedJSON.swift"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d4f4a7876278e0878d4a600c18a407eaef9391662d5b358841a6c420be42fa"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleAnalyzer.chompCodeBalanced (cognitive 29): RuleAnalyzer.chompCodeBalanced has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (23 pts), boolean chains 5, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/RuleAnalyzer.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e8a49677097a32353e757d073fa66e93b34f559dde8d73d07404135d96364c2"}},{"ruleId":"D2","level":"warning","message":{"text":"AnalyzeUrl.parseOptions (cognitive 29): AnalyzeUrl.parseOptions has cognitive complexity 29 (threshold 15). Drivers by points: if/else 16 (18 pts), boolean chains 5, loops 2 (4 pts), ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/URL/AnalyzeUrl.swift"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d39890b2f6ab0c2dc13f42bd51bf9fe0454a630ec8f53e3479e27b1803f88b8"}},{"ruleId":"D2","level":"warning","message":{"text":"UIImage.trimmingTransparentPixels (cognitive 29): UIImage.trimmingTransparentPixels has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (24 pts), loops 2 (3 pts), boolean chains 2 (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":"Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift"},"region":{"startLine":1813}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b1abf2796f8464e72799df7befeaa40eafdb02dd758c6ab21b83380569ad5d7"}},{"ruleId":"D2","level":"warning","message":{"text":"errors.mapIdentityToolkitError (cognitive 29): errors.mapIdentityToolkitError has cognitive complexity 29 (threshold 15). Drivers by points: if/else 18, boolean chains 10, ternaries 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/errors.ts"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"be049c811f2bc1d6ecddfc489e4b548132c10f1ede23deed070ed8f2f85a1944"}},{"ruleId":"D2","level":"warning","message":{"text":"AIReadingEvidence.requestedChapters (cognitive 28): AIReadingEvidence.requestedChapters has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 11, if/else 6 (10 pts), ternaries 2 (4 pts), loops 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIReadingEvidence.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"653e22b37e838de5e3eca205716df5e2d56204e41e110f68db86d21fe8079f32"}},{"ruleId":"D2","level":"warning","message":{"text":"CalibreCFIMapper.match (cognitive 28): CalibreCFIMapper.match has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 9, loops 3 (nesting depth added 6). Of this number, 18 points are the body\u0027s own statements and 10 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":"Modules/Core/EPUB/CalibreCFIMapper.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"21cb0569115efbd91160d0786a127ad59ef407b69c3dc4ec9d7c5cfff48c1b58"}},{"ruleId":"D2","level":"warning","message":{"text":"PublicationSession.parseOPFMetadataXML (cognitive 28): PublicationSession.parseOPFMetadataXML has cognitive complexity 28 (threshold 15). Drivers by points: if/else 19 (25 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/PublicationSession.swift"},"region":{"startLine":1364}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b4ef94ad827694a7ac820cc63ea4740a067be362b521ac7b34e633feda5f4e1"}},{"ruleId":"D2","level":"warning","message":{"text":"ImportedBookPresentationController.presentPending (cognitive 28): ImportedBookPresentationController.presentPending has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 8, loops 1, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Bookshelf/ImportedBookPresentation.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eec6d1d2a30ac1dd14621cc67cbe54c830d28f0ec49ac9be0d29f9387532b37"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextPaintFragment.make (cognitive 28): CoreTextPaintFragment.make has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 7, loops 4 (6 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/CoreTextPaintFragment.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"91183de8c20032b990a9368e888043476e67c2d50858f71c20f94b56d2801c97"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderView.applyChapterRefreshAction (cognitive 28): ReaderView.applyChapterRefreshAction has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 4, ternaries 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderView\u002BOnlineChapterLoading.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf86e25e240bb7c39ce6b2a152470f4fd6e345d5fdad9d0b3ef9ce6d8e578ae5"}},{"ruleId":"D2","level":"warning","message":{"text":"OfflineDownloadManager.reconcileInterruptedDownloads (cognitive 28): OfflineDownloadManager.reconcileInterruptedDownloads has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 4 (7 pts), boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Offline/OfflineDownloadManager.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"59adfdd3c5230fdb5aa154ed91093c0999c391a363f191ff1ffd99087884f733"}},{"ruleId":"D2","level":"warning","message":{"text":"ChapterAlignment.alignedIndex (cognitive 28): ChapterAlignment.alignedIndex has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (21 pts), loops 2 (4 pts), boolean chains 2, ternaries 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/ChapterAlignment.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f7fc14f20a995f173b2fcc758f85f03a464830a9cd004abca000a34d45332d6"}},{"ruleId":"D2","level":"warning","message":{"text":"GlobalSettings.writeReadingSettings (cognitive 28): GlobalSettings.writeReadingSettings has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 5, ternaries 1 (2 pts) (nesting depth added 7). Of this number, 26 points are the body\u0027s own statements and 2 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":"Targets/Yuedu/SharedApp/AppearanceThemeReadingApplier.swift"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d909125719458cf4895808beacc4367a8a69d9486325b46be795a11acefdbe4"}},{"ruleId":"D2","level":"warning","message":{"text":"ModernRuleEngine.extractElementsWithOperators (cognitive 28): ModernRuleEngine.extractElementsWithOperators has cognitive complexity 28 (threshold 15). Drivers by points: if/else 5 (12 pts), ternaries 4 (8 pts), boolean chains 6, loops 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/ModernRuleEngine.swift"},"region":{"startLine":1024}}}],"partialFingerprints":{"codehealthFindingId/v1":"442dbbdf0484a30f550e60bd98a2621b887b97180d2b3a7d815b5bbc0b5a174c"}},{"ruleId":"D2","level":"warning","message":{"text":"JSCoreEngine.extractBytes (cognitive 28): JSCoreEngine.extractBytes has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 7, ternaries 2 (4 pts), loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/JSCoreEngine.swift"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"a78d9481c17fce75cc98d207f1cc92e8511209d8fa36cadf23999dd252f23106"}},{"ruleId":"D2","level":"warning","message":{"text":"AIAnswerMarkdown.blocks (cognitive 27): AIAnswerMarkdown.blocks has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 4, ternaries 1 (2 pts), loops 1 (nesting depth added 9). Of this number, 26 points are the body\u0027s own statements and 1 belongs 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":"Modules/Core/AI/AIAnswerMarkdown.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7478b71c52306611deaabb9b019629d5f227c3bcc334fee1fd13b21b6bc806a"}},{"ruleId":"D2","level":"warning","message":{"text":"OnlineBookContentInference.kind (cognitive 27): OnlineBookContentInference.kind has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 18, if/else 9. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSource.swift"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdbe36ed8b176717898080a751d10c37a2ea34c612bf0e785c05974cc248fc20"}},{"ruleId":"D2","level":"warning","message":{"text":"BookSourceDebugEngine.runTOC (cognitive 27): BookSourceDebugEngine.runTOC has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 4 (16 pts), if/else 4 (7 pts), loops 1 (3 pts), error handling 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceDebugEngine.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"e714b0840f9c177ddde21ad9514e72b15112ad4e1a3aa26ca8667e9041738bdc"}},{"ruleId":"D2","level":"warning","message":{"text":"PublicationSession.makeSession (cognitive 27): PublicationSession.makeSession has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 6, ternaries 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/PublicationSession.swift"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"348c4932103bdd2efe5a5efcdf68a3ab1532822e268c406e54076dbf88c8edd3"}},{"ruleId":"D2","level":"warning","message":{"text":"AudiobookDetailView.body (cognitive 27): AudiobookDetailView.body has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (14 pts), ternaries 7 (9 pts), boolean chains 3, 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":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a4d2314b4e2f7aaf12b405df42b9b4b7e8899a445e68ca97c7fbaba043c4bab"}},{"ruleId":"D2","level":"warning","message":{"text":"OnlineBookView.body (cognitive 27): OnlineBookView.body has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (19 pts), ternaries 3 (5 pts), boolean chains 2, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/OnlineBookView.swift"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee10e28ee577280b2af23a2a18c0546e6fa041e30526ddad7511b31d555ca2a9"}},{"ruleId":"D2","level":"warning","message":{"text":"UserDetailView.body (cognitive 27): UserDetailView.body has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (21 pts), boolean chains 3, ternaries 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Settings/UserDetailView.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f66c0c8839ea04a18ee8031dc7cad1d20986e2f88d96f94a4526e496136173f"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAICompatibleProvider.stream (cognitive 27): OpenAICompatibleProvider.stream has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 2 (5 pts), error handling 4, match/switch 1 (2 pts) (nesting depth added 13). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/AI/OpenAICompatibleProvider.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"edb818190e59b8297ac4b8dd63698c60fdd0538042d8fd3e35290b1f0a7abca1"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderRenderSettings.refreshIntent (cognitive 27): ReaderRenderSettings.refreshIntent has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 24, ternaries 2, if/else 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/ReaderRenderRefresh.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aedba374f93fdfdedb0633508e4eb0fa2dccf656a175bddc101d7d89eaadb17"}},{"ruleId":"D2","level":"warning","message":{"text":"DiscoverViewModel.reload (cognitive 27): DiscoverViewModel.reload has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (20 pts), error handling 2 (4 pts), boolean chains 3 (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":"Modules/Services/Online/DiscoverViewModel.swift"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4b62c8dcbaf0641dfbfc5f18b89ee608793dd2b93e8cee84fe6eb4cac40536b"}},{"ruleId":"D2","level":"warning","message":{"text":"ChapterComments.thread (cognitive 27): ChapterComments.thread has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 4, error handling 2 (4 pts), loops 2 (4 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":"Modules/Services/Works/ChapterComments.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"559b917f180270f8a5b6754d32e5f6e8fe28b9499883bcd54cfbe75760ab2d68"}},{"ruleId":"D2","level":"warning","message":{"text":"CommentBubbleSVGRecognizer.parseTransform (cognitive 27): CommentBubbleSVGRecognizer.parseTransform has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 5 (15 pts), if/else 5 (9 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift"},"region":{"startLine":1042}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d89f838accf2653e8bc899ef2f4bc83aeae1b2ed6bdede8242297a74d5054b2"}},{"ruleId":"D2","level":"warning","message":{"text":"EmbeddedTrueTypeFontIdentity.namespaced (cognitive 27): EmbeddedTrueTypeFontIdentity.namespaced has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (18 pts), loops 4 (5 pts), boolean chains 4 (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":"Modules/Core/ReaderCore/CoreText/EmbeddedTrueTypeFontIdentity.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d6b63b341465667952d78c12f649ebeb79a2a24e4ba3a0f192354657ad6c429"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderStyleDeclarationScanner.scan::declaration (cognitive 27): ReaderStyleDeclarationScanner.scan::declaration has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 4, loops 2 (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 (ReaderStyleDeclarationScanner.scan) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderStyleCSSCodec.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"566a8080cca746f7871b77cf29be3a31be5f6988d47924529541a73610f20ed3"}},{"ruleId":"D2","level":"warning","message":{"text":"XPathExtractor.splitXPathAndAccessor (cognitive 27): XPathExtractor.splitXPathAndAccessor has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 9, loops 1, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/XPathExtractor.swift"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"f853a1a07069bfa115aee5c8398017702d68701c9159a3f3e766fef87818ac28"}},{"ruleId":"D2","level":"warning","message":{"text":"WebDAVProvider.fixedHTTPDate (cognitive 27): WebDAVProvider.fixedHTTPDate has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 19, if/else 3 (4 pts), ternaries 3, loops 1 (nesting depth added 1). Of this number, 24 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/HomeSectionProviding.swift"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"25b8214ea25ca486362c14b99c039e9618f4014ed91d048e7003d9398f5cf1fe"}},{"ruleId":"D2","level":"warning","message":{"text":"Lexer.skipNumber (cognitive 27): Lexer.skipNumber has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 11, loops 5 (9 pts), if/else 4 (5 pts), ternaries 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoCompletionValue.swift"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e6cf404dd46ef90297462fe39439eb7dfacf7f50ef38133515bb378623c251a"}},{"ruleId":"D2","level":"warning","message":{"text":"_unwrapNoscriptImages (cognitive 27): _unwrapNoscriptImages has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 2 (3 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 14). None of this is in the body itself: all 27 points belong to 2 function literals inside it that branch (lines 1923, 1902). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/Readability.js"},"region":{"startLine":1898}}}],"partialFingerprints":{"codehealthFindingId/v1":"b080df34e6df5adb125aec1b3d866a95fe4ef03e1357680e6da01bb9b4fdf4ce"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleEngine.routeExtractValue (cognitive 26): RuleEngine.routeExtractValue has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 3, loops 1 (3 pts), ternaries 1 (3 pts), match/switch 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3b0af5613ec71f23e6b2629507213471e9cbdd311114f86afa2cc3d61ad4d9b"}},{"ruleId":"D2","level":"warning","message":{"text":"TXTChapterParser.skipLeadingWhitespaceBytes (cognitive 26): TXTChapterParser.skipLeadingWhitespaceBytes has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 11, if/else 5 (9 pts), loops 2 (3 pts), ternaries 1 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TXT/TXTChapterParser.swift"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a7e0b0b6dea5305fd40125e32072f5a39f175f532324d5a5ea205ea83aaab30"}},{"ruleId":"D2","level":"warning","message":{"text":"FixedPageReaderView.readerContent (cognitive 26): FixedPageReaderView.readerContent has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (21 pts), boolean chains 3, ternaries 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/FixedPageReader/FixedPageReaderView.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"75bcfdafae6fe6bee32e9ab30d4cb5832e9d0cf2cc1430cace648fd79a6187d9"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleModuleRepositoryIndex.parse (cognitive 26): RuleModuleRepositoryIndex.parse has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 8, error handling 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/RuleModuleRepository.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a46bf4bb0a20749e88cfbabf8ccd4abaa51c3c51b69b69d7617a9ba138bfa19"}},{"ruleId":"D2","level":"warning","message":{"text":"MetadataResolver.resolve (cognitive 26): MetadataResolver.resolve has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 10, loops 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/MetadataResolver.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d2d73d545568e07096ac816823a031e2c973b18ff781893db7f784dadaa3982"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextPageView.handleSelectionHandlePan (cognitive 26): CoreTextPageView.handleSelectionHandlePan has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 6, match/switch 2 (5 pts), ternaries 1 (4 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":1682}}}],"partialFingerprints":{"codehealthFindingId/v1":"d48f7cbd0232fc0b8457aea57fecb26c83fd6d9aa60b2869ec965549524d9b1e"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextPaginator.standaloneImageRenderableRect (cognitive 26): CoreTextPaginator.standaloneImageRenderableRect has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (9 pts), match/switch 3 (8 pts), ternaries 3 (5 pts), boolean chains 3, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift"},"region":{"startLine":3355}}}],"partialFingerprints":{"codehealthFindingId/v1":"70832619249b5167243552631294a08907fca67cd836669d6fe1dff55515d214"}},{"ruleId":"D2","level":"warning","message":{"text":"ChapterLayout.appearanceUpdated (cognitive 26): ChapterLayout.appearanceUpdated has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 4, error handling 2, loops 1 (2 pts), ternaries 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a1b92c2b80887c7f396962624492182b386d75c5bc8f5b661a2093f0412af39"}},{"ruleId":"D2","level":"warning","message":{"text":"DirtyHTMLParser.parse (cognitive 26): DirtyHTMLParser.parse has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 4, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/DirtyHTMLParser.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f004a8c84175cee76ba0b0d8d7b461e7f140828121f4bd45bc92eba34a52a9e"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderStylePackage.validateManifest (cognitive 26): ReaderStylePackage.validateManifest has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 6, error handling 2 (4 pts), loops 3 (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":"Modules/Core/ReaderCore/Customization/ReaderStylePackage.swift"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"cec9f820e74688fb568df108b86f62f7f46fe8aac6e97728fcf836e185919f3d"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleAnalyzer.splitRulePhase1 (cognitive 26): RuleAnalyzer.splitRulePhase1 has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 3 (7 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/RuleAnalyzer.swift"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"69e8d72d4d9a4cce96e35050742158be86d7b9d741b341c6bf033d1edfcf945b"}},{"ruleId":"D2","level":"warning","message":{"text":"SourceRule.makeUpRule (cognitive 26): SourceRule.makeUpRule has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (20 pts), match/switch 1 (3 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/SourceRule.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e4fcdb6cbd43a5b85ae5fd227b6cb0ed49459b7df8e0989c6c50d9685af0475"}},{"ruleId":"D2","level":"warning","message":{"text":"XPathExtractor.evaluateXPathForStrings (cognitive 26): XPathExtractor.evaluateXPathForStrings has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 3 (7 pts), ternaries 2 (5 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":"Modules/Core/RuleEngine/ModernParser/XPathExtractor.swift"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"fab71633b165247d8c939dfc29c198be181aba8f5e46b3de6333ff040be8ec5d"}},{"ruleId":"D2","level":"warning","message":{"text":"LegadoSymmetricCipher.commonCrypto (cognitive 26): LegadoSymmetricCipher.commonCrypto has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 10, if/else 8 (10 pts), ternaries 3 (4 pts), match/switch 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoSymmetricCipher.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce8e2031a40b756799b6bb6cd21770eb7d5ba3f315104565184aa518aff989b1"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserScrollTileCell.configure (cognitive 25): BrowserScrollTileCell.configure has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 12, if/else 5 (8 pts), ternaries 2 (5 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/BrowserScrollTileCell.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"60568ed11ebc89a05c9def6b64f2c7c60b556cd9ded7d3b218ba686753bf49ea"}},{"ruleId":"D2","level":"warning","message":{"text":"Coordinator.handleChapterReady (cognitive 25): Coordinator.handleChapterReady has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 10, ternaries 2 (4 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/CoreTextPagedView.swift"},"region":{"startLine":1564}}}],"partialFingerprints":{"codehealthFindingId/v1":"2df2e1181577ff84e0945380c67c82b1bbc32070b20b57042f76bad7634de3f6"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomizationImportOverview.appearanceItems (cognitive 25): CustomizationImportOverview.appearanceItems has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 8, ternaries 2 (3 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Settings/CustomizationImportOverview.swift"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"019f3c56b5926549d7ced490abb077417ca6747fdc02178e96fab1127865e352"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPResponseReader.advance (cognitive 25): HTTPResponseReader.advance has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 4, loops 1, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Network/SingleWriteHTTPExchange.swift"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"5565dda5887e469e0c5412e280db7ae319a034f6385cfaf45808bdf07677cf87"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPResponseReader.readChunks (cognitive 25): HTTPResponseReader.readChunks has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (23 pts), boolean chains 1, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Network/SingleWriteHTTPExchange.swift"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"b99962e81925e485c52820f0c609f227114543183133a0551287002a5b5c93eb"}},{"ruleId":"D2","level":"warning","message":{"text":"ChapterAlignment.numericValue (cognitive 25): ChapterAlignment.numericValue has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 3, loops 2 (3 pts), ternaries 1 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/ChapterAlignment.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"76a9c2fde17bed1a9f5779669e5026fdbb7250c973a72a49ad65522c321aa0a6"}},{"ruleId":"D2","level":"warning","message":{"text":"LegadoSourceJSONParser.exportJSON (cognitive 25): LegadoSourceJSONParser.exportJSON has cognitive complexity 25 (threshold 15). Drivers by points: if/else 25. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/LegadoSourceJSONParser.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"27662bbe13113440975511cf6620089d7a6adb7cb4280ae8099ef49afe8b1c75"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkIndexService.compute (cognitive 25): WorkIndexService.compute has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 8, match/switch 1 (3 pts), ternaries 1 (3 pts), loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/WorkIndexService.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3d3b4b2c02fdadd0696b1091609459d966a615faa308f1e53c071f9a6476f40"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserLayoutPageEngine.decideEngine (cognitive 25): BrowserLayoutPageEngine.decideEngine has cognitive complexity 25 (threshold 15). Drivers by points: if/else 17 (20 pts), ternaries 3, error handling 1, 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":"Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageEngine.swift"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"1611516d2dd1432dceb860046e97149b798abd0695f1b3a7f126b38e0f398e08"}},{"ruleId":"D2","level":"warning","message":{"text":"OnlineProviderAttributedStringBuilder.chapterFormatProbe (cognitive 25): OnlineProviderAttributedStringBuilder.chapterFormatProbe has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 3, ternaries 1 (2 pts), match/switch 1 (nesting depth added 10). Of this number, 21 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/OnlineProviderAttributedStringBuilder.swift"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"81f5aada250dea0e85e6a4e18a081483cbe3c04853dffe45b3caa86975176a67"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderDialogueBubbleMarker.plan (cognitive 25): ReaderDialogueBubbleMarker.plan has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 2, ternaries 1 (2 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ReaderDialogueBubbleMarker.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bbbe99e677936ae686a0556f18f275f389cb41a27f8f88aa3fd66084f59092d"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderStyleAssetStore.importValidatedPackageAssets (cognitive 25): ReaderStyleAssetStore.importValidatedPackageAssets has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 6 (8 pts), error handling 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":"Modules/Core/ReaderCore/Customization/ReaderStyleAssetStore.swift"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"0672d12d754723360499e3ddad2b208ad1cc520087371219083b360c9e01ab63"}},{"ruleId":"D2","level":"warning","message":{"text":"SourceRule.parseTemplateParameters (cognitive 25): SourceRule.parseTemplateParameters has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (20 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/SourceRule.swift"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ebe419ac1318d31614db36d9954cd4cb895e0cc626e609a213509e1149296e3"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoPlayerView.body (cognitive 25): VideoPlayerView.body has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 8, ternaries 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":"Modules/Features/Reader/Video/VideoPlayerView.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f35abf82a149ae36e7155d655b467171bfde8573e8c3f204570ec8a2421eeb4"}},{"ruleId":"D2","level":"warning","message":{"text":"RefreshPreparation.preparePaged (cognitive 24): RefreshPreparation.preparePaged has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (11 pts), ternaries 3 (6 pts), match/switch 3 (4 pts), boolean chains 3 (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":"Modules/Core/ReaderCore/EPUBPageRenderer.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1fdb2992f647e161073e433f5f7b0d451278c1827cf20cb40e18ac68b3b6408"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomHTTPProvider.buildJSRequestOrThrow (cognitive 24): CustomHTTPProvider.buildJSRequestOrThrow has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 6, loops 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"Modules/Core/TTS/TTSAudioProvider.swift"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d15b1e1c5ac84c153fc4e7a5bcc344e631608ab0d7f1d24b409fb3c4e3fefc7"}},{"ruleId":"D2","level":"warning","message":{"text":"TTSDialogueRoster.merge (cognitive 24): TTSDialogueRoster.merge has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 4 (7 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":"Modules/Core/TTS/TTSDialogueModel.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"4583175add5cda88030448845a9cf90d5fde6f1ca79c4d69f8d97bce2a3d30d7"}},{"ruleId":"D2","level":"warning","message":{"text":"TXTEncodingDetector.detect (cognitive 24): TXTEncodingDetector.detect has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 5, loops 2, ternaries 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TXT/TXTEncodingDetector.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc038c2d5c12956e1c68dc8b40d003e74bbb5bc846c851cfebd56cd89db870fa"}},{"ruleId":"D2","level":"warning","message":{"text":"BookDetailScaffold.body (cognitive 24): BookDetailScaffold.body has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 6 (12 pts), if/else 6 (9 pts), boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/BookDetailComponents.swift"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1da20c8c3cd4769d2b755fa9fd23df042a428174ec44a13be441550a6910fd6"}},{"ruleId":"D2","level":"warning","message":{"text":"CalibreWirelessView.body (cognitive 24): CalibreWirelessView.body has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 3, ternaries 1 (2 pts), match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Bookshelf/CalibreWirelessView.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"3adf1a57659defd87546415ab43669cd1f7b10390dc77f33fce5e40597024bb3"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextCollectionScrollViewController.applyReadingPositionIfPossible (cognitive 24): CoreTextCollectionScrollViewController.applyReadingPositionIfPossible has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 6, ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/CoreTextCollectionScrollViewController.swift"},"region":{"startLine":1256}}}],"partialFingerprints":{"codehealthFindingId/v1":"77f6898952531861a7a71d0a0876b4feecd7674f323453448b81ee4394423497"}},{"ruleId":"D2","level":"warning","message":{"text":"BookReaderSettingsStore.migrateLegacyFixedPageReadingModes (cognitive 24): BookReaderSettingsStore.migrateLegacyFixedPageReadingModes has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 4 (5 pts), boolean chains 4, ternaries 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/BookReaderSettingsStore.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc0b1d8e55eca7b4f0cba91eea118dac23459ec432f31cbb7c4e414e107f1266"}},{"ruleId":"D2","level":"warning","message":{"text":"OfflineChapterStore.reconcileBook (cognitive 24): OfflineChapterStore.reconcileBook has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (4 pts), ternaries 2 (4 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Offline/OfflineChapterStore.swift"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"25100bd453ef0cf8e4bb001efaf20481bd116493d27a17e762752e3c495fd1c1"}},{"ruleId":"D2","level":"warning","message":{"text":"ChapterFetchManager.fetchBrowserImportedChapter (cognitive 24): ChapterFetchManager.fetchBrowserImportedChapter has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 1, error handling 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/OnlineReadingPipeline.swift"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e01ef8c02ab03566efd03289649c4c769eb57914f9833c46fe88f29ab8935dd"}},{"ruleId":"D2","level":"warning","message":{"text":"MetadataFillRunner.fill (cognitive 24): MetadataFillRunner.fill has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (14 pts), ternaries 2 (4 pts), boolean chains 3, error handling 1 (2 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/MetadataFill.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d0efe6f7338432c892f29edd1e0508d089766bb09835dab8a8ad3f37cb3297"}},{"ruleId":"D2","level":"warning","message":{"text":"RootTabBarTransitionCover.pageWillChange (cognitive 24): RootTabBarTransitionCover.pageWillChange has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 16, if/else 7, ternaries 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/SharedUI/Adaptive/RootTabBarTransitionCover.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"72ea9788753b3f39f2d2ec6f52dcd74ac38aababec67049a8d4a1e79c3d31910"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextPageView.editMenuInteraction (cognitive 24): CoreTextPageView.editMenuInteraction has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11, ternaries 6 (7 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e3ed5f6ae355cba2360f4bdf7e181bbd5cf1afa08ae8a7344530b99fcb3c195"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextPaginator.debugUnitDescription (cognitive 24): CoreTextPaginator.debugUnitDescription has cognitive complexity 24 (threshold 15). Drivers by points: if/else 16 (21 pts), ternaries 1 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift"},"region":{"startLine":2285}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb1c73dcfd0ef39995de20e019b92456ed153c1803c5ccf7a76435c507a3d611"}},{"ruleId":"D2","level":"warning","message":{"text":"NodeAttributedStringRenderer.applyVerticalSealBreaks (cognitive 24): NodeAttributedStringRenderer.applyVerticalSealBreaks has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 8, loops 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eb6506d150bef1435f82c0e3131b5c0bef64a6cb63e17df463f8c60ce8e6f7a"}},{"ruleId":"D2","level":"warning","message":{"text":"ReviewCardTemplate.expanded (cognitive 24): ReviewCardTemplate.expanded has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 2 (4 pts), ternaries 1 (3 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ReviewCardTemplate.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6605ad8d5ab0f11fb82be5a9914f2847748c1eee29975a34442bf15a61c2250"}},{"ruleId":"D2","level":"warning","message":{"text":"AppearanceThemeExtras.isEmpty (cognitive 24): AppearanceThemeExtras.isEmpty has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 24. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/AppearanceThemeExtras.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4369f892b608d77afe6037c8c30d83ac977ba9576331f3a542d28b8f2715bf4"}},{"ruleId":"D2","level":"warning","message":{"text":"auth.authRouter (cognitive 24): auth.authRouter has cognitive complexity 24 (threshold 15). Drivers by points: error handling 12, if/else 8 (9 pts), ternaries 2, boolean chains 1 (nesting depth added 1). None of this is in the body itself: all 24 points belong to 11 function literals inside it that branch (lines 160, 188, 92, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/routes/auth.ts"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"831285b10cdc786235d56ebbe56ac036271478e533e56d07c99cb48b57d42faa"}},{"ruleId":"D2","level":"warning","message":{"text":"AIMemoryPlanner.plan (cognitive 23): AIMemoryPlanner.plan has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 12, if/else 3 (6 pts), loops 2 (3 pts), ternaries 1 (2 pts) (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AICharacterMemoryPlanner.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"18816ee926d8582793b096567ca2b3c0f955a470ab1bd6b9ada27f2876842add"}},{"ruleId":"D2","level":"warning","message":{"text":"BookSource.legacySearchURLParts (cognitive 23): BookSource.legacySearchURLParts has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceURLRendering.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0069106458a6394697f45a531a6706fda5a5d25e8d43765bea9202ba6406fc4"}},{"ruleId":"D2","level":"warning","message":{"text":"BookSourceDebugEngine.debugEntry (cognitive 23): BookSourceDebugEngine.debugEntry has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 11 (22 pts), match/switch 1 (nesting depth added 11). 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":"Modules/Core/BookSource/BookSourceDebugEngine.swift"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"587f854e52d86dfa5f7fa08ad1c3b171ce26f4dc39c59840959d23aeaf31ad89"}},{"ruleId":"D2","level":"warning","message":{"text":"FixedLayoutSpreadPairingBuilder.build (cognitive 23): FixedLayoutSpreadPairingBuilder.build has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (18 pts), ternaries 2, boolean chains 1, loops 1, match/switch 1 (nesting depth added 7). Of this number, 20 points are the body\u0027s own statements and 3 belong to 3 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/PublicationSession.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"52630bd3734500a72b604fa570bf919a6086d9847075943205ee558206142d1e"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderHTMLUtilities.reviewMarkupDiagnostics (cognitive 23): ReaderHTMLUtilities.reviewMarkupDiagnostics has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 2 (4 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":"Modules/Core/ReaderCore/ReaderHTMLUtilities.swift"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7136eb81c291cbb9578c99c35efcb0b207c75d415bbe53a84b17ea2001433f9"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderHTMLUtilities.qidianReviewTarget (cognitive 23): ReaderHTMLUtilities.qidianReviewTarget has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 6 (11 pts), if/else 6 (7 pts), boolean chains 5 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/ReaderHTMLUtilities.swift"},"region":{"startLine":1917}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe9a23d574768b3c64aeb19671443b8052a40b6163b1701d0d4759072947b72f"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleEngine.parseXPathSegment (cognitive 23): RuleEngine.parseXPathSegment has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 4, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":1149}}}],"partialFingerprints":{"codehealthFindingId/v1":"f239a82307ab766a5704d7eb731b36fb851ccb8c8eb0211b90af21c03262e1f8"}},{"ruleId":"D2","level":"warning","message":{"text":"OPDSFeedView.body (cognitive 23): OPDSFeedView.body has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 8 (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":"Modules/Features/Bookshelf/OPDSImportView.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd7d4e24f310a5701c1fa2b4a8958ed8669147b1dc382994e82cebcf73ba7f4c"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderCardTransitionAnimator.interruptibleAnimator (cognitive 23): ReaderCardTransitionAnimator.interruptibleAnimator has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 7 (8 pts), boolean chains 5, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderCardTransitionAnimator.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fb8357f5e2dbe7fa3508a653932e6e0606028e841bd10e71c9990d1ae993f9c"}},{"ruleId":"D2","level":"warning","message":{"text":"AIBookContentAdapter.init (cognitive 23): AIBookContentAdapter.init has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 9 (18 pts), boolean chains 2, if/else 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/AI/AIBookContentAdapter.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"77ae4abb28f96ee6c2a554cbc2cc6f5ac84dfcae8c9c7eac8b9ac7fd9be74621"}},{"ruleId":"D2","level":"warning","message":{"text":"AIRecommendationService.fillCovers (cognitive 23): AIRecommendationService.fillCovers has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 3, match/switch 1 (3 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/AI/AIRecommendationService.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"4034ce6e43fd411da7b3266a1d7bb491c39ca4140951a0c42de4bce3b0397b53"}},{"ruleId":"D2","level":"warning","message":{"text":"CalibreWirelessService.connect (cognitive 23): CalibreWirelessService.connect has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 2 (5 pts), boolean chains 1, error handling 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":"Modules/Services/Calibre/CalibreWirelessService.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9d566f893598bd3529432e527b1c1986680b7a5a75237f5b0c815009905b62c"}},{"ruleId":"D2","level":"warning","message":{"text":"BookStore.rereadTXTHeaders (cognitive 23): BookStore.rereadTXTHeaders has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 5, loops 3, error handling 1 (2 pts), ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/BookStore.swift"},"region":{"startLine":3500}}}],"partialFingerprints":{"codehealthFindingId/v1":"edd6a60200e8b23287b01039e6c5004f8630d183bfc88056708be498f10229a3"}},{"ruleId":"D2","level":"warning","message":{"text":"BookStore.mergeOnlineChapters (cognitive 23): BookStore.mergeOnlineChapters has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 7, loops 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/BookStore.swift"},"region":{"startLine":3784}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cb5a87e7a5cbfbf8f9d6f323d4133e9d701b4089c5bf6af6c74637aed550cfa"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeDefaultsLanguageSwap.apply (cognitive 23): HomeDefaultsLanguageSwap.apply has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 13, if/else 5 (8 pts), loops 1, ternaries 1 (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/HomeDefaultsLanguageSwap.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"09d0f5be719b536f37559f0bf5376896d33df77a4894bb3299b79b675cbd5edc"}},{"ruleId":"D2","level":"warning","message":{"text":"WebDAVIndexCoordinator.refreshStatuses (cognitive 23): WebDAVIndexCoordinator.refreshStatuses has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (8 pts), ternaries 2 (7 pts), boolean chains 5, match/switch 1 (2 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/WebDAVIndexCoordinator.swift"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ed4b31585912c813f448dd4252070a4913fbd0c6c8e8dff93f37ae1d471bbe"}},{"ruleId":"D2","level":"warning","message":{"text":"LanguageTag.init (cognitive 23): LanguageTag.init has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 15, if/else 6 (7 pts), loops 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/WorkMatchKey.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"669b6756c04fda2cca30b2e138674910f554d44664b88ae7677259236986a251"}},{"ruleId":"D2","level":"warning","message":{"text":"SVGPathParser.numberEnd (cognitive 23): SVGPathParser.numberEnd has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 8, loops 3 (6 pts) (nesting depth added 5). Of this number, 21 points are the body\u0027s own statements and 2 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":"Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift"},"region":{"startLine":1582}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad4baf0f011dd3537216b6d0cc108fe386f8864ff710c6fb7b78dbb7f11a7280"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextPaginator.computeExplicitBlockRenderableRect (cognitive 23): CoreTextPaginator.computeExplicitBlockRenderableRect has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 11, if/else 9, match/switch 1 (2 pts), ternaries 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift"},"region":{"startLine":3440}}}],"partialFingerprints":{"codehealthFindingId/v1":"abcdb9a94eaeb0ce871cf607023c4f9848238f0ffb9848c02faa177394356e0d"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextPaginator.makeBlockImageAttachment (cognitive 23): CoreTextPaginator.makeBlockImageAttachment has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 8, loops 1, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift"},"region":{"startLine":3532}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bfc79186ed177e13b348a87a8b9b7503aeff90dd5ad1b376335b63c9afd43b0"}},{"ruleId":"D2","level":"warning","message":{"text":"NodeAttributedStringRenderer.renderInlineImage (cognitive 23): NodeAttributedStringRenderer.renderInlineImage has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (17 pts), ternaries 2 (4 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift"},"region":{"startLine":1447}}}],"partialFingerprints":{"codehealthFindingId/v1":"c830a432882debf275987b93a947fc155870b62f5395691e11a5da93d2b86db3"}},{"ruleId":"D2","level":"warning","message":{"text":"ReviewCardContent.comments (cognitive 23): ReviewCardContent.comments has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 4 (10 pts), if/else 4 (8 pts), boolean chains 4, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ReviewCardContent.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"09daae8e1293403bf9c32b2f04d6841c8ceb3e4f182a0766f42dfdb61c672da6"}},{"ruleId":"D2","level":"warning","message":{"text":"JSONPathEvaluator.findComparison (cognitive 23): JSONPathEvaluator.findComparison has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (16 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JsonExtractor.swift"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"d44dcda766b46d3259889a0039b48154d5b827638933a6a10f2367afe1253180"}},{"ruleId":"D2","level":"warning","message":{"text":"ModernRuleEngine.modeQualifiedRule (cognitive 23): ModernRuleEngine.modeQualifiedRule has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 12, if/else 5 (10 pts), match/switch 1 (nesting depth added 5). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/ModernRuleEngine.swift"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad565b20ad25cb2cfc99d5689732c713822ea181c18e60c3bb3daedb9df2b7ab"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleAnalyzer.splitRulePhase2 (cognitive 23): RuleAnalyzer.splitRulePhase2 has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 3 (7 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/RuleAnalyzer.swift"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc6a85f06e845c9382fb1e43efd76609eb039f806cd4f846b51aa3cdbddabaf0"}},{"ruleId":"D2","level":"warning","message":{"text":"SourceRule.extractPutDirectives (cognitive 23): SourceRule.extractPutDirectives has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2 (4 pts), ternaries 1 (4 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":"Modules/Core/RuleEngine/ModernParser/SourceRule.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"71f57dc7ea1a131514bf03c833e90bf6bc22d3e2a37f32fd21a12c02ae99b8f2"}},{"ruleId":"D2","level":"warning","message":{"text":"StatementReader.skipGroup (cognitive 23): StatementReader.skipGroup has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (22 pts), loops 1 (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoCompletionValue.swift"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"253d21f3cb1e41d8321e29f886aaa78c132e3d44263f368d487d22088457bbed"}},{"ruleId":"D2","level":"warning","message":{"text":"ruleEngine.safeQuerySelectorAll (cognitive 23): ruleEngine.safeQuerySelectorAll has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 5 (10 pts), error handling 3 (5 pts), boolean chains 4, if/else 4 (nesting depth added 7). Of this number, 21 points are the body\u0027s own statements and 2 belong to one function literal 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":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"664a196537f16c01f3ec1a83173f45bd75d1727ac480e29dc4f8edd804e67ec2"}},{"ruleId":"D2","level":"warning","message":{"text":"ruleEngine.splitTopLevel (cognitive 23): ruleEngine.splitTopLevel has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 4, ternaries 1 (2 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"e48f94ebbee20562403168f9a3a7bdaf01fdbc25573ccef2a2e83fa7250bd6e3"}},{"ruleId":"D2","level":"warning","message":{"text":"ruleEngine.getElementsBySegment (cognitive 23): ruleEngine.getElementsBySegment has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 3, ternaries 1 (3 pts), error handling 1 (2 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"2563e597c90413ae7e279d3bd11c25ceff9b39d516a56363c6a84c9b795989a4"}},{"ruleId":"D2","level":"warning","message":{"text":"AIMemoryExtraction.input (cognitive 22): AIMemoryExtraction.input has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 5 (7 pts), boolean chains 3 (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":"Modules/Core/AI/AICharacterMemoryExtraction.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"8470ac24378a74f5d9226c5566283a8399381bc804f22727e36b245323fc5e5d"}},{"ruleId":"D2","level":"warning","message":{"text":"AIQuestionContext.safeHistory (cognitive 22): AIQuestionContext.safeHistory has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 4, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIQuestionContext.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"054d6c46f7169385234ade1059f66d7b1866d66413eddf7f0476e1e0fe7cad05"}},{"ruleId":"D2","level":"warning","message":{"text":"BookSourceHealthChecker.runGroup (cognitive 22): BookSourceHealthChecker.runGroup has cognitive complexity 22 (threshold 15). Drivers by points: if/else 4 (8 pts), ternaries 3 (6 pts), boolean chains 4, loops 3 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceHealthChecker.swift"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"54391b8068fad7b96e65597b3605f4c4c282e7891fc0ef1065fbd027a0d74685"}},{"ruleId":"D2","level":"warning","message":{"text":"BookSourceStore.parseYDS (cognitive 22): BookSourceStore.parseYDS has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 2, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceStore.swift"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"10588c5d950da0d9e470a4ba1790af870f1a97ffc7213d90c9c64a29ea250571"}},{"ruleId":"D2","level":"warning","message":{"text":"MOBIIndex.entry (cognitive 22): MOBIIndex.entry has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 4 (8 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/MOBI/MOBIIndex.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"4090a1c6c00805fab142b878bdfc207ad3e0a71c92c05c1238a6a3198519d7ee"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderPositionSentry.observeCommit (cognitive 22): ReaderPositionSentry.observeCommit has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (16 pts), ternaries 4 (6 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/ReaderPositionSentry.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"f42b6fbbc3878aaab52460b4b53786d237a9f0117a414ad3d86330aeb44959da"}},{"ruleId":"D2","level":"warning","message":{"text":"WebNovelParser.parseTOC (cognitive 22): WebNovelParser.parseTOC has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 5, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/WebNovelParser.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"0325c7ff69fa42735fcceb44ff15c546ffc40eb97e0af3e622f90ae6900e18b3"}},{"ruleId":"D2","level":"warning","message":{"text":"TXTLocationMigration.position (cognitive 22): TXTLocationMigration.position has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 6, loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TXT/TXTLocationMigration.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"53e9051791dfac0ed5559a5621693df167425d164a07d01eeff1b24021667e13"}},{"ruleId":"D2","level":"warning","message":{"text":"BookDetailChapterSection.content (cognitive 22): BookDetailChapterSection.content has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 2 (8 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/BookDetailComponents.swift"},"region":{"startLine":1842}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf4e9384321e984856be93e6e11be97494a4134cdb01f5075c0e6afdde105ee9"}},{"ruleId":"D2","level":"warning","message":{"text":"BookSourceFormLoginView.configureLegadoRuntime (cognitive 22): BookSourceFormLoginView.configureLegadoRuntime has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (15 pts), ternaries 1 (3 pts), boolean chains 2, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookSource/BookSourceFormLoginView.swift"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"49aa6d9a1273443d4c04a42d373e8d18906fdde82bea607c3f19c2e478677321"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeView.body (cognitive 22): HomeView.body has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14, ternaries 3 (5 pts), boolean chains 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"Modules/Features/Bookshelf/HomeView.swift"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"21407b57af0f2d3d4f7cff3de98b90c35a07d2801518d91d05c3e295c0eba428"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteLibraryManagementView.body (cognitive 22): RemoteLibraryManagementView.body has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (16 pts), ternaries 2 (4 pts), boolean chains 1, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Bookshelf/RemoteLibraryManagementView.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"8193d294234add9066fe2de9302353335c57ca1e1fd2de416f0f097be4f4e0e5"}},{"ruleId":"D2","level":"warning","message":{"text":"AIDialogueCastService.startBatch (cognitive 22): AIDialogueCastService.startBatch has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (13 pts), error handling 2 (6 pts), boolean chains 2, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/AI/AIDialogueCastService.swift"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"245b12d74e44468c5c85c52f8c0dfc8c52a0b2091dbd7ea2702fe622b444b53f"}},{"ruleId":"D2","level":"warning","message":{"text":"BookStore.commitTXTBookmarks (cognitive 22): BookStore.commitTXTBookmarks has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 3 (4 pts), boolean chains 3, error handling 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/BookStore.swift"},"region":{"startLine":3096}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff2532fc43d68d6e65f19003a55538b78e31ef1dde28d50e009ff8d55cd7dcc4"}},{"ruleId":"D2","level":"warning","message":{"text":"RSSXMLParserDelegate.parser (cognitive 22): RSSXMLParserDelegate.parser has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 10 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"Modules/Services/RSS/RSSFetcher.swift"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"36c9250be145462712174ca98ee7f328182a45c7c3afabef811f276ab2defd6e"}},{"ruleId":"D2","level":"warning","message":{"text":"FirestoreSyncMerge.merge (cognitive 22): FirestoreSyncMerge.merge has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 3, boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/iCloud/FirestoreSyncManager.swift"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"7463728511719cf86e80d011481e726444855fcde8a320444645256ba53dcccf"}},{"ruleId":"D2","level":"warning","message":{"text":"GlobalSettings.restoreReaderBackgrounds (cognitive 22): GlobalSettings.restoreReaderBackgrounds has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 3, error handling 1 (2 pts), loops 1 (2 pts), match/switch 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":"Targets/Yuedu/SharedApp/ReaderCustomBackgroundStore.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"34ce93196e5fc53ecae3c5fe7c5150d8ef6e7d0d1b50908ba1972589e0c79ba3"}},{"ruleId":"D2","level":"warning","message":{"text":"yuedu_appApp.body (cognitive 22): yuedu_appApp.body has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 3, ternaries 2 (3 pts), 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":"Targets/Yuedu/SharedApp/yuedu_appApp.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"a95a90714727427bd4338517cb11bb154eee9760d7e76486dc1e1731b6ae9cb7"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserLayoutPageEngine.pageViewController (cognitive 22): BrowserLayoutPageEngine.pageViewController has cognitive complexity 22 (threshold 15). Drivers by points: if/else 4 (8 pts), ternaries 4 (8 pts), boolean chains 3, match/switch 2 (3 pts) (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageEngine.swift"},"region":{"startLine":1589}}}],"partialFingerprints":{"codehealthFindingId/v1":"27590529ca423e9b0b412116e563055fcc02aaeeb2083d05a8850435f100028a"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextPageView.renderPage (cognitive 22): CoreTextPageView.renderPage has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (12 pts), loops 4 (5 pts), ternaries 3 (4 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d79db41a08e421170c5e22a3ea02e5a7dde221f2d2286e5bb4e07a9f828523"}},{"ruleId":"D2","level":"warning","message":{"text":"HTMLAttributedStringBuilder.applyMarginShorthand (cognitive 22): HTMLAttributedStringBuilder.applyMarginShorthand has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 4 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift"},"region":{"startLine":2349}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ed9f864b63c44fcebfbb87ebac8e2957f18f648d6c9f610f24e1a6065be41e3"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderDialogueBubbleMarker.apply (cognitive 22): ReaderDialogueBubbleMarker.apply has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (10 pts), ternaries 3 (8 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ReaderDialogueBubbleMarker.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"60e16964b6285a997137af48dd9ce8f765ea9fa0f432879dba03edff05ab4e89"}},{"ruleId":"D2","level":"warning","message":{"text":"SVGValidation.validateAttributes (cognitive 22): SVGValidation.validateAttributes has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 5, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderBatterySVGTemplate.swift"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"c349c4b97ee09b9c47aaa1aea06d6904e26423ad1390770d59ebd5b89f0f943f"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderStylePackage.importContents (cognitive 22): ReaderStylePackage.importContents has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (9 pts), error handling 4 (5 pts), loops 3, ternaries 1 (3 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderStylePackage.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"0250732813af0196fd19c20a9a57668c6d42e456d3ae4ede0197b7039f25f704"}},{"ruleId":"D2","level":"warning","message":{"text":"ReedenThemeImporter.highlightRules (cognitive 22): ReedenThemeImporter.highlightRules has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (7 pts), boolean chains 5, error handling 2 (5 pts), ternaries 2 (4 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReedenThemeImporter.swift"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ae474f11b138c79de3132fd6dc5dacff22f6d384cae2397a2fc0645394a9cf8"}},{"ruleId":"D2","level":"warning","message":{"text":"ModernParserBridge.exploreItems (cognitive 22): ModernParserBridge.exploreItems has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15 (16 pts), boolean chains 4, ternaries 1 (2 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift"},"region":{"startLine":2407}}}],"partialFingerprints":{"codehealthFindingId/v1":"8310a4d59a20ec521b00a04f95e07cb1392511cfd5a9c96e1886ed8e58852791"}},{"ruleId":"D2","level":"warning","message":{"text":"ModernRuleEngine.getStringList (cognitive 22): ModernRuleEngine.getStringList has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (15 pts), ternaries 2 (3 pts), boolean chains 2, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/ModernRuleEngine.swift"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"931a19d38c5d4a37fc3160cc0b98e744d916e66dbaf7d0187c32b8856213da19"}},{"ruleId":"D2","level":"warning","message":{"text":"OrderedJSON.javaDouble (cognitive 22): OrderedJSON.javaDouble has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (10 pts), ternaries 4 (6 pts), boolean chains 4, loops 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/OrderedJSON.swift"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"3023f66c6f1c0dd86e46954192167bdbe8e3fbda509c5b18040f141ea92d75db"}},{"ruleId":"D2","level":"warning","message":{"text":"ModuleListPage.content (cognitive 22): ModuleListPage.content has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (14 pts), ternaries 2 (7 pts), match/switch 1 (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Library/Modules/ModuleListPage.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3799b6dd7f2e98eff1ba02c29c45b5d2efe4eed7fb79728adc5148e89e22229"}},{"ruleId":"D2","level":"warning","message":{"text":"AnalyzeUrl.javaAbsoluteURL (cognitive 22): AnalyzeUrl.javaAbsoluteURL has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 11, if/else 10 (11 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/URL/AnalyzeUrl.swift"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8258af3b304161b1ea3bf6fa7c12ca1ddd48d9e5ace3bbc6d6c16afac455690"}},{"ruleId":"D2","level":"warning","message":{"text":"Data.startsWithASCII (cognitive 22): Data.startsWithASCII has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2 (4 pts), boolean chains 3 (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":"Modules/Services/RSS/RSSFetcher.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1ec43e4d2041895e60c6d63ccaa4e2c329593438b5d788100c42b1da4a286a0"}},{"ruleId":"D2","level":"warning","message":{"text":"policy.sanitizePreferences (cognitive 22): policy.sanitizePreferences has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 3, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/policy.ts"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"7160bc758431eb52fa632f5a9b6b84281c6770a8b5e3b17a17161df8ebd55c1e"}},{"ruleId":"D2","level":"warning","message":{"text":"AIPublicationChunker.mergedSpans (cognitive 21): AIPublicationChunker.mergedSpans has cognitive complexity 21 (threshold 15). Drivers by points: loops 4 (8 pts), if/else 5 (6 pts), boolean chains 4, ternaries 1 (3 pts) (nesting depth added 7). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIChunking.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"d677c29a716ce0a82dc874dd428fd29d45df4c7a870b5f4859734337730442d8"}},{"ruleId":"D2","level":"warning","message":{"text":"SourceAPIErrorLog.chapterTransportFailureMessage (cognitive 21): SourceAPIErrorLog.chapterTransportFailureMessage has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 15, if/else 5 (6 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/SourceAPIErrorLog.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"f739d704769fa748e3535330758baf1cf427b2d538f6abe38e00ea7066d95b3e"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderTOCSelection.currentChapter (cognitive 21): ReaderTOCSelection.currentChapter has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/ReaderPageTypes.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf267df1fe745e6973a995b78776638f71104d902ab23debb611180e2abc817c"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleEngine.routeExtractValue (cognitive 21): RuleEngine.routeExtractValue has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (11 pts), loops 1 (3 pts), ternaries 1 (3 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"533ca248dcb92a7dc1f6e6c3da6b5fb0639f5771c4e0f873328e4f3b163b84b1"}},{"ruleId":"D2","level":"warning","message":{"text":"EdgeTTSWebSocketTransport.synthesize (cognitive 21): EdgeTTSWebSocketTransport.synthesize has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 2 (4 pts), match/switch 1 (3 pts), boolean chains 1, error handling 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/EdgeTTSAudioProvider.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"320165dd5d6b8f8cde33d4ed775dec0bc0c9bfeae81789a36916487796c27520"}},{"ruleId":"D2","level":"warning","message":{"text":"EdgeTTSProtocol.event (cognitive 21): EdgeTTSProtocol.event has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 4, match/switch 2 (3 pts) (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/EdgeTTSProtocol.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"c097a726cb3598fb1affaed748f68862019d27d0585605ee2fc4d93dbdd71178"}},{"ruleId":"D2","level":"warning","message":{"text":"TTSAutoCast.assign (cognitive 21): TTSAutoCast.assign has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 4, loops 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/TTSAutoCast.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b2173be4649d16880e34c969112e2f4515fed20fd78416aa45f936838b2200e"}},{"ruleId":"D2","level":"warning","message":{"text":"TTSChunkAudioPlayer.fillBufferQueue (cognitive 21): TTSChunkAudioPlayer.fillBufferQueue has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (14 pts), ternaries 2 (4 pts), boolean chains 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/TTSChunkAudioPlayer.swift"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc5756ad2eba73f0088c07c36db58e38f9148b929e569afd01a45cb359c18130"}},{"ruleId":"D2","level":"warning","message":{"text":"TXTMetadataProbe.introduction (cognitive 21): TXTMetadataProbe.introduction has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 5, loops 1, ternaries 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TXT/TXTMetadataProbe.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"f97b02d46f7cefd4e86ac365a81053f3c85abd4b00696e7088d9620524be55c0"}},{"ruleId":"D2","level":"warning","message":{"text":"RSSFeedView.body (cognitive 21): RSSFeedView.body has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (9 pts), ternaries 4 (8 pts), boolean chains 4 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/RSS/RSSFeedView.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7bb9aaf5fdf87677a2abe4499e0d4727da0edd8c5b46c923a02cd26a02a5880"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextCollectionScrollViewController.update (cognitive 21): CoreTextCollectionScrollViewController.update has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 7, ternaries 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":"Modules/Features/Reader/CoreTextCollectionScrollViewController.swift"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"c34927e486cc4a6f42c92155c1b12a8b07dfbe198a9656e370651b6a5719eded"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderNavigationTransitionDriver.schedulePendingReconciliation (cognitive 21): ReaderNavigationTransitionDriver.schedulePendingReconciliation has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 2 (5 pts), match/switch 2 (4 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderNavigationTransitionDriver.swift"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f78bdbe05bbbab09eae11486a6fcdfc70750528920a35a0fc3316318c7ff00"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderSettingsExportSnapshot.make (cognitive 21): ReaderSettingsExportSnapshot.make has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 4, error handling 2 (4 pts), loops 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderSettingsImportService.swift"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"752c4477a3ebf6b688a1e8469e12ef5e8d9e38e0377e189fe141bfc1d00000e8"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderViewModel.startFetchTask (cognitive 21): ReaderViewModel.startFetchTask has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 3, ternaries 1 (2 pts), error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderViewModel.swift"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad64f1b44cbb8d2268fb490265628699ebdb0ff09f49a5afad23d1dc12588c21"}},{"ruleId":"D2","level":"warning","message":{"text":"AIChapterTranslationService.run (cognitive 21): AIChapterTranslationService.run has cognitive complexity 21 (threshold 15). Drivers by points: loops 3 (8 pts), if/else 3 (6 pts), ternaries 1 (3 pts), boolean chains 2, error handling 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/AI/AIChapterTranslationService.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"25186b29dacb084ed711f0b416e5018ac3b99ec9a19fd79fd3d491ba1abb1867"}},{"ruleId":"D2","level":"warning","message":{"text":"CalibreWireBuffer.nextFrame (cognitive 21): CalibreWireBuffer.nextFrame has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 8, error handling 1, loops 1 (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":"Modules/Services/Calibre/CalibreWirelessProtocol.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"54ccaf6c880957c09d88b21d5ebb2f4ac12c448d3bc7d63dda4aa81334b7214b"}},{"ruleId":"D2","level":"warning","message":{"text":"BookStore.reconcileOfflineTaskMetadata (cognitive 21): BookStore.reconcileOfflineTaskMetadata has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/BookStore.swift"},"region":{"startLine":2739}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c7002aba106d61acd60c1d9d1282a3c917c171061bfb47a5769715d9df5592"}},{"ruleId":"D2","level":"warning","message":{"text":"HTMLResponseDecoder.decode (cognitive 21): HTMLResponseDecoder.decode has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 2, loops 2, ternaries 1 (nesting depth added 5). Of this number, 16 points are the body\u0027s own statements and 5 belong to 2 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Network/HTMLResponseDecoder.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a22fd35a2397f363d9e0e29aaf27da3abac1c3f7a81280316e0a17a7e0a36c0"}},{"ruleId":"D2","level":"warning","message":{"text":"AozoraCatalogStore.load (cognitive 21): AozoraCatalogStore.load has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 4, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/PublicLibrary/AozoraCatalogStore.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4b5b7a1568602d1cf04cd9eedff9cf5c1e657bc77291fa38751c1abd0e2149f"}},{"ruleId":"D2","level":"warning","message":{"text":"AozoraLibraryDownloadService.importWork (cognitive 21): AozoraLibraryDownloadService.importWork has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 9, if/else 5 (9 pts), error handling 2 (3 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/PublicLibrary/AozoraLibraryDownloadService.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0a750abec3a0b33073fe8c5beaa2f66d85bb779948671f9ef96e9f50b9d80b9"}},{"ruleId":"D2","level":"warning","message":{"text":"SubscriptionStore.purchase (cognitive 21): SubscriptionStore.purchase has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (13 pts), error handling 2 (5 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Subscription/SubscriptionStore.swift"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"8df531cd81c07220d2e43e16b620d2f0bd328ba4e15731821297ca696a3e8368"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeModel.fetch (cognitive 21): HomeModel.fetch has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 4, error handling 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/HomeModel.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"aace5291c55d3eafd2bfb17757c13da53956c4540fb7823c9a7b6ce906b979e0"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkIndex.editions (cognitive 21): WorkIndex.editions has cognitive complexity 21 (threshold 15). Drivers by points: loops 4 (7 pts), if/else 2 (6 pts), ternaries 2 (6 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/WorkIndex.swift"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffd64a4eea7db450adc6e3628c825a74edee6239709df0e4bf03c6ddb9178b33"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderConfig.setupBindings (cognitive 21): ReaderConfig.setupBindings has cognitive complexity 21 (threshold 15). Drivers by points: if/else 21. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/GlobalSettings.swift"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"8895462862034b5dcc83fdb7b512657930dd0ca39a2932713b54ff226e5b6d6d"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextScrollEngine.chunkIndex (cognitive 21): CoreTextScrollEngine.chunkIndex has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 4, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextScrollEngine.swift"},"region":{"startLine":1103}}}],"partialFingerprints":{"codehealthFindingId/v1":"364923d5abea50c9d5d0bc4cc868a9f9dfa2e2d2d86ced17db2fd6c969ec676f"}},{"ruleId":"D2","level":"warning","message":{"text":"DialogueHighlighter.dialogueRanges (cognitive 21): DialogueHighlighter.dialogueRanges has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 4, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/DialogueHighlighter.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"e883c201041c87c10048abefaf1021a2b3c4b21480b1d4d96993aaf70cb4ca27"}},{"ruleId":"D2","level":"warning","message":{"text":"RegexHighlightEngine.applyTextStyle (cognitive 21): RegexHighlightEngine.applyTextStyle has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/RegexHighlightEngine.swift"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"620e48ab9472bf61cea08ca6dbed7203f81561d7c44f1ba9ac11f82bc0dba15d"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderStyleCSSCodec.parseGradient (cognitive 21): ReaderStyleCSSCodec.parseGradient has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 6, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderStyleCSSCodec.swift"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"703bc44b510d5353cf72a4b8205829825625a20ea850a7c7e0b5e2607b7eac5e"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleListMapping.items (cognitive 21): RuleListMapping.items has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (14 pts), ternaries 2 (4 pts), boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/RuleListMapping.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"86df498c7ae6510c18c07b4a116e47f0f619213370e672bfbf3acb9e5d8a578f"}},{"ruleId":"D2","level":"warning","message":{"text":"ExploreHomeRoot.home (cognitive 21): ExploreHomeRoot.home has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (11 pts), ternaries 5 (7 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Explore/Home/ExploreHome.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d62cd2eaa61d0b50e5005482856c903230f23c613498ba8c45ffb0de190c9c5"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeSectionForm.body (cognitive 21): HomeSectionForm.body has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (16 pts), loops 1 (2 pts), boolean chains 1, match/switch 1, ternaries 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Explore/Home/HomeSectionForm.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d59e28df68e5b0c416d5cf4040c575df80ffff4b4144cffde56219fb4f4a14"}},{"ruleId":"D2","level":"warning","message":{"text":"LegadoRuleScope.isAssigned (cognitive 21): LegadoRuleScope.isAssigned has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 14, if/else 5 (7 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoRuleScope.swift"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"b92f08b8ee7f9c96e7f2f3796dd33de247c6b945ff1930c2da79bced258c06a7"}},{"ruleId":"D2","level":"warning","message":{"text":"ruleEngine.splitTrailingPutDirective (cognitive 21): ruleEngine.splitTrailingPutDirective has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 4, ternaries 1 (2 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"607a383dae6cf4dc35787cc6d02ed650c412bf08fa44fbb1a230a7e9296277c0"}},{"ruleId":"D2","level":"warning","message":{"text":"_replaceBrs (cognitive 21): _replaceBrs has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 3 (5 pts), boolean chains 3 (nesting depth added 10). None of this is in the body itself: all 21 points belong to one function literal inside it that branches (line 687). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/Readability.js"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"6da841e128fb784ee95a4605aaa77602c691960ad7bdbd0957b04c706ab0cd8c"}},{"ruleId":"D2","level":"warning","message":{"text":"parseTOCJSON (cognitive 21): parseTOCJSON has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 19, error handling 1, if/else 1. Most of this is not in the body itself: 3 of the 21 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 1227, 1242). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":1221}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe575d595ab6b2217f47827e5cde64634a0770dae48a178b1b1c3d6d95624e76"}},{"ruleId":"D2","level":"warning","message":{"text":"AIRelationshipGraph.init (cognitive 20): AIRelationshipGraph.init has cognitive complexity 20 (threshold 15). Drivers by points: loops 6 (12 pts), if/else 2 (7 pts), boolean chains 1 (nesting depth added 11). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIRelationshipGraph.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"26e13ed0b5325baeb46054ee9413392020c6ef3881ab4fda3b0e3468d554788f"}},{"ruleId":"D2","level":"warning","message":{"text":"AISelfAssessmentStreamParser.finish (cognitive 20): AISelfAssessmentStreamParser.finish has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 12, if/else 6 (7 pts), ternaries 1 (nesting depth added 1). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AISelfAssessment.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c9eba76417f0da5fb9506ef82d0b6ce1079fd49deba51fe2933f06d2439ab52"}},{"ruleId":"D2","level":"warning","message":{"text":"AITextCoordinates.mappedRange (cognitive 20): AITextCoordinates.mappedRange has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 16, if/else 4. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AISourceSnapshot.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3199ee178c298c0b4c0deebba47590ea5e75ac9bc4bdc0cdc357be5e59fe273"}},{"ruleId":"D2","level":"warning","message":{"text":"FixedPageCropBordersProcessor.createCropRect (cognitive 20): FixedPageCropBordersProcessor.createCropRect has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 6, loops 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/Comic/FixedPageCropBordersProcessor.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"e297ce0c6afc675029cd9d3501a045007ec44e573784d06233e3949dd841e53f"}},{"ruleId":"D2","level":"warning","message":{"text":"KF8Converter.anchor (cognitive 20): KF8Converter.anchor has cognitive complexity 20 (threshold 15). Drivers by points: loops 4 (7 pts), boolean chains 5, if/else 3 (5 pts), ternaries 1 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/MOBI/KF8Converter.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9b4e875d7aa5d8e692e88eb068a1510ba4e1fafa089be8f21368261fff89d28"}},{"ruleId":"D2","level":"warning","message":{"text":"MOBIFile.init (cognitive 20): MOBIFile.init has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 8, loops 1, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"Modules/Core/MOBI/MOBIFile.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f16df4c0a8b56a3185171767328fb22f211149759266f8d541795fb0f7aaff1"}},{"ruleId":"D2","level":"warning","message":{"text":"TXTChapterParser.decodeHTMLEntities (cognitive 20): TXTChapterParser.decodeHTMLEntities has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 8, if/else 4 (8 pts), loops 2 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TXT/TXTChapterParser.swift"},"region":{"startLine":1058}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bebf466a23ebeee9a241b8146083090f9ffe96838a2c58c655317965b169719"}},{"ruleId":"D2","level":"warning","message":{"text":"AIMemoryCardView.body (cognitive 20): AIMemoryCardView.body has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (15 pts), error handling 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/AI/AICharacterMemoryView.swift"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d728cf27b86f22d67e8383bea0304640b8021fd051e4241a6c5ac9365bae3ef"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkDetailView.workPage (cognitive 20): WorkDetailView.workPage has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 6, error handling 1, match/switch 1, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/WorkDetailView.swift"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"097e84ba04701ecd86db7bca03f4365061012da0ea361ca951397505d50ea401"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkDetailView.libraryActions (cognitive 20): WorkDetailView.libraryActions has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 8, ternaries 1 (3 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/WorkDetailView.swift"},"region":{"startLine":990}}}],"partialFingerprints":{"codehealthFindingId/v1":"95604ca34dba691feed057e9c9d380bf6d3390e5d17ac75565988c6823986286"}},{"ruleId":"D2","level":"warning","message":{"text":"BookGridCell.body (cognitive 20): BookGridCell.body has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (8 pts), ternaries 7 (8 pts), boolean chains 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"Modules/Features/Bookshelf/HomeView.swift"},"region":{"startLine":2171}}}],"partialFingerprints":{"codehealthFindingId/v1":"60ba6d2cc10cc2c0d49226079807b20b4152b58891a0ec36eea44244ee1590fd"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextCollectionScrollViewController.handleTap (cognitive 20): CoreTextCollectionScrollViewController.handleTap has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 7 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/CoreTextCollectionScrollViewController.swift"},"region":{"startLine":1465}}}],"partialFingerprints":{"codehealthFindingId/v1":"773985ec35dd9e5267720cc803f1024782a62a74e37e7478adfafff54f059803"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextCollectionScrollViewController.resolveVisibleViewport (cognitive 20): CoreTextCollectionScrollViewController.resolveVisibleViewport has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 7, if/else 5 (6 pts), ternaries 4 (6 pts), loops 1 (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":"Modules/Features/Reader/CoreTextCollectionScrollViewController.swift"},"region":{"startLine":2061}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e012e53d982239d5d506b48b10900bb79b12d6d9047d69fe08a95b9502e153c"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextCollectionScrollViewController.scrollViewDidScroll (cognitive 20): CoreTextCollectionScrollViewController.scrollViewDidScroll has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 11, if/else 9. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/CoreTextCollectionScrollViewController.swift"},"region":{"startLine":2281}}}],"partialFingerprints":{"codehealthFindingId/v1":"68598d3cc78b86c76c5cdf5b42e4376a0c619f47c3e4fc6204e1e701c0c6214b"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderChapterCommentDecorator.placements (cognitive 20): ReaderChapterCommentDecorator.placements has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 8, loops 2, ternaries 1 (nesting depth added 2). Of this number, 17 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. 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":"Modules/Features/Reader/ReaderChapterCommentDecorator.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6e7392afc721f3bcd4deb4e855c1fbfc08f7d6e0f7d1442d2689425670dad58"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderView.handleCoreTextPageChanged (cognitive 20): ReaderView.handleCoreTextPageChanged has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 1 (3 pts), boolean chains 2, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderView.swift"},"region":{"startLine":1179}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b36e37c402cd82a6a15dd3646a234ea9a0ebdda2c03fbffcc9199a63266a66f"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderView.applyInitialProgressIfNeeded (cognitive 20): ReaderView.applyInitialProgressIfNeeded has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 4, ternaries 1 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderView.swift"},"region":{"startLine":3413}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3631a8804a2caa722a13f4d490044b784004a16cc1d49fc19295dc08c456aa8"}},{"ruleId":"D2","level":"warning","message":{"text":"CalibreWirelessService.handle (cognitive 20): CalibreWirelessService.handle has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (10 pts), ternaries 2 (4 pts), boolean chains 3, loops 1 (2 pts), match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Calibre/CalibreWirelessService.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c637b483276942a47344f21937a7cafc7a38fc8733effad644cda7338a82066"}},{"ruleId":"D2","level":"warning","message":{"text":"SingleWriteHTTPExchange.requestBytes (cognitive 20): SingleWriteHTTPExchange.requestBytes has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10, boolean chains 7, loops 3. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Network/SingleWriteHTTPExchange.swift"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"796fbf03206d53a6d01de0c2e2b230e301dc586ed637c6572d1732008cfa03c6"}},{"ruleId":"D2","level":"warning","message":{"text":"SingleWriteHTTPExchange.decoded (cognitive 20): SingleWriteHTTPExchange.decoded has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 2 (7 pts), error handling 2 (4 pts), boolean chains 3, match/switch 1 (3 pts), if/else 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Network/SingleWriteHTTPExchange.swift"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"080c0c1ee2dea4e3c713c034fa9365e193423ce9fc3bc16506edebdb91cc4e6b"}},{"ruleId":"D2","level":"warning","message":{"text":"WebFetcher.buildRequest (cognitive 20): WebFetcher.buildRequest has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 5, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Network/WebFetcher.swift"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"93e3a2748bb34e2941ab29a47cc08e16bc1110000ca5fc04e9a2f2ced6ffa7ed"}},{"ruleId":"D2","level":"warning","message":{"text":"LegadoRSSScraper.parseArticles (cognitive 20): LegadoRSSScraper.parseArticles has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 3 (6 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/LegadoRSSScraper.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"03c31a30a51b710a0c0fbc033b2f2fbb15f3fcde5fc3bd497c220cfc421d5955"}},{"ruleId":"D2","level":"warning","message":{"text":"RSSFeedRefreshService.refreshEach (cognitive 20): RSSFeedRefreshService.refreshEach has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 4, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSFeedRefreshService.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7fcc96b912d66f1e228bb50d11bafba25354a29100c044ef0a2985947ccd247"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteLibraryHTTPClient.validContentRange (cognitive 20): RemoteLibraryHTTPClient.validContentRange has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 11, if/else 8 (9 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RemoteLibrary/RemoteLibraryHTTPClient.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"157c1452e585cc781013c05f7e0504efa9b4572d686bae11f1dd1ef3ce73bab9"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteLibraryWritingService.updateMetadata (cognitive 20): RemoteLibraryWritingService.updateMetadata has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 7, loops 1 (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":"Modules/Services/RemoteLibrary/RemoteLibraryWritingService.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfe3f39daff1719dfed9a3ff865c9e8e9e986bd301185107a0280b19b5eee2bc"}},{"ruleId":"D2","level":"warning","message":{"text":"QiThemeImportService.substituteMissingChapterTitleFonts (cognitive 20): QiThemeImportService.substituteMissingChapterTitleFonts has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 4 (6 pts), boolean chains 2 (nesting depth added 6). Of this number, 18 points are the body\u0027s own statements and 2 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":"Targets/Yuedu/SharedApp/QiThemeImportService.swift"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"091aceeb2c991b78fe5056781c8e007e0b319f5e97a4ec4818ad2afc5fa87eb0"}},{"ruleId":"D2","level":"warning","message":{"text":"HTMLStyledASTRenderableNodeConverter.mapChildren (cognitive 20): HTMLStyledASTRenderableNodeConverter.mapChildren has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (11 pts), ternaries 4 (5 pts), boolean chains 3, match/switch 1 (nesting depth added 4). Of this number, 19 points are the body\u0027s own statements and 1 belongs 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":"Modules/Core/ReaderCore/CoreText/HTMLStyledASTRenderableNodeConverter.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a193f3f9e587437d5331650e9d4c65eceae5f51a45b5d75e8451c7bcc78f0a7"}},{"ruleId":"D2","level":"warning","message":{"text":"NodeAttributedStringRenderer.applyInlineStyle (cognitive 20): NodeAttributedStringRenderer.applyInlineStyle has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 10, if/else 6, ternaries 3, match/switch 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift"},"region":{"startLine":1254}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25b32d4e752fed270afedc864dd58af5c2467f58691e7bbcd2013c47c669739"}},{"ruleId":"D2","level":"warning","message":{"text":"SVGWebViewRasterizer.resolveSVGSize (cognitive 20): SVGWebViewRasterizer.resolveSVGSize has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 6, ternaries 2 (4 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/SVGWebViewRasterizer.swift"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d78555900a8706c13e53ceb8375b7df71dd140eb7490e13dac0d43cd5d8c394"}},{"ruleId":"D2","level":"warning","message":{"text":"SVGWebViewRasterizer.beginCapture (cognitive 20): SVGWebViewRasterizer.beginCapture has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 11, if/else 6 (8 pts), ternaries 1 (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/SVGWebViewRasterizer.swift"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"97c68c11222b2d7c5c08fa92923bb8859c76253d98b8b0ddc76c4ed51faeae98"}},{"ruleId":"D2","level":"warning","message":{"text":"QiThemeImporter.extractArchive (cognitive 20): QiThemeImporter.extractArchive has cognitive complexity 20 (threshold 15). Drivers by points: error handling 5 (7 pts), if/else 4 (7 pts), ternaries 1 (3 pts), loops 2, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/QiThemeImporter.swift"},"region":{"startLine":1072}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bff51647eb403998aa599790b801df6c74473529266922b5ff63a5790154ba8"}},{"ruleId":"D2","level":"warning","message":{"text":"SVGValidation.validateYueduMarkers (cognitive 20): SVGValidation.validateYueduMarkers has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 5 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderBatterySVGTemplate.swift"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"01e92b039b4f3d48769bc68a65874a09e071c7fea4c6f95c6b1e97c4c12b25a7"}},{"ruleId":"D2","level":"warning","message":{"text":"JSONPathEvaluator.splitFilter (cognitive 20): JSONPathEvaluator.splitFilter has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 7, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JsonExtractor.swift"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"a88cab47fcaf31701c1d8ca7fd6e355fe2d76fa48eb69f47af75dabcad241059"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonExtractor.extractList (cognitive 20): JsonExtractor.extractList has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 3 (6 pts), ternaries 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JsonExtractor.swift"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"d828ff84f4ea44b526a3e26770e192b93b42899ebfaf61559aecdb4b8351b3c4"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeSectionCards.body (cognitive 20): HomeSectionCards.body has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (17 pts), match/switch 1 (2 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":"Modules/Features/Explore/Home/HomeSectionCards.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"b30c65794be833d5baea71baf5d8b00d9155f77f6467a80e37358f84c833907f"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleModuleManifestSections.body (cognitive 20): RuleModuleManifestSections.body has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15 (16 pts), boolean chains 3, match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Library/Modules/RuleModuleImportSheet.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e00dcfbcbdbad4e3051888b71adb68b4b68cab54306839c9a13dd57dfae9421"}},{"ruleId":"D2","level":"warning","message":{"text":"AnalyzeUrl.canonicalRequestURLString (cognitive 20): AnalyzeUrl.canonicalRequestURLString has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 7, loops 2 (3 pts), match/switch 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/URL/AnalyzeUrl.swift"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b36558f19b269ebb80e6282ec86575564912d976a77feb239232d8731026880"}},{"ruleId":"D2","level":"warning","message":{"text":"ruleEngine.extractValueByJsoupDefaultFromElements (cognitive 20): ruleEngine.extractValueByJsoupDefaultFromElements has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 7, loops 1 (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":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee185da8dc4621048ff4a101d1369e38f74f8854e9322ef9f4fc9b9ac9e0e83f"}},{"ruleId":"D2","level":"warning","message":{"text":"_fixRelativeUris (cognitive 20): _fixRelativeUris has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (12 pts), loops 1 (4 pts), boolean chains 3, error handling 1 (nesting depth added 6). None of this is in the body itself: all 20 points belong to 4 function items inside it that branch (a function literal at line 456, toAbsoluteURI, a function literal at line 492, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/Readability.js"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"511a1cfa59c739dc806c78c18e8ff1dac5c16dd99ca2ef091338b3d24eb5b449"}},{"ruleId":"D2","level":"warning","message":{"text":"_markDataTables (cognitive 20): _markDataTables has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 3, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/Readability.js"},"region":{"startLine":2277}}}],"partialFingerprints":{"codehealthFindingId/v1":"93cdc075697e8ed2dc4590e26b55b86487bbb138e425588c4ec5dfde5ae76540"}},{"ruleId":"D2","level":"warning","message":{"text":"evaluateRuleLike (cognitive 20): evaluateRuleLike has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 16, if/else 4. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7a38cc62932d01a8cba5736798cbe5932837386bc672674dfa56d6ea9556da6"}},{"ruleId":"D2","level":"warning","message":{"text":"parseTOC (cognitive 20): parseTOC has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 15, if/else 4 (5 pts) (nesting depth added 1). Most of this is not in the body itself: 6 of the 20 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 1183, 1201, 1198, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":1175}}}],"partialFingerprints":{"codehealthFindingId/v1":"709122deaed239c5bb84e9b05ba1d6170b7b483bde1ceb1122ceb9dd9cbd2870"}},{"ruleId":"D2","level":"warning","message":{"text":"BookSourceStore.importSources (cognitive 19): BookSourceStore.importSources has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (11 pts), ternaries 2 (5 pts), loops 2, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceStore.swift"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d45fb22c07486a5cc7a102766ac42a696033740b159eece7b09fdeecd46c335"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderHTMLUtilities.normalizeSingleQuotedJSON (cognitive 19): ReaderHTMLUtilities.normalizeSingleQuotedJSON has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 4, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/ReaderHTMLUtilities.swift"},"region":{"startLine":1658}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ea700ebb26895a89b1ec42da0744134995427c500ec7b365c940d39de299544"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleEngine.isJsoupDefaultRule (cognitive 19): RuleEngine.isJsoupDefaultRule has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 9, if/else 5 (9 pts), loops 1 (nesting depth added 4). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d32e6177a6b3e5caf00eff42fd6fc89e391c14603d848d922061283ab66cb39"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleEngine.splitJSONPath (cognitive 19): RuleEngine.splitJSONPath has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":1582}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c735dbf97ea0b72c7c4c107469d68b13909e02a3ef523ec901d54bc6ff4b9b3"}},{"ruleId":"D2","level":"warning","message":{"text":"DensityIndex.init (cognitive 19): DensityIndex.init has cognitive complexity 19 (threshold 15). Drivers by points: if/else 2 (7 pts), loops 2 (4 pts), boolean chains 3, ternaries 1 (3 pts), match/switch 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/WebNovelParser.swift"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7571400283bd357d4dd810da55d58125af626898f0eaee1b1b31b0f0e8e07d4"}},{"ruleId":"D2","level":"warning","message":{"text":"TTSVoiceCandidates.make (cognitive 19): TTSVoiceCandidates.make has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 4 (8 pts), loops 2 (5 pts), if/else 1 (4 pts), boolean chains 1, match/switch 1 (nesting depth added 10). 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":"Modules/Core/TTS/TTSAutoCast.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9238ada66bcd359bee0dd32155c511f54710987aff6650e8260a0a996ad46ad"}},{"ruleId":"D2","level":"warning","message":{"text":"TTSPronunciationAnnotator.hints (cognitive 19): TTSPronunciationAnnotator.hints has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 3 (6 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":"Modules/Core/TTS/TTSPronunciation.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"1994785a549f990953a77ecd722ae33bf5236c2b660a2ccc91d8208d9fad74db"}},{"ruleId":"D2","level":"warning","message":{"text":"ChangeSourceSearch.enrich (cognitive 19): ChangeSourceSearch.enrich has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 2, error handling 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/ChangeSource/ChangeSourceSearch.swift"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"5782288350e3f62c603eae7bb8f4ef745dc76678ec0002aa0339e272e8164e31"}},{"ruleId":"D2","level":"warning","message":{"text":"ChangeSourceSearch.firstLoadable (cognitive 19): ChangeSourceSearch.firstLoadable has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 3, loops 2, error handling 1, ternaries 1 (nesting depth added 5). Of this number, 12 points are the body\u0027s own statements and 7 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":"Modules/Features/ChangeSource/ChangeSourceSearch.swift"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec7537e41cc36f58965e7ee930c7c2cd25910ec24a3fb5b271a5e6de59f7ece4"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextCollectionScrollViewController.collectionView (cognitive 19): CoreTextCollectionScrollViewController.collectionView has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 6 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/CoreTextCollectionScrollViewController.swift"},"region":{"startLine":2174}}}],"partialFingerprints":{"codehealthFindingId/v1":"2835badc5503f3e20af0689055d21f454dd4d3f84b69ec6d3cb85db4d31f3136"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderView.startTTSChapter (cognitive 19): ReaderView.startTTSChapter has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 3, match/switch 1 (2 pts), ternaries 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderView\u002BSourceChange.swift"},"region":{"startLine":1034}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4c0c4cda3d874f50e841242ec91b4a66dc300b787f6bf8899ad663f4e8bc61a"}},{"ruleId":"D2","level":"warning","message":{"text":"TXTTocRuleEditView.refreshPreview (cognitive 19): TXTTocRuleEditView.refreshPreview has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (9 pts), error handling 3, match/switch 2 (3 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Settings/TXTTocRuleEditView.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"28f3fee2c931eb57739fc689d7205e43cf77ed04f0e344ae6d859ec842acce30"}},{"ruleId":"D2","level":"warning","message":{"text":"BookStore.refreshOnlineBookMetadata (cognitive 19): BookStore.refreshOnlineBookMetadata has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 3, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/BookStore.swift"},"region":{"startLine":2263}}}],"partialFingerprints":{"codehealthFindingId/v1":"72dae8892169bce09f749a068e56a3d4a5464eb7bc1cfcc368f37b8d7fc12972"}},{"ruleId":"D2","level":"warning","message":{"text":"BookStore.snapshotForSync (cognitive 19): BookStore.snapshotForSync has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 12, if/else 7. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/BookStore.swift"},"region":{"startLine":2882}}}],"partialFingerprints":{"codehealthFindingId/v1":"74b1ca2adcc5f03a695ccdfb8d005779b20e3bd2bdb88e8a61c4160255aba086"}},{"ruleId":"D2","level":"warning","message":{"text":"SingleWriteHTTPExchange.redirectRequest (cognitive 19): SingleWriteHTTPExchange.redirectRequest has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 11, if/else 4 (5 pts), loops 1 (3 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Network/SingleWriteHTTPExchange.swift"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"459447b93eb147d1e77a4adc2aafe862bed217df02f35a4a8c10ed011421db8e"}},{"ruleId":"D2","level":"warning","message":{"text":"DownloadLiveActivityController.flushPendingStates (cognitive 19): DownloadLiveActivityController.flushPendingStates has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 3, error handling 1 (3 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Offline/DownloadLiveActivityController.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"253a5afa2886152d99f96481bcafdb9d77560a08a4e0d6c81601a1ea8e286a8c"}},{"ruleId":"D2","level":"warning","message":{"text":"RSSXMLParserDelegate.parser (cognitive 19): RSSXMLParserDelegate.parser has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 5, ternaries 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSFetcher.swift"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"948926cf9158bb0a82f6ef6f8022f7e87ac2c66c4cde802070242f3a686e329c"}},{"ruleId":"D2","level":"warning","message":{"text":"AuthorShelf.adding (cognitive 19): AuthorShelf.adding has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 3, match/switch 1 (2 pts), boolean chains 1, ternaries 1 (nesting depth added 5). Of this number, 11 points are the body\u0027s own statements and 8 belong to 2 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/AuthorShelf.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"daee37a7648d46efd83095f98f4a4717cde3fbbf6284fac09bd84e0fb6deb2c8"}},{"ruleId":"D2","level":"warning","message":{"text":"ImportedMetadataCapture.classify (cognitive 19): ImportedMetadataCapture.classify has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 9 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/ImportedMetadataCapture.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3ba22b3ce89d6c72d9d65c1611299f79fc5691fc9562288cd846755013356da"}},{"ruleId":"D2","level":"warning","message":{"text":"RelatedWorks.byAuthorKinds (cognitive 19): RelatedWorks.byAuthorKinds has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 2, match/switch 1 (2 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/AuthorShelf.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"7985e33e0ca26fc0348a34476df9e45b5c07b33ffad077c47326ebfdb3ad79f9"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextChunk.stringIndex (cognitive 19): CoreTextChunk.stringIndex has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 3, ternaries 1 (2 pts), loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextChunk.swift"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"97edfcc67acf6ea316df181beb48d1613cc30844b07b936a21194482e8ea84a7"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextPageView.drawBoxBackgroundImage (cognitive 19): CoreTextPageView.drawBoxBackgroundImage has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (8 pts), loops 2 (7 pts), boolean chains 4 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":1260}}}],"partialFingerprints":{"codehealthFindingId/v1":"582a815f0bd3a54665f63e4bed55b22e8ede1dd0c7b2a60aab3f7669b1ad3823"}},{"ruleId":"D2","level":"warning","message":{"text":"EmbeddedTrueTypeFontIdentity.rename (cognitive 19): EmbeddedTrueTypeFontIdentity.rename has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 4, ternaries 1 (3 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/EmbeddedTrueTypeFontIdentity.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"f019e31cfa93d7d27c455dc5955df7709e3afa90a378d22e9f49859792d4bf80"}},{"ruleId":"D2","level":"warning","message":{"text":"HTMLAttributedStringBuilder.collectStyles (cognitive 19): HTMLAttributedStringBuilder.collectStyles has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (4 pts), ternaries 2, boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"725bbf8bf7512eb5a4875f77a46ab0b86e57f6231dfeebbc405178daab408e6a"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderDialogueSegmentation.segments (cognitive 19): ReaderDialogueSegmentation.segments has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 3, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ReaderDialogueSegmentation.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"1375211e292074b49f734f55d95f3940403ac67abeb099a0eb98f98560d6719b"}},{"ruleId":"D2","level":"warning","message":{"text":"ReviewBubbleLineFit.squeezableBlanks (cognitive 19): ReviewBubbleLineFit.squeezableBlanks has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ReviewBubbleLineFit.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef5c1912a766cc9f1be97cd6dd34c8925f6f368839f3d9b8cd4305dfef4c2d3"}},{"ruleId":"D2","level":"warning","message":{"text":"ModernRuleEngine.splitSourceRule (cognitive 19): ModernRuleEngine.splitSourceRule has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/ModernRuleEngine.swift"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"e29a5f85a0e5c7e3ca6bfa8b23388c36916d6e50be285786dd6a0901585bfeb4"}},{"ruleId":"D2","level":"warning","message":{"text":"XPathExtractor.splitUnion (cognitive 19): XPathExtractor.splitUnion has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 6, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/XPathExtractor.swift"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"71409b1b3ab1efa63e6f54271eb5c3d23aa09a8c3b5ccc428202d1e307eb7067"}},{"ruleId":"D2","level":"warning","message":{"text":"JSCoreEngine.configureContext (cognitive 19): JSCoreEngine.configureContext has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, boolean chains 5, ternaries 4. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/JSCoreEngine.swift"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c5417c47f43c7bafeac95ff088397fbfd957cca1d881c9b6ebef72befbf7fc1"}},{"ruleId":"D2","level":"warning","message":{"text":"LegadoJSBridge.runAjaxBatch (cognitive 19): LegadoJSBridge.runAjaxBatch has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 5, match/switch 2 (3 pts), loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift"},"region":{"startLine":1102}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaf0f354e7373f6f9ed5504863036584614e7876862313de4a69e3008ba8a976"}},{"ruleId":"D2","level":"warning","message":{"text":"AnalyzeUrl.toURLRequest (cognitive 19): AnalyzeUrl.toURLRequest has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 2, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/URL/AnalyzeUrl.swift"},"region":{"startLine":1326}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4d16b3c1fd195f71158344b849d863c09bc53e2eb37bc35396428ede897caff"}},{"ruleId":"D2","level":"warning","message":{"text":"Readability.Readability (cognitive 19): Readability.Readability has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 13, if/else 5 (6 pts) (nesting depth added 1). Of this number, 16 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/Readability.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5951122fc799b3ef57fda9a53568e3bfb6570ea4fc8afbac5c768faf7969934"}},{"ruleId":"D2","level":"warning","message":{"text":"legado-engine.getAttr (cognitive 19): legado-engine.getAttr has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 6, ternaries 2 (4 pts) (nesting depth added 3). Of this number, 17 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. 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":"Resources/Assets/legado-engine.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"50ea138464d59d0cf4729180958048c4ac2f3011456fe418cd44fb2ef89a6f66"}},{"ruleId":"D2","level":"warning","message":{"text":"index.auditTestFlightMembership (cognitive 19): index.auditTestFlightMembership has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (13 pts), error handling 1 (3 pts), loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"functions/src/index.ts"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"538833dfab96a50e3bd79f6521238594820997dd86c42cb12ccea3fdd4b69e4a"}},{"ruleId":"D2","level":"warning","message":{"text":"identityToolkit.signInWithIdp (cognitive 19): identityToolkit.signInWithIdp has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 5 (8 pts), if/else 6 (7 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/identityToolkit.ts"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f94c5698bbd3dac70e9195acc1a92a3c1d7d0facee0eaf7314ee85bfabfa8a3"}},{"ruleId":"D2","level":"warning","message":{"text":"feedback.feedbackRouter (cognitive 19): feedback.feedbackRouter has cognitive complexity 19 (threshold 15). Drivers by points: error handling 9, if/else 5 (6 pts), loops 1 (2 pts), ternaries 2 (nesting depth added 2). None of this is in the body itself: all 19 points belong to 10 function literals inside it that branch (lines 170, 230, 114, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/routes/feedback.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e0714a50ce3a73235f30036a3d14cd9ffb55a1c618e8134c33156c8e1176249"}},{"ruleId":"D2","level":"warning","message":{"text":"_getArticleTitle (cognitive 19): _getArticleTitle has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 3, error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/Readability.js"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aedace6b03b75f5474e58ae10a9d98f1640b893d2783689d5d5eb35d851d2d3"}},{"ruleId":"D2","level":"warning","message":{"text":"_cleanConditionally::(anonymous)::shouldRemoveNode (cognitive 19): _cleanConditionally::(anonymous)::shouldRemoveNode has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 10, if/else 9. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/Readability.js"},"region":{"startLine":2561}}}],"partialFingerprints":{"codehealthFindingId/v1":"29b97a90284a2e7c57955dc916b2bf97a8da30937b2d23d456a05fb290b08eb0"}},{"ruleId":"D2","level":"warning","message":{"text":"AIReadingEvidence.collect (cognitive 18): AIReadingEvidence.collect has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 8, if/else 5 (6 pts), ternaries 2 (4 pts) (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":"Modules/Core/AI/AIReadingEvidence.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"d019f34c627c7776b1a9d83dbe72b453fc3ecb3010c8d58611a40af777c78261"}},{"ruleId":"D2","level":"warning","message":{"text":"OnlineBookContentInference.kind (cognitive 18): OnlineBookContentInference.kind has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 3 (4 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSource.swift"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"9be300a53f752b9c3286054135717e6fa7366a2c394a3427345937c6b2c8382d"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleEngine.parseIndexExpression (cognitive 18): RuleEngine.parseIndexExpression has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 5, boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"48942b21352822b9913f93322da597221b126c647567a8804373656f8cd5fd88"}},{"ruleId":"D2","level":"warning","message":{"text":"TXTChapterParser.splittingOverlongChapters (cognitive 18): TXTChapterParser.splittingOverlongChapters has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TXT/TXTChapterParser.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c6b582a8bde4b270987536ceca18b9433bb0e3a29020c97b169cdf8c521f9b2"}},{"ruleId":"D2","level":"warning","message":{"text":"BookDetailIntroSection.body (cognitive 18): BookDetailIntroSection.body has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 5 (8 pts), boolean chains 5, if/else 5 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/BookDetailComponents.swift"},"region":{"startLine":1537}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0496a7e8368bd5ce3293306d889b24bf3c508ed381dce82979e6887459df6c1"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeView.shelfToolbar (cognitive 18): HomeView.shelfToolbar has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), ternaries 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Bookshelf/HomeView.swift"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f97e3580dfd631f78a3608cc2a286557b62629950a55510a55947ef465f700"}},{"ruleId":"D2","level":"warning","message":{"text":"Coordinator.handleInstantPan (cognitive 18): Coordinator.handleInstantPan has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9, boolean chains 5, ternaries 3 (4 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/CoreTextPagedView.swift"},"region":{"startLine":2540}}}],"partialFingerprints":{"codehealthFindingId/v1":"c63dc8f8c9ab518b28f1d949d1eb5a4f2eb920104f8a2fd4428e2776dce4834d"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderView.jumpToChapter (cognitive 18): ReaderView.jumpToChapter has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderView\u002BLogic.swift"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"e243a4ae71fc949a3b1430be06b8c88b842f907f186b5d719ec00d442cc2b002"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderView.followTTSPlaybackHighlight (cognitive 18): ReaderView.followTTSPlaybackHighlight has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, if/else 7 (8 pts), ternaries 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderView\u002BSourceChange.swift"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"b99e884cdcd01af55bb26c277db90743ffeda4fca6428a5a6a8cd8bbad04ce9f"}},{"ruleId":"D2","level":"warning","message":{"text":"BookSearchView.body (cognitive 18): BookSearchView.body has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, boolean chains 5, ternaries 3. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Search/BookSearchView.swift"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed6299c137750c85db45ca71957db06e0ea01c400026a149bcdbbeaef9ee6c17"}},{"ruleId":"D2","level":"warning","message":{"text":"BookStore.writeMetadata (cognitive 18): BookStore.writeMetadata has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 2, error handling 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/BookStore.swift"},"region":{"startLine":3295}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eb264e17acf3630ff88d31b47530a7fff70610601eb55e672cc78b4b3a67de8"}},{"ruleId":"D2","level":"warning","message":{"text":"ConvertedBookRegenerator.prepare (cognitive 18): ConvertedBookRegenerator.prepare has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 2, ternaries 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/ConvertedBookRegenerator.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"a08450ee2a47b595679bd6c738b36ddbf761df61fee78240dfd5f42d18ed2f82"}},{"ruleId":"D2","level":"warning","message":{"text":"HTMLTextExtractor.extractPreservingBlocks (cognitive 18): HTMLTextExtractor.extractPreservingBlocks has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/Models.swift"},"region":{"startLine":1359}}}],"partialFingerprints":{"codehealthFindingId/v1":"e135ab5cc0bcf5113d7896807eb70a0a6bc19d7963524bba134f6d95dfb000c0"}},{"ruleId":"D2","level":"warning","message":{"text":"ShelfWorkMerger.absorb (cognitive 18): ShelfWorkMerger.absorb has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 8, if/else 7 (8 pts), loops 2 (nesting depth added 1). 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":"Modules/Services/LibraryStore/ShelfWorkService.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"018e814187adc2be0d8cb4981f5892c053415994e02f1157493a6ae2b568f753"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteLibraryService.probe (cognitive 18): RemoteLibraryService.probe has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (7 pts), boolean chains 5, ternaries 4, match/switch 1 (2 pts) (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RemoteLibrary/RemoteLibraryService.swift"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8a928f9a1059b4d05499723de36941981b95814afca25dbe520d144f1d8995d"}},{"ruleId":"D2","level":"warning","message":{"text":"ChapterTitleMatch.number (cognitive 18): ChapterTitleMatch.number has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 3, loops 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/ChapterTitleMatch.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecc2c8db12608b86e0613c7d11fa3ebc5185a5d6a4887785c45731804ac86f0a"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserLayoutPageEngine.pageViewController (cognitive 18): BrowserLayoutPageEngine.pageViewController has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 3, match/switch 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageEngine.swift"},"region":{"startLine":1745}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc96ec2b086e3de98d3eda8403b5329ecc2117106bde8a460b7f13b9653310b1"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserLayoutPageEngine.makeScrollChapter (cognitive 18): BrowserLayoutPageEngine.makeScrollChapter has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 5, error handling 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageEngine.swift"},"region":{"startLine":2156}}}],"partialFingerprints":{"codehealthFindingId/v1":"c973c6932ad78b8d0510754c801dbfbe7138f301c86ae2ee11d716a36c237ec4"}},{"ruleId":"D2","level":"warning","message":{"text":"ChapterTitleDesignRenderer.compile (cognitive 18): ChapterTitleDesignRenderer.compile has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, if/else 5, ternaries 3, loops 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ChapterTitleDesignRenderer.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"f31dd825bac6857826cfcc37198e6c5c94f1017095a25ece5565fdbfdd746fc5"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextPaginator.explicitRenderableText (cognitive 18): CoreTextPaginator.explicitRenderableText has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 6, loops 2, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift"},"region":{"startLine":3645}}}],"partialFingerprints":{"codehealthFindingId/v1":"036861d127b91cbaeb2bb51997e0a64b3b786e7c0908248a251270659baad9b0"}},{"ruleId":"D2","level":"warning","message":{"text":"InteractionOverlayView.draw (cognitive 18): InteractionOverlayView.draw has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (11 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/InteractionOverlayView.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c04092292f66c1eb2897767902598deef77d15ebb843593ffc45e777e3178d9"}},{"ruleId":"D2","level":"warning","message":{"text":"NodeAttributedStringRenderer.resolvedImageMetrics (cognitive 18): NodeAttributedStringRenderer.resolvedImageMetrics has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 3, ternaries 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift"},"region":{"startLine":2572}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5022555ffa2f80cea55d3b4ca74719802d51bfacb8f8da4f0df6c21fa4a1cc9"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserScrollChapter.submit (cognitive 18): BrowserScrollChapter.submit has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (9 pts), error handling 3 (6 pts), boolean chains 2, match/switch 1 (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ReaderScrollItem.swift"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"301395ddf5fe864727a3f8b72b80d337be8f2b08c5ed21443af4872f3564eda9"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderTextEmphasis.applyMarks (cognitive 18): ReaderTextEmphasis.applyMarks has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 4, loops 2 (3 pts), ternaries 1 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ReaderTextEmphasis.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dcd1d22c581cfb17e5fab208aefcf751a4111c9f258107b7c5aafcba6890142"}},{"ruleId":"D2","level":"warning","message":{"text":"ReviewCardFullText.restoringCutComments (cognitive 18): ReviewCardFullText.restoringCutComments has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 7, loops 2, ternaries 1 (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":"Modules/Core/ReaderCore/CoreText/ReviewCardFullText.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ab92047cdbef824a0f56e9b350480d13a32ec0870787dab35bccb01b06f63a"}},{"ruleId":"D2","level":"warning","message":{"text":"QiThemeImporter.overlayLayout (cognitive 18): QiThemeImporter.overlayLayout has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 4, match/switch 1 (2 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/QiThemeImporter.swift"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"9917739ba216993f039ae0166a7148f13735f1d11a57ed9816555be3a73dc748"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderStyleCSSCodec.splitTopLevel (cognitive 18): ReaderStyleCSSCodec.splitTopLevel has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 3, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderStyleCSSCodec.swift"},"region":{"startLine":956}}}],"partialFingerprints":{"codehealthFindingId/v1":"7539b735b9245d75fc1b1e2851473b2856adc10341996c082ee0fa480919676c"}},{"ruleId":"D2","level":"warning","message":{"text":"JSONPathEvaluator.readBracketContent (cognitive 18): JSONPathEvaluator.readBracketContent has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 4, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JsonExtractor.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"525082ccffd47cbd30deb37f2dc9579e477808059895219a3d824bf3ff004aba"}},{"ruleId":"D2","level":"warning","message":{"text":"JSONPathEvaluator.parseBracket (cognitive 18): JSONPathEvaluator.parseBracket has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (8 pts), ternaries 4 (8 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JsonExtractor.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"e77820d9fe9df9f7bf49e0af4546bcda34e274629b1a17a70a9abd43e7fc9c20"}},{"ruleId":"D2","level":"warning","message":{"text":"ModernParserBridge.reviewSummaryIdentifiers (cognitive 18): ModernParserBridge.reviewSummaryIdentifiers has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 10, if/else 8. Of this number, 16 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"95772ddac46d491f9d4cbb69ad4470b4552f5ab0bc5beeb71a1dabb9d85927ed"}},{"ruleId":"D2","level":"warning","message":{"text":"ModernParserBridge.parseBookInfo (cognitive 18): ModernParserBridge.parseBookInfo has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 4, ternaries 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift"},"region":{"startLine":1255}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8ce731d0a98d02dbcf27961ec5fa09291700050638d89f91ad8d72d0a677b0b"}},{"ruleId":"D2","level":"warning","message":{"text":"ModernRuleEngine.evaluateElements (cognitive 18): ModernRuleEngine.evaluateElements has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (8 pts), ternaries 2 (5 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/ModernRuleEngine.swift"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c8b769d41be71a3d590d223b3ea98181e752af4e080109fea3e39ab8c5dd605"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextHorizontalLineDrawer.drawLines (cognitive 18): CoreTextHorizontalLineDrawer.drawLines has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 2, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextHorizontal/CoreTextHorizontalLineDrawer.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"67e3ac7cc6f9a4aba89b83346f8c533030c9c209706647d8a40d38aa579ce4de"}},{"ruleId":"D2","level":"warning","message":{"text":"JSCoreEngine.setResult (cognitive 18): JSCoreEngine.setResult has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 8, if/else 7 (8 pts), ternaries 1 (2 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/JSCoreEngine.swift"},"region":{"startLine":2129}}}],"partialFingerprints":{"codehealthFindingId/v1":"15125eca4f4e725a8ff6f6d1f855b57a0a6d2ffe325e97bf75bb6a9424e84021"}},{"ruleId":"D2","level":"warning","message":{"text":"JSCoreEngine.bindGlobals (cognitive 18): JSCoreEngine.bindGlobals has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 3, ternaries 1 (3 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/JSCoreEngine.swift"},"region":{"startLine":2230}}}],"partialFingerprints":{"codehealthFindingId/v1":"b07c5e55dd360d8c9cac5585ad470edc433598a72b85bbb5164219442f9f3e48"}},{"ruleId":"D2","level":"warning","message":{"text":"JSCoreEngine.extractString (cognitive 18): JSCoreEngine.extractString has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 8 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/JSCoreEngine.swift"},"region":{"startLine":2345}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dc3e822f7137d785d6b83533384aabf87e23e9104aac982c71a3ab584954ad6"}},{"ruleId":"D2","level":"warning","message":{"text":"StatementReader.readSwitchBody (cognitive 18): StatementReader.readSwitchBody has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoCompletionValue.swift"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a4f73cfdadfa4021c9da8a7d8042ba529c2bf8d87b754ae591fa67fec9e2f3b"}},{"ruleId":"D2","level":"warning","message":{"text":"LegadoJSBridge.htmlFormat (cognitive 18): LegadoJSBridge.htmlFormat has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift"},"region":{"startLine":2794}}}],"partialFingerprints":{"codehealthFindingId/v1":"552c69e127e086cc0255c3edd101857a5723e7ead076e0d19bb9e0e1cfa59e72"}},{"ruleId":"D2","level":"warning","message":{"text":"ruleEngine.extractValueByCss (cognitive 18): ruleEngine.extractValueByCss has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 4, error handling 1 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b009d91adb304a19ec9539cf4a20ec97a9e989a9973d617d170cca2f352394c"}},{"ruleId":"D2","level":"warning","message":{"text":"parseJsoupSegment (cognitive 18): parseJsoupSegment has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (12 pts), ternaries 2 (4 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c14a3de305b7af75ecf6f606cfa31e9ea539f53ee545f371dd3bf172fb82f38"}},{"ruleId":"D2","level":"warning","message":{"text":"BookSourceFetcher.fetchTOCPackage (cognitive 17): BookSourceFetcher.fetchTOCPackage has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, boolean chains 4, error handling 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceFetcher\u002BTOC.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2c8492b4d535650a57bf3111e2410520c0ce33238280f712bad25c360422adb"}},{"ruleId":"D2","level":"warning","message":{"text":"MangaChapterParser.attributeValue (cognitive 17): MangaChapterParser.attributeValue has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 7, if/else 4 (6 pts), loops 3 (4 pts) (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":"Modules/Core/Comic/MangaChapter.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"679ffe09a2dd36876c2fa8d48a77b19900b86b6a6ed114733879aa7b18e3fa5a"}},{"ruleId":"D2","level":"warning","message":{"text":"EPUBClockValueParser.seconds (cognitive 17): EPUBClockValueParser.seconds has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 5 (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":"Modules/Core/EPUB/EPUBMediaOverlay.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"e79a48822aada122d194e6a0acdd59b6c719f2f2437cd91fa30712a23a32e848"}},{"ruleId":"D2","level":"warning","message":{"text":"PalmDOCDecompressor.decompress (cognitive 17): PalmDOCDecompressor.decompress has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 2 (4 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/MOBI/PalmDOCDecompressor.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bb052c11226b1445b7e48c26c4ca60a18331acd2dc2124fccfe5a4271d623ce"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleEngine.extractValueByJsoupDefault (cognitive 17): RuleEngine.extractValueByJsoupDefault has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 1, loops 1, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (RuleEngine.extractValueByJsoupDefault) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e7c35a4966b064985a7b3b5ba3c7de50784954e75bf13d97f9a9e5bc3d6d3b"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleEngine.extractValueByJsoupDefault (cognitive 17): RuleEngine.extractValueByJsoupDefault has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 1, loops 1, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (RuleEngine.extractValueByJsoupDefault) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b49bf64e84578e3ae0dc098958af3eaf5f91f376daa156ffdfcd6105acbdfa7"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleEngine.extractContentValue (cognitive 17): RuleEngine.extractContentValue has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 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":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"15c4e53a20893ab9ab719bf7e521795682b3612215b27c6d9da529e6ad026018"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleEngine.extractJSONValue (cognitive 17): RuleEngine.extractJSONValue has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 6, ternaries 1 (2 pts) (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":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":1432}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e3566ebf6bc58378e57ac9d040cda48d823a951d03262e3a4d2f501e1bdb5f5"}},{"ruleId":"D2","level":"warning","message":{"text":"WebNovelParser.extractNextPageURL (cognitive 17): WebNovelParser.extractNextPageURL has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 6, loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/WebNovelParser.swift"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb02fb2b566fc39e5866f22e58139f3d9b089722682302d0de8cbf8519ca43bf"}},{"ruleId":"D2","level":"warning","message":{"text":"TTSChunkDecoder.fileTypeHint (cognitive 17): TTSChunkDecoder.fileTypeHint has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 12, if/else 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/TTSChunkDecoder.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ac2127af851e699e56e1a05b825ee85f60c9a785800808ceae599434e3ba4e7"}},{"ruleId":"D2","level":"warning","message":{"text":"TXTChapterParser.parseChapterIndexes (cognitive 17): TXTChapterParser.parseChapterIndexes has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 1 (3 pts), loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (TXTChapterParser.parseMappedChapterIndexes) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TXT/TXTChapterParser.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a52a04708d49bad199b9ae6b265b208425ea22ed3486b7d9d63cb64cd5a9dd"}},{"ruleId":"D2","level":"warning","message":{"text":"TXTChapterParser.parseMappedChapterIndexes (cognitive 17): TXTChapterParser.parseMappedChapterIndexes has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 1 (3 pts), loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (TXTChapterParser.parseChapterIndexes) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TXT/TXTChapterParser.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"2639b4ed33346786720ea50dc7e0af48365135627a47ea6a885b4c6879de6588"}},{"ruleId":"D2","level":"warning","message":{"text":"TXTLocationMigration.anchor (cognitive 17): TXTLocationMigration.anchor has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 5, loops 1 (2 pts), ternaries 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TXT/TXTLocationMigration.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7db26d5ec4f6caddd3f21838d979042313c3ac77002432a94ecec08d141fd2f"}},{"ruleId":"D2","level":"warning","message":{"text":"AICharacterMemoryView.body (cognitive 17): AICharacterMemoryView.body has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (11 pts), error handling 3, ternaries 2, boolean chains 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/AI/AICharacterMemoryView.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"5079caa6763d0dd98ab76ae8c6510492f837e4245d0eb0c73e02250bf01d332c"}},{"ruleId":"D2","level":"warning","message":{"text":"FixedPageReaderViewController.prefetchAroundChapters (cognitive 17): FixedPageReaderViewController.prefetchAroundChapters has cognitive complexity 17 (threshold 15). Drivers by points: error handling 2 (6 pts), boolean chains 4, loops 2 (4 pts), if/else 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/FixedPageReader/FixedPageReaderViewController.swift"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"147f31565df21f187a504e96bfac6d9893d5d56667b8a1e80609a70a9fa3f740"}},{"ruleId":"D2","level":"warning","message":{"text":"ChapterTitleInspectorView.contentSection (cognitive 17): ChapterTitleInspectorView.contentSection has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (17 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ChapterTitleInspectorView.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"336596efeb910a34d52ba12cb2a18961501ae09b5bdeb4840d924f36e8cd226b"}},{"ruleId":"D2","level":"warning","message":{"text":"Coordinator.bindEngineCallbacks (cognitive 17): Coordinator.bindEngineCallbacks has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/CoreTextPagedView.swift"},"region":{"startLine":1240}}}],"partialFingerprints":{"codehealthFindingId/v1":"0459ff8d69999f34e9b470b4ffed10e3af3abf935413ef6a876ed6e3d482456a"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderBarRenderer.measure (cognitive 17): ReaderBarRenderer.measure has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 pts), boolean chains 5, match/switch 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderBarRenderer.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce9160e648405e3d303799b0b6f232eee83aa83eeb4ca76a344830eba023a45a"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderCardTransitionAnimator.forceSettleStalledTransition (cognitive 17): ReaderCardTransitionAnimator.forceSettleStalledTransition has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 3, loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderCardTransitionAnimator.swift"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ee70a7fe55ace07548304777a7634271d19e50e9a23285c138bf41123669b68"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderView.gatherAIBookText (cognitive 17): ReaderView.gatherAIBookText has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 9, if/else 4 (5 pts), error handling 2, loops 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderView\u002BSourceChange.swift"},"region":{"startLine":1641}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a34574102ab7fbf54f13116c9e5b48bac38efe821be8cae88933482ef6559e3"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderViewModel.ensureChapterReady (cognitive 17): ReaderViewModel.ensureChapterReady has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderViewModel.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"87d8600ac33322e052efea19f580d07fa878709f16ec9d5a4b4c1461f2df4373"}},{"ruleId":"D2","level":"warning","message":{"text":"DownloadManagementView.activeDownloadsSection (cognitive 17): DownloadManagementView.activeDownloadsSection has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 3 (8 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Settings/DownloadManagementView.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f1a5ed8a37a68e0c7b49797a41d7daa75e6c679cbdf5250775bc4897f6fb023"}},{"ruleId":"D2","level":"warning","message":{"text":"AIRecommendationService.cover (cognitive 17): AIRecommendationService.cover has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 pts), error handling 1 (2 pts), loops 1, ternaries 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":"Modules/Services/AI/AIRecommendationService.swift"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"40908afff71aa1e5081e5456715234b18b80b8ec6a02504f965985ab62efeb73"}},{"ruleId":"D2","level":"warning","message":{"text":"BookStore.importLocalAudiobook (cognitive 17): BookStore.importLocalAudiobook has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 3 (5 pts), boolean chains 2, error handling 1 (nesting depth added 6). Of this number, 16 points are the body\u0027s own statements and 1 belongs 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":"Modules/Services/LibraryStore/BookStore.swift"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"37f932615af8b93e614797402403462fd5ba271255ef02cc31209b13786f04a9"}},{"ruleId":"D2","level":"warning","message":{"text":"OPDSBrowseModel.load (cognitive 17): OPDSBrowseModel.load has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 2, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/OPDS/OPDSBrowseModel.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"291f13ade3037eae2b0bf8cf0ab837eec956f9443d65f4e61fb397d6381b6c18"}},{"ruleId":"D2","level":"warning","message":{"text":"ChapterCacheRepository.loadChapterPackageSync (cognitive 17): ChapterCacheRepository.loadChapterPackageSync has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 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":"Modules/Services/Online/ChapterCacheRepository.swift"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"25a90203c1968663f9c564f9455327e20750fcb8c249a2d08f7e655c2a4f4a43"}},{"ruleId":"D2","level":"warning","message":{"text":"ChapterFetcher.buildRenderableNormalizedHTML (cognitive 17): ChapterFetcher.buildRenderableNormalizedHTML has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (7 pts), error handling 4, boolean chains 3, ternaries 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/ChapterFetcher.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"b07c3a1de257871b6375e2fc628e9f440c743e0931d96a25496b1de4d24252c3"}},{"ruleId":"D2","level":"warning","message":{"text":"AtomXMLParserDelegate.parser (cognitive 17): AtomXMLParserDelegate.parser has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 5 (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":"Modules/Services/RSS/RSSFetcher.swift"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"259b484580653c78831978a2052ade6d56eb7ba6c236d38c69925564532f42db"}},{"ruleId":"D2","level":"warning","message":{"text":"AtomXMLParserDelegate.parser (cognitive 17): AtomXMLParserDelegate.parser has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSFetcher.swift"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b6a65b7b70f4384650ceca4a6caca36c62fc63359072d14e627cbff197d8496"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteLibraryWritingService.upload (cognitive 17): RemoteLibraryWritingService.upload has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 2, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RemoteLibrary/RemoteLibraryWritingService.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2672b70e20ccdcde3f89390ac93636d8845ee22b226687e85f1b00061d0892f"}},{"ruleId":"D2","level":"warning","message":{"text":"ModuleReviewProvider.records (cognitive 17): ModuleReviewProvider.records has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 8 (nesting depth added 3). Of this number, 16 points are the body\u0027s own statements and 1 belongs 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":"Modules/Services/RuleModules/ModuleReviewProvider.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e017c423696629c5d132a0c45540561cf60f6a8f1ceca5deb58fee0fe84260"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleModuleRepositoryModel.install (cognitive 17): RuleModuleRepositoryModel.install has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (11 pts), error handling 1 (2 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/RuleModuleRepository.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9780b9ae4d4e247af60f0276d646894805d1966d0e3ac722f1e49b226173209"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleModuleValidator.validateStore (cognitive 17): RuleModuleValidator.validateStore has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/RuleModuleValidator.swift"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"c484addef3443a23679264fc32019c1d17e2cd335b844a09d877e88a337f7a74"}},{"ruleId":"D2","level":"warning","message":{"text":"SubscriptionStore.refreshEntitlements (cognitive 17): SubscriptionStore.refreshEntitlements has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 1, ternaries 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":"Modules/Services/Subscription/SubscriptionStore.swift"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"773182341dbf1a378a25c5708fbf989a89da5d3df8ed7462ba35c80f05eaf91a"}},{"ruleId":"D2","level":"warning","message":{"text":"HomePageStore.load (cognitive 17): HomePageStore.load has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 3, error handling 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/HomePageStore.swift"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d84c0662a6b6deebf1ac8f35b0d05e9e299341fd0491b68ed9c8f26b43f83ec"}},{"ruleId":"D2","level":"warning","message":{"text":"RelatedWorks.byAuthors (cognitive 17): RelatedWorks.byAuthors has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 3, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/AuthorWorks.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f8dfa0a45150354352e4441e2e511976936f11f51806e3b63dfebd49c4a743f"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentView.rootTabItemLabel (cognitive 17): ContentView.rootTabItemLabel has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), ternaries 3 (7 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/ContentView.swift"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"e349c984a864762a1585dd479d387802726c66044f73a3710bb7d58b883cb627"}},{"ruleId":"D2","level":"warning","message":{"text":"GlobalSettings.restoreBundleOwnLook (cognitive 17): GlobalSettings.restoreBundleOwnLook has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 3, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/GlobalSettings.swift"},"region":{"startLine":3724}}}],"partialFingerprints":{"codehealthFindingId/v1":"faa526152a339d26c1e977ea3066e092be1702c8004635312a7304730ee9d8bd"}},{"ruleId":"D2","level":"warning","message":{"text":"QiThemeImportService.apply (cognitive 17): QiThemeImportService.apply has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 3, error handling 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/QiThemeImportService.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"43fbc95eabbbda971055a27fadf859731126b46561fdcd4b3dbad4dba9dd494a"}},{"ruleId":"D2","level":"warning","message":{"text":"CSSValueTokens.split (cognitive 17): CSSValueTokens.split has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CSSPropertyApplier.swift"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fbf998310d1646c2843bc30f152e9605145a5e2fa94a3a7a1202da19370fcfe"}},{"ruleId":"D2","level":"warning","message":{"text":"ChapterDocumentStore.document (cognitive 17): ChapterDocumentStore.document has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 5, ternaries 2, error handling 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ChapterDocument.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0d28bd63b92892d99f3541c869ff359ad45315de3aadbcbb6c524bd821ed346"}},{"ruleId":"D2","level":"warning","message":{"text":"CommentBubbleSVGRecognizer.recognizeUncached (cognitive 17): CommentBubbleSVGRecognizer.recognizeUncached has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 3, ternaries 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ad08e146ed7e2cd6f439dd385c71a67918ef3c3edd1aec7c7cc9d56d31957d7"}},{"ruleId":"D2","level":"warning","message":{"text":"CommentBubbleSVGRecognizer.declaredFont (cognitive 17): CommentBubbleSVGRecognizer.declaredFont has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 4 (10 pts), if/else 2 (4 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift"},"region":{"startLine":1460}}}],"partialFingerprints":{"codehealthFindingId/v1":"031d652b0dd84289400a52ae48cf194b74fa3481e1459793291f9c207407249f"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextChunkSlicer.sliceVertical (cognitive 17): CoreTextChunkSlicer.sliceVertical has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), boolean chains 3, ternaries 1 (3 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextChunkSlicer.swift"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"d48e145b8b4fc5303d759344ad16baac7026b6ea64d03c4d3a08059e20a46940"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextPaginator.logLayoutFormatProbe (cognitive 17): CoreTextPaginator.logLayoutFormatProbe has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (6 pts), ternaries 2 (5 pts), boolean chains 4, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift"},"region":{"startLine":1485}}}],"partialFingerprints":{"codehealthFindingId/v1":"513567e13985b682527e1a5b89fc244840c75297d74cc6131e1c4b35872c83d1"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextPaginator.markCombinedUprightCells (cognitive 17): CoreTextPaginator.markCombinedUprightCells has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 2, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift"},"region":{"startLine":2091}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e1ebf6cfba2536f812478cea70b0116610c6de9ad18896f7781209f4ca696cf"}},{"ruleId":"D2","level":"warning","message":{"text":"ElementNode.rubySegments (cognitive 17): ElementNode.rubySegments has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/HTMLStyledASTRenderableNodeConverter.swift"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccccbc00e2f05ed3a4426c9a7a265a96cd6ccd3f050f886bb4c4d0b38e40e0dd"}},{"ruleId":"D2","level":"warning","message":{"text":"NodeAttributedStringRenderer.relaxParagraphsContainingTallRuns (cognitive 17): NodeAttributedStringRenderer.relaxParagraphsContainingTallRuns has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift"},"region":{"startLine":2233}}}],"partialFingerprints":{"codehealthFindingId/v1":"5824bab04efc7aaf38bf885e3967fac0343a0c9db3b1cf616d382b4415de0524"}},{"ruleId":"D2","level":"warning","message":{"text":"OnlineChapterTitleDeduplicator.titleUpdate (cognitive 17): OnlineChapterTitleDeduplicator.titleUpdate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 2 (3 pts) (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/OnlineProviderAttributedStringBuilder.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ad8868128d16ca714f507413564e34074dbc7f364e3c55947d6bbb9830be679"}},{"ruleId":"D2","level":"warning","message":{"text":"ReviewCardContent.extract (cognitive 17): ReviewCardContent.extract has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 4, loops 1 (2 pts), ternaries 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ReviewCardContent.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"fceb6f69e32a0517b3e12c2aaeefb3d0063669cd1174662806c490b626d92054"}},{"ruleId":"D2","level":"warning","message":{"text":"ReviewCardTemplate.serialize (cognitive 17): ReviewCardTemplate.serialize has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 2 (4 pts), boolean chains 3, match/switch 1 (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ReviewCardTemplate.swift"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5ea5b61dc4b6fce6bb74b4dfdc0ead3fce027d62d6e53f51dcbf2c955cece8e"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderBatterySVGRasterRequestValidator.validate (cognitive 17): ReaderBatterySVGRasterRequestValidator.validate has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 14, if/else 3. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/SVGWebViewRasterizer.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b7074527eeb01f2d38cc5e3715202f1848dc37266212470e91eac5bc0c33671"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderStyleAssetStore.prepareImage (cognitive 17): ReaderStyleAssetStore.prepareImage has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, boolean chains 7, ternaries 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderStyleAssetStore.swift"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"a84654a8bb1544f9d415250b02bde655e05a6dd6936639748700cd9730ee879a"}},{"ruleId":"D2","level":"warning","message":{"text":"ReedenThemeImporter.appendUnmappedAppearanceNotes (cognitive 17): ReedenThemeImporter.appendUnmappedAppearanceNotes has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, boolean chains 8. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReedenThemeImporter.swift"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c3e81d4094138857471b94ea5ad90030a40fc2e6fc61c1db81f1a1cdb4b6d8"}},{"ruleId":"D2","level":"warning","message":{"text":"JSONPathEvaluator.parseQuotedKeys (cognitive 17): JSONPathEvaluator.parseQuotedKeys has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 2 (4 pts), boolean chains 3 (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":"Modules/Core/RuleEngine/ModernParser/JsonExtractor.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"32be23974d565df86c956a933b9ebf659063859c85ada8b6d122ca9ee6d204ef"}},{"ruleId":"D2","level":"warning","message":{"text":"JsoupDefaultExtractor.getStringList (cognitive 17): JsoupDefaultExtractor.getStringList has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 3 (4 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JsoupDefaultExtractor.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"14fd35f7c8c671605c21aeaa819820edac9d395a557a1b72a645d5376c81406c"}},{"ruleId":"D2","level":"warning","message":{"text":"ModernRuleEngine.extractJsoupElements (cognitive 17): ModernRuleEngine.extractJsoupElements has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 1 (3 pts), error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/ModernRuleEngine.swift"},"region":{"startLine":1091}}}],"partialFingerprints":{"codehealthFindingId/v1":"425909b62b4fdb701c22cfac4b7d9dc1f60fbe4021338ae005157cce8b0b611b"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleAnalyzer.chompRuleBalanced (cognitive 17): RuleAnalyzer.chompRuleBalanced has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 3, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/RuleAnalyzer.swift"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"be4a0086a4b719852b55bf77feead538ca327fa11b673177b13c50af10d7d0b2"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeListCardPage.body (cognitive 17): HomeListCardPage.body has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 3, ternaries 1 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Explore/Home/HomeSectionForm.swift"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0cdd06e057d7e44c9ff2203499bd9cf3c365faaa1339238ed3f4d119881c9c9"}},{"ruleId":"D2","level":"warning","message":{"text":"FixedPageWebtoonViewController.scrollViewDidScroll (cognitive 17): FixedPageWebtoonViewController.scrollViewDidScroll has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 5 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/FixedPageReader/Webtoon/FixedPageWebtoonViewController.swift"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"32c5cf97f8abcedb104efc2fd005c32de2a513703c7a3bd0e732a0a28a45f881"}},{"ruleId":"D2","level":"warning","message":{"text":"LegadoRhinoNormalizer.functionBodyBraces (cognitive 17): LegadoRhinoNormalizer.functionBodyBraces has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 5, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoRhinoNormalizer.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd0ad8fdeb7e85ffb7a9a444410a5b158ac31bc9e90e908b192d2a63a92bcc85"}},{"ruleId":"D2","level":"warning","message":{"text":"LegadoRuleScope.destructuredTargets (cognitive 17): LegadoRuleScope.destructuredTargets has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 7, if/else 4 (6 pts), ternaries 2 (3 pts), loops 1 (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":"Modules/Core/RuleEngine/ModernParser/JS/LegadoRuleScope.swift"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bd4b194eb72048db0e62466b9fc8dc705ad65ed6d50e857543296ed3f1ec9c7"}},{"ruleId":"D2","level":"warning","message":{"text":"AnalyzeUrl.encodeParams (cognitive 17): AnalyzeUrl.encodeParams has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 3, ternaries 1 (2 pts), loops 1 (nesting depth added 4). Of this number, 12 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":"Modules/Core/RuleEngine/ModernParser/URL/AnalyzeUrl.swift"},"region":{"startLine":1154}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e312a638a12e5a9a777cf25b5a58cb71e80c567c14ae199c863e2c8509215b0"}},{"ruleId":"D2","level":"warning","message":{"text":"HTMLParser.swift.decodeHTMLEntities (cognitive 17): HTMLParser.swift.decodeHTMLEntities has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/HTMLParser.swift"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"15ecd3fe909647c1878ddd7479b7b165588f8b42ee4589d841833a6a0335e394"}},{"ruleId":"D2","level":"warning","message":{"text":"reauth.verifyReauthentication (cognitive 17): reauth.verifyReauthentication has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 3, ternaries 1 (2 pts), match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/reauth.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d3afef201186ec81fb96045b06736f3d0f5f5af8a177c0282e9749c08d5f0d4"}},{"ruleId":"D2","level":"warning","message":{"text":"AIWordLookup.context (cognitive 16): AIWordLookup.context has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIWordLookup.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"c55ba5995d28492aebb6f17d133b8af72b42b8282c472fd360a7892969e46626"}},{"ruleId":"D2","level":"warning","message":{"text":"OnlineBookContentInference.kind (cognitive 16): OnlineBookContentInference.kind has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSource.swift"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"65a7804f9246618c7c7ac443130553489961d25d856cd80ba23ee6fdf4a67ff2"}},{"ruleId":"D2","level":"warning","message":{"text":"SourceAPIErrorLog.chapterErrorEnvelopeMessage (cognitive 16): SourceAPIErrorLog.chapterErrorEnvelopeMessage has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 8. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/SourceAPIErrorLog.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"2042f2fe3f0fdb8b3a1412b0cf8240d3d85e688e02f23aa13d406f1f8930a6ae"}},{"ruleId":"D2","level":"warning","message":{"text":"MOBIEPUBWriter.packageDocument (cognitive 16): MOBIEPUBWriter.packageDocument has cognitive complexity 16 (threshold 15). Drivers by points: loops 6, if/else 3 (4 pts), ternaries 3 (4 pts), boolean chains 2 (nesting depth added 2). 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":"Modules/Core/MOBI/MOBIEPUBWriter.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"95c0bd7adcfd9b56f110e2239227566d97ed5714da062db7573b0228af676425"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderHTMLUtilities.normalizeQidianGodReviewImage (cognitive 16): ReaderHTMLUtilities.normalizeQidianGodReviewImage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, boolean chains 7, loops 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/ReaderHTMLUtilities.swift"},"region":{"startLine":1538}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc291b34cae58d91d353b211e1b02f89687e076a87efefee0ddfd45ea5f5929d"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderHTMLUtilities.splitLegadoArguments (cognitive 16): ReaderHTMLUtilities.splitLegadoArguments has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/ReaderHTMLUtilities.swift"},"region":{"startLine":2083}}}],"partialFingerprints":{"codehealthFindingId/v1":"b71ca1b84e02bed565c8e3247fa041cd52c711ac0c88398b4bf5eabf98e05f58"}},{"ruleId":"D2","level":"warning","message":{"text":"JSONFileReadingPositionStore.applySyncItems (cognitive 16): JSONFileReadingPositionStore.applySyncItems has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (10 pts), error handling 2 (5 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/ReadingPositionStore.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"c635b3effccf4d7e9b785ae5cbb695ab01b9280b502d3366512b112209cebb07"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleEngine.applyXPathStep (cognitive 16): RuleEngine.applyXPathStep has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 3, match/switch 1 (3 pts), loops 1, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":1204}}}],"partialFingerprints":{"codehealthFindingId/v1":"efeed0c3aa0792737a58dbde115e857c6205b270b5e7f9398dc34d7585923815"}},{"ruleId":"D2","level":"warning","message":{"text":"AudiobookPlayer.loadCurrentChapter (cognitive 16): AudiobookPlayer.loadCurrentChapter has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 4, error handling 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/AudiobookPlayer.swift"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"669113849b01bbbe241c68e9f82dedc1ba0f6a7b2de485d082edc3a5e5fd6ebf"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPTTSEngine.downloadChunk (cognitive 16): HTTPTTSEngine.downloadChunk has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 3, error handling 1 (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":"Modules/Core/TTS/HTTPTTSEngine.swift"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"c047ef5d640cda074bfcb6524513a848e7ee212c5318117c545f2320370847c9"}},{"ruleId":"D2","level":"warning","message":{"text":"Result.paragraphs (cognitive 16): Result.paragraphs has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (4 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TXT/AozoraMarkupParser.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"2359e3b7c385fa7226c3ff24f466b7f45bf33fc8bf83d9925a8103a8916c7437"}},{"ruleId":"D2","level":"warning","message":{"text":"OnlineBookView.openReader (cognitive 16): OnlineBookView.openReader has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, boolean chains 7. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/OnlineBookView.swift"},"region":{"startLine":1085}}}],"partialFingerprints":{"codehealthFindingId/v1":"1319677278aa3f7482efe5af1f8d411953a496c2af128be3e66ea37d93ca0c17"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeView.openBook (cognitive 16): HomeView.openBook has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Bookshelf/HomeView.swift"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5045368a76c8a35c9c832ff2d45c0804338855506ff1cdeaf220d58745a8a6d"}},{"ruleId":"D2","level":"warning","message":{"text":"RSSSmartFeedView.body (cognitive 16): RSSSmartFeedView.body has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 4 (12 pts), if/else 3 (4 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/RSS/RSSFeedView.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"44f8a62020995bfc83669b9fcd49de13f9a06a20d581c695915a1040ffdadd9a"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserChapterBackdropView.showPages (cognitive 16): BrowserChapterBackdropView.showPages has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/BrowserChapterBackdropView.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"aae763860c7ef6b56fffb849302004a4259c0ace286e02ee0844f2e79559a138"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextCollectionScrollViewController.handleLongPress (cognitive 16): CoreTextCollectionScrollViewController.handleLongPress has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 6, match/switch 1 (nesting depth added 4). 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":"Modules/Features/Reader/CoreTextCollectionScrollViewController.swift"},"region":{"startLine":1611}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d7f4580221252c657bff20cdd36e915999c1a6079ab1d7f62b53c7dbd71cfe0"}},{"ruleId":"D2","level":"warning","message":{"text":"EPUBBackgroundAudioCoordinator.parseBackgroundAudio (cognitive 16): EPUBBackgroundAudioCoordinator.parseBackgroundAudio has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 6, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/EPUBBackgroundAudioCoordinator.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"a48bf6f88e5998694ee778eabecc0bbba8ff1eda891d171c15c7e9a81d08fae4"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderBookSearchMatcher.ranges (cognitive 16): ReaderBookSearchMatcher.ranges has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 4, loops 1 (2 pts), error handling 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderBookSearchMatcher.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce0f1043c9636e7786feff759cb03912c336f6183ecfd3f7ab9680ca0d05b4bc"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderSettingsView.fontSelector (cognitive 16): ReaderSettingsView.fontSelector has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 4 (7 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderSettingsView.swift"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"387e26a56a7d196586505c8df71a9806617c23d929b07d5f0bce7d5fd4435a29"}},{"ruleId":"D2","level":"warning","message":{"text":"ReadingStatsView.dailyMinutes (cognitive 16): ReadingStatsView.dailyMinutes has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (6 pts), ternaries 2 (4 pts), boolean chains 3, loops 1 (2 pts), match/switch 1 (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Stats/ReadingStatsView.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"85fb3fb5a5f7a0a38b24588a363b61f558875d302b365afc126fed6659dc3112"}},{"ruleId":"D2","level":"warning","message":{"text":"AIBookshelfOrganizerModel.start (cognitive 16): AIBookshelfOrganizerModel.start has cognitive complexity 16 (threshold 15). Drivers by points: error handling 3 (5 pts), if/else 2 (5 pts), loops 2 (5 pts), match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/AI/AIBookshelfOrganizerModel.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"743ed17ecf7873908b34e9d02878664f992177ce247f465e5c527088dcfa62fa"}},{"ruleId":"D2","level":"warning","message":{"text":"ShelfWorkService.add (cognitive 16): ShelfWorkService.add has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 5, ternaries 1 (3 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/ShelfWorkService.swift"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"f66c8d16913f01eb76d35ed7216577f873bd5a17aefd68847996a3766adc2acf"}},{"ruleId":"D2","level":"warning","message":{"text":"Mapper.applyFeedLink (cognitive 16): Mapper.applyFeedLink has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/OPDS/OPDS2FeedParser.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"83617b09a8ad065d32c917fdb611419f97a904c7f9b29960714122311bd92f66"}},{"ruleId":"D2","level":"warning","message":{"text":"DownloadActivityDebugHarness.startIfRequested (cognitive 16): DownloadActivityDebugHarness.startIfRequested has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (7 pts), loops 2 (5 pts), error handling 1 (2 pts), boolean chains 1, ternaries 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Offline/DownloadActivityDebugHarness.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcc9ef2a8dc0c5e6ecb84d9d1387782059951964d8ebd1a122aec3d52b43edf0"}},{"ruleId":"D2","level":"warning","message":{"text":"ChapterFetcher.fetchPaginatedContent (cognitive 16): ChapterFetcher.fetchPaginatedContent has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 6). Of this number, 15 points are the body\u0027s own statements and 1 belongs 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":"Modules/Services/Online/ChapterFetcher.swift"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"984919be0720ea300e7e4e9bcc9d75c3e24757d995cc2a5c2cfc9ef35299e7a5"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchAggregator.runSearch (cognitive 16): SearchAggregator.runSearch has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 4, match/switch 1, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/SearchAggregator.swift"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"91abccaa5d1b513728cc1f2238b4b925512d19c06da0efb4357e541feb5305ae"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchResultCoverURLPolicy.normalizedString (cognitive 16): SearchResultCoverURLPolicy.normalizedString has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 9, if/else 6, ternaries 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/SearchResultCoverURLPolicy.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"0246ba6a372b82a9a5f0cfd0032cc7dddeddf321361767f0ec86a4a9d0d41ac3"}},{"ruleId":"D2","level":"warning","message":{"text":"AtomXMLParserDelegate.handleArticleElementEnd (cognitive 16): AtomXMLParserDelegate.handleArticleElementEnd has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), ternaries 2 (4 pts), boolean chains 1, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSFetcher.swift"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"815df418e311fea3e154d6b9b258c2180074733394d9cc4d06afd50f20420d91"}},{"ruleId":"D2","level":"warning","message":{"text":"RSSXMLParser.handleFeedElementEnd (cognitive 16): RSSXMLParser.handleFeedElementEnd has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 5, match/switch 1 (nesting depth added 4). 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":"Modules/Services/RSS/RSSFetcher.swift"},"region":{"startLine":1430}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b8d379ead07a53678faa554daaae8c7977159b56a1338fe36b0564100c9e053"}},{"ruleId":"D2","level":"warning","message":{"text":"RSSSource.normalizedWebURL (cognitive 16): RSSSource.normalizedWebURL has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 6 (8 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSModels.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"24c1d254758e740486489f464f2c80c82e15546f5da5cd8e7f7f559357aad475"}},{"ruleId":"D2","level":"warning","message":{"text":"ModuleProvider.entry (cognitive 16): ModuleProvider.entry has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, boolean chains 4, ternaries 4. Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/ModuleProvider.swift"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f2590eca6ca73cd08d596fff4cf25134e4b7ec025bf8b62c20baef0aba1c037"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleModuleValidator.validate (cognitive 16): RuleModuleValidator.validate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, boolean chains 3, ternaries 2 (3 pts), loops 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/RuleModuleValidator.swift"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4b3a1c4fe17d1bf18de247bd13e75f44825ceb1a2f67aa52eef3dcbba27376d"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleModuleValidator.validate (cognitive 16): RuleModuleValidator.validate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, boolean chains 3, loops 2, ternaries 1. Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/RuleModuleValidator.swift"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"61b3f7b6c578c8d0f64e578233c2e7e1df21fe68e50e084bd34013f0c8ec2a2e"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeListCardPhotoID.giveListsTheirCardsPhoto (cognitive 16): HomeListCardPhotoID.giveListsTheirCardsPhoto has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 3 (6 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/HomeConfigurationPhotos.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b4283db8168cd207f937b7cf14eff45c58727af38cf680a53d16dcb22a2cba9"}},{"ruleId":"D2","level":"warning","message":{"text":"RelatedWorks.pick::addWorks (cognitive 16): RelatedWorks.pick::addWorks has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 4, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (RelatedWorks.pick) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/RelatedWorks.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"34e536a1f5a50c97a44ac8d2c447a585147a67743575d378dcb2d865e70b2be6"}},{"ruleId":"D2","level":"warning","message":{"text":"CollectionSummary.cards (cognitive 16): CollectionSummary.cards has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (6 pts), boolean chains 4, ternaries 1 (3 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/HomeListCards.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"e086db42fa5775c49b28a3240d995ff9b7bab7801e04c43d078fcf32284a0058"}},{"ruleId":"D2","level":"warning","message":{"text":"WebDAVIndexCoordinator.evaluate (cognitive 16): WebDAVIndexCoordinator.evaluate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 6 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/WebDAVIndexCoordinator.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"df43234fe75fb517044637922653337bf83947500b8061633364aecbaa348eb2"}},{"ruleId":"D2","level":"warning","message":{"text":"HighlightLineSpans.paint (cognitive 16): HighlightLineSpans.paint has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 6 (11 pts), if/else 3 (4 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/BrowserLayout/BrowserReaderAttributes.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cf84033d926b1a504b5f9b7b60ac99ce039beb4a8a807de0311b6bc7385f17e"}},{"ruleId":"D2","level":"warning","message":{"text":"ChapterTitleCanvasPainter.draw (cognitive 16): ChapterTitleCanvasPainter.draw has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ChapterTitleDesignRenderer.swift"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"eda24a6bf128a036710e807bdef9e6e799d978e16f7521a10b98537e17a38423"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreTextPaginator.extractInlineAnnotations (cognitive 16): CoreTextPaginator.extractInlineAnnotations has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift"},"region":{"startLine":2800}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e02468f911aa8d5861b6785c750dff22ded014eafe47624acfdaf60a17be496"}},{"ruleId":"D2","level":"warning","message":{"text":"ChapterTitleHTMLCodec.decodeContent (cognitive 16): ChapterTitleHTMLCodec.decodeContent has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 4, match/switch 1 (nesting depth added 5). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ChapterTitleHTMLCodec.swift"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b23b8ed1ab8528901da4b57831657e55b71e1f4fe6dc558c38abe6b4f8da1bd"}},{"ruleId":"D2","level":"warning","message":{"text":"HighlightPackImporter.parseQiReader::style (cognitive 16): HighlightPackImporter.parseQiReader::style has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (HighlightPackImporter.parseQiReader) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/HighlightPackImporter.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"57e173d6bffb0f9e558f6b15cb04fd6df5856ab4aa0700b0af1090fd52291863"}},{"ruleId":"D2","level":"warning","message":{"text":"SVGValidation.validateReferences (cognitive 16): SVGValidation.validateReferences has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 4 (7 pts), loops 1 (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderBatterySVGTemplate.swift"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"94139df4a372bf63f70b81be59c14aa2afc64712dc86b1e0cb5582bf37b087aa"}},{"ruleId":"D2","level":"warning","message":{"text":"ReedenThemeImporter.applyReaderSchemas (cognitive 16): ReedenThemeImporter.applyReaderSchemas has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 6, if/else 6, ternaries 2 (3 pts), error handling 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReedenThemeImporter.swift"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"a34c9b1ba294af196dc528fb681c1450c220de1ee217f6a74c53b3754191018a"}},{"ruleId":"D2","level":"warning","message":{"text":"CookieStore.get (cognitive 16): CookieStore.get has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (6 pts), loops 2 (4 pts), boolean chains 3, ternaries 1 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/CookieStore.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e912cda9e2445f60e2cfc1cf82b5448c994652d9fb4d2283a7ce8cddabfb2c3"}},{"ruleId":"D2","level":"warning","message":{"text":"JSONPathEvaluator.stringify (cognitive 16): JSONPathEvaluator.stringify has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 3, ternaries 1 (3 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JsonExtractor.swift"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"1979f5e3cee709fe0d3309295ec6bfbf0b5621d9c8b9267dbb925cd0017c227d"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonExtractor.extractValue (cognitive 16): JsonExtractor.extractValue has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 1 (2 pts), boolean chains 1, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JsonExtractor.swift"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"21498caaf52cf9f001777a50953fc7351ceaeb16d31b90fdead47e18e1cd379f"}},{"ruleId":"D2","level":"warning","message":{"text":"ModernParserBridge.parseChapterResult (cognitive 16): ModernParserBridge.parseChapterResult has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, ternaries 2 (4 pts), boolean chains 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift"},"region":{"startLine":1580}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e90cbd5a329e6c18125a74a92e8a784823ed854bf22485d5869924675825258"}},{"ruleId":"D2","level":"warning","message":{"text":"ModernRuleEngine.evaluateString (cognitive 16): ModernRuleEngine.evaluateString has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 3 (4 pts), boolean chains 2, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/ModernRuleEngine.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c1498066c2cc18a44c4c4fe9ca40bfcefbf0b3669ec601080b90b2fc91372d9"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleAnalyzer.consumeToAny (cognitive 16): RuleAnalyzer.consumeToAny has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (10 pts), loops 3 (6 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/RuleAnalyzer.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"6574237f478fb13aa693e0a71bf1889e07ae7e927016ad76ff9b0ff76d7c520a"}},{"ruleId":"D2","level":"warning","message":{"text":"XPathExtractor.evaluateXPathForItems (cognitive 16): XPathExtractor.evaluateXPathForItems has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (3 pts), boolean chains 1, ternaries 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/XPathExtractor.swift"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"a89ee090b37e0561c8ccc1b4c8634780a5f24719445dd038fa05a618a00626de"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleModuleRepositoryView.toolbar (cognitive 16): RuleModuleRepositoryView.toolbar has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 3 (7 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Library/Modules/RuleModuleRepositoryView.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"9549a67aa4d521d3595756d7ccb9cefec748173033b11c05e238637728004855"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoPlayerView.panned (cognitive 16): VideoPlayerView.panned has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), boolean chains 4, match/switch 2 (3 pts) (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/Video/VideoPlayerView.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bfd43cfa761ff1867f72a520cc6f6400a783c7692f9b27654958d9b9c56affb"}},{"ruleId":"D2","level":"warning","message":{"text":"LegadoJSBridge.chapterNumber (cognitive 16): LegadoJSBridge.chapterNumber has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 3, loops 1, match/switch 1 (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":"Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift"},"region":{"startLine":2662}}}],"partialFingerprints":{"codehealthFindingId/v1":"86328c0379efbc205a665b3b60fa94940670ab9320f4635d1fd780e46fd19fd7"}},{"ruleId":"D2","level":"warning","message":{"text":"AnalyzeUrl.stripJs (cognitive 16): AnalyzeUrl.stripJs has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/URL/AnalyzeUrl.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc011b3bab6119800277a22fd0c0e8b1ba89a27e11a5af66023530609c7c4cf5"}},{"ruleId":"D2","level":"warning","message":{"text":"AnalyzeUrl.escapingControlCharactersInJSONStrings (cognitive 16): AnalyzeUrl.escapingControlCharactersInJSONStrings has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), match/switch 1 (3 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/URL/AnalyzeUrl.swift"},"region":{"startLine":1041}}}],"partialFingerprints":{"codehealthFindingId/v1":"504b7a4b2326f6ee96dcfd5169af870ff8d5f733cdfca8d85d9ca2601132d321"}},{"ruleId":"D2","level":"warning","message":{"text":"ruleEngine.evaluateTemplateExpression (cognitive 16): ruleEngine.evaluateTemplateExpression has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 10, if/else 5, ternaries 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd40d62f7b9eb65e890687e839ccba7ef524a9e9471cf3b5362219ffe59b0002"}},{"ruleId":"D2","level":"warning","message":{"text":"ruleEngine.getAttr (cognitive 16): ruleEngine.getAttr has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 10, if/else 6. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"47fd8d51f87c9feffeb4e1be90e8987dc2d4156567f6293ace37a8eec4ca7986"}},{"ruleId":"D2","level":"warning","message":{"text":"ruleEngine.parseChapterPayload (cognitive 16): ruleEngine.parseChapterPayload has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 11, if/else 3, error handling 1 (2 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":1251}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e499a944ed963db870ab2ede3fd916f3433c9ed045bd5c75a4753fde6e13095"}},{"ruleId":"D2","level":"warning","message":{"text":"_getArticleMetadata (cognitive 16): _getArticleMetadata has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 7, ternaries 1 (nesting depth added 2). Of this number, 8 points are the body\u0027s own statements and 8 belong to one function literal inside it that branches. 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":"Resources/Assets/Readability.js"},"region":{"startLine":1763}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b30bf4d5c6e4587c489b929a209179aaa786f7bd03aa74d8ce2582b26af4fe7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ReaderView.buildBody: MethodTooLong \u2014 buildBody runs 910 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 810 over it, 9.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderView.swift"},"region":{"startLine":1885}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a827753ed3271e1874aefdb727f8a0c7d1cb62b40601d9421822c2f37c1be1d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ReaderView: TooManyMethods \u2014 257 methods, declared across 16 files: Reader/ReaderView.swift (70), Reader/ReaderView\u002BSourceChange.swift (61), Reader/ReaderView\u002BLogic.swift (31), Reader/ReaderView\u002BOnlineChapterLoading.swift (17), \u002B12 more file(s). The bar is 30 methods; this is 227 over it, 8.57\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderView.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"07a5808f06a99c26b87a4798e3c4181fcacf4f186283f5ddf5206442aa4a2a1c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GlobalSettings: TooManyMethods \u2014 237 methods, declared across 12 files: SharedApp/GlobalSettings.swift (128), SharedApp/ReaderCustomBackgroundStore.swift (23), Reader/ReaderChromeCustomization.swift (22), SharedApp/RootTabCustomization.swift (20), \u002B8 more file(s). The bar is 30 methods; this is 207 over it, 7.90\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/GlobalSettings.swift"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"3178d5546be73f39a2e3a650267e3a7d9daa0ef7a6e8bc332b8d1b70d09f7566"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CoreTextPaginator: ClassTooLong \u2014 2757 significant lines (blank, comment-only and punctuation-only lines excluded), 59 methods. The bar is 400 significant lines; this is 2357 over it, 6.89\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":"Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"72729992520fb4b2409d783b97ed9865796c96f131616d7c4cf950fcd28cc649"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: JSCoreEngine.configureContext: MethodTooLong \u2014 configureContext runs 629 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 529 over it, 6.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":"Modules/Core/RuleEngine/ModernParser/JS/JSCoreEngine.swift"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4044c079713efa511ef5f06e5709a98f82202a2542587ed09bfba9508298c88"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: NodeAttributedStringRenderer: ClassTooLong \u2014 2356 significant lines (blank, comment-only and punctuation-only lines excluded), 75 methods. The bar is 400 significant lines; this is 1956 over it, 5.89\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":"Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"5053fe31d7e557c5c81bbc677b3eb9be011cd13fe3eee644795baf575baf191e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BookStore: ClassTooLong \u2014 2354 significant lines (blank, comment-only and punctuation-only lines excluded), 153 methods. The bar is 400 significant lines; this is 1954 over it, 5.89\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":"Modules/Services/LibraryStore/BookStore.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"55b92d19968df0b2280de9a84bf691ed7bb43dc2ed70ed5c5827b8ecd03cd86e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LegadoJSBridge: TooManyMethods \u2014 170 methods. The bar is 30 methods; this is 140 over it, 5.67\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":"Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7f5b7df7407122b9864fb861c60aad1360bf133ee4a8a84549d22c26c60b933"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ReaderView: ClassTooLong \u2014 2232 significant lines (blank, comment-only and punctuation-only lines excluded), 257 methods. The bar is 400 significant lines; this is 1832 over it, 5.58\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":"Modules/Features/Reader/ReaderView.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"133174f161041f15a0743527358a12dd0b64173a146f1254a8a8e2859d71bc49"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: CoreText/CoreTextPaginator.swift: FileTooLong \u2014 2774 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: CoreTextPaginator (7-3766). The bar is 500 significant lines; this is 2274 over it, 5.55\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d16c424391e45e4e15ad051f894cd7a185a90baae0d3d41676b83516b111336"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GlobalSettings: ClassTooLong \u2014 2170 significant lines (blank, comment-only and punctuation-only lines excluded), 237 methods. The bar is 400 significant lines; this is 1770 over it, 5.43\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":"Targets/Yuedu/SharedApp/GlobalSettings.swift"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a879e227f9d1274b69e1ef2f6b9c545e54313c6f290374c884b76d725d5a18a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: SharedApp/GlobalSettings.swift: FileTooLong \u2014 2651 significant lines (blank, comment-only and punctuation-only lines excluded), about 82% of them inside a single declaration: GlobalSettings (535-4084). The bar is 500 significant lines; this is 2151 over it, 5.30\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/GlobalSettings.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb71a6acc1c81c8439d8388d85b11199f7253e29906e7bb16f380e0562277ab8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BookStore: TooManyMethods \u2014 153 methods, declared across 7 files: LibraryStore/BookStore.swift (142), Works/CopyMetadata.swift (3), Works/FilledMetadata.swift (3), LibraryStore/BookReaderSettingsStore.swift (2), \u002B3 more file(s). The bar is 30 methods; this is 123 over it, 5.10\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/BookStore.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8f696ca007f6e2e5d263e1c7ce3309f3f67f0978551fe887ea634d8f8ff9855"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: View: TooManyMethods \u2014 151 methods, declared across 53 files: LNPopupUI/LNPopupUI.swift (41), LNPopupUI/PopupItem.swift (16), Home/HomeEditor.swift (6), DesignSystem/InterfaceEffects.swift (6), \u002B49 more file(s). The bar is 30 methods; this is 121 over it, 5.03\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/AI/AIAssistantPanelView.swift"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"08345ea90b061bf729ee4f4c88355dcf8ef43ff71d07bba47a47df566f61634f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CoreTextPageEngineView: ClassTooLong \u2014 1949 significant lines (blank, comment-only and punctuation-only lines excluded), 4 methods. The bar is 400 significant lines; this is 1549 over it, 4.87\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/CoreTextPagedView.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"a82767216ee345c89dcfd95ed041af422980264b5cf7af49392700de4f6954b8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: LibraryStore/BookStore.swift: FileTooLong \u2014 2425 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: BookStore (59-3863). The bar is 500 significant lines; this is 1925 over it, 4.85\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/BookStore.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"644fbd178bd37ea09ec64efa2a1ce79517d764c6ae99f880b8720f2146f40bec"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: HTMLAttributedStringBuilder: ClassTooLong \u2014 1928 significant lines (blank, comment-only and punctuation-only lines excluded), 75 methods. The bar is 400 significant lines; this is 1528 over it, 4.82\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":"Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3eb22486c547b61ceff39ae19f70780a10ad31708239d8b940b04f63681cf10"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: CoreText/NodeAttributedStringRenderer.swift: FileTooLong \u2014 2370 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: NodeAttributedStringRenderer (18-3401). The bar is 500 significant lines; this is 1870 over it, 4.74\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"53318fad354abcaef32f054a4fda120049126defa0e371439c3d10f7d9dd68b4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GlobalSettings.init: MethodTooLong \u2014 init runs 474 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 374 over it, 4.74\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":"Targets/Yuedu/SharedApp/GlobalSettings.swift"},"region":{"startLine":2121}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e4e024ca00c33b5d716648e6a385ab6af3d25d7667162b4210687af7f6e70f7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ModernParser/ModernParserBridge.swift: FileTooLong \u2014 2290 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1790 over it, 4.58\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":"Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"40b609357dc78c6407d45c5cd3dba61741d15badfbb9cf0bb471a05ea6631e15"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Reader/ReaderView.swift: FileTooLong \u2014 2245 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: ReaderView (16-3611). The bar is 500 significant lines; this is 1745 over it, 4.49\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"72ff6f1ac0f49adccbfd227f8c0b3a35a3afce4e0bcb590cc8abae87908f44fb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HTMLTableRasterizer.renderPages: MethodTooLong \u2014 renderPages runs 439 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 339 over it, 4.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/HTMLTableSupport.swift"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"c069db7d8b1c48dcb847ee00443be7a45c367d7ef0da6d4006071b3504e485bf"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CoreTextPageView: ClassTooLong \u2014 1710 significant lines (blank, comment-only and punctuation-only lines excluded), 95 methods. The bar is 400 significant lines; this is 1310 over it, 4.28\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":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ba386b666e099c11e41f4754be93a376516974e04edcd0d95b4980d4683766f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: JS/LegadoJSBridge.swift: FileTooLong \u2014 2129 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1629 over it, 4.26\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":"Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"95866a49b2176eaa60af74b8392f729efeb9b381aeda24c7ec0ec4de61b987f4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: CoreText/CoreTextPageView.swift: FileTooLong \u2014 2107 significant lines (blank, comment-only and punctuation-only lines excluded), about 81% of them inside a single declaration: CoreTextPageView (18-2551). The bar is 500 significant lines; this is 1607 over it, 4.21\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2aacdf134244e98a419412052b089ac2959a15556d2cf344f8dc28f5b75fb01"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ReaderHTMLUtilities: ClassTooLong \u2014 1600 significant lines (blank, comment-only and punctuation-only lines excluded), 88 methods. The bar is 400 significant lines; this is 1200 over it, 4.00\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/ReaderHTMLUtilities.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"901bf815e3304a09ec7bea2e47176ced87cc8d5cfa32e0204f9a3d80fd74c317"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Reader/CoreTextPagedView.swift: FileTooLong \u2014 1951 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: CoreTextPageEngineView (4-3242). The bar is 500 significant lines; this is 1451 over it, 3.90\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/CoreTextPagedView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8cccaba6fef204bfe656cf91fcd017a0ae1454a1ee36441020ffe46f072545e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: CoreText/HTMLAttributedStringBuilder.swift: FileTooLong \u2014 1938 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: HTMLAttributedStringBuilder (10-2716). The bar is 500 significant lines; this is 1438 over it, 3.88\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ff662b68107b13ed81802bceeaa0ddf775b3b6d32e21b9baa5cec37c53efc2b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Bookshelf/HomeView.swift: FileTooLong \u2014 1871 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1371 over it, 3.74\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":"Modules/Features/Bookshelf/HomeView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3910486839081d2c2147d1d1d85ed5906203b5c189e61ba83f1e361552386533"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Coordinator: TooManyMethods \u2014 110 methods. The bar is 30 methods; this is 80 over it, 3.67\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":"Modules/Features/Reader/CoreTextPagedView.swift"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4d754450a5a33e2ef26ec0a6d81787d6efab33c6a23b5642aba59dfcbb029f9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CoreTextCollectionScrollViewController: ClassTooLong \u2014 1377 significant lines (blank, comment-only and punctuation-only lines excluded), 96 methods. The bar is 400 significant lines; this is 977 over it, 3.44\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/CoreTextCollectionScrollViewController.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"005be369c0372b2c588280a9ca5bfe5e44839c5dd2c9e9bc50657e36dda7fce6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: JSCoreEngine: ClassTooLong \u2014 1345 significant lines (blank, comment-only and punctuation-only lines excluded), 56 methods. The bar is 400 significant lines; this is 945 over it, 3.36\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":"Modules/Core/RuleEngine/ModernParser/JS/JSCoreEngine.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"684dad18d4c98f57f1128ba92d7c280ebd7458986eb7c99d0c9d2b12f233cffe"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Reader/CoreTextCollectionScrollViewController.swift: FileTooLong \u2014 1607 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: CoreTextCollectionScrollViewController (10-2166). The bar is 500 significant lines; this is 1107 over it, 3.21\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/CoreTextCollectionScrollViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c610b6818913ed81ba452e055cf3bab8f179520be31879ca80d4174a796ceefc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ReaderCore/ReaderHTMLUtilities.swift: FileTooLong \u2014 1602 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: ReaderHTMLUtilities (4-2474). The bar is 500 significant lines; this is 1102 over it, 3.20\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/ReaderHTMLUtilities.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"41013f4b5be390c8805c24b199ff16671c2ae7578dfda40e4f949acdac857c0b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CoreTextCollectionScrollViewController: TooManyMethods \u2014 96 methods. The bar is 30 methods; this is 66 over it, 3.20\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":"Modules/Features/Reader/CoreTextCollectionScrollViewController.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"48c3eaec04dc5eb4251201a18767a03ec315f53bbaab9bb693fee28cd82e36d5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CoreTextPaginator.computeLayout: MethodTooLong \u2014 computeLayout runs 318 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 218 over it, 3.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":"Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"acb4def37f2123f10e6db740ea63c0ed00a8f2b8666bb5404f4bc1337e3e8fbe"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CoreTextPageView: TooManyMethods \u2014 95 methods. The bar is 30 methods; this is 65 over it, 3.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"92c05f12f408dd75eabc8c69b3200fea89eda3aea596fc8b8b4b9135374cf534"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HTMLAttributedStringBuilder.apply: MethodTooLong \u2014 apply runs 299 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 199 over it, 2.99\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":"Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift"},"region":{"startLine":1761}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eebd315a7776a352e7d234cfe11f96abc5713dfd131229710f5e646ac07d217"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Assets/Readability.js: FileTooLong \u2014 1486 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 986 over it, 2.97\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/Readability.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fba65617f147f424ba374fe67e1d63ce6125f03f2fe35a0bd98b13412d39ca65"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ModernParserBridge: TooManyMethods \u2014 88 methods. The bar is 30 methods; this is 58 over it, 2.93\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":"Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d777c1e7a95a28e63ef5cd4693044e20d3b11d22edc39e9f78c03c138f61623"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: EPUB/PublicationSession.swift: FileTooLong \u2014 1451 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 951 over it, 2.90\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":"Modules/Core/EPUB/PublicationSession.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8f02dd1525e1e5757617b55137ab2f7eea49852d394debde54a9f7f0b93346e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AudiobookPlayer: TooManyMethods \u2014 85 methods. The bar is 30 methods; this is 55 over it, 2.83\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/AudiobookPlayer.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc2e70cd7b8658d5819f37f4dda7138f96c4134e2b01820470e5359140643882"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: BrowserLayout/BrowserLayoutPageEngine.swift: FileTooLong \u2014 1407 significant lines (blank, comment-only and punctuation-only lines excluded), about 74% of them inside a single declaration: BrowserLayoutPageEngine (350-2063). The bar is 500 significant lines; this is 907 over it, 2.81\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageEngine.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f0a70a1107c80d91e721554da6f3827c8a21b7f40b01d0ebd0b71ca29db56e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ICloudSyncManager: ClassTooLong \u2014 1116 significant lines (blank, comment-only and punctuation-only lines excluded), 76 methods. The bar is 400 significant lines; this is 716 over it, 2.79\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":"Modules/Services/iCloud/ICloudSyncManager.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac34150f66f456da23896c05f22f29ddb2cdef7aeded734500d146219d7be263"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BrowserLayoutPageEngine: TooManyMethods \u2014 82 methods. The bar is 30 methods; this is 52 over it, 2.73\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":"Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageEngine.swift"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"b150d49798f419074d174a283768134042ed7a3f22dcebf7097e1ff5ad1c9d30"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: JS/JSCoreEngine.swift: FileTooLong \u2014 1348 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: JSCoreEngine (16-2379). The bar is 500 significant lines; this is 848 over it, 2.70\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/JSCoreEngine.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c5950d1e4e7cece1cc85b0cbfeb9da76a976382fc77bced2cf90634e274d442"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CoreTextPageEngine: ClassTooLong \u2014 1072 significant lines (blank, comment-only and punctuation-only lines excluded), 77 methods. The bar is 400 significant lines; this is 672 over it, 2.68\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":"Modules/Core/ReaderCore/CoreText/CoreTextPageEngine.swift"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"502803de04d408e2ab643dcda69532dd9516b579e43d6eb5bcc9cd4a620dc4cf"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AudiobookPlayer: ClassTooLong \u2014 1053 significant lines (blank, comment-only and punctuation-only lines excluded), 85 methods. The bar is 400 significant lines; this is 653 over it, 2.63\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":"Modules/Core/TTS/AudiobookPlayer.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2ab79a94aa6eb499d3dbd9ae742adf3de5ae955a3b136d3ad0cc1ff31591d64"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RuleEngine: ClassTooLong \u2014 1053 significant lines (blank, comment-only and punctuation-only lines excluded), 50 methods. The bar is 400 significant lines; this is 653 over it, 2.63\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":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1b5969caf03a55784c70d1cad7793dd21f42b5ac416b6d2c0ee4466b7886787"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BrowserLayoutPageEngine: ClassTooLong \u2014 1041 significant lines (blank, comment-only and punctuation-only lines excluded), 82 methods. The bar is 400 significant lines; this is 641 over it, 2.60\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":"Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageEngine.swift"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"07649950b31a7548d0a48552a1fe3f101987ecb3155c34263ae4cd15f58bc3c4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: UserDetailView.body: MethodTooLong \u2014 body runs 260 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 160 over it, 2.60\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Settings/UserDetailView.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"04227013925f671ef8602404ee48cacad29ecabd2354a541af065a68f4c7d3ce"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CoreTextPageEngine: TooManyMethods \u2014 77 methods. The bar is 30 methods; this is 47 over it, 2.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":"Modules/Core/ReaderCore/CoreText/CoreTextPageEngine.swift"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c72ef65980b0e9890ea338043dcd13c0ce6980e291b8a7759fa7104d10630b3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: BookDetail/BookDetailComponents.swift: FileTooLong \u2014 1272 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 772 over it, 2.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":"Modules/Features/BookDetail/BookDetailComponents.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8be76ddfbbf0990917f06476f02126fe9c25b78bcdf41ce78794b04238a3ae3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ICloudSyncManager: TooManyMethods \u2014 76 methods. The bar is 30 methods; this is 46 over it, 2.53\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":"Modules/Services/iCloud/ICloudSyncManager.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b4adae5f009494a16409292cd3d012ae138dbebc93b1c05e4f266172b01b821"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HTMLAttributedStringBuilder: TooManyMethods \u2014 75 methods. The bar is 30 methods; this is 45 over it, 2.50\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"d78985fb60a2a28a06309b0d7e862805415f1faee359f9fac71d2776c62cd64a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NodeAttributedStringRenderer: TooManyMethods \u2014 75 methods. The bar is 30 methods; this is 45 over it, 2.50\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"5db45261e2be867f28e2736c6191eebc3dd75fa819f144ca2a57dfe0d041804e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: RSS/RSSListView.swift: FileTooLong \u2014 1249 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 749 over it, 2.50\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":"Modules/Features/RSS/RSSListView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"39253757de6793ac7b0464439849b5e3d63fc8083c538ffa6c176cead686fd4b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: CoreText/CoreTextPageEngine.swift: FileTooLong \u2014 1245 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: CoreTextPageEngine (263-1975). The bar is 500 significant lines; this is 745 over it, 2.49\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageEngine.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"872ab6cf01b9a4fea7589ae6dcfcde14927241f347430286f232669e8efef28b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: CoreText/CommentBubbleSVGRecognizer.swift: FileTooLong \u2014 1216 significant lines (blank, comment-only and punctuation-only lines excluded), about 60% of them inside a single declaration: CommentBubbleSVGRecognizer (95-1249). The bar is 500 significant lines; this is 716 over it, 2.43\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8786d3fec50ecbd94be05b0f29b87d2132145e2335a6e2ec601d91a58a02fd1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: iCloud/ICloudSyncManager.swift: FileTooLong \u2014 1208 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: ICloudSyncManager (118-1997). The bar is 500 significant lines; this is 708 over it, 2.42\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/iCloud/ICloudSyncManager.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"138bae10a8f3880b43cf2c096c09f18b168225586b46ae64dfeb74baece0e0ef"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ICloudSyncManager.performSyncPass: MethodTooLong \u2014 performSyncPass runs 234 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 134 over it, 2.34\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":"Modules/Services/iCloud/ICloudSyncManager.swift"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea00bf819d157dbd7cb45d18cf5e56d0b60996f1bf6b64dafda2a833796a56a0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BookSourceStore: TooManyMethods \u2014 69 methods, declared across 2 files: BookSource/BookSourceStore.swift (64), BookDetail/AudiobookDetailView.swift (5). The bar is 30 methods; this is 39 over it, 2.30\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceStore.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a5822bcd8f08b75669b7747dceafe7c4fd70c5efc6633bfcd8e9253e5d49286"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BookSourceFetcher: TooManyMethods \u2014 68 methods, declared across 9 files: BookSource/BookSourceFetcher\u002BCache.swift (20), BookSource/BookSourceFetcher\u002BTOC.swift (11), BookSource/BookSourceFetcher\u002BChapterCache.swift (9), BookSource/BookSourceFetcher\u002BChapter.swift (7), \u002B5 more file(s). The bar is 30 methods; this is 38 over it, 2.27\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceFetcher.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"35435bf45a03ae888d0c67dbeb4d6921edc48f05dd37de1f5d1abf054ff749cb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CoreTextPaginator.extractFrameBlockRenderables: MethodTooLong \u2014 extractFrameBlockRenderables runs 225 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 125 over it, 2.25\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":"Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift"},"region":{"startLine":2879}}}],"partialFingerprints":{"codehealthFindingId/v1":"154cc20cd95a8918a43e15b112004e785c820dfb3fab0f1c507b5e238b9804df"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChapterFetchManager.fetchChapter: MethodTooLong \u2014 fetchChapter runs 221 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 121 over it, 2.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/OnlineReadingPipeline.swift"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"f378b5c14b964e4e8a7666d8a86908f91bdbbc3249f522a5a06ad05d4cf5ba42"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: TTS/AudiobookPlayer.swift: FileTooLong \u2014 1097 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: AudiobookPlayer (122-1741). The bar is 500 significant lines; this is 597 over it, 2.19\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/AudiobookPlayer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"47f96bf91193032335975b6319bfe688e488975ae91df30e5ca266c90265ef95"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: RSS/RSSFetcher.swift: FileTooLong \u2014 1086 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 586 over it, 2.17\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":"Modules/Services/RSS/RSSFetcher.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"41aa45531fdd351f0ad3d1cb8613d1fdec5d0e1b0b8a6b7b1286c4e25379d81b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ReaderCardTransitionAnimator: ClassTooLong \u2014 868 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 468 over it, 2.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderCardTransitionAnimator.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"b635340d1e633e9211399eb514587463a75bd7fdeb5d1c5f58373c006a97f60f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PublicationSession: TooManyMethods \u2014 65 methods. The bar is 30 methods; this is 35 over it, 2.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/PublicationSession.swift"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5be53bd392bcf18c899cdf21c889f063397404912b494cab119ba6eca04d41a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: RuleEngine/RuleEngine.swift: FileTooLong \u2014 1055 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: RuleEngine (19-1629). The bar is 500 significant lines; this is 555 over it, 2.11\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f07680b6c62840ad1ef263a3f53415ac024f815915130e83927daf5f9ed5617"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Reader/ReaderView\u002BSourceChange.swift: FileTooLong \u2014 1045 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 545 over it, 2.09\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":"Modules/Features/Reader/ReaderView\u002BSourceChange.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bd3f31bb54d9deee54dd6e340f3475eb20b086ff4e816c617ca0c4ac1116312"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BookSourceListView.body: MethodTooLong \u2014 body runs 209 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 109 over it, 2.09\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":"Modules/Features/BookSource/BookSourceListView.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"68d97d7dd55bc4b1c567b97ecf9fa90f788c49609f5d36955fc540488c9bea6f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RSSStore: TooManyMethods \u2014 62 methods, declared across 2 files: RSS/RSSStore.swift (60), RSS/RSSStore\u002BTestSeed.swift (2). The bar is 30 methods; this is 32 over it, 2.07\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSStore.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dfe07a0dc271d04c6ff71d73758aaed151c991c442545051cb045e43d4d605b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: bookSourceEngine/ruleEngine.js: FileTooLong \u2014 1021 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 521 over it, 2.04\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":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d82e842ba2a4f05d2e5edcea7683352f328c54b72ac437494b51aff5d356187"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ReaderCardTransitionAnimator.runDeclarativeAnimation: MethodTooLong \u2014 runDeclarativeAnimation runs 202 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 102 over it, 2.02\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":"Modules/Features/Reader/ReaderCardTransitionAnimator.swift"},"region":{"startLine":971}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7f6843a45f4ff5c60a469f5a5917be1d1a1645e4b530acb1b9798b9ed583c84"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DiscoverViewModel: TooManyMethods \u2014 60 methods. The bar is 30 methods; this is 30 over it, 2.00\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/DiscoverViewModel.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d1c8466f737dfffda6188d203156c863425ec399423070899129b8bb75ccc82"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AIAgenticAssistant.answerQuestion: MethodTooLong \u2014 answerQuestion runs 199 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 99 over it, 1.99\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":"Modules/Core/AI/AIAgenticAssistant\u002BQuestion.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cc156872442293f0a68768199a31930b0b00451ad4557200728b55809333338"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: BookSource/BookSourceHealthChecker.swift: FileTooLong \u2014 989 significant lines (blank, comment-only and punctuation-only lines excluded), about 68% of them inside a single declaration: BookSourceHealthChecker (455-1522). The bar is 500 significant lines; this is 489 over it, 1.98\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceHealthChecker.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"31739efde70495c2060376d4165e0447587d546dbc191c48af0effe21f1be3e6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CoreTextPaginator: TooManyMethods \u2014 59 methods. The bar is 30 methods; this is 29 over it, 1.97\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":"Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"32c265dccd4c1f42d071c948b41f6dbf0b572398fc09f1b2bf93ae6dda71988d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: HomeView: ClassTooLong \u2014 757 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 357 over it, 1.89\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":"Modules/Features/Bookshelf/HomeView.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"07eed4986dd714115f982ef7ebcbeb8e6ba10ac5cb6daaaaad579aeae685afd5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: JSCoreEngine: TooManyMethods \u2014 56 methods. The bar is 30 methods; this is 26 over it, 1.87\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/JSCoreEngine.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"39fb7ea293cfa03b12914fa1b92cf5dc1ba5fba8be404cfaf8bd1b7a91e3a153"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CoreTextPaginator.extractImages: MethodTooLong \u2014 extractImages runs 186 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 86 over it, 1.86\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":"Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift"},"region":{"startLine":2554}}}],"partialFingerprints":{"codehealthFindingId/v1":"a33092e1b61ae4a94f953c0da86fda252cb3c25f849126444ceced0a263d30c0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SettingsView.body: MethodTooLong \u2014 body runs 186 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 86 over it, 1.86\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":"Modules/Features/Settings/ProfileView.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"03882ef53a61d3aeeb27e0feab297563fb22c67c518a5f546259a7a813829e94"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WorkDetailView: ClassTooLong \u2014 741 significant lines (blank, comment-only and punctuation-only lines excluded), 36 methods. The bar is 400 significant lines; this is 341 over it, 1.85\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":"Modules/Features/BookDetail/WorkDetailView.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"79de79eff9ac588ec1164fcb3fba00a93a7a386725aa42d32c0e5ecb7f269b6d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TXTChapterParser: ClassTooLong \u2014 740 significant lines (blank, comment-only and punctuation-only lines excluded), 36 methods. The bar is 400 significant lines; this is 340 over it, 1.85\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":"Modules/Core/TXT/TXTChapterParser.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"2afb54df0f3afddbc78fd199f8cab21ca0383f6171c017f24aef42415859fa02"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OnlineBookView: ClassTooLong \u2014 739 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 339 over it, 1.85\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":"Modules/Features/BookDetail/OnlineBookView.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c8668d3a1d13bf285c7ee0dcdc86f3cb15c35944ff93bd60f2143fa92fe890c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: TTS/TTSCoordinator.swift: FileTooLong \u2014 922 significant lines (blank, comment-only and punctuation-only lines excluded), about 69% of them inside a single declaration: TTSCoordinator (542-1496). The bar is 500 significant lines; this is 422 over it, 1.84\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/TTSCoordinator.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cb1c26dc28d59bcfe85d8f2f43e43c88f393d2741fe2e3fffb6eb54c94c3a0b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChapterFetcher.buildRenderableNormalizedHTML: MethodTooLong \u2014 buildRenderableNormalizedHTML runs 183 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 83 over it, 1.83\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":"Modules/Services/Online/ChapterFetcher.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"489b9c37602481bb781e63e149304444c73f0405bb57c537953c2a758e67b2cf"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CommentBubbleSVGRecognizer: ClassTooLong \u2014 731 significant lines (blank, comment-only and punctuation-only lines excluded), 47 methods. The bar is 400 significant lines; this is 331 over it, 1.83\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"8570ed10e267b677f6ca140e713c302a91019e5ba2fae98963e962d680f66d94"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: TTS/AudiobookView.swift: FileTooLong \u2014 913 significant lines (blank, comment-only and punctuation-only lines excluded), about 71% of them inside a single declaration: AudiobookReaderView (25-989). The bar is 500 significant lines; this is 413 over it, 1.83\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/TTS/AudiobookView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4340f7c3cae021135d34bb12538f37eca6479556f3157a66e028bf94ab428615"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: EPUBPageRenderer: ClassTooLong \u2014 724 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods. The bar is 400 significant lines; this is 324 over it, 1.81\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":"Modules/Core/ReaderCore/EPUBPageRenderer.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b42db667d6c1b32e653a0688c71a55215f001855b268d11cbf476ec398d7f2e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ModernRuleEngine: ClassTooLong \u2014 723 significant lines (blank, comment-only and punctuation-only lines excluded), 53 methods. The bar is 400 significant lines; this is 323 over it, 1.81\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":"Modules/Core/RuleEngine/ModernParser/ModernRuleEngine.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fe6c7dc76fe975ce4a1d98e61032a06e3225f389eb9549c5d7a68dda665dd62"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: RSS/RSSUtilities.swift: FileTooLong \u2014 896 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 396 over it, 1.79\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":"Modules/Services/RSS/RSSUtilities.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"674bdad2ef78298581f138042b7a1cf35bdb127dd90fb42afbd4aff9cc316dd1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: WebBrowser/BrowserView.swift: FileTooLong \u2014 889 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 389 over it, 1.78\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":"Modules/Features/WebBrowser/BrowserView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9148164d99de57ee2fbcb5407f34c0089578d73d07f3b0d75ed558347fbe8281"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ModernRuleEngine: TooManyMethods \u2014 53 methods. The bar is 30 methods; this is 23 over it, 1.77\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/ModernRuleEngine.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"efeb18701b1f880905e7ab2e939b294fc04bf4f2e214cc118ad62a1448db7884"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ReaderViewportFragmentHost.update: MethodTooLong \u2014 update runs 176 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 76 over it, 1.76\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":"Modules/Features/Reader/ReaderViewportFragmentHost.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"1120898d01c85da0b3bc7f630581ca60b755a4ccc5eaf8c84fccd05c031acf1e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: QiThemeImporter: ClassTooLong \u2014 700 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 300 over it, 1.75\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/QiThemeImporter.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"3341ce1f73cb0e372458a296a429e1fc5d2067251be17f9a8204e5453790fb41"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ReedenThemeImporter: ClassTooLong \u2014 699 significant lines (blank, comment-only and punctuation-only lines excluded), 37 methods. The bar is 400 significant lines; this is 299 over it, 1.75\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReedenThemeImporter.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b5b16e2603d859d57f73efd57d7fb9005bef881ae99b14f098b4e8e3b442468"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Reader/ReaderCardTransitionAnimator.swift: FileTooLong \u2014 871 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: ReaderCardTransitionAnimator (12-1325). The bar is 500 significant lines; this is 371 over it, 1.74\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderCardTransitionAnimator.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"23a2d3e0eee6300aed1ec79a7472c48e9ae15d400d0c63490ce250669e314a1d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CoreTextScrollEngine.loadChapter: MethodTooLong \u2014 loadChapter runs 174 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 74 over it, 1.74\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":"Modules/Core/ReaderCore/CoreText/CoreTextScrollEngine.swift"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c1a0e8ed9a32ff3ed7fc821f2f2beba7dc348b62dbccc7ad2fb111c39a540d9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BookSourceFetcher.fetchChapterPackageInner: MethodTooLong \u2014 fetchChapterPackageInner runs 173 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 73 over it, 1.73\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":"Modules/Core/BookSource/BookSourceFetcher\u002BChapter.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"db46f93b4f72a8a573b80475d823cf8dba57082442cc3def4046ca8f68228756"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RSSListView.body: MethodTooLong \u2014 body runs 173 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 73 over it, 1.73\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":"Modules/Features/RSS/RSSListView.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e52ae0f63471369b6e93106b381775c3a83ec74e2d0432bd39dec7c889c8517"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: LibraryStore/Models.swift: FileTooLong \u2014 859 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 359 over it, 1.72\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":"Modules/Services/LibraryStore/Models.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa483e982ec5dc8fde4e48d21bf8154313cc5ece8b3269a5b227a40e76f24b46"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ReaderStyleCSSCodec: ClassTooLong \u2014 684 significant lines (blank, comment-only and punctuation-only lines excluded), 34 methods. The bar is 400 significant lines; this is 284 over it, 1.71\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":"Modules/Core/ReaderCore/Customization/ReaderStyleCSSCodec.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"79e2979a88e239d828d8e7421b3eb5a8e17a7487c186e2abdde856edb51e09df"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TTSCoordinator: TooManyMethods \u2014 51 methods. The bar is 30 methods; this is 21 over it, 1.70\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/TTSCoordinator.swift"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"324cdafac5ea9ac46a0ee622f3c05bbaba709d21700544e94bd044bf74771d6e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: BookDetail/WorkDetailView.swift: FileTooLong \u2014 849 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: WorkDetailView (84-1292). The bar is 500 significant lines; this is 349 over it, 1.70\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/WorkDetailView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d21a2c1e9443eb7e93d4706116e392651c9c460909d341620a01469860043a7a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BookSourceStore: ClassTooLong \u2014 679 significant lines (blank, comment-only and punctuation-only lines excluded), 69 methods. The bar is 400 significant lines; this is 279 over it, 1.70\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceStore.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfecae936ff766ee03a24586fc171b99d2426110a66ee7776c96aec448b9bb79"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BookSourceHealthChecker: ClassTooLong \u2014 677 significant lines (blank, comment-only and punctuation-only lines excluded), 33 methods. The bar is 400 significant lines; this is 277 over it, 1.69\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":"Modules/Core/BookSource/BookSourceHealthChecker.swift"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"b129585aa18bb579a5adbc9e80d63ef2fe208886161cff69587bc42e2e039585"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChapterLayout.appearanceUpdated: MethodTooLong \u2014 appearanceUpdated 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":"Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdbda0524ce8d9a8a448ca055224204b48774a0bc4c51c397c9e9d7eac6e3d85"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NodeAttributedStringRenderer.render: MethodTooLong \u2014 render runs 168 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 68 over it, 1.68\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":"Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"bef91321fb01d49f34b56ea71769c4e36b1c5f834f34ac765be4020a6904a657"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ChapterFetcher: ClassTooLong \u2014 668 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 268 over it, 1.67\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":"Modules/Services/Online/ChapterFetcher.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"686141278567d35ddcf1149d26b1a6edfcb8ee0634c0c81a895183c68d214c18"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CoreTextScrollEngine: ClassTooLong \u2014 667 significant lines (blank, comment-only and punctuation-only lines excluded), 50 methods. The bar is 400 significant lines; this is 267 over it, 1.67\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":"Modules/Core/ReaderCore/CoreText/CoreTextScrollEngine.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"470b02458879bdc7df655330543ed45b5d6cfe8be767125b188984ddffa0d89d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CoreTextScrollEngine: TooManyMethods \u2014 50 methods. The bar is 30 methods; this is 20 over it, 1.67\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":"Modules/Core/ReaderCore/CoreText/CoreTextScrollEngine.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"df702cd8ea0c556b0323e2bb1e507b5fd34329149eb870e122f97a0b5c585e36"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LegadoJsoupElement: TooManyMethods \u2014 50 methods. The bar is 30 methods; this is 20 over it, 1.67\u00D7 the bar. Most of these members implement repository.LegadoJsoupElementExport (40 of 48 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoJsoupBridge.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"265d255ba107912aae075a08288b28d075780addc7c350c1f1b08f0cab992114"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: CoreText/HTMLTableSupport.swift: FileTooLong \u2014 832 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 332 over it, 1.66\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/HTMLTableSupport.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f160fe5451509e8da2f9e298bd127c29e96f772a75549db6c9a04d8072f1d8b3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CoreTextChunkSlicer.slice: MethodTooLong \u2014 slice runs 166 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 66 over it, 1.66\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":"Modules/Core/ReaderCore/CoreText/CoreTextChunkSlicer.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cec7bb8513a2ed2cd1fbea770dbcec7592369a6ad075dcd37e3f60fe100acd3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ReaderDialogueBubbleSettingsView.sideSection: MethodTooLong \u2014 sideSection runs 166 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 66 over it, 1.66\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":"Modules/Features/Reader/ReaderDialogueBubbleSettingsView.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f72edf7ba7745c75060f446536c26d6aab701a810bf086abec1688d42edf4b1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: feedback.feedbackRouter: FunctionTooLong \u2014 feedbackRouter runs 166 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 66 over it, 1.66\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":"gateway/src/routes/feedback.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7a9bf285d96fd9ef5bbc994e392cb8a7bf451883c1bca03c142d25c21482346"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Customization/QiThemeImporter.swift: FileTooLong \u2014 820 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: QiThemeImporter (141-1188). The bar is 500 significant lines; this is 320 over it, 1.64\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/QiThemeImporter.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"46b519d8b8e0489cb99924ae32cb64504bb93cad7eeb70e24e960cbb2f87e768"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BookSourceFormLoginView: ClassTooLong \u2014 653 significant lines (blank, comment-only and punctuation-only lines excluded), 32 methods. The bar is 400 significant lines; this is 253 over it, 1.63\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":"Modules/Features/BookSource/BookSourceFormLoginView.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"3156fc5af237a18ffb4f61e361be12e1ee001fc85c66b7039a38b67ee491d7a1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AudiobookReaderView: ClassTooLong \u2014 648 significant lines (blank, comment-only and punctuation-only lines excluded), 21 methods. The bar is 400 significant lines; this is 248 over it, 1.62\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":"Modules/Features/Reader/TTS/AudiobookView.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"908add5ca67fa0df47a3d7a5be8e834d2c810eac838aeec51ad3f1c734ff06f5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OnlineBookView.body: MethodTooLong \u2014 body runs 162 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 62 over it, 1.62\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/OnlineBookView.swift"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccb832759b603f15b95d95b5358f510443f692b891cc00173c3ed6da92bd99cb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Customization/ReaderStyleCSSCodec.swift: FileTooLong \u2014 806 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: ReaderStyleCSSCodec (170-1047). The bar is 500 significant lines; this is 306 over it, 1.61\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderStyleCSSCodec.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f08605c741f670685eda1dd90d2baade70b9e7b116fa4843891bc440171dd14b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CoreTextChunkSlicer: ClassTooLong \u2014 635 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 235 over it, 1.59\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":"Modules/Core/ReaderCore/CoreText/CoreTextChunkSlicer.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d594adfc58b0cfc7b2eb220b708c4186a1f32893243fd9332d7542be682275"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TTSSettingsView: ClassTooLong \u2014 633 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods. The bar is 400 significant lines; this is 233 over it, 1.58\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":"Modules/Features/Settings/TTSSettingsView.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b5b9bb06fe5a21668256363ca3147daf59448ab7dc0712b2d3e616674543e2a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TTSCoordinator: ClassTooLong \u2014 632 significant lines (blank, comment-only and punctuation-only lines excluded), 51 methods. The bar is 400 significant lines; this is 232 over it, 1.58\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":"Modules/Core/TTS/TTSCoordinator.swift"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f06b5257321c34b0b3cec629cd4cacd6910d515bd094fdd281ec7cfdb6e321a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CommentBubbleSVGRecognizer: 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":"Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fdab48496e6825995cb5cdb82b9400bb3a9814fbb7e23dcf57fe7779465f09b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AnalyzeUrl: 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":"Modules/Core/RuleEngine/ModernParser/URL/AnalyzeUrl.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"5451959403dc79ad2e373cecf4e39738c8f3ea43c2fab449ae1093ff559cb81c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ChangeSourceSearch: TooManyMethods \u2014 47 methods, declared across 2 files: ChangeSource/ChangeSourceSearch.swift (46), ChangeSource/ChangeSourceViews.swift (1). The bar is 30 methods; this is 17 over it, 1.57\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/ChangeSource/ChangeSourceSearch.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7f4e05be90969743389143c7357542eff08e4a14a6d3a82b965dcea3ca3b661"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RuleModuleClient: TooManyMethods \u2014 47 methods, declared across 5 files: RuleModules/RuleModuleClient.swift (17), RuleModules/RuleModuleClient\u002BComments.swift (11), RuleModules/RuleModuleClient\u002BReviews.swift (10), RuleModules/RuleModuleClient\u002BReading.swift (6), \u002B1 more file(s). The bar is 30 methods; this is 17 over it, 1.57\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/RuleModuleClient.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"9571952f476e5cddc12d243d61e3bc44c59fe9b4b78aa8c12d4e3d778ecd7b23"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: URL/AnalyzeUrl.swift: FileTooLong \u2014 780 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 280 over it, 1.56\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":"Modules/Core/RuleEngine/ModernParser/URL/AnalyzeUrl.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"af12b83341fbfc4020085edef97342453d4e5f1d4a06466fa65df42f06c5f4e1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: BookDetail/OnlineBookView.swift: FileTooLong \u2014 776 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: OnlineBookView (25-1146). The bar is 500 significant lines; this is 276 over it, 1.55\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/OnlineBookView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f815b46c3630ca66cef1f237b3619db4d97a4dd69140a89e5dfaf335ad4ba3a9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: TXT/TXTChapterParser.swift: FileTooLong \u2014 774 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: TXTChapterParser (20-1101). The bar is 500 significant lines; this is 274 over it, 1.55\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TXT/TXTChapterParser.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddf30c389b095db56931cf3ae81d4b3189d486d36a086503a6b062412bbddc1b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DiscoverViewModel: ClassTooLong \u2014 614 significant lines (blank, comment-only and punctuation-only lines excluded), 60 methods. The bar is 400 significant lines; this is 214 over it, 1.54\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":"Modules/Services/Online/DiscoverViewModel.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"605e149dad8c8c7190287219e2247099089a6be872bfe5422b7ba51020d0b893"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: TTS/TTSAudioProvider.swift: FileTooLong \u2014 767 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 267 over it, 1.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":"Modules/Core/TTS/TTSAudioProvider.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8562ef52fbbb3bf7bb53bee980dae6947ae5311a3bb3b1a6574c40a3893b61e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: VideoDetailView: ClassTooLong \u2014 613 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 213 over it, 1.53\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":"Modules/Features/BookDetail/VideoDetailView.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"b425ae5d7d05fb92aacc4691385fe6abe899ec2323c9fb79d6ba67ea0316f5c6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BookSourceListView: ClassTooLong \u2014 612 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 212 over it, 1.53\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":"Modules/Features/BookSource/BookSourceListView.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ef2bdef42f19bcf3361ff494af4a7af022b8bc6e932da6d87ee601229986891"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: HTTPTTSEngine: ClassTooLong \u2014 608 significant lines (blank, comment-only and punctuation-only lines excluded), 40 methods. The bar is 400 significant lines; this is 208 over it, 1.52\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":"Modules/Core/TTS/HTTPTTSEngine.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"76fde9423f37fedef49a2f9c8e2d5dc4e9017f74237b0031354bb6099025b111"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/TTSSettingsView.swift: FileTooLong \u2014 759 significant lines (blank, comment-only and punctuation-only lines excluded), about 83% of them inside a single declaration: TTSSettingsView (10-917). The bar is 500 significant lines; this is 259 over it, 1.52\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Settings/TTSSettingsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee7986d59127d7002a21f8ffc0d1befc2cb2a599cc5c52001b1e81cd832fd175"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DiagnosticsView.body: MethodTooLong \u2014 body runs 151 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 51 over it, 1.51\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":"Modules/Features/Settings/DiagnosticsView.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3bc6ee9b00ddae6c37c69fe2526e575617161a9fdf627178ab34d8b2ebcb8ad"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ReaderSettingsView: ClassTooLong \u2014 600 significant lines (blank, comment-only and punctuation-only lines excluded), 10 methods. The bar is 400 significant lines; this is 200 over it, 1.50\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderSettingsView.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"144b0986a2f572644bd932230b1d9709010ab44e2e227fc38a697301cafe87ea"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RSSArticleHTMLRenderer.articleStyleSheet: MethodTooLong \u2014 articleStyleSheet runs 148 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 48 over it, 1.48\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSUtilities.swift"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d71f309852b83a6adb2956e5ff00397402d97e6b45b8ff62f0b5da0a421350c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: BookSource/BookSourceStore.swift: FileTooLong \u2014 738 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: BookSourceStore (45-1296). The bar is 500 significant lines; this is 238 over it, 1.48\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceStore.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f215e13e5a91e4b76a361dddb398137c891334bee1de2b02da6beb235d849f79"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RegexHighlightRuleEditorView: ClassTooLong \u2014 588 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 188 over it, 1.47\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/RegexHighlightRuleEditorView.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"b17ab777cff9bf1db319e005f2c85640fd73216edbea66da9e6bc8a12c7f3026"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HighlightPackImporter.parseQiReader: MethodTooLong \u2014 parseQiReader runs 147 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 47 over it, 1.47\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":"Modules/Core/ReaderCore/Customization/HighlightPackImporter.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"62e8db33c317eddace66ea74a725cdd1a17e0a32f5d538ed224e230aac8577cb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AudiobookDetailView.body: MethodTooLong \u2014 body runs 147 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 47 over it, 1.47\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":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2d58a4650e39b64c443e2e66b1cac0de87b914498b4c6eee70d53f234e446d2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BrowserLayoutPageView: TooManyMethods \u2014 44 methods. The bar is 30 methods; this is 14 over it, 1.47\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageView.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd870e3a06d0c195b2dae3b35528c930385a80014e2422ea609fda98f5a7c595"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AudiobookDetailView: ClassTooLong \u2014 585 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 185 over it, 1.46\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":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c4cc841648842840fdcfd6e1534352a2afe5c828dfa6b6f880294dc06a1ea8c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ReaderCore/EPUBPageRenderer.swift: FileTooLong \u2014 728 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: EPUBPageRenderer (9-1131). The bar is 500 significant lines; this is 228 over it, 1.46\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/EPUBPageRenderer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd7863c6e313460e96a07bf4b63a49631ba53bbd8d627e4e1f5e61b0713e5d8f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ModernParser/ModernRuleEngine.swift: FileTooLong \u2014 728 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: ModernRuleEngine (26-1297). The bar is 500 significant lines; this is 228 over it, 1.46\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/ModernRuleEngine.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a333b8de15173dc72b749edf07373af10ad6767d68ce2299f1904b0cdb9e09ef"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FixedPageReaderViewController: ClassTooLong \u2014 581 significant lines (blank, comment-only and punctuation-only lines excluded), 42 methods. The bar is 400 significant lines; this is 181 over it, 1.45\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":"Modules/Features/FixedPageReader/FixedPageReaderViewController.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c4baaa2afe8a8c980a91214350c91ebd925b1e77a7cb2ecd1ecfe2f9a37608c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EPUBAttributedStringBuilder.buildChapter: MethodTooLong \u2014 buildChapter runs 144 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 44 over it, 1.44\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/EPUBAttributedStringBuilder.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf19c72f1870d63ef31d671ff69a15a766c9d8da8c6df36261db9110d7ea34b8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ReaderView.loadContent: MethodTooLong \u2014 loadContent runs 143 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 43 over it, 1.43\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":"Modules/Features/Reader/ReaderView\u002BPageBuilding.swift"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0fe8e7e3f028a8b44736b242a91a55161339ace30e9acb2d71aa9e0b823737f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Customization/ReedenThemeImporter.swift: FileTooLong \u2014 707 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: ReedenThemeImporter (12-1003). The bar is 500 significant lines; this is 207 over it, 1.41\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReedenThemeImporter.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d16b96653773213191b0348e8a5faf3f2f95229f592908aea2d315818157517"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/AppearanceThemeView.swift: FileTooLong \u2014 705 significant lines (blank, comment-only and punctuation-only lines excluded), about 68% of them inside a single declaration: AppearanceThemeView (13-775). The bar is 500 significant lines; this is 205 over it, 1.41\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Settings/AppearanceThemeView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bb30d812bb52c2a2964c5b7fdfb9f41744427abcd4acf684a093b6d0890f243"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: BrowserView.swift.top-level code: FunctionTooLong \u2014 top-level code runs 141 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 41 over it, 1.41\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":"Modules/Features/WebBrowser/BrowserView.swift"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d3d7765cc1c3e158958e8e68c023d86e9eaea99f05c034d6ea3b2393e2ca599"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: CoreText/OnlineProviderAttributedStringBuilder.swift: FileTooLong \u2014 703 significant lines (blank, comment-only and punctuation-only lines excluded), about 79% of them inside a single declaration: OnlineProviderAttributedStringBuilder (204-1018). The bar is 500 significant lines; this is 203 over it, 1.41\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/OnlineProviderAttributedStringBuilder.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"67d3b2d42b9588815f992807cc167dfdeeed8a7b4c8d623e88a1f3a073a3f211"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FixedPageReaderViewController: TooManyMethods \u2014 42 methods. The bar is 30 methods; this is 12 over it, 1.40\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/FixedPageReader/FixedPageReaderViewController.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"68fd125b10aed5378caab3693c1334ac03444d5bf2dab8b924503b3269817fed"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FixedPageWebtoonViewController: TooManyMethods \u2014 42 methods. The bar is 30 methods; this is 12 over it, 1.40\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/FixedPageReader/Webtoon/FixedPageWebtoonViewController.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"53d206c1abd2077bad77723d9b9c50959bb34ef7abb7b2948413c56f6f000821"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OnlineProviderAttributedStringBuilder: ClassTooLong \u2014 556 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 156 over it, 1.39\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/OnlineProviderAttributedStringBuilder.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"b15f6022a2b72a85a3efa90ada35749601d72f1007bfe561469c48f89c95a744"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Online/ChapterFetcher.swift: FileTooLong \u2014 693 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: ChapterFetcher (35-1114). The bar is 500 significant lines; this is 193 over it, 1.39\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/ChapterFetcher.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ee4b0e5d46e284f3cf56980e4078fc636efa70efb700a1006c1030c0c537d3b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: BookSource/BookSourceFormLoginView.swift: FileTooLong \u2014 688 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: BookSourceFormLoginView (12-1052). The bar is 500 significant lines; this is 188 over it, 1.38\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookSource/BookSourceFormLoginView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b6a65fa68b4984088936ace0fdfd03d1d791caf27efebbf8c5c1cc2f98bd995"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RSSListView: ClassTooLong \u2014 548 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 148 over it, 1.37\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/RSS/RSSListView.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1454d8633057efd8ae3c8b59f2e749cc591eec7780033882208fb7e4bb219e9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CommentBubbleSVGRecognizer.parseSVG: MethodTooLong \u2014 parseSVG runs 136 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 36 over it, 1.36\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":"Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"da53fee312a2c92bfaa6b751d4059021d8046444b42ac9ed82835caa9d5dfbe8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RuleModuleValidator: ClassTooLong \u2014 543 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 143 over it, 1.36\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":"Modules/Services/RuleModules/RuleModuleValidator.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"36b020cba867510fbc357ac3d92f19ba132d1dee25c1db620f912994cb6de06d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: CoreText/CoreTextScrollEngine.swift: FileTooLong \u2014 678 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: CoreTextScrollEngine (19-1129). The bar is 500 significant lines; this is 178 over it, 1.36\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextScrollEngine.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4cc8084c74c4d4621474121d1a11e8de806d603ded4bff85196ce040c78b0d9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Customization/ChapterTitleHTMLCodec.swift: FileTooLong \u2014 676 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 176 over it, 1.35\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":"Modules/Core/ReaderCore/Customization/ChapterTitleHTMLCodec.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e563bf35c4e62a9a9aaf7dba20554003d2948f87790846a22a0b2d6986b77da8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: BookSource/JsBridgeBrowserView.swift: FileTooLong \u2014 676 significant lines (blank, comment-only and punctuation-only lines excluded), about 62% of them inside a single declaration: JsBridgeBrowserRepresentable (357-1001). The bar is 500 significant lines; this is 176 over it, 1.35\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookSource/JsBridgeBrowserView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3135502403d94d557b02b23c9acd904776810ecc59ab9c4dc2ac0c6c696a6c2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CoreTextPageEngine.preloadChapterInternal: MethodTooLong \u2014 preloadChapterInternal runs 135 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 35 over it, 1.35\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageEngine.swift"},"region":{"startLine":1150}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd0a69f653adffe56942274b86f9973cbc595be850758d1fd0f54e22c7e1897f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Online/DiscoverViewModel.swift: FileTooLong \u2014 673 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: DiscoverViewModel (130-1227). The bar is 500 significant lines; this is 173 over it, 1.35\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/DiscoverViewModel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fa6430ae9db9d63712c0380cc24f74965385642b5b5e61a8fd36d2823042861"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Online/SearchAggregator.swift: FileTooLong \u2014 673 significant lines (blank, comment-only and punctuation-only lines excluded), about 66% of them inside a single declaration: SearchAggregator (394-1162). The bar is 500 significant lines; this is 173 over it, 1.35\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/SearchAggregator.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9eaa04595ddc6f737fa561e6a727ab0de9e6b5ab5a475d57d482af4df6a3c03"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Reader/RegexHighlightRuleEditorView.swift: FileTooLong \u2014 667 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: RegexHighlightRuleEditorView (5-839). The bar is 500 significant lines; this is 167 over it, 1.33\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/RegexHighlightRuleEditorView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"195b12b50624d50abb83e975290dab27e61e1bc4a34b25d8b051b31827c79e5b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HTTPTTSEngine: TooManyMethods \u2014 40 methods. The bar is 30 methods; this is 10 over it, 1.33\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":"Modules/Core/TTS/HTTPTTSEngine.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"55ac19d95268936823f628061293e02cda37b2e5f2222be73ba429a377337b60"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CoreTextPageEngineView.updateUIViewController: MethodTooLong \u2014 updateUIViewController runs 133 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 33 over it, 1.33\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":"Modules/Features/Reader/CoreTextPagedView.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f4ed1795db3da0f7940c25c5e678f620134481738c8f753c67dc7467a062ca"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WebViewFetcher: ClassTooLong \u2014 529 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods. The bar is 400 significant lines; this is 129 over it, 1.32\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Network/WebViewFetcher.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"f06d7c0b65fe527f536cf2647cf1087fd8aded3cfce8848980f4cf356ac122d1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ElementNode.asRenderableNode: MethodTooLong \u2014 asRenderableNode 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":"Modules/Core/ReaderCore/CoreText/HTMLStyledASTRenderableNodeConverter.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bd3d0c9c0d5ae2ec0600902d4e2388fbe2a4cebb23d3939471617b549b2c492"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: BookDetail/VideoDetailView.swift: FileTooLong \u2014 653 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: VideoDetailView (33-896). The bar is 500 significant lines; this is 153 over it, 1.31\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/VideoDetailView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9cd52ac9c8a38bfb8f07a58aa50361e8306f0469cbff84a5a4d94595da1cbc6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SystemTTSEngine: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 over it, 1.30\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/SystemTTSEngine.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d27f34d3e6d3038663032903c0319304fbf5875055c73bae5c70547b7c6b613"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AIAgenticAssistant.run: MethodTooLong \u2014 run runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\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":"Modules/Core/AI/AIAgenticAssistant.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce508d18c3f157dcf8ef9db3659c544c592ae58b91d312ddf7ed9329a89f7fdc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CommentBubbleSVGRecognizer.draw: MethodTooLong \u2014 draw runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\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":"Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift"},"region":{"startLine":1255}}}],"partialFingerprints":{"codehealthFindingId/v1":"5547915343f0f2d564a5ba766d85e47f3be957a3585522aaf2ac62685a2a9904"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: auth.authRouter: FunctionTooLong \u2014 authRouter runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\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":"gateway/src/routes/auth.ts"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8b18864d53642d6a83f49552ddd6d11c9d840ef9a10853ea1b7a6d13900a691"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ReaderStyleCSSCodec.apply: MethodTooLong \u2014 apply runs 129 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 29 over it, 1.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":"Modules/Core/ReaderCore/Customization/ReaderStyleCSSCodec.swift"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"397bd236db38f3db4b346a13e2e0f7df052b187465c9236abdac6a64ddd19055"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HomeView.body: MethodTooLong \u2014 body runs 129 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 29 over it, 1.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":"Modules/Features/Bookshelf/HomeView.swift"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d6d19cc99bd3f91e15e42cb9c103ce696176642ac5e7565c1335e369e5f2a30"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Home/HomeSectionCards.swift: FileTooLong \u2014 644 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 144 over it, 1.29\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":"Modules/Features/Explore/Home/HomeSectionCards.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"61820871540846bebbff131424f0c8b21d1a9392214cbf3cf7496bf6c3501720"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: BrowserLayout/BrowserLayoutPageView.swift: FileTooLong \u2014 642 significant lines (blank, comment-only and punctuation-only lines excluded), about 73% of them inside a single declaration: BrowserLayoutPageView (10-825). The bar is 500 significant lines; this is 142 over it, 1.28\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"306d3dc24f99147f743bf74366e6e5bbf4d3e2064acaea9f27cba0b533d80d4a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: CoreText/CoreTextChunkSlicer.swift: FileTooLong \u2014 640 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: CoreTextChunkSlicer (9-915). The bar is 500 significant lines; this is 140 over it, 1.28\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextChunkSlicer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5855188d0d116d61416d3bc7038aff2fd2b83484804ce94fde98fe5b626e18f5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OnlineProviderAttributedStringBuilder.buildHTMLChapter: MethodTooLong \u2014 buildHTMLChapter runs 128 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 28 over it, 1.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/OnlineProviderAttributedStringBuilder.swift"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"62584cc97a70212ffc34c831a876a083d774ac26901e7719a1ae06b616def782"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CoreTextChunkAttachmentExtractor.extract: MethodTooLong \u2014 extract runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextChunkAttachmentExtractor.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb6dd4dc9e9026e4f16822e824687e4140f6dc79a5b2e53ce8122f48fc3e354c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CoreTextPageView.renderPage: MethodTooLong \u2014 renderPage runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"836eb4eb1dd1d1251fefa3e59e90a905673cedc7ffaa2677871c90bd7a7fde2e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FirebaseAuthManager: ClassTooLong \u2014 507 significant lines (blank, comment-only and punctuation-only lines excluded), 34 methods. The bar is 400 significant lines; this is 107 over it, 1.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Account/FirebaseAuthManager.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"da6c1a7a9fd3d002cdc25f9bb751c618260b964ee72fa7e6c15141794319772f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: BookDetail/AudiobookDetailView.swift: FileTooLong \u2014 633 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: AudiobookDetailView (30-879). The bar is 500 significant lines; this is 133 over it, 1.27\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"052205375fb68fe4bc972e8c2b769d8b111b475c13abfac49a43ad8486cb8d26"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RegexHighlightDecorationRenderer: ClassTooLong \u2014 506 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 106 over it, 1.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/RegexHighlightDecorationRenderer.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fe3f83aebb7962cedca35c9470646c1c1e389d96dcbe2e837c9d74165f84c21"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Reader/ReaderSettingsView.swift: FileTooLong \u2014 631 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: ReaderSettingsView (6-964). The bar is 500 significant lines; this is 131 over it, 1.26\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderSettingsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"781d5996801d34389a173ae94dad1ff2730f03673853ba6743c9efc40940736e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HTMLAttributedStringBuilder.resolvedStyle: MethodTooLong \u2014 resolvedStyle runs 126 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 26 over it, 1.26\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift"},"region":{"startLine":1296}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b48bf8d84690e3c0d66225c38c0bc62c9a916dc1312044e7ad4e605ea5aa47b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OnlineBookView.loadTOC: MethodTooLong \u2014 loadTOC runs 126 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 26 over it, 1.26\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/OnlineBookView.swift"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd728d1b3c831694377c55bcee3c279a5d9cdaa491496710259a0b2962ee3df9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ChangeSource/ChangeSourceSearch.swift: FileTooLong \u2014 629 significant lines (blank, comment-only and punctuation-only lines excluded), about 74% of them inside a single declaration: ChangeSourceSearch (254-972). The bar is 500 significant lines; this is 129 over it, 1.26\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/ChangeSource/ChangeSourceSearch.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbe45aef6753c4b647703b4e35c603dd6f786d3a0dc675d9a41b458d0b1402f1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Home/HomeSectionForm.swift: FileTooLong \u2014 625 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 125 over it, 1.25\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":"Modules/Features/Explore/Home/HomeSectionForm.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec49ccf1e2c501747a7b7376f92cad3a68c4249cc28456427ce086159664c898"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ChapterTitleInspectorView: ClassTooLong \u2014 499 significant lines (blank, comment-only and punctuation-only lines excluded), 21 methods. The bar is 400 significant lines; this is 99 over it, 1.25\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ChapterTitleInspectorView.swift"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"b384c4f59a22fd6c0af7a3658ac0b7c66fb6ebf8cb95cbf73f66841dbec68f37"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: TTS/HTTPTTSEngine.swift: FileTooLong \u2014 620 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: HTTPTTSEngine (10-938). The bar is 500 significant lines; this is 120 over it, 1.24\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/HTTPTTSEngine.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"21c42b16f622868e8724d7cdc10b207cd44d22e201c6b74ff35e59162655aebb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BookStore.refreshOnlineBookMetadata: MethodTooLong \u2014 refreshOnlineBookMetadata runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\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":"Modules/Services/LibraryStore/BookStore.swift"},"region":{"startLine":2263}}}],"partialFingerprints":{"codehealthFindingId/v1":"e39c29d21fe891701bf1b4a262567f9f927199b76f858bda8160716ecb7d4770"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: BookSource/BookSourceListView.swift: FileTooLong \u2014 617 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: BookSourceListView (7-914). The bar is 500 significant lines; this is 117 over it, 1.23\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookSource/BookSourceListView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c77a22e9120264016ac7495db2366b8934b99da9305ad1a4cfc7d2c736572489"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ReaderViewModel: TooManyMethods \u2014 37 methods. The bar is 30 methods; this is 7 over it, 1.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderViewModel.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cd940b61558a4681fa6c5da2dd36efb6a8f09feb2558dcb8bf55e0173fb0dd9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: HTMLTableRasterizer: ClassTooLong \u2014 493 significant lines (blank, comment-only and punctuation-only lines excluded), 4 methods. The bar is 400 significant lines; this is 93 over it, 1.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/HTMLTableSupport.swift"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"88901aab5b9b54f87fe618deb9d40b85b84d73d9558a8c8c92e57ecc08f88b7d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: BookSource/BookSource.swift: FileTooLong \u2014 615 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 115 over it, 1.23\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":"Modules/Core/BookSource/BookSource.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"adec5809e32bcf37e5c4ccd8fe13884d83d6304c68a3a7d4431db3b6437afb7c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RSSFeedView.body: MethodTooLong \u2014 body runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/RSS/RSSFeedView.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"624c4aca5cf60d5c02018dee064434ddec444e84f905ca2d5812b11224c35f5a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AboutSupportView.body: MethodTooLong \u2014 body runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Settings/ProfileView.swift"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"89e01fc753aab1a0e265b8b1cd775c8b6de35c9d097bed942d0e2c79635da099"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: DesignSystem/DesignTokens.swift: FileTooLong \u2014 607 significant lines (blank, comment-only and punctuation-only lines excluded), about 61% of them inside a single declaration: DSLayout (486-1240). The bar is 500 significant lines; this is 107 over it, 1.21\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/SharedUI/DesignSystem/DesignTokens.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"303c3ed314bf1b69b6433842ae40f01ea53b4c6e2219f8f1246ec217a4aee0cc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BookSourceFetcher.fetchTOCPackage: MethodTooLong \u2014 fetchTOCPackage runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceFetcher\u002BTOC.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"99349a97dc756415da7a371672a5453c410327c32aee8810f7ed801de3854a45"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LegadoSourceBridge: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\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":"Modules/Core/RuleEngine/ModernParser/JS/LegadoSourceBridge.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccef3b39a8dc12578453424416204eebd74fb3aac0ba0ef3f47bec3de151e694"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WorkDetailView: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\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":"Modules/Features/BookDetail/WorkDetailView.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"db012d4eb0866c17f1b8f86e1d2ddd2f4e6a0eab152ee5f3674846a9250f06d2"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SubscriptionStore: ClassTooLong \u2014 477 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 77 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":"Modules/Services/Subscription/SubscriptionStore.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"84675aa28191b8cf843458ea75917f0bccc5d7bffce84c6c1289dd501be796de"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: BookSource/SharedImportQueueDrainer.swift: FileTooLong \u2014 596 significant lines (blank, comment-only and punctuation-only lines excluded), about 72% of them inside a single declaration: SharedImportQueueDrainer (19-650). The bar is 500 significant lines; this is 96 over it, 1.19\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/SharedImportQueueDrainer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c416e1cbd76a3875d27ba97fba484809054c1ec5d42448b0e7a1baedd280ab0d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AppearanceThemeView: ClassTooLong \u2014 476 significant lines (blank, comment-only and punctuation-only lines excluded), 9 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":"Modules/Features/Settings/AppearanceThemeView.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f29e15cf29a7ffb31e0e3a465bdcad96d6e538e2e33f1173b8b2628a6147273"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Customization/ReaderStyleAssetStore.swift: FileTooLong \u2014 594 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 94 over it, 1.19\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":"Modules/Core/ReaderCore/Customization/ReaderStyleAssetStore.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"72cd3161bc3a2e4ffece624ca016032a35991718d58ec08daba7e0667265b57b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Network/WebViewFetcher.swift: FileTooLong \u2014 592 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: WebViewFetcher (97-896). The bar is 500 significant lines; this is 92 over it, 1.18\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Network/WebViewFetcher.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7261ae667f380bb8e390db2b6a2c00cd512e288fb9cc36a419b6e9c6179f65d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: FixedPageReader/FixedPageReaderViewController.swift: FileTooLong \u2014 590 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: FixedPageReaderViewController (11-878). The bar is 500 significant lines; this is 90 over it, 1.18\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/FixedPageReader/FixedPageReaderViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bace2616cf58cfc83f13d3c06f37604df8637de8d49072fe93c7e15234b3309d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChapterTitleAttributedBuilder.append: MethodTooLong \u2014 append 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":"Modules/Core/ReaderCore/CoreText/ChapterTitleAttributedBuilder.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"e44d8ea791a1326379225fea8c4f0fe44012632c975679d7a3914c4e5eb58060"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CoreTextChunkSlicer.sliceVertical: MethodTooLong \u2014 sliceVertical 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":"Modules/Core/ReaderCore/CoreText/CoreTextChunkSlicer.swift"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"53c159657cc2a9e11b3de53f93609d0fab2ad5daf54a88a5d1c07134a0759687"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BrowserLayoutPageView: ClassTooLong \u2014 468 significant lines (blank, comment-only and punctuation-only lines excluded), 44 methods. The bar is 400 significant lines; this is 68 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageView.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc3e149c595ee966190874d3bc3e14a41f52e7d5d6ff8e1ff5572b2db24fcf45"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Customization/ReaderBatterySVGTemplate.swift: FileTooLong \u2014 584 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 84 over it, 1.17\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":"Modules/Core/ReaderCore/Customization/ReaderBatterySVGTemplate.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"93101a317614212c374e7399ce2cdf3be6cf6884385b6ff49ec764d5487e3531"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ChangeSourceSearch: ClassTooLong \u2014 466 significant lines (blank, comment-only and punctuation-only lines excluded), 47 methods. The bar is 400 significant lines; this is 66 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/ChangeSource/ChangeSourceSearch.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"709d647916dc34434e8f0889677dbd7dd109461d09424f3b99865919268c72bf"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CoreTextHorizontalLineDrawer: ClassTooLong \u2014 462 significant lines (blank, comment-only and punctuation-only lines excluded), 13 methods. The bar is 400 significant lines; this is 62 over it, 1.16\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextHorizontal/CoreTextHorizontalLineDrawer.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"540f368f57484071d4509132fb65b54363a9ca72fc141bc919ce7323ebfe93b0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: RSS/RSSFeedView.swift: FileTooLong \u2014 577 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 77 over it, 1.15\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":"Modules/Features/RSS/RSSFeedView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"20b167fd3bb57c976a405a5bb1a92e446e92b30cc0ed9a05f934723c37fd9bb0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: LibraryStore/CoverImagePipeline.swift: FileTooLong \u2014 576 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 76 over it, 1.15\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":"Modules/Services/LibraryStore/CoverImagePipeline.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9907abd82743e093233df620954ba538f5aaa85851a4cb879b2b7bd518a88f3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NodeAttributedStringRenderer.renderInlineImage: MethodTooLong \u2014 renderInlineImage runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift"},"region":{"startLine":1447}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa6d1c739f5ac7e0ee9c2628e8574a14ba64aa3ba51d6d91745aea7441073d7f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BookStore.importEpub: MethodTooLong \u2014 importEpub runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/BookStore.swift"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f97be7da1e7b4e9720de7d2a453bed1283a6ede205630a8f30860516cb05cb8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: CoreText/ChapterTitleDesignRenderer.swift: FileTooLong \u2014 572 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 72 over it, 1.14\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":"Modules/Core/ReaderCore/CoreText/ChapterTitleDesignRenderer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dae89115d6c9eabbb04c2bcc558e0397b7aecc9ebc5465a40741a6ce756a4ee9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: SharedApp/ContentView.swift: FileTooLong \u2014 571 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 71 over it, 1.14\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":"Targets/Yuedu/SharedApp/ContentView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"77f03e5e6e54eb77ac54448f51f4ce339a316bf19b9a06a3df506d041bf175fd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NodeAttributedStringRenderer.applyBlockStyle: MethodTooLong \u2014 applyBlockStyle runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\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":"Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift"},"region":{"startLine":1071}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fd3f1e42161796442dc60cc1ccc6ca8825cd01b02585f77e2b731fd4ed2be3b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SystemTTSEngine: ClassTooLong \u2014 455 significant lines (blank, comment-only and punctuation-only lines excluded), 39 methods. The bar is 400 significant lines; this is 55 over it, 1.14\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":"Modules/Core/TTS/SystemTTSEngine.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"878d717caa88a47292e64e8fd5d6ed9bfaa8ed3485a31decb638ddc8cc1f6eac"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: RuleModules/RuleModuleValidator.swift: FileTooLong \u2014 567 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: RuleModuleValidator (40-843). The bar is 500 significant lines; this is 67 over it, 1.13\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/RuleModuleValidator.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"55324dcb69d29c9d505e3f5244aad8830792a422b8341dc705ca0286b0de3719"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TXTPageEngine: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\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":"Modules/Core/ReaderCore/CoreText/TXTPageEngine.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d2f3bbbcfbfa4e3e932510d2ee5f6a247bc773fcc46091f41169a47ebebc1fb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ReaderStyleAssetStore: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\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":"Modules/Core/ReaderCore/Customization/ReaderStyleAssetStore.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"974ae8902625e7f80ce610e3e88f1d05cb8765fb89df5ca57ef4d5eeeeabd20a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FirebaseAuthManager: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\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":"Modules/Services/Account/FirebaseAuthManager.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1d5e3d18d853f8bfabdffd9a744f75fc1a07ff955157291991f6a4a88286c8c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NodeAttributedStringRenderer.renderBlock: MethodTooLong \u2014 renderBlock runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\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":"Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"7455b3077f9d3063f9c877572fa980acdd6784849d459d9e6c11ebe63a4a1114"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Coordinator.handleCoverPan: MethodTooLong \u2014 handleCoverPan runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\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":"Modules/Features/Reader/CoreTextPagedView.swift"},"region":{"startLine":2595}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f870963dc239d276a9ecec9d7e364aaaf760ea88b9840e21907eb128794fad3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LoginView.body: MethodTooLong \u2014 body runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\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":"Modules/Features/Settings/LoginView.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd37565643dd773618e6d92d6441d5f998ba8ca9e3ebc3e39392e4759a469cee"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ContentView.body: MethodTooLong \u2014 body runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\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":"Targets/Yuedu/SharedApp/ContentView.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ca139e6e03534c86aee2e67a607c0cb5313d1e0d9cd99ef91017229d6284ddd"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FirestoreSyncManager: ClassTooLong \u2014 450 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 50 over it, 1.13\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":"Modules/Services/iCloud/FirestoreSyncManager.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a08d0c783cb2a036f836e0ece296812ad6150ce2115205cf9e15a7148723b75"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Account/FirebaseAuthManager.swift: FileTooLong \u2014 562 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: FirebaseAuthManager (15-818). The bar is 500 significant lines; this is 62 over it, 1.12\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Account/FirebaseAuthManager.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1c7c392e51aa2b337fa01ce3b4a11b2fcf0bcb7e1b37d155b67230e1aaa03d1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AIBookSummaryService.run: MethodTooLong \u2014 run runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/AI/AIBookSummaryService.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5dfce68db4df5eff2ceaebe83a54307704477ffd2b3f6b9457bfb80f2e559bf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RuleModuleValidator.validateFields: MethodTooLong \u2014 validateFields runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/RuleModuleValidator.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"291630c33c5b2663eb00172f018f1ef7e99045704020f7796492acc5d6d3b218"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RSSStore: ClassTooLong \u2014 447 significant lines (blank, comment-only and punctuation-only lines excluded), 62 methods. The bar is 400 significant lines; this is 47 over it, 1.12\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSStore.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"1abb3af0e665626e90c9990c86fe985ae721d13b66d723532d27657170bfaf68"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LottieTitleTemplateImporter: ClassTooLong \u2014 447 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 47 over it, 1.12\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/LottieTitleTemplateImporter.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a1c912f6a14083dba9019ed14036ad38f9aee799db50c1d4becdf326972d73"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Reader/ReaderNavigationTransitionDriver.swift: FileTooLong \u2014 558 significant lines (blank, comment-only and punctuation-only lines excluded), about 75% of them inside a single declaration: ReaderNavigationTransitionDriver (41-676). The bar is 500 significant lines; this is 58 over it, 1.12\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderNavigationTransitionDriver.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d39db25e2c5aa809cc8bade36c8b37c76364bd4f01b1b1ed2c21028eed92459f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: CoreText/SVGWebViewRasterizer.swift: FileTooLong \u2014 555 significant lines (blank, comment-only and punctuation-only lines excluded), about 76% of them inside a single declaration: SVGWebViewRasterizer (70-675). The bar is 500 significant lines; this is 55 over it, 1.11\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/SVGWebViewRasterizer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aecaaaa8f3dbe874598ed2873abc7d0ad78aae4949efb1e53365d0b9b0f4a10c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CustomHTTPProvider.buildJSRequestOrThrow: MethodTooLong \u2014 buildJSRequestOrThrow runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\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":"Modules/Core/TTS/TTSAudioProvider.swift"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"7087f755ad29c0a029fd258ca966970696e3d2714b2107146d9b22d99e547b76"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SearchAggregator: ClassTooLong \u2014 441 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 41 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/SearchAggregator.swift"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"b66d3a908d33fda42f49822266cbed509c6a985e0ba74851a0c4613131f504b8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BookSourceHealthChecker: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceHealthChecker.swift"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8cef758f86324ea491c8c53f1613737513a2fb984c9b6dd98c5f8bff319e10c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OfflineDownloadManager: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Offline/OfflineDownloadManager.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"60f30001a4f0bebdfe85022d0d3f50144805da7a7d8073d54656f8e88493a6b2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Offline/OfflineDownloadManager.swift: FileTooLong \u2014 549 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 49 over it, 1.10\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":"Modules/Services/Offline/OfflineDownloadManager.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"016590a88be51fcde10185fc7d9fc6dec0cc383c39114393801fcb1e90a04f10"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CustomHTTPProvider: ClassTooLong \u2014 436 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 36 over it, 1.09\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":"Modules/Core/TTS/TTSAudioProvider.swift"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"500abde32ba5d155b7d2de8cd8d4392a818b0de0596c375f0a5a20f08b75f30d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: yuedu_appApp.body: MethodTooLong \u2014 body runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\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":"Targets/Yuedu/SharedApp/yuedu_appApp.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"f30853d3165232c9a66072de818ea0b6f7c842ec03b93eff65948dd5faeec583"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: UserDetailView: ClassTooLong \u2014 434 significant lines (blank, comment-only and punctuation-only lines excluded), 12 methods. The bar is 400 significant lines; this is 34 over it, 1.09\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":"Modules/Features/Settings/UserDetailView.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6dbd800443792a3183baeeceaf5a451dc5a418d204a99601fc767f33486a3ce"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LegadoRhinoNormalizer.normalize: MethodTooLong \u2014 normalize runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoRhinoNormalizer.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"e459fe77260aedb074559311acf3da0c9de126070de9bf4efe272ca60095be05"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Explore/DiscoverShowcaseView.swift: FileTooLong \u2014 535 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 35 over it, 1.07\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":"Modules/Features/Explore/DiscoverShowcaseView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4335738be563b3232ada0e0ae36372d3d138d1e1eb678b9d50253b5ac9d4667"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: TTS/NowPlayingPopup.swift: FileTooLong \u2014 535 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 35 over it, 1.07\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":"Modules/Features/Reader/TTS/NowPlayingPopup.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0da6cbb1c5fae2fbd124d0e952af3f37fe27b2118e12d855cd406a29ed43e7b4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SharedImportQueueDrainer: ClassTooLong \u2014 427 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 27 over it, 1.07\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":"Modules/Core/BookSource/SharedImportQueueDrainer.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"adacdf6eee973f2963768dd9c58675cf2fa6087e016448a0e6537f5fbdea7925"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BookSourceFormLoginView: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\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":"Modules/Features/BookSource/BookSourceFormLoginView.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"85250dee422fffac265b312303336be75dcb4bf688e8c684f18d2a29c89aefa4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: iCloud/FirestoreSyncManager.swift: FileTooLong \u2014 533 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: FirestoreSyncManager (11-669). The bar is 500 significant lines; this is 33 over it, 1.07\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/iCloud/FirestoreSyncManager.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"53898d6fb8c588cfbea4c1db1eef26d3d1685aea5e8a2e3aae1397117ede49eb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Reader/ChapterTitleInspectorView.swift: FileTooLong \u2014 530 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: ChapterTitleInspectorView (3-703). The bar is 500 significant lines; this is 30 over it, 1.06\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ChapterTitleInspectorView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa42739775c74280f6f9f31f43414ac80ad3fbcdde5bb4df29c185cd759d1095"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HTMLAttributedStringBuilder.buildChildren: MethodTooLong \u2014 buildChildren runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fb208fd382e103a7e31469a512382ed8d456689766767d68fa2d72a924c6a01"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ReaderTranslationLayout.splice: MethodTooLong \u2014 splice runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Translation/ReaderTranslationLayout.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ba96726ef94fff9184b2b71b24af4ee1b43fd563839a9f67fae3d5d94fd027"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ReaderCardTransitionAnimator.interruptibleAnimator: MethodTooLong \u2014 interruptibleAnimator runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderCardTransitionAnimator.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b91eca6610ce4fd409eb2b47525d5adba722774678a60901e460417d06686a8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SVGWebViewRasterizer: ClassTooLong \u2014 420 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 20 over it, 1.05\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/SVGWebViewRasterizer.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ab279b62cb0d04f1036fe0a8958416550fa6b5b287b1493a72bc4913bbb3e88"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Online/OnlineReadingPipeline.swift: FileTooLong \u2014 525 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 25 over it, 1.05\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":"Modules/Services/Online/OnlineReadingPipeline.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ea86c4a3a796b6cc9f5d46a73528b352c25c4977e3f8a2e6c805fa8b19a21f2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Customization/AppearanceThemePreset.swift: FileTooLong \u2014 524 significant lines (blank, comment-only and punctuation-only lines excluded), about 74% of them inside a single declaration: AppearanceThemePreset (177-766). The bar is 500 significant lines; this is 24 over it, 1.05\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/AppearanceThemePreset.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dfe632aa9d0b1f61f6d7a195585c9459555aeeb39b405b52a93224e862e36b9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ReaderNavigationTransitionDriver: ClassTooLong \u2014 416 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods. The bar is 400 significant lines; this is 16 over it, 1.04\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderNavigationTransitionDriver.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"f95152541ceeacb7adea6d2e00308c491d58630e8327a3d37a3458b2fad656f6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: JsBridgeBrowserRepresentable: ClassTooLong \u2014 416 significant lines (blank, comment-only and punctuation-only lines excluded), 9 methods. The bar is 400 significant lines; this is 16 over it, 1.04\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookSource/JsBridgeBrowserView.swift"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"0167ede9dd9264a7f71425f22ffa8e68dc70aa2564e4f82745917cb14739bb2d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LottieTitleTemplateImporter.\u0060import\u0060: MethodTooLong \u2014 \u0060import\u0060 runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\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":"Modules/Core/ReaderCore/Customization/LottieTitleTemplateImporter.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"e740c85f84b6629629abbf42172201f6b64e93802a2174c97a5bef35e0a83bf2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ReaderStyleAssetStore.importValidatedPackageAssets: MethodTooLong \u2014 importValidatedPackageAssets runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\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":"Modules/Core/ReaderCore/Customization/ReaderStyleAssetStore.swift"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"49c9dcbea41ac02ec12f4c999505ab1ed3c4f0f05b90294060cdb5973988ca57"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BookSourceFormLoginView.body: MethodTooLong \u2014 body runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\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":"Modules/Features/BookSource/BookSourceFormLoginView.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"adcc9942599d5cce9dcb2225cf04d3bc89a2874e1b4d7b5c70e964496993b82d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: String: TooManyMethods \u2014 31 methods, declared across 8 files: Sources/String.swift (23), Reader/ReaderBookSearchMatcher.swift (2), BookSource/RuleAutoComplete.swift (1), EPUB/BookParsing.swift (1), \u002B4 more file(s). The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AICharacterProfile.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c03add3a799ec2401c08ac1db8dde0d01b6e692d930b176cefd4185ee8f0f7d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: VideoDetailView: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/VideoDetailView.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"89c106bc5ca88a54484e38ffa24085f5cd15bbcce8b6c71266e725c9d076dcc8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CoverImagePipeline: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/CoverImagePipeline.swift"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"9774ad9ccef3e748fe146050ea63cde72e14c6357225bf33ad1173fddec7831c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ChapterFetcher: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/ChapterFetcher.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"d08e9b9bb91ea1ed188bd84dffb23f326a251ddf395e9d8f8e557d726da3dbdc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ModuleProvider: TooManyMethods \u2014 31 methods, declared across 2 files: RuleModules/ModuleProvider.swift (27), RuleModules/ModuleWorkDetail.swift (4). The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/ModuleProvider.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"545b27f8e8dc0fbbecd1d9752d274ebe4c6d61e1bf69f6fd7a15243e5ac00318"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SubscriptionStore: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Subscription/SubscriptionStore.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bfb0d470dc454b3c462cd960605fa020a222e48bf28542fcebb59d8375dda68"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Reader/CoreTextChunkCell.swift: FileTooLong \u2014 514 significant lines (blank, comment-only and punctuation-only lines excluded), about 67% of them inside a single declaration: CoreTextChunkCollectionCell (257-731). The bar is 500 significant lines; this is 14 over it, 1.03\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/CoreTextChunkCell.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"37bb1ea1b73edd93efbf8857228c4efa8def8868d1e3270288f1487c63f7ca7e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Network/SingleWriteHTTPExchange.swift: FileTooLong \u2014 514 significant lines (blank, comment-only and punctuation-only lines excluded), about 70% of them inside a single declaration: SingleWriteHTTPExchange (53-566). The bar is 500 significant lines; this is 14 over it, 1.03\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Network/SingleWriteHTTPExchange.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49901ccf58b711b1b42fe1818c1d90fcb798cfdb64f5542442085982d37ffcbe"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LegadoCompletionValue: ClassTooLong \u2014 408 significant lines (blank, comment-only and punctuation-only lines excluded), 4 methods. The bar is 400 significant lines; this is 8 over it, 1.02\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":"Modules/Core/RuleEngine/ModernParser/JS/LegadoCompletionValue.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"77e57b78cd1c3f2c2ebc6735f47d845a3fe07caf098866629a17788350665ba7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: CoreText/RegexHighlightDecorationRenderer.swift: FileTooLong \u2014 510 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: RegexHighlightDecorationRenderer (8-738). The bar is 500 significant lines; this is 10 over it, 1.02\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/RegexHighlightDecorationRenderer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"33b924b21d0c649766479fbaad838e2b32169b8a91c6dd30d2e8b7cda1204c1a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ReaderCardTransitionAnimator.computeFrameValues: MethodTooLong \u2014 computeFrameValues runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\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":"Modules/Features/Reader/ReaderCardTransitionAnimator.swift"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"c638e9e47a07081f2705f5f0cae0216cb20d66c7eab243aadf65f55d1c4fa53e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Reader/ReaderBatterySVGImportView.swift: FileTooLong \u2014 508 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 8 over it, 1.02\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":"Modules/Features/Reader/ReaderBatterySVGImportView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"91cfad1109a6e5b3e3e5386ece0dfbb5d17c4c0cd41a5ede3cb0b725a30a0948"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BookSourceFetcher.searchOutcome: MethodTooLong \u2014 searchOutcome runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\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":"Modules/Core/BookSource/BookSourceFetcher\u002BSearch.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e9441153371d2f0afb97ff8edf468fed4ec9d5b27e7beb7170c0347654bf4a0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ReaderStyleDeclarationScanner.scan: MethodTooLong \u2014 scan runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\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":"Modules/Core/ReaderCore/Customization/ReaderStyleCSSCodec.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"acae3cedf7ee977ff5a41632583562a035d5b0ddd42ee5bf1eefa48c6a4e9306"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BookSourceFormLoginView.configureLegadoRuntime: MethodTooLong \u2014 configureLegadoRuntime runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\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":"Modules/Features/BookSource/BookSourceFormLoginView.swift"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0c97460b37be5e02403e4d22e2f166dfe0355817d9b86590d7c855aee3fac8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (68 shared lines): Modules/Features/BookDetail/AudiobookDetailView.swift:233-423 | Modules/Features/BookDetail/OnlineBookView.swift:261-471 \u2014 These two members are variants of one another: 68 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":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1720903cabb15f29fce67a84db39b037d96f0f4a60a667caf907a916530e944"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (42 shared lines): Modules/Features/Reader/ReaderCommentCardSettingsView.swift:13-97 | Modules/Features/Reader/ReaderParagraphBubbleSettingsView.swift:12-101 \u2014 These two members are variants of one another: 42 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":"Modules/Features/Reader/ReaderCommentCardSettingsView.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"9285947da6ab30922ce4977a6fc6028a25c4a5afcddd6375a99baaf64395aafd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Modules/Features/WebBrowser/BrowserView.swift:483-515 | Modules/Features/WebBrowser/BrowserView.swift:517-537 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/WebBrowser/BrowserView.swift"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ef88c003a37e5b5863aafe4e82e5fa5e4d747d6f96e7ac5fdca921f38b62862"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:1083-1090 | Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:2346-2353 | Modules/Core/ReaderCore/CoreText/EPUBAttributedStringBuilder.swift:437-445 | Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift:732-740 | Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift:2554-2562 | Modules/Core/ReaderCore/CoreText/RunDelegateProvider.swift:432-439 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":1083}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9c5e7d54f99cda2e428d2d37fb4ec1778b3bb8ae5532a988214ab29ff81b27a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Modules/Core/RuleEngine/JSRuleEngineRunner.swift:244-303 | Modules/Core/RuleEngine/JSRuleEngineRunner.swift:305-359 | Modules/Core/RuleEngine/JSRuleEngineRunner.swift:361-421 | Modules/Core/RuleEngine/JSRuleEngineRunner.swift:427-455 | Modules/Core/RuleEngine/JSRuleEngineRunner.swift:458-480 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/JSRuleEngineRunner.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"79f96f349a5259b35abb5a924cecc87dfba782e9d2901bdd3309829ccd2f6753"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Modules/Services/Network/WebViewFetcher.swift:214-265 | Modules/Services/Network/WebViewFetcher.swift:269-314 | Modules/Services/Network/WebViewFetcher.swift:346-426 | Modules/Services/Network/WebViewFetcher.swift:517-562 | Modules/Services/Network/WebViewFetcher.swift:570-622 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Network/WebViewFetcher.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"01c716baad786dea4eaf7af6cd1ca51e0b8c49de05f762e19a6ecc2293846fca"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Modules/Services/Works/Providers/ShelfProvider.swift:138-155 | Modules/Services/Works/Providers/ShelfProvider.swift:160-181 | Modules/Services/Works/Providers/ShelfProvider.swift:197-213 | Modules/Services/Works/Providers/ShelfProvider.swift:217-234 | Modules/Services/Works/Providers/ShelfProvider.swift:242-278 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/Providers/ShelfProvider.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"07d0b4ad536faaa6d85e50dc085d6451c0d29ea1a9cd8aadad981c58734849d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Modules/Core/BookSource/BookSourceFetcher\u002BCache.swift:239-244 | Modules/Core/ReaderCore/CoreText/NodeAttributedStringBuilder.swift:97-102 | Modules/Services/LibraryStore/UniversalBookResourceAdapter.swift:266-271 | Modules/Services/Online/ChapterCacheRepository.swift:436-441 \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":"Modules/Core/BookSource/BookSourceFetcher\u002BCache.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"89829b8d3bb805238b0481cff5b4004e4247ae3dd40e0d0163964b77f1f52068"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Modules/Core/EPUB/EPUBBookParser.swift:93-102 | Modules/Core/ReaderCore/ReaderHTMLUtilities.swift:151-162 | Modules/Services/LibraryStore/UniversalBookInterfaces.swift:95-103 | Modules/Services/Online/BookContentProviderAdapters.swift:94-102 \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":"Modules/Core/EPUB/EPUBBookParser.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f1148c36616338cf924606d4010f8263e999bfcb475239fda9d116a2191ff57"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Modules/Core/ReaderCore/BrowserLayout/BrowserReaderAttributes.swift:13-27 | Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:374-608 | Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:610-673 | Modules/Core/ReaderCore/CoreText/TXTLazyAttributedStringBuilder.swift:77-197 \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":"Modules/Core/ReaderCore/BrowserLayout/BrowserReaderAttributes.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"3239fedc62a66f79e9845473e22844c703feac68f8e9d1a74cf6f307e06ab4bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Modules/Core/ReaderCore/CoreText/CoreTextChunk.swift:215-250 | Modules/Core/ReaderCore/CoreText/CoreTextChunk.swift:261-283 | Modules/Core/ReaderCore/CoreText/CoreTextChunk.swift:291-317 | Modules/Core/ReaderCore/CoreText/CoreTextChunk.swift:326-349 \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":"Modules/Core/ReaderCore/CoreText/CoreTextChunk.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bdf88c639907f7639c8d44c56b061952e5d11a144f593f5876f4a6a1280343b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Modules/Core/ReaderCore/CoreText/CoreTextChunk.swift:370-423 | Modules/Core/ReaderCore/CoreText/CoreTextChunk.swift:426-463 | Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:1955-2002 | Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:2004-2043 \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":"Modules/Core/ReaderCore/CoreText/CoreTextChunk.swift"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"fae30a5a406fb4b5ca0720d4f7afa0075929d43e8ab83c765d19aa3aefbd7691"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Modules/Core/ReaderCore/CoreText/CoreTextChunkAttachmentExtractor.swift:11-172 | Modules/Core/ReaderCore/CoreText/CoreTextChunkSlicer.swift:864-914 | Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:2554-2798 | Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:2800-2853 \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":"Modules/Core/ReaderCore/CoreText/CoreTextChunkAttachmentExtractor.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d91abc53e3265a47c7a7a6722dc46564ea09d6cd9e6918f7a04f026c71d5664"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Modules/Core/ReaderCore/CoreText/CoreTextChunkAttachmentExtractor.swift:11-172 | Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:2554-2798 | Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:3355-3438 | Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:3440-3530 \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":"Modules/Core/ReaderCore/CoreText/CoreTextChunkAttachmentExtractor.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b7c7d67b47c78820f549c0805465eac4e3f34fbd70a255c9c70fca21d4083ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Modules/Features/AI/AIBookshelfOrganizerView.swift:56-76 | Modules/Features/AI/AICustomPromptListView.swift:8-54 | Modules/Features/Library/Modules/AIRecommendationModuleView.swift:24-53 | Modules/Features/Reader/ReaderBatterySVGImportView.swift:152-214 \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":"Modules/Features/AI/AIBookshelfOrganizerView.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"53c4adfb574f57f21d58560686c83473dfd9f14bea66c35c360130cdadbffce4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Modules/Features/RSS/RSSListView.swift:1535-1590 | Modules/Features/RSS/RSSSourceEditSheets.swift:38-114 | Modules/Features/Reader/ReaderCommentCardSettingsView.swift:203-279 | Modules/Features/Reader/ReaderParagraphBubbleSettingsView.swift:305-390 \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":"Modules/Features/RSS/RSSListView.swift"},"region":{"startLine":1535}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff18ba1f743488bc4cfcd8270ed3407b98e095913ce3f0a627b8f4ea3bf44899"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Modules/Features/Reader/ReaderChromeCustomization.swift:217-251 | Targets/Yuedu/SharedApp/GlobalSettings.swift:4127-4152 | Targets/Yuedu/SharedApp/GlobalSettings.swift:4252-4281 | Targets/Yuedu/SharedApp/RootTabCustomization.swift:138-174 \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":"Modules/Features/Reader/ReaderChromeCustomization.swift"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee4c9c4dde2e5ad4541e1cf00af76be60b8bee0ad5001f7d88debba347f936c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Modules/Features/Reader/ReaderSettingsView.swift:70-165 | Modules/Features/Reader/TTS/AudiobookView.swift:1091-1136 | Modules/Features/Reader/TTS/AudiobookView.swift:1159-1208 | Modules/Features/Stats/ReadingStatsView.swift:48-80 \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":"Modules/Features/Reader/ReaderSettingsView.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8200be4c7a21e9d4ee73dba0a2a7d96d995f4f9e2688c5520a15c9f8711f364"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Modules/Services/RuleModules/RuleModuleValidator.swift:315-335 | Modules/Services/RuleModules/RuleModuleValidator.swift:518-553 | Modules/Services/RuleModules/RuleModuleValidator.swift:557-609 | Modules/Services/RuleModules/RuleModuleValidator.swift:613-645 \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":"Modules/Services/RuleModules/RuleModuleValidator.swift"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"d87de9c669d66b4072e1fc83d59106f3839e412f8514d825f933030606351a5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (83 corresponding lines): Modules/Features/BookSource/BookSourceListView.swift:672-767 | Modules/Features/Settings/TTSSettingsView.swift:443-525 \u2014 These two members are one piece of code written twice and then edited apart: 83 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookSource/BookSourceListView.swift"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"39e1a704ffc9b33f007204d3502d22a9c494d062861185e16191e4b1b8d1be18"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): Modules/Core/ReaderCore/CoreText/EPUBMediaPlaceholderRenderer.swift:27-81 | Modules/Core/ReaderCore/CoreText/EPUBMediaPlaceholderRenderer.swift:184-234 \u2014 These two members are one piece of code written twice and then edited apart: 51 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/EPUBMediaPlaceholderRenderer.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d079f66bf9dbe9703cf911b337d2561fdcd4ccb7b22e87c439102eaee00730"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): Modules/Core/RuleEngine/RuleEngine.swift:570-609 | Modules/Core/RuleEngine/RuleEngine.swift:612-650 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"f01cd7c24b11d02acf4d90a7621e82a8ecd65bc902b6c4a69550a70b29705efc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (65 corresponding lines): Modules/Services/LibraryStore/BookStore.swift:504-568 | Modules/Services/LibraryStore/BookStore.swift:575-641 \u2014 These two members are one piece of code written twice and then edited apart: 65 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/BookStore.swift"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e03b7fcbb7222aa7817c2ec18fda87b16e664141e1ec10be04d181245fa493d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 42\u002B corresponding lines): Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift:3170-3211 | Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift:3213-3256 | Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift:3281-3325 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 42 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift"},"region":{"startLine":3170}}}],"partialFingerprints":{"codehealthFindingId/v1":"e05ba813cd81130d6ad019560867db88060f8bcb86f20e55d811a9345977f489"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): Modules/Core/RuleEngine/RuleEngine.swift:167-234 | Modules/Core/RuleEngine/RuleEngine.swift:237-285 \u2014 These two members are one piece of code written twice and then edited apart: 49 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d2b084c6c23e5f8639ce4226b3d6dbd45c553b3c593a72929a79c64499483e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Modules/Services/Works/AuthorWorks.swift:121-150 | Modules/Services/Works/ShelfGenres.swift:7-33 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/AuthorWorks.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"d13c9739f3cf3f21db76a3cc6cca21b1a93c5528aba84a7b4ad73777428d989b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift:1973-2025 | Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift:2027-2095 \u2014 These two members are one piece of code written twice and then edited apart: 53 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift"},"region":{"startLine":1973}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf0782bd1b4c861813565cd9b4a328da7d25b9cf7aff73e1dd591e316a1f1de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): Modules/Services/RuleModules/ModuleSearch.swift:45-75 | Modules/Services/Works/LibrarySearch.swift:96-128 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/ModuleSearch.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1a19e600f76e7fd58c30556c8b7a81f3b56f5d39555566f70ca5cd68938ea56"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (61 corresponding lines): Modules/Core/ReaderCore/EPUBPageRenderer.swift:658-718 | Modules/Core/ReaderCore/EPUBPageRenderer.swift:720-788 \u2014 These two members are one piece of code written twice and then edited apart: 61 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/EPUBPageRenderer.swift"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ee876addd8b8cf5165cb0aaf39086f4caab515f63ae4f450e6ae03c037164b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Modules/Services/RuleModules/RuleModuleClient\u002BComments.swift:89-107 | Modules/Services/RuleModules/RuleModuleClient\u002BDetail.swift:42-58 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/RuleModuleClient\u002BComments.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"804a950990b8485b5360a1bd70a5263a04e226a2c426eee7679c41ecea091f76"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): Modules/Core/RuleEngine/JSRuleEngineRunner.swift:174-210 | Modules/Core/RuleEngine/JSRuleEngineRunner.swift:212-242 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/JSRuleEngineRunner.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f4f99da900ebe14e9d7a66462d42f472aaf1f27dbf4c7fe88be2d8a3b7d9d49"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): Modules/Features/BookSource/BookSourceAddFlow.swift:472-524 | Modules/Features/Settings/TTSSettingsView.swift:527-576 \u2014 These two members are one piece of code written twice and then edited apart: 50 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookSource/BookSourceAddFlow.swift"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7c1b5774b2cce29913d7e9996b66a8e17febd2cdd202fdb82a32d94f9dbcf49"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): Modules/Core/ReaderCore/CoreText/ChapterTitleDesignRenderer.swift:683-712 | Modules/Core/ReaderCore/CoreText/RegexHighlightDecorationRenderer.swift:599-631 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ChapterTitleDesignRenderer.swift"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae3f4e73cdb3d0f3a1f1b61f2ad6044fa824e96c55f0332f1808fc23bcf23bfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): Modules/Core/RuleEngine/ModernParser/ModernRuleEngine.swift:814-848 | Modules/Core/RuleEngine/ModernParser/ModernRuleEngine.swift:884-918 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/ModernRuleEngine.swift"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c505bbf41fe2f099597fd99a18582e76ccb1c6f159660b1acd87386ef50626a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (64 corresponding lines): Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift:1552-1618 | Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift:1620-1683 \u2014 These two members are one piece of code written twice and then edited apart: 64 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift"},"region":{"startLine":1552}}}],"partialFingerprints":{"codehealthFindingId/v1":"58741c3eac8a84cb09903a598ac74aad0482345abd97fbbb92c650696506fa23"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): Modules/Features/BookDetail/AudiobookDetailView.swift:681-724 | Modules/Features/BookDetail/VideoDetailView.swift:748-785 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fbe0446abe7425f204d17f263344b8d217bef3b32acec2e5aa686b3335a03a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): Modules/Core/ReaderCore/CoreText/CoreTextPageEngine.swift:817-864 | Modules/Core/ReaderCore/CoreText/CoreTextPageEngine.swift:936-972 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageEngine.swift"},"region":{"startLine":817}}}],"partialFingerprints":{"codehealthFindingId/v1":"c169a3910f6f2f99875d74d37462f240c7c9e59eccca48fbf8f7ac272044c201"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): Modules/Core/ReaderCore/ReaderHTMLUtilities.swift:950-987 | Modules/Core/ReaderCore/ReaderHTMLUtilities.swift:1349-1391 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/ReaderHTMLUtilities.swift"},"region":{"startLine":950}}}],"partialFingerprints":{"codehealthFindingId/v1":"89c6802c25f35dc910fb2c4902fc8942deef18cd842ecbb7ea6b68bf96d6349f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:1002-1036 | Modules/Core/ReaderCore/CoreText/RunDelegateProvider.swift:397-430 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":1002}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a95501565f21c3944076f0c027137cb6bf953001b17fc66ddf1ef297a199ce2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Modules/Services/LibraryStore/AozoraBookImporter.swift:47-77 | Modules/Services/LibraryStore/MOBIBookImporter.swift:19-46 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/AozoraBookImporter.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"d52b6a383fe919b01b5ea62b95e354d69e05a10882b5e796abd333162b2437c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:1865-1889 | Modules/Core/ReaderCore/CoreText/TextSelectionInteractor.swift:95-127 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":1865}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e065ec57b8d7a83fbbae4e0be4212e9987dc55b3c2ac5f37f92ab00fab7bfd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Modules/Services/Works/HomePageStore.swift:307-324 | Modules/Services/Works/HomePageStore.swift:334-351 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/HomePageStore.swift"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"fafcd052b684e316828b1b04b83619a1ddffd207a84b0860f2380426b0793d02"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): Modules/Features/Reader/ReaderDownloadOptionsView.swift:451-489 | Modules/Features/Settings/DownloadManagementView.swift:401-441 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderDownloadOptionsView.swift"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"14f24498e9b9240f369c1ae0f2969a538e83d08ec5036162ec11e2c5d59e1b4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Modules/Core/ReaderCore/CoreText/ReaderDialogueBubbleDecorationShape.swift:40-65 | Modules/Core/ReaderCore/CoreText/ReaderDialogueBubbleDecorationShape.swift:81-115 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ReaderDialogueBubbleDecorationShape.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c1f5e709170dbae62c7475add0cf788588ec98d8c874e3be776f566792e8733"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): Modules/Features/Explore/Home/HomeArticleCards.swift:233-267 | Modules/Features/Explore/Home/HomeSectionCards.swift:935-969 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Explore/Home/HomeArticleCards.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4ad410c0c4d16e065bbda4637a990da05c158a406db5fdac5706d072bde6c22"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Modules/Core/BookSource/SharedImportQueueDrainer.swift:461-488 | Modules/Core/BookSource/SharedImportQueueDrainer.swift:537-569 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/SharedImportQueueDrainer.swift"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"75cee498ab0f366028fc247496f159812b52cea3bdf9dc9abde69cd2b7e870d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Modules/Core/AI/AIReadingEvidence.swift:101-120 | Modules/Features/WebBrowser/BrowserView.swift:155-192 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIReadingEvidence.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdbe0bc8ce01f9070e81f4deab7b65d3f06c1e585b581f910659104d5eeee636"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): Modules/Services/Online/BookSourceSearchFanOut.swift:111-143 | Modules/Services/Online/BookSourceSearchFanOut.swift:146-175 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/BookSourceSearchFanOut.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d8dd9291773b6906943b644038644ac0fec75def15e0a9343ae7b93373c9272"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Modules/Core/BookSource/BookSource.swift:844-859 | Modules/Services/RuleModules/RuleModule.swift:332-348 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSource.swift"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"41f001bddca35dce18b39552736b6b1cbaff66eec94d28147a6527ff7913a969"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Modules/Services/Works/WebDAVIndexCoordinator.swift:237-261 | Modules/Services/Works/WebDAVIndexCoordinator.swift:278-304 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/WebDAVIndexCoordinator.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d8cd80a69076de135e316679a71d49ac8e2085f323e81aa4435ee22e71472e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Modules/Core/AI/AIBookshelfOrganizer.swift:95-118 | Modules/Core/AI/AIChapterTranslation.swift:80-98 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIBookshelfOrganizer.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0774476e63efaea70a463aecbe9a2c925e820600e8eedc176caaa8a8940f9c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Modules/Features/Explore/Home/HomeSectionCards.swift:659-679 | Modules/Features/Explore/Home/HomeSectionCards.swift:819-844 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Explore/Home/HomeSectionCards.swift"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"42a32ca8f7d1108480a733dc607175e7d5160afe53212931056059f4dac74943"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Modules/Features/Reader/CoreTextPagedView.swift:2250-2276 | Modules/Features/Reader/CoreTextPagedView.swift:2278-2309 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/CoreTextPagedView.swift"},"region":{"startLine":2250}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ee513632a49d41647d9515c1b481f55511b11d39786e463edb003e10174571"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Modules/Core/RuleEngine/RuleEngine.swift:1331-1351 | Modules/Core/RuleEngine/RuleEngine.swift:1353-1380 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":1331}}}],"partialFingerprints":{"codehealthFindingId/v1":"86c21fea27272902c97e9393d187a0d647d907eb5a1cde18d467b135c0f8b4f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Modules/Core/RuleEngine/ModernParser/ModernRuleEngine.swift:968-1010 | Modules/Core/RuleEngine/ModernParser/ModernRuleEngine.swift:1057-1085 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/ModernRuleEngine.swift"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"d528e7892fd72b41607cede8ae85e28f838a0e1e032efb37231a79b16283a0f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Modules/Core/ReaderCore/CoreText/ChapterOutline.swift:157-183 | Modules/Core/ReaderCore/CoreText/CoreTextChunkSlicer.swift:804-821 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ChapterOutline.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"084e91ac95f828d3921f2226005fcc4a24e964a4b790d18b3061449e8407700c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): Modules/Core/TTS/AudiobookPlayer.swift:1584-1616 | Modules/Core/TTS/TTSCoordinator.swift:1244-1282 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/AudiobookPlayer.swift"},"region":{"startLine":1584}}}],"partialFingerprints":{"codehealthFindingId/v1":"d10abf5cb25cb304d76dcdf407513d5d95e28c1cb5060184c6868e4064012128"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): Modules/Features/BookDetail/ChangeCoverView.swift:103-142 | Modules/Features/BookDetail/OnlineCoverSearchView.swift:55-90 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/ChangeCoverView.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a3cca587bec6a7070581c3bb88b8587350e60fad7cf28174d0ecf7473e7d244"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): Modules/Features/RSS/RSSListView.swift:1652-1684 | Modules/Features/RSS/RSSListView.swift:1705-1740 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/RSS/RSSListView.swift"},"region":{"startLine":1652}}}],"partialFingerprints":{"codehealthFindingId/v1":"23adcd8486c4d339930b527b344beebf1c20100509a731b5d9dfcf5aac2d8198"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Modules/Core/EPUB/PublicationSession.swift:1541-1564 | Modules/Core/EPUB/PublicationSession.swift:1647-1665 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/PublicationSession.swift"},"region":{"startLine":1541}}}],"partialFingerprints":{"codehealthFindingId/v1":"687775a7dd3fa2b31395b297cb48770895e13994d89916fc8aeaebf55e51f985"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Modules/Core/RuleEngine/ModernParser/XPathExtractor.swift:211-237 | Modules/Core/RuleEngine/ModernParser/XPathExtractor.swift:263-284 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/XPathExtractor.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a31ca335cb062b8bdd63c6f8d4154898ec1b7c447c0b349b7d18cb5a05d183c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Modules/Features/Reader/CoreTextPagedView.swift:2844-2863 | Modules/Features/Reader/CoreTextPagedView.swift:2865-2881 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/CoreTextPagedView.swift"},"region":{"startLine":2844}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ec2988962006a9abe17f8ca6e073d3a101cdca8998b73eed2e9705df000be23"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Modules/Core/ReaderCore/Customization/ChapterTitleHTMLCodec.swift:856-868 | Modules/Core/ReaderCore/Customization/ReaderStyleCSSCodec.swift:894-905 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ChapterTitleHTMLCodec.swift"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a2b879f95eca11d92a6a86198046a5eb7bbe4079bbd04dc3aeeccbdb7241c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Modules/Core/EPUB/EPUBBookParser.swift:61-91 | Modules/Services/Online/BookContentProviderAdapters.swift:66-92 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/EPUBBookParser.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ab4e07bfe990377f05486ea012b70cfc4377b0554e5f6f0532c999c034515f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Modules/Features/FixedPageReader/FixedPageReaderViewController.swift:684-709 | Modules/Features/FixedPageReader/FixedPageReaderViewController.swift:711-736 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/FixedPageReader/FixedPageReaderViewController.swift"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"b46660358c9de8593fedca46903f2be780ed77f66dd0f42fc50a00aced8b38ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): Modules/Services/WebDAV/WebDAVManager.swift:328-345 | Modules/Services/WebDAV/WebDAVManager.swift:348-368 | Modules/Services/WebDAV/WebDAVManager.swift:371-391 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/WebDAV/WebDAVManager.swift"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfabd2b3879c4b466432267e4a4c77c5fa79b14420373b3fbe8b3d0fda7bb327"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift:2806-2844 | Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift:2846-2899 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift"},"region":{"startLine":2806}}}],"partialFingerprints":{"codehealthFindingId/v1":"6748e6b7856b7a3f4420119573803dcb8b0ce6754beab37a6b493d6cd5f27c49"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Modules/Core/ReaderCore/CoreText/EPUBStyleResolver.swift:445-466 | Modules/Core/ReaderCore/CoreText/EPUBStyleResolver.swift:557-583 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/EPUBStyleResolver.swift"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a4aaf0d6c627258cc9034221940a2f917976d4c23ba69bc788fe9722606b008"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:2046-2084 | Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:2086-2117 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":2046}}}],"partialFingerprints":{"codehealthFindingId/v1":"98925f7a748c82cf6bd6253cf506c9ab3a533f310cab48b1a1c6ca802c88bfc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): Modules/Core/EPUB/PublicationSession.swift:1173-1204 | Modules/Services/LibraryStore/UniversalBookResourceAdapter.swift:273-304 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/PublicationSession.swift"},"region":{"startLine":1173}}}],"partialFingerprints":{"codehealthFindingId/v1":"011428914e72f4c66fe306042cf212d5046e18aa7cae4a54a9449b741eb00e4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Modules/Features/Reader/TTS/TTSRoleCastView.swift:615-645 | Modules/Features/Settings/TTSCloudVoiceSettingsView.swift:196-223 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/TTS/TTSRoleCastView.swift"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff45cb4ea3b24cc91939768aeb49f705e1ab134c28c1778b9c84e816d72f479e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Modules/Core/ReaderCore/ReaderHTMLUtilities.swift:2383-2410 | Modules/Services/RSS/RSSUtilities.swift:760-788 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/ReaderHTMLUtilities.swift"},"region":{"startLine":2383}}}],"partialFingerprints":{"codehealthFindingId/v1":"91a177fe8fb6fcc05e64a1575d88acc52fef3e4d6ef2a55548f640be8fb6802a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Modules/Core/RuleEngine/ModernParser/RegexExtractor.swift:15-46 | Modules/Core/RuleEngine/ModernParser/RegexExtractor.swift:48-73 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/RegexExtractor.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bd467a6b02c05ead56c1d1dd3c1aa95a3e2099d315978d8c233eb287e0488b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Modules/Features/Reader/ReaderView\u002BSourceChange.swift:230-257 | Modules/Features/Reader/ReaderView\u002BSourceChange.swift:260-287 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderView\u002BSourceChange.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae42604ea23bba4b4544e072720e2ec4d9a1e30457e11eb9ec136f98cdb8ba15"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Modules/Features/BookDetail/AudiobookDetailView.swift:765-793 | Modules/Features/BookDetail/VideoDetailView.swift:804-830 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c4bfd1bb4162d2050fe692f98ac508e5a7677fdc4c131c843a02139edc950ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Modules/Services/Calibre/CalibreWirelessProtocol.swift:9-17 | Modules/Services/Works/HomeSection.swift:554-571 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Calibre/CalibreWirelessProtocol.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"48d746eb0992438585664c79a9b807044aa482fd600104cd4268ac46efc2d95d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Modules/Core/EPUB/FixedLayoutEPUBPageProvider.swift:194-211 | Modules/Core/PDF/PDFPageRasterizer.swift:115-129 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/FixedLayoutEPUBPageProvider.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"c12c6536f2382772a111dbe5b8bd6516109ab0c368759dd1b58d6186b2b16a73"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Modules/Features/Explore/Home/HomeSectionCards.swift:310-340 | Modules/Features/Explore/Home/HomeSectionCards.swift:345-367 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Explore/Home/HomeSectionCards.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f10ad3a83fd2c59d2fe43ae63978a8ca1f1741bacb4638f5ff7c06b5728bb0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Modules/Features/Explore/Home/HomeCollectionCards.swift:177-199 | Modules/Features/Explore/Home/HomeGenreList.swift:18-44 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Explore/Home/HomeCollectionCards.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"a46dcadae0fcc90bf4ffa16878f4f93072238e35437c80471471e95b7ab133bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Modules/Features/Explore/Home/HomeSectionForm.swift:354-374 | Modules/Features/Settings/AggregationDataSourcesView.swift:137-164 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Explore/Home/HomeSectionForm.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cde2ccf40e205459b9a142989f185047dd941e89493d6b73c57d75a50aff309"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Modules/Services/Works/HomePageStore.swift:210-230 | Modules/Services/Works/WorkDecisionsStore.swift:182-201 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/HomePageStore.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2e469d19dff3521aa8b3702e7ef3c381c46cf4aeb54106bf2d5383866c425c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Modules/Core/RuleEngine/ModernParser/RuleAnalyzer.swift:282-313 | Modules/Core/RuleEngine/ModernParser/RuleAnalyzer.swift:316-343 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/RuleAnalyzer.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a2c7798493b2081cb38fa045a2274f7cf47c39153145825a6c3cccdc475f64f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Modules/Core/TXT/TXTChapterParser.swift:818-847 | Modules/Core/TXT/TXTChapterParser.swift:849-876 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TXT/TXTChapterParser.swift"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"48b17cf0ac59b140c4ddde9a0f1edea26669f67dd0778ee5de45335da7e91080"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Modules/Core/RuleEngine/RuleEngine.swift:1021-1039 | Modules/Core/RuleEngine/RuleEngine.swift:1382-1397 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e81e5524216990dcd53a9d9ffbffdf7963f9f2157d89ee13c3498e6926d55aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Modules/Services/LibraryStore/BookStore.swift:3630-3656 | Modules/Services/Works/ImportedMetadataStore.swift:201-214 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/BookStore.swift"},"region":{"startLine":3630}}}],"partialFingerprints":{"codehealthFindingId/v1":"3414904679dc7788aaab8f849752c2a3fc5eb31b887f7ef38cfc2b04cb765e27"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Modules/Services/RuleModules/RuleModuleClient\u002BComments.swift:75-84 | Modules/Services/RuleModules/RuleModuleClient\u002BDetail.swift:61-67 | Modules/Services/RuleModules/RuleModuleClient\u002BReviews.swift:44-50 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/RuleModuleClient\u002BComments.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"a59dffeb6adf23983dd48a05d4c84b56912b278291b1c99ed54f3bb66c44600a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Modules/Services/LibraryStore/BookStore.swift:1720-1738 | Modules/Services/LibraryStore/BookStore.swift:1746-1763 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/BookStore.swift"},"region":{"startLine":1720}}}],"partialFingerprints":{"codehealthFindingId/v1":"02912f74536cea024fbe8a91e0877b3bb548cbead98b3d55cd5ef7f75201eab8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Modules/Core/BookSource/BookSourceStore.swift:386-400 | Modules/Core/BookSource/BookSourceStore.swift:405-419 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceStore.swift"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"652fca3ad708ba3b00fb10cd5d24601097308789be242103f8e25510a6820795"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Modules/Core/TTS/AzureTTS.swift:253-262 | Modules/Core/TTS/OpenAICompatibleTTS.swift:152-162 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/AzureTTS.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"026c9bb6c45e0a30a1151f8f08c8d6c96e7a64be817f5f1207c0d2daeb755f7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Modules/Services/PublicLibrary/AozoraLibraryDownloadService.swift:51-63 | Modules/Services/RuleModules/ModuleBooks.swift:104-121 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/PublicLibrary/AozoraLibraryDownloadService.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"b19afba051db1ffef35dc9cb6068a7378566a0c71dc876a725d3b739ec6fb63f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Modules/Core/EPUB/FixedLayoutEPUBPageProvider.swift:432-449 | Modules/Core/EPUB/FixedLayoutEPUBPageProvider.swift:451-469 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/FixedLayoutEPUBPageProvider.swift"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a262a05d79b9378f8ad64a83dcda5a1d6fc7982533671fcdab6760df9b32e67"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Modules/Features/FixedPageReader/Paged/FixedPagePagedViewController.swift:288-316 | Modules/Features/FixedPageReader/Paged/FixedPagePagedViewController.swift:318-345 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/FixedPageReader/Paged/FixedPagePagedViewController.swift"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"47c07c05d35a753dae1b35b08d360f302a3afb0e658d339ba065e0694c935620"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): Modules/Core/BookSource/BookSource.swift:76-90 | Modules/Core/BookSource/BookSource.swift:115-130 | Modules/Core/BookSource/BookSource.swift:216-229 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSource.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"6249f6dfc7c30355fb445a6ceee1fe0ea2c04297aa3659f63d6a270513ce58ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift:434-467 | Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift:472-510 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"b73662b78b5afa17939ce66a845b0f65bc979d1b511438ffbafbe6fa676e6bee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Modules/Features/BookDetail/VideoDetailView.swift:930-937 | Modules/Services/RuleModules/ModuleStore.swift:75-79 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/VideoDetailView.swift"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d8e1cc6894fb5502944558fa2adcfd4c435212e84a4399df015e9c787db522e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Modules/Features/Reader/ReaderModernBottomControlBar.swift:260-278 | Modules/Features/Settings/AppearanceThemeView.swift:1014-1039 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderModernBottomControlBar.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9495c89d6656f51ab7d606d7c1f5eb7398902274e5d13393f1748a44fd82551"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Modules/Features/Subscription/PaywallMemberPage.swift:199-223 | Modules/Features/Subscription/PaywallView.swift:295-324 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Subscription/PaywallMemberPage.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"3609ae4383951895a4b6468c4170f779591467533e8c92b9fea1ba7dbc188978"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): Modules/Core/EPUB/PublicationSession.swift:1809-1824 | Modules/Core/ReaderCore/CoreText/EPUBStyleResolver.swift:309-327 | Modules/Core/ReaderCore/CoreText/EPUBStyleResolver.swift:335-353 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/PublicationSession.swift"},"region":{"startLine":1809}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b61eb195ffe6f808d9aa1e947e8749cdd70bd8f43126004e5095dfdb0356c7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): Modules/Core/RuleEngine/ModernParser/URL/AnalyzeUrl.swift:432-447 | Modules/Core/RuleEngine/ModernParser/URL/AnalyzeUrl.swift:450-464 | Modules/Core/TTS/TTSAudioProvider.swift:1085-1106 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/URL/AnalyzeUrl.swift"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f448358ecbb15e275d1ada4f25340f7beb9952cb37b152316f59c04cda5a199"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Modules/Core/ReaderCore/CoreText/CharOffsetStore.swift:43-61 | Modules/Core/ReaderCore/EPUBProgress.swift:236-254 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CharOffsetStore.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce554b8c33746e2e50a4d1e938a974901bbfb5fba3e023f7a6115460923f0214"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift:1404-1423 | Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift:1428-1446 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift"},"region":{"startLine":1404}}}],"partialFingerprints":{"codehealthFindingId/v1":"cca9658ea10848694692f31fb2e6e6ef15489e72fe43a1320de3df44918a3058"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Modules/Core/TTS/TTSLoginScript.swift:58-75 | Modules/Features/BookSource/BookSourceFormLoginView.swift:421-440 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/TTSLoginScript.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"df2729b7c97409007de8d0f37aea304191dbbb1eab648ba85ae5eb115dc8272b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Modules/Core/ReaderCore/CoreText/MarkdownAttributedStringBuilder.swift:81-108 | Modules/Core/ReaderCore/CoreText/NodeAttributedStringBuilder.swift:61-93 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/MarkdownAttributedStringBuilder.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e0f142800fa1b004332e309fc4ef5133db3e20865496e4fb5ecec6f4b6c2164"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Modules/Services/ForYou/ForYouCandidateStore.swift:59-82 | Modules/Services/Works/HomeFeedPageStore.swift:78-95 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/ForYou/ForYouCandidateStore.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"5822ba34c4aa690b613bc91fa1f426d4ec68f827c36579ddd3e639bb8f89db70"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Modules/Features/Explore/Home/HomeCollectionCards.swift:372-391 | Modules/Features/Explore/Home/HomeSectionCards.swift:152-168 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Explore/Home/HomeCollectionCards.swift"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7b3178e51cd6dfacfff97e21d0906dab078edc14ae8cfb076227126f81cddba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Modules/Core/ReaderCore/CoreText/CoreTextChapterFramesetter.swift:122-138 | Modules/Core/ReaderCore/CoreText/CoreTextChapterFramesetter.swift:141-158 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextChapterFramesetter.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"432c327628925849e471c472591219ecb3386c5f1d52af9a9d25ca19bda8ac41"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Modules/Core/ReaderCore/CoreText/PaginationManager.swift:35-55 | Modules/Core/ReaderCore/CoreText/PaginationManager.swift:59-79 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/PaginationManager.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ec8635e8ca85d20f185f7c76971ebff70b95f5850e7cb5721015e5a75e1af52"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Modules/Services/OPDS/OPDSClient.swift:236-246 | Modules/Services/WebDAV/WebDAVBrowseClient.swift:63-73 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/OPDS/OPDSClient.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf1b84c2c571e0ff2c2e3dd29a1546f3ff72460191b9940d6e16d18f4b46798b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Modules/Services/LibraryStore/UniversalBookInterfaces.swift:148-167 | Modules/Services/LibraryStore/UniversalBookInterfaces.swift:169-188 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/UniversalBookInterfaces.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"989e503c3b48cc41c0df7551870ed039420b761ad2b0f45da5391bb58d1a3807"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Modules/Features/Explore/Home/HomeChartCards.swift:93-105 | Modules/Features/Explore/Home/HomeChartCards.swift:107-119 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Explore/Home/HomeChartCards.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eee00dfad8c020954a4e293feaa3664668def2439373c5356bf6db2f461c2aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Modules/Core/TXT/TXTMetadataProbe.swift:189-205 | Modules/Core/TXT/TXTMetadataProbe.swift:223-241 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TXT/TXTMetadataProbe.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c3782a9cf7baffa5cf11b37b9c0221a122c5e39631402a3dec378101f85eb43"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Modules/Features/FixedPageReader/Paged/FixedPagePageViewController.swift:130-161 | Modules/Features/FixedPageReader/Webtoon/FixedPageWebtoonCell.swift:90-117 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/FixedPageReader/Paged/FixedPagePageViewController.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"28760b084e1191c4b0df0e6cb67639d11b10c7b1056098c339815fb79b9b891e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Modules/Features/FixedPageReader/Paged/FixedPagePageViewController.swift:176-194 | Modules/Features/FixedPageReader/Webtoon/FixedPageWebtoonCell.swift:150-168 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/FixedPageReader/Paged/FixedPagePageViewController.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"840d4af1c04a653173b18a990cecdbd92cead59bb83ccade0078092fbdff3ccf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Modules/Services/Works/HomePageStore.swift:517-536 | Modules/Services/Works/WorkDecisionsStore.swift:168-180 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/HomePageStore.swift"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"63b491c82d4a258597647a4d2fa387adca03a437852a0bcf87047135cf4c7a32"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Modules/Core/EPUB/EPUBMediaOverlay.swift:116-127 | Modules/Core/ReaderCore/CoreText/ReviewCardContent.swift:364-373 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/EPUBMediaOverlay.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"34dfda60c3c81d028ab60699035194c36cb0a6dba8dde13751f7e637338989f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Modules/Features/BookSource/BookSourceQuickActions.swift:100-116 | Modules/Features/Explore/Home/HomeConfigurationPrompts.swift:30-45 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookSource/BookSourceQuickActions.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"279e9eb0392b0e6e615ad04776de80d863eb10f4f25a2980839dc5f2394e9727"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): Modules/Core/EPUB/EPUBMediaOverlay.swift:101-114 | Modules/Core/EPUB/EPUBMediaOverlay.swift:129-141 | Modules/Core/EPUB/PublicationSession.swift:1710-1724 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/EPUBMediaOverlay.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d11b755b720bb845aa9a48ddd505d73848c0a21c00104f6b4bc61c1da5ce272"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Modules/Features/Reader/ReaderView.swift:1555-1569 | Modules/Features/Reader/ReaderView.swift:1573-1588 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderView.swift"},"region":{"startLine":1555}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc8209e812736b5f58584bace45ae91048b39b97050cb77a2ec138ce8f9fa088"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Modules/Core/BookSource/BookSourceFetcher\u002BCache.swift:19-36 | Modules/Core/BookSource/BookSourceFetcher\u002BCache.swift:76-93 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceFetcher\u002BCache.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"bed77f59f2fa1183177f351a58470030092848f7fbda8c85726bd9d6f09b9e85"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:249-269 | Modules/Features/Reader/CoreTextChunkCell.swift:435-452 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf1896d653c87dc6ffe42dbe82b935ffb0ac4e421fb5f9ed2261fa03b0d5e8dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Modules/Core/TTS/HTTPTTSEngine.swift:844-871 | Modules/Core/TTS/SystemTTSEngine.swift:479-515 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/HTTPTTSEngine.swift"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4411c3c6f8d06b3cf693fe26f2fc8f500b8dae8d43069766502ca4bb9b84060"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Modules/Features/Settings/ReaderChromeIconSettingsView.swift:175-196 | Modules/Features/Settings/RootTabCustomizationView.swift:321-348 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Settings/ReaderChromeIconSettingsView.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f86f66438f77eda0063520d92844f2f0219d7e3d706b3dce797c93897bb7892"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Modules/Core/BookSource/RuleAutoComplete.swift:114-127 | Modules/Core/BookSource/RuleAutoComplete.swift:134-145 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/RuleAutoComplete.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"56ff347fb93ab7008bb9339db1a05beed5e0748ce8b25f0559b8bf1fc6222bf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Modules/Core/ReaderCore/CoreText/DialogueHighlighter.swift:155-167 | Modules/Core/ReaderCore/Customization/AppearanceThemePreset.swift:769-779 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/DialogueHighlighter.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f33f4ef47ce25954ca7c45fed3783859b606c01cbd69092c91f2f10cf1ba857"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Modules/Core/RuleEngine/ModernParser/JS/LegadoHeadlessWebView.swift:605-618 | Modules/Core/RuleEngine/ModernParser/JS/LegadoSourceBridge.swift:539-551 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoHeadlessWebView.swift"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f4394bdf9ddf81607cdc4704af87e8479b7798cc817a0a540d4cbe801c005eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Modules/Services/Account/FirebaseAuthManager.swift:207-231 | Modules/Services/Account/FirebaseAuthManager.swift:272-293 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Account/FirebaseAuthManager.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e1b51469f6b1503a994f9c5917873696a3ac506a700070d2977cc4e55586f5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): Modules/Features/Settings/AppearancePageBackgroundView.swift:218-235 | Modules/Features/Settings/DefaultCoverSettingsView.swift:204-222 | Modules/Features/Settings/LaunchImageSettingsView.swift:119-137 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Settings/AppearancePageBackgroundView.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"737aafb0a71ef59973e0860ced2d1f8fede03fc179e0af41ad80b9105ef0f1fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Modules/SharedUI/Components/SourceWebUIDelegate.swift:54-71 | Modules/SharedUI/Components/SourceWebUIDelegate.swift:73-91 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/SharedUI/Components/SourceWebUIDelegate.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2890e0c0c9d084a403e450f4c0a750c7af140c5e7d237e20acfcbaf91008f27"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 11\u002B corresponding lines): Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:1384-1396 | Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:3754-3764 | Modules/Core/ReaderCore/CoreText/CoreTextScrollEngine.swift:991-1001 | Modules/Features/Reader/NineSliceGuideEditor.swift:106-117 | Modules/Features/Reader/ReaderBarRenderer.swift:370-380 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":1384}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f758d6e14e19017e0610bf6712ca35eb3bfd4ffbad887d73d4d0fe8c213c453"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Modules/Features/BookDetail/OnlineBookView.swift:656-671 | Modules/Features/BookDetail/VideoDetailView.swift:720-733 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/OnlineBookView.swift"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb95194b64d18a948943d8de003427b3dc7e4b27f935b27347e50e17c7c0a618"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Modules/Services/RuleModules/ModuleSearch.swift:28-42 | Modules/Services/Works/LibrarySearch.swift:80-94 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/ModuleSearch.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac6138512e25ca1fe53c35127325c1ad0d7cbfa8273d9726d871409fb5c882fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Modules/Core/BookSource/ReviewSummaryResponseCache.swift:58-70 | Modules/Core/BookSource/ReviewSummaryResponseCache.swift:117-137 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/ReviewSummaryResponseCache.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdecd7957a716a68e91b23e01edc800e3bac4f40a35ce20fa8a0ec275a5cb347"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Modules/Core/RuleEngine/ModernParser/JsonExtractor.swift:291-300 | Modules/Core/RuleEngine/ModernParser/JsonExtractor.swift:305-317 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JsonExtractor.swift"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"d719face441313399dc103bfa53174e2355eff26f8c6c640d326c0da48e5d21c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Modules/Features/Reader/CoreTextCollectionScrollViewController.swift:609-630 | Modules/Features/Reader/CoreTextCollectionScrollViewController.swift:648-671 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/CoreTextCollectionScrollViewController.swift"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c70d8daf94ea0543fc0174d19cf836affb6c33f83c5822720974e31e2830cc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): Modules/Core/ReaderCore/Customization/ReadingSettingsScope.swift:49-72 | Modules/Core/ReaderCore/Customization/ReadingSettingsScope.swift:78-99 | Modules/Features/Settings/CustomizationImportOverview.swift:27-46 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReadingSettingsScope.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"f75987c189b2de2fd3c48127a989a16ff94d81fd9628a144318567c5c341744e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Modules/Core/RuleEngine/ModernParser/JS/JSCoreEngine.swift:627-640 | Modules/Core/RuleEngine/ModernParser/JS/JSCoreEngine.swift:645-661 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/JSCoreEngine.swift"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"879c39b6010118612b777098c99c8d740a05a0c58f98dd54290e5806e8d83d9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Modules/Features/Settings/ReaderChromeIconSettingsView.swift:151-166 | Modules/Features/Settings/RootTabCustomizationView.swift:222-238 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Settings/ReaderChromeIconSettingsView.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f726826f40255240ee46fca0e86b63b29d36c9a9ca8a9fa609151e80f5aee1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Modules/Core/BookSource/BookSourceParsingPipeline.swift:62-79 | Modules/Core/BookSource/BookSourceParsingPipeline.swift:85-105 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceParsingPipeline.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc5546cdd8e17d55ce7df3dd66d19f9a349f93be135405a618ba261e9e02dae1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Modules/Core/BookSource/SharedImportQueueDrainer.swift:834-844 | Modules/Core/EPUB/BookParsing.swift:117-128 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/SharedImportQueueDrainer.swift"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"9980ae118ba1e8d4d94ee476948d2682cfbe1b7dd997ab9c6f41989bf81a9db1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Modules/Features/Explore/Home/HomeSectionForm.swift:559-578 | Modules/Features/Explore/Home/HomeSectionForm.swift:584-602 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Explore/Home/HomeSectionForm.swift"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"98e0b0b2aef3b72e836cbd97503184ad2d900a0cab84fe299d12382b24b843b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Modules/Services/RSS/RSSFetcher.swift:854-861 | Modules/Services/RSS/RSSFetcher.swift:917-928 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSFetcher.swift"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"5138a2516d9cd9a5923d37dba27f0857280f09b6d02a6f370e8edb11e0f4101b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Modules/Core/EPUB/EPUBCFIResolver.swift:136-143 | Modules/Core/EPUB/PublicationSession.swift:1942-1949 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/EPUBCFIResolver.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"52404b743d1e7ff1e3524f5b90a8dd4d69aa03adf2d236bbdc9c747d9d8e41ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Modules/Core/EPUB/FixedLayoutEPUBPageProvider.swift:509-516 | Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift:895-903 | Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift:1165-1172 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/FixedLayoutEPUBPageProvider.swift"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc2755a6cd7014910a53d3a64683bf0ecf7f5f828491b3e966700e6052b7835b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:2936-2953 | Modules/Core/ReaderCore/CoreText/FixedLayoutPageViewController.swift:163-182 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":2936}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d6efb4d5ba1486792f8830ce4eb2d3aece15b5f4dfd72ed737bde2098bb5367"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Modules/Core/ReaderCore/Customization/ReaderBarLayout.swift:264-272 | Modules/Core/ReaderCore/Customization/ReaderOverlayLayout.swift:155-167 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderBarLayout.swift"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"669a3be4baab45e35510e00427a96f8fcb1f94b038f311754d4ae3c1cf4a44b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Modules/Core/RuleEngine/ModernParser/JS/LegadoHeadlessWebView.swift:326-333 | Modules/Core/RuleEngine/ModernParser/JS/LegadoHeadlessWebView.swift:335-343 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoHeadlessWebView.swift"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"cff8a8d589951c6fa0c403177dc64643f6f3c3d57a997a38915fa09663609fd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Modules/Core/BookSource/SharedImportQueueDrainer.swift:885-902 | Modules/Core/Replace/ReplaceRuleStore.swift:294-318 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/SharedImportQueueDrainer.swift"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"26db5c7a38eda460b28cff6eaeddb23880eb81dd109135b3064270793168beb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Modules/Core/BookSource/SourceAPIErrorLog.swift:286-293 | Modules/Core/BookSource/SourceAPIErrorLog.swift:295-304 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/SourceAPIErrorLog.swift"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"709c1d0c699ee5603ff90e96da32a72f7d3bcfd9eedc0bde1ba39993844ead03"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Modules/Core/TTS/AudiobookPlayer.swift:1571-1582 | Modules/Core/TTS/TTSCoordinator.swift:1212-1242 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/AudiobookPlayer.swift"},"region":{"startLine":1571}}}],"partialFingerprints":{"codehealthFindingId/v1":"700cbf9d0f2a04400a19685a71719002badfe982b3ec5f86f4961ea9b59dd879"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Modules/Features/Reader/ChapterTitleStyleSettingsView.swift:612-638 | Modules/Features/Reader/ReaderDialogueBubbleSettingsView.swift:593-609 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ChapterTitleStyleSettingsView.swift"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"b69dea3494e56ed111b796a038d241e56af8b89b642775f68a8b3b76438620b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Modules/Features/Reader/ReaderNavigationTransitionDriver.swift:447-462 | Modules/Features/Reader/ReaderNavigationTransitionDriver.swift:466-481 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderNavigationTransitionDriver.swift"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"d66b521b460d0ad091837f67a482e7f498ab2febbeb51331ae2a93e3932717a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Modules/Core/ReaderCore/CoreText/CoreTextPageEngine.swift:1964-1973 | Modules/Core/ReaderCore/CoreText/TXTPageEngine.swift:383-391 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageEngine.swift"},"region":{"startLine":1964}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd5e7780275cfe483be3e9f521232e904c2cef6b17e56a8595dee8993f3885f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Modules/Core/RuleEngine/ModernParser/JS/JSCoreEngine.swift:2332-2342 | Modules/Services/RSS/RSSModels.swift:261-273 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/JSCoreEngine.swift"},"region":{"startLine":2332}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3ca7ddea685924aa29288173aafaae1ee8a8afb646e1f381f1b2c6bc8fb0b15"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Modules/Services/LibraryStore/UniversalBookInterfaces.swift:117-131 | Modules/Services/LibraryStore/UniversalBookInterfaces.swift:133-146 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/UniversalBookInterfaces.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"56cc2a0367279d4ad8e19f9d55f648b047a70917731fb063d2fd5ce76762680c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Modules/Core/ReaderCore/CoreText/OnlineImageLoader.swift:326-341 | Modules/Services/LibraryStore/BookCoverLoader.swift:156-171 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/OnlineImageLoader.swift"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"26d6eaaaa28cd8bcff338278fadd056f4750bb788747539758267c2c44d49f6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Modules/Features/BookDetail/AudiobookDetailView.swift:652-673 | Modules/Features/BookDetail/OnlineBookView.swift:716-737 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbcd883edcc8c8ec7ec6fc663e7906986cfba21dc92a4e90c8a272ecfa7be80d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Modules/Features/Reader/TTS/AudiobookView.swift:646-671 | Modules/Features/Reader/TTS/NowPlayingPopup.swift:536-555 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/TTS/AudiobookView.swift"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2052b5e57ed29d8a085484974bb8ac71f03d15ccfa41f58a0611fe85ca5a003"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Modules/Services/Calibre/CalibreWirelessProtocol.swift:19-29 | Modules/Services/Works/HomeSection.swift:573-584 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Calibre/CalibreWirelessProtocol.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffcdc14fa04562c1731f87e689c4f7c3d4850a6627bea8b26c70e1276ecb92b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Modules/Services/Migration/StorageMigration.swift:71-93 | Modules/Services/Migration/StorageMigration.swift:95-109 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Migration/StorageMigration.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd85099670c95a7c82c34f1412fbd93edca35c7e7f95026499a0e2925bdb35b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Modules/Services/LibraryStore/BookStore.swift:730-745 | Modules/Services/LibraryStore/BookStore.swift:2782-2798 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/BookStore.swift"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"421ca212e382016e0e40ffdac5ede5f2e4b6c5c3ceddfb2f963901b5998c048e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Modules/Core/RuleEngine/ModernParser/XPathExtractor.swift:42-54 | Modules/Core/RuleEngine/ModernParser/XPathExtractor.swift:79-91 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/XPathExtractor.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"96aa3bf79dfd5d80ca65d4c729a27400ec0a121b547d6299b0478884a2c295da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Modules/Features/BookDetail/OnlineBookDetailDestination.swift:196-213 | Modules/Features/ChangeSource/ChangeSourceViews.swift:384-398 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/OnlineBookDetailDestination.swift"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"873a2171ccd51b70a0b40eb166dc629546858913756baa2eec6576b4a1d29d26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Modules/Features/Reader/ReaderBookmarkToast.swift:25-44 | Modules/Features/Reader/ReaderBookmarkToast.swift:52-66 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderBookmarkToast.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5910fc5b8e0f85ef60cabfe970521ee1e63471e515cfd7d5298239e200e9c93"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Modules/Services/AI/AIRecommendationStore.swift:108-124 | Modules/Services/ForYou/ReadingGenreProfile.swift:139-155 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/AI/AIRecommendationStore.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec84876fd2111a55caf13e69f0b1d7a801504922097c798472b54bf1f6323a40"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Modules/Services/Online/SearchAggregator.swift:215-237 | Modules/Services/Online/SearchAggregator.swift:239-260 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/SearchAggregator.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7e7cc93c364bcc470c0e6800eb41d767e5fd4d378e39e02f4c9eca5d192a151"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Modules/Core/EPUB/PublicationSession.swift:206-226 | Modules/Core/EPUB/PublicationSession.swift:408-428 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/PublicationSession.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"517dd022ee7b76a376073834abfd2a66b79b10cf577530fc595b9a7d93684660"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Modules/Core/TTS/TTSAudioProvider.swift:355-366 | Modules/Core/TTS/TTSAudioProvider.swift:368-381 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/TTSAudioProvider.swift"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6e0188d2097e004f3c5c7eb49d855dbe92a7bd3bb30b2492e775d53e1999aef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): Modules/Features/Explore/Home/HomeArticleCards.swift:78-93 | Modules/Features/Explore/Home/HomeSectionCards.swift:291-306 | Modules/Features/Explore/Home/HomeSectionCards.swift:439-454 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Explore/Home/HomeArticleCards.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe916971d50ac794528bab49ef87911f1faab709a78d214a18f0c92f89b50e01"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Modules/Features/RSS/RSSListView.swift:675-691 | Modules/Features/RSS/RSSListView.swift:1631-1643 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/RSS/RSSListView.swift"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"36c7d1db3178ead8d96411e01e797d2f4832260341b37febc8c88f859b609365"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Modules/Core/EPUB/BookParsing.swift:245-263 | Modules/Core/RuleEngine/RuleEngine.swift:1551-1563 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/BookParsing.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"3efa75e4310b7894636495cd79cb3cbd6207435b142ed80e28a5df72d0a32b4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 8\u002B corresponding lines): Modules/Core/ReaderCore/CoreText/EPUBStyleResolver.swift:522-531 | Modules/Core/ReaderCore/CoreText/ReviewCardSVGMetrics.swift:368-377 | Modules/Core/ReaderCore/ReaderHTMLUtilities.swift:2070-2081 | Modules/Core/ReaderCore/ReaderHTMLUtilities.swift:2255-2262 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/EPUBStyleResolver.swift"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae70cc549af4ea06e94da6199b10502d5cc9e88fc115da8876c71442b08dcda1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Modules/Services/Account/FirebaseAuthManager.swift:172-185 | Modules/Services/Account/FirebaseAuthManager.swift:187-201 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Account/FirebaseAuthManager.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"8137a4c0f1012a6b0e68e8559d810d5b9597363d38774aeb05b3f6ba6f06b70d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Modules/Services/Works/RemoteRecordStore.swift:156-169 | Modules/Services/Works/RemoteRecordStore.swift:172-187 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/RemoteRecordStore.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"5814ddcba767afc11ce7f4ba281aa4dc85608519df38a1a99b388a0352aa6ce4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Modules/Core/EPUB/BookParsing.swift:265-277 | Modules/Core/TTS/TTSAudioProvider.swift:179-191 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/BookParsing.swift"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd6b95fbf25bef8f924e554bd03fa974ebf143158c81eee6b56d5d2251b1928a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageEngine.swift:1344-1360 | Modules/Core/ReaderCore/CoreText/TXTPageEngine.swift:372-381 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageEngine.swift"},"region":{"startLine":1344}}}],"partialFingerprints":{"codehealthFindingId/v1":"74c5dc41bcfb49ccdae264381cf90f4697b972174379929673e754d92eb87e78"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Modules/Core/TXT/TXTTocRule.swift:53-64 | Modules/Services/Works/HomeSection.swift:317-327 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TXT/TXTTocRule.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"60a079eb37c162a2b5194d3f762b126ad41c9ff9f5692d949b51967de4cac82c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Modules/Features/Bookshelf/HomeView.swift:2095-2109 | Modules/Features/Bookshelf/HomeView.swift:2291-2310 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Bookshelf/HomeView.swift"},"region":{"startLine":2095}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac68e34a92159e23a822b494bbb08519b4453c1e4b1a900e9ae2f2846b4ba8eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Modules/Features/Reader/ReaderCommentCardSettingsView.swift:139-150 | Modules/Features/Reader/ReaderParagraphBubbleSettingsView.swift:177-187 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderCommentCardSettingsView.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd8641e54f854f52b53343298a2845d7bb7d54261d3a59146a57813894c40f77"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Targets/Yuedu/SharedApp/GlobalSettings.swift:200-207 | Targets/Yuedu/SharedApp/GlobalSettings.swift:217-223 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/GlobalSettings.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"210e6f6b3c97b65fbab9fdf3c390be6310fe12865da93137616038a3d19d88e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Modules/Core/ReaderCore/Customization/ReaderBarLayout.swift:136-146 | Modules/Core/ReaderCore/Customization/ReaderOverlayLayout.swift:285-297 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderBarLayout.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"4438f538e65605d590e787619157c0069b1a67e6322bd3f66c096d9544bc0d31"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Modules/Core/ReaderCore/Customization/ReaderBarLayoutMigration.swift:15-30 | Modules/Core/ReaderCore/Customization/ReaderOverlayLayoutMigration.swift:27-42 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderBarLayoutMigration.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"3de6073075bd02fc9ebc0614fdffc362cf7f0446255af99d9b54b82998ebdb7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Modules/Features/BookDetail/AudiobookDetailView.swift:460-469 | Modules/Features/BookDetail/OnlineBookView.swift:523-532 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"982fd206bc817c2db4a9cadee8d3763c8f86fa3270b8b043bae92988ee8526c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Modules/Features/Reader/CoreTextPagedView.swift:2181-2194 | Modules/Features/Reader/CoreTextPagedView.swift:2196-2207 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/CoreTextPagedView.swift"},"region":{"startLine":2181}}}],"partialFingerprints":{"codehealthFindingId/v1":"187cfcba9fbaab435a638bcb7f60bf6fa7d82f7ec22635e468a77829dae7b141"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Modules/Services/Account/GatewayAPIClient.swift:77-90 | Modules/Services/Account/GatewayAPIClient.swift:95-108 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Account/GatewayAPIClient.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e0b76031c54d6e255508f4e9257caedb590a52963b74493180c9c96a505956"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Modules/Services/Offline/OfflineDownloadManager.swift:157-168 | Modules/Services/Offline/OfflineDownloadManager.swift:170-186 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Offline/OfflineDownloadManager.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b51f9f5424c7ec64c3b97b7d7a57cc86960b41a4435b91498191422d646e76d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Targets/Yuedu/SharedApp/GlobalSettings.swift:2758-2771 | Targets/Yuedu/SharedApp/GlobalSettings.swift:2777-2793 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/GlobalSettings.swift"},"region":{"startLine":2758}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b420a2c42925595d7f334e433c4ddd6ed9dc21427c148a4efa09d687bc5718"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Modules/Core/RuleEngine/ModernParser/CookieStore.swift:131-141 | Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift:1686-1699 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/CookieStore.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"157b5410988cc1ede7ec30dc5121413c8a895f8fb07ece8b0c1dba6693e6d16e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Modules/Features/Reader/ChapterTitleDesignerCanvas.swift:372-377 | Modules/Features/Reader/ChapterTitleLayerListView.swift:101-109 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ChapterTitleDesignerCanvas.swift"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8236930a2baf189bec486aeb4a61a6d9e4682bcb8d4b253cc63c8fbaadea17e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Modules/Features/Reader/ReaderOverlayContent.swift:287-299 | Modules/Features/Reader/ReaderOverlayContent.swift:301-312 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderOverlayContent.swift"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"7355c8a5d786c6b8a7b5f5f76227d0e62aec3e0ddf4300047076dd3e62ad4c62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Modules/Services/Feedback/FeedbackService.swift:230-240 | Modules/Services/Feedback/FeedbackService.swift:260-268 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Feedback/FeedbackService.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"f26bd201b7985dfd8cf23ef4d3e574c3fe5257ed52f375f0cff122e3f91252fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Modules/Core/BookSource/BookSourceStore.swift:230-243 | Modules/Core/RuleEngine/ModernParser/CookieStore.swift:218-229 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceStore.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d5d232b4c9147426913a88dcb1c9402bae2f34c111124eb3556c1d68adde59"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Modules/Features/BookDetail/BookDetailGenreViews.swift:318-338 | Modules/Features/Explore/DiscoverShowcaseView.swift:337-358 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/BookDetailGenreViews.swift"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9b0e56a33c56eb71a1fd9229d9320e383874b8e3a98326551b8cfdc0bb980b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Modules/Features/Settings/ReplaceRuleListView.swift:214-242 | Modules/Features/Settings/TXTTocRuleListView.swift:171-188 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Settings/ReplaceRuleListView.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fca6ebd40b3d0ce849db8d02219b897d1e3c8f0c008fa82260f655de70cc61f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Modules/Services/LibraryStore/BookChapterStore.swift:172-189 | Modules/Services/Works/ImportedMetadataStore.swift:73-85 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/BookChapterStore.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5bc1c87ffe062d26712c9dda9de090ce6b1f51cd233bf9e9af1774e15844818"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Modules/Core/EPUB/PackageResourcesBookResourceProvider.swift:27-34 | Modules/Core/EPUB/PublicationSession.swift:939-946 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/PackageResourcesBookResourceProvider.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e4444c3637a5def4d5a523e3b3293e0972eb5cf938881385b778784a0340186"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Modules/Core/RuleEngine/ModernParser/XPathExtractor.swift:28-40 | Modules/Core/RuleEngine/ModernParser/XPathExtractor.swift:64-76 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/XPathExtractor.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f74b0fa1584b8eef4bc1b598d2f9457bbab5d63604d360518da069105c323cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Modules/Features/Reader/AutoReadControlView.swift:156-173 | Modules/Features/Reader/TTS/TTSPanelView.swift:391-409 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/AutoReadControlView.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"3823fd55fd7c3592dd3c76fc76d05565eddf159f5aa6040df8a0f63c7df7578e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): Modules/Core/Aozora/AozoraXHTMLWriter.swift:392-406 | Modules/Core/ReaderCore/Customization/ReaderBatterySVGTemplate.swift:807-821 | Modules/Services/RuleModules/RuleModuleClient.swift:418-433 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderBatterySVGTemplate.swift"},"region":{"startLine":807}}}],"partialFingerprints":{"codehealthFindingId/v1":"c307d8fc19c78bae5d5917f98259ac67b779f9a39a5ccdb38a6c91a7954809ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Modules/Core/ReaderCore/Customization/ChapterTitleHTMLCodec.swift:876-883 | Modules/Core/ReaderCore/Customization/ReaderStyleCSSCodec.swift:1039-1046 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ChapterTitleHTMLCodec.swift"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaa05cec33641f2e1736b5d5df8d679e67b3c362076030107377209564f3574f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Modules/Core/Aozora/AozoraTables.swift:42-53 | Modules/Services/Works/Providers/BookSourceProvider.swift:178-186 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/Providers/BookSourceProvider.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"217b53971eaea4ba37fc523aa7ff4cb5d836533c09deec81fc47677d19449e4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Modules/Core/BookSource/BookSource.swift:8-15 | Modules/Core/BookSource/BookSource.swift:18-24 | Modules/Core/BookSource/BookSource.swift:27-33 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSource.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"1197ac28a8022ce536b65fdb1b1234338ab004b53438760bf14b681b550919db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Modules/Core/ReaderCore/CoreText/CoreTextPageEngine.swift:1761-1782 | Modules/Core/ReaderCore/CoreText/TXTPageEngine.swift:425-434 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageEngine.swift"},"region":{"startLine":1761}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3bff6e8248c3398ce9273ea0ac2870728a76e0cab5f173b10b0c1b965b5c4d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Modules/Core/ReaderCore/CoreText/FixedLayoutViewportResolver.swift:63-73 | Modules/Features/BookDetail/OnlineBookView.swift:181-189 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/FixedLayoutViewportResolver.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b5b4779a6b197c5a48c9c8581b5696009594527f88c9f77ab8de298de8397fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Modules/Core/ReaderCore/ReaderHTMLUtilities.swift:1615-1622 | Modules/Services/RSS/RSSUtilities.swift:799-806 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/ReaderHTMLUtilities.swift"},"region":{"startLine":1615}}}],"partialFingerprints":{"codehealthFindingId/v1":"de73645ebad19a8931efdb0de1475ba38a10bf53cf70b6ae58e53875b9ada903"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Modules/Core/ReaderCore/CoreText/FixedLayoutViewportResolver.swift:14-33 | Modules/Core/ReaderCore/CoreText/FixedLayoutViewportResolver.swift:35-53 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/FixedLayoutViewportResolver.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9298e8de717ec674d0fd649b2bda724a95648f0c2930746dd0631b615828e09"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageView.swift:630-644 | Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageView.swift:773-788 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageView.swift"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab49564e1600d11971d722c004dff1bce46ee46ff1072ab8516f0cf1974b8210"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Modules/Core/ReaderCore/CoreText/EPUBMediaPlaceholderRenderer.swift:236-253 | Modules/Core/ReaderCore/CoreText/HTMLTableSupport.swift:1066-1090 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/EPUBMediaPlaceholderRenderer.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d0827472d080c1f917dcfc64cb2c9683ad884375d06b6ebd069b669da5901b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Modules/Features/BookDetail/AudiobookDetailView.swift:7-938 | Modules/Features/BookDetail/VideoDetailView.swift:907-923 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"289ccb2dfca6e6504de29cba74be493622bd90c83fbe8376510703031e0c07f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): Modules/Features/BookDetail/BookDetailModuleRelatedSection.swift:11-23 | Modules/Features/BookDetail/BookDetailSeriesSection.swift:43-54 | Modules/Features/BookDetail/BookDetailShelfGenreViews.swift:12-25 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/BookDetailModuleRelatedSection.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"422f628d5f43517e7067d402243d0fc8e5b7562f045d019f19f2eb503dea08e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Modules/Features/Bookshelf/HomeView.swift:1061-1084 | Modules/Features/Onboarding/OnboardingView.swift:118-143 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Bookshelf/HomeView.swift"},"region":{"startLine":1061}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8dc0e1d3fc40f1e453495acc490f17e86b299cadcc72375c3f7c453542154e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): Modules/Features/Reader/ReaderStyleExportPayloads.swift:43-56 | Modules/Features/Reader/ReaderStyleExportPayloads.swift:68-81 | Modules/Features/Settings/AppearanceCustomizationExportPayload.swift:17-34 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderStyleExportPayloads.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac1c2f6d240acbbf833ac12cdf071003d58793bf7f4b6c705b17631d71e7e4e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Modules/Services/ForYou/ReadingGenreProfile.swift:157-164 | Modules/Services/RuleModules/RuleModuleClient.swift:458-465 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/ForYou/ReadingGenreProfile.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"4123bc1c66af19e64aa4e5aa21852dbab58272161e73e1afdb7f51035dae634f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Modules/Services/RuleModules/ModuleAuthorWorks.swift:51-57 | Modules/Services/Works/WorkReviews.swift:110-117 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/ModuleAuthorWorks.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"c12f12b46524ce1829f655cd857c968f7146e98662d5e78916085224c0bd6a2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Modules/Core/RuleEngine/JSRuleEngineRunner.swift:125-131 | Modules/Core/RuleEngine/JSRuleEngineRunner.swift:133-141 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/JSRuleEngineRunner.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"8217485aedd93ad5924b67e2ec16c2a6b197ece7ac863277eef8d2bebf2e7d10"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Modules/Features/BookDetail/OnlineBookMetadataFormatter.swift:12-23 | Modules/Services/Works/BookSourceFillProvider.swift:174-185 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/OnlineBookMetadataFormatter.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"10f000e27f485f858ef5ab6d5c56b90ed03b9dc878e1ad9fe624b941417881c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Modules/Features/Bookshelf/HomeView.swift:2883-2894 | Modules/Features/Bookshelf/HomeView.swift:2898-2905 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Bookshelf/HomeView.swift"},"region":{"startLine":2883}}}],"partialFingerprints":{"codehealthFindingId/v1":"99fe0ea5c99c4caf2b084f99cedbc2b16991c410ddad56cc92abaf203a7e7230"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Modules/Services/Account/GatewaySessionStore.swift:159-177 | Modules/Services/Account/GatewaySessionStore.swift:179-196 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Account/GatewaySessionStore.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"8100126b5560639ab76661e953137591b9f49d514a211b13f4575b65dccab2d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Modules/Services/ForYou/ForYouCandidateStore.swift:44-54 | Modules/Services/Works/HomeFeedPageStore.swift:64-74 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/ForYou/ForYouCandidateStore.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cf0714503b60ec8a525af7d050dbe178d963c2a0dbbb98b4cdc1c533c236258"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Modules/Core/BookSource/BookSourceFetcher\u002BSearch.swift:130-142 | Modules/Core/BookSource/BookSourceHealthChecker.swift:95-108 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceFetcher\u002BSearch.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b5d03e12a490178a7534e694b63015c6da51dd1de3cdf4e7762cf30cd944d58"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Modules/Core/Comic/LocalMangaArchive.swift:367-381 | Modules/Core/EPUB/FixedLayoutEPUBPageProvider.swift:172-190 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/Comic/LocalMangaArchive.swift"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"96dc527a1b01dc76a523b54a85b623480a0917303dc38edb8b0f1f425d60d917"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Modules/Core/ReaderCore/BrowserLayout/BrowserTextInteractionController.swift:276-281 | Modules/Core/ReaderCore/BrowserLayout/BrowserTextInteractionController.swift:283-289 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/BrowserLayout/BrowserTextInteractionController.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ca997f85dea1d72fa9bb4cb33dbd54aa9e3ad11bd6e3cfe3a1939c56598aac4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift:2330-2345 | Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift:2536-2545 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift"},"region":{"startLine":2330}}}],"partialFingerprints":{"codehealthFindingId/v1":"196c0528eef50de57747d60eae07073d9df8a96e532de76232438c50893564a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Modules/Features/BookDetail/WorkDetailView.swift:1135-1145 | Modules/Services/Works/VersionReadingCopy.swift:53-64 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/WorkDetailView.swift"},"region":{"startLine":1135}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7d7226c18665bdbbfa2a5fda64e0541171dc232513a7d1353362616a180869b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Modules/Features/Explore/PublicLibrary/PublicLibraryBookSheet.swift:733-740 | Modules/SharedUI/Components/ScrollOffsetReader.swift:294-305 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Explore/PublicLibrary/PublicLibraryBookSheet.swift"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9770ccccfc0c2b1cc65b21d2a6001ade85ff5c118a4975e7ffcb5a2c35ad520"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Modules/Features/Reader/ChapterTitleInspectorView.swift:616-629 | Modules/Features/Reader/RegexHighlightRuleEditorView.swift:729-741 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ChapterTitleInspectorView.swift"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"8afc6bcfd3ee4e5bac44402fb70a5cc64ee24df6db14640025ee591ab456ecfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): Modules/Features/Reader/ReaderBarLayoutEditorView.swift:608-625 | Modules/Features/Settings/AppearanceInterfaceEffectsView.swift:94-115 | Modules/Features/Settings/AppearanceInterfaceEffectsView.swift:145-164 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderBarLayoutEditorView.swift"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"414186638cb57baaed306731b067041dacb40a2c650b7fa57ca79b05683a476d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Modules/Core/ReaderCore/CoreText/CoreTextChapterFramesetter.swift:190-199 | Modules/Core/ReaderCore/CoreText/CoreTextChapterFramesetter.swift:202-213 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextChapterFramesetter.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"84e0c811bb25ab6cd680ae440a7f1c9d61eecb35fcbd487783cbff6193fb5ede"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:2768-2778 | Modules/Features/Reader/CoreTextCollectionScrollViewController.swift:1556-1564 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":2768}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0a1fe8baae0145aa32e779a18a5cefb5a50272656ee2c1c795094f423d239ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Modules/Core/ReaderCore/Customization/DialogueBubbleScriptImporter.swift:420-431 | Modules/Core/ReaderCore/Customization/QiThemeManifest.swift:319-328 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/DialogueBubbleScriptImporter.swift"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa5d20726db60473d9c7440533b26e6945f8fd847953b3ed6662a4685e07a205"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:2314-2325 | Modules/Features/Reader/CoreTextCollectionScrollViewController.swift:695-707 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":2314}}}],"partialFingerprints":{"codehealthFindingId/v1":"5698a358cb85edb7f6a4d7ceb63e9da84cd827f7d703ad625a9ce712918af58d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): Modules/Features/Reader/ChapterTitleInspectorView.swift:642-656 | Modules/Features/Reader/ChapterTitleStyleSettingsView.swift:376-391 | Modules/Features/Reader/RegexHighlightRuleEditorView.swift:750-764 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ChapterTitleInspectorView.swift"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"21ca5d869319e6ef2dfd595ee225dd8f2d697b0859ea775741d4ca9c293dbe64"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:1550-1563 | Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:1818-1831 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift"},"region":{"startLine":1550}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c6f082eb9fb2bd18c4ff2f026a9d39aa95d834b2daebf108417c61c028a67f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift:154-176 | Modules/Core/ReaderCore/ReaderPresentationContract.swift:247-269 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"823949b6f49a8ca31d0f3f0734ab89abe7e9f1cd14427762346fbfebe87ea1e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift:1336-1352 | Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift:1359-1375 | Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift:1384-1401 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift"},"region":{"startLine":1336}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a841e07a0e5d97328e7f935abecf36db0ddb8281598d4e01f9993806c33442"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Modules/Core/RuleEngine/ModernParser/ModernRuleEngine.swift:622-628 | Modules/Core/RuleEngine/ModernParser/URL/AnalyzeUrl.swift:1288-1293 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/ModernRuleEngine.swift"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"282e2bc19ad6dec619a72e0df7b965bd3c62aff9f5490d7d461f623a8c55226e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Modules/Features/Bookshelf/HomeView.swift:1847-1860 | Modules/Features/Settings/UserDetailView.swift:562-575 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Bookshelf/HomeView.swift"},"region":{"startLine":1847}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1c3f1846d451ea63ca3e329dd846e532bb296deb73c575e014fa8681f35804a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Modules/Services/Works/HomePageStore.swift:437-452 | Modules/Services/Works/WorkDecisionsStore.swift:118-133 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/HomePageStore.swift"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a0e6a228bdaf66669a8339b3e5aefeb7e742f475fdc6ef3717cd846f0421ec1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageEngine.swift:1392-1401 | Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageEngine.swift:1412-1421 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageEngine.swift"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"fead7fa74acaf96469c351a83ab24235a2cfa3405588e89e83b3cc5a087976b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Modules/Core/ReaderCore/CoreText/ChapterTitleDesignRenderer.swift:228-243 | Modules/Core/ReaderCore/Customization/ReaderStyleAssetReferences.swift:11-21 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ChapterTitleDesignRenderer.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"341b4e8a4e2d906f541292f2e1401c0780eeeab9b4bf9ee6c962e132842604f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Modules/Features/Reader/ReaderModernBottomControlBar.swift:167-186 | Modules/Features/WebBrowser/BrowserView.swift:1173-1188 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderModernBottomControlBar.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"d905b87ae0ea2669ca7fa852c15942a8bcb8fc0497961d0914ebc0ad0875e493"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Modules/Core/ReaderCore/CoreText/CSSPropertyApplier.swift:370-384 | Modules/Core/ReaderCore/CoreText/CSSPropertyApplier.swift:649-657 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CSSPropertyApplier.swift"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"97dba2e90266eb10039c930620c5f5ac681521af58700e361a23ad2f0b2e0d01"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Modules/Core/RuleEngine/ModernParser/Cache/RegexCache.swift:19-30 | Modules/Core/RuleEngine/RuleEngine.swift:31-37 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/Cache/RegexCache.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"8930cd910ea1b109d62b47616fc15cc57f0b74a234b3b315495799e16d81e5d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Modules/Services/RSS/RSSStore.swift:178-187 | Modules/Services/RSS/RSSStore.swift:189-198 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSStore.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"150895ad098d82766cf91b12091d33961a4ae0cf62e2d489f7d33056ce0ce892"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): Modules/Core/ReaderCore/CoreText/ChapterOutline.swift:240-255 | Modules/Core/ReaderCore/Translation/ReaderTranslationLayout.swift:464-474 | Modules/Core/ReaderCore/Translation/ReaderTranslationLayout.swift:476-486 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ChapterOutline.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"b610770add874e919121ca29b071a9195d0b50720c5050774303dff52ef78991"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Modules/Core/ReaderCore/Customization/AppearanceThemeExtras.swift:149-156 | Modules/Core/ReaderCore/Customization/ChapterTitleDesign.swift:239-251 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/AppearanceThemeExtras.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"a07344ea00ee484727b161a529e4ec78d2438968a2de9182fbfcb67f0735f9fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Modules/Core/ReaderCore/Customization/ReaderCustomBackground.swift:85-91 | Modules/Services/Works/HomeConfiguration.swift:234-240 | Targets/Yuedu/SharedApp/GlobalSettings.swift:3596-3602 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderCustomBackground.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"5044c692ebf7373fe43ec0ca9b862864c388c5d88604034bc581be59f89f1726"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Modules/Core/ReaderCore/ReaderHTMLUtilities.swift:1304-1313 | Modules/Core/ReaderCore/ReaderHTMLUtilities.swift:1317-1326 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/ReaderHTMLUtilities.swift"},"region":{"startLine":1304}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf024d97608d5a44632b7f6b9c088860c593e3e4b20c5bb1766957537fd3e405"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Modules/Core/RuleEngine/ModernParser/JS/JSCoreEngine.swift:606-616 | Modules/Core/RuleEngine/ModernParser/JS/JSCoreEngine.swift:752-763 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/JSCoreEngine.swift"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce1e6b30370802d6626e19b07d8cb5ef64aada88266759af205f045cb5ed6930"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 8\u002B corresponding lines): Modules/Features/BookDetail/BookDetailComponents.swift:1928-1942 | Modules/Features/Bookshelf/HomeView.swift:2550-2561 | Modules/Features/ChangeSource/ChangeSourceViews.swift:370-381 | Modules/Features/Explore/Home/HomeEditor.swift:500-507 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/BookDetailComponents.swift"},"region":{"startLine":1928}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e9f15065ecc2f765131075a606f13910845c79ccba598416adfdf2c714ee08d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Modules/Services/Account/GatewayKeychain.swift:29-42 | Modules/Services/Subscription/SubscriptionEntitlementCache.swift:38-51 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Account/GatewayKeychain.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"3689d5e4ab5546ecbb1737439c82d99b7d5c845dc35de25c0b9412968a07ba4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Modules/Core/BookSource/BookSourceFetcher.swift:189-199 | Modules/Services/Network/WebFetcher.swift:100-114 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceFetcher.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee61abe22fb5c6b456827f45a1beabbb803747a8f4485a785e6e2eeb16327fdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Modules/Core/ReaderCore/CoreText/CSSPropertyApplier.swift:546-553 | Modules/Core/ReaderCore/CoreText/CSSPropertyApplier.swift:559-566 | Modules/Core/ReaderCore/CoreText/CSSPropertyApplier.swift:572-579 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CSSPropertyApplier.swift"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a9f3963c245a22181b30c06b408da2de5eecdefc64c939d77a8f9aefd8872fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Modules/Core/ReaderCore/CoreText/CSSPropertyApplier.swift:609-616 | Modules/Core/ReaderCore/CoreText/CSSPropertyApplier.swift:623-630 | Modules/Core/ReaderCore/CoreText/CSSPropertyApplier.swift:636-643 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CSSPropertyApplier.swift"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb03ac2e6588d4a6aa55a63a34593a33e9324310a96a2063a63d4ddb91086c64"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Modules/Features/BookDetail/BookDetailGenreViews.swift:67-77 | Modules/Features/BookDetail/BookDetailShelfGenreViews.swift:39-51 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/BookDetailGenreViews.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"28af7f64885e16c1b23612732f46d2841acd3e20f3f8adef269aea94b502e111"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Modules/Features/BookSource/BookSourceFormLoginView.swift:975-984 | Modules/Features/BookSource/BookSourceFormLoginView.swift:1037-1051 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookSource/BookSourceFormLoginView.swift"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"404010bbdf379354775d875ae8ce339ae5f0aac84459380171af1f175463e727"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Modules/Services/Online/SearchResultPresentation.swift:56-69 | Modules/Services/Online/SearchResultPresentation.swift:71-84 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/SearchResultPresentation.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6e74e8fa2555b93aa0a49b87514379a6feb221717edf8574065e4f0c5a2a8e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Modules/Core/BookSource/BookSourceSession.swift:286-299 | Modules/Core/BookSource/BookSourceSession.swift:302-315 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceSession.swift"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a7db873db418c5ab46f708773f5040f67bcee0c72dd01990f9f6f998325c15b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Modules/Core/BookSource/SharedImportQueueDrainer.swift:79-95 | Modules/Core/ReaderCore/Customization/ReaderCommentBubbleCustomStyle.swift:24-44 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/SharedImportQueueDrainer.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8271f0849cc247eead874097eb9a2930fb4399f34da5a1163022f62414a69c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift:685-695 | Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift:1058-1067 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d99e969542c02790175045d24ded795271b911be62ad784815b818aeab3586c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Modules/Core/ReaderCore/CoreText/RunDelegateProvider.swift:77-93 | Modules/Core/ReaderCore/CoreText/RunDelegateProvider.swift:125-146 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/RunDelegateProvider.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5fbe242389fa9047d7328a1154d48c3c0fef27f935afae9725c2a38621669ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Modules/Core/RuleEngine/ModernParser/RuleListMapping.swift:203-207 | Modules/Features/BookDetail/OnlineBookDetailDestination.swift:244-260 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/RuleListMapping.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"32a9b41e51cf831336dc5e52bc7336ae295837b23ecda7e70c6a0208d98658ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Modules/Features/BookDetail/AudiobookDetailView.swift:749-763 | Modules/Features/BookDetail/OnlineBookView.swift:969-985 | Modules/Features/BookDetail/VideoDetailView.swift:832-841 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"f93f4f1b0c9e9c09c58b75d0d6980dfdf354eb6f86d2f8e30211386cbf3e6771"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Modules/Services/RSS/RSSStore.swift:534-544 | Modules/Services/RSS/RSSUtilities.swift:277-285 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSStore.swift"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"fef879e08943ffb264920757c01c2413b2fb63a662240251730c5802856aeb67"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Modules/Services/iCloud/FirestoreSyncManager.swift:495-506 | Modules/Services/iCloud/FirestoreSyncManager.swift:508-517 | Modules/Services/iCloud/FirestoreSyncManager.swift:519-528 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/iCloud/FirestoreSyncManager.swift"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"76ccc5f705b6061d764dd96e00e39f2e2e88eec6974f17379e53a1b3a35f282c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): Modules/Core/Audio/LocalAudiobookArchive.swift:302-309 | Modules/Core/Comic/LocalMangaArchive.swift:237-242 | Modules/Services/LibraryStore/AozoraBookImporter.swift:193-197 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/Audio/LocalAudiobookArchive.swift"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c53decb9a1ad071ab5cc733aa1a79917fa5776a35df2e54d9ae2a792a7eb285"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Modules/Core/BookSource/BookSourceStore.swift:516-527 | Modules/Core/BookSource/BookSourceStore.swift:529-540 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceStore.swift"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9d30e1e9e752205749c35870c380f5ffaf3085e7c7825d44dd2f84fc68616ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Modules/Core/BookSource/BookSourceStore.swift:839-851 | Modules/Core/TTS/TTSSourceImport.swift:62-72 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceStore.swift"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"d517d70758ecaa79ffb0ad4f397e68edfe0662cf4d4213b6090be7749b62253b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Modules/Features/Reader/RegexHighlightSettingsModel.swift:36-44 | Modules/Features/Reader/RegexHighlightSettingsModel.swift:69-79 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/RegexHighlightSettingsModel.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cf5e3bc31dbee5fe2c2f1d19398ea876c7a31d86963204a176bf29f56ee2b2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Modules/Services/Online/ChangeSourceCache.swift:126-134 | Modules/Services/Works/SourceRecordDerivation.swift:7-15 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/ChangeSourceCache.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ee57b1f868fa36798f4b94216183a1d0bb750230ba37d60b711f189ca3e5969"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Modules/Core/BookSource/BookSourceSession.swift:119-127 | Modules/Core/BookSource/SourceScriptHost.swift:48-56 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceSession.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"7843f04b0a4752b3f28c0461515281807942023b05df959a9e065713643d3a30"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Modules/Core/ReaderCore/ReaderHTMLUtilities.swift:558-576 | Modules/Core/ReaderCore/ReaderHTMLUtilities.swift:749-765 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/ReaderHTMLUtilities.swift"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"528488000958f28661b05ebe8fb23bff1363b197b5c049b5b8e90d698c70761e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Modules/Features/BookDetail/AudiobookDetailView.swift:90-103 | Modules/Features/BookDetail/OnlineBookView.swift:98-115 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"db8210347dabe46e39ee29f9870ded34e17eb20d4ca571fbbc90987967d58df5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Modules/Features/BookSource/BookSourceListView.swift:535-548 | Modules/Features/BookSource/BookSourceListView.swift:623-637 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookSource/BookSourceListView.swift"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"d23acf0a00e43b4479e77a31cc68fbab63838411d2689e6dc8526116ced0b58e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Modules/Services/AI/AIRecommendationStore.swift:74-85 | Modules/Services/Works/MetadataFill.swift:348-358 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/AI/AIRecommendationStore.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2237311ec7713c8266e9f08f0bd1d66e85b2ec5bed15cd11ff1725e06382209"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Modules/Core/ReaderCore/CoreText/CoreTextPageEngine.swift:927-934 | Modules/Core/ReaderCore/CoreText/TXTPageEngine.swift:178-182 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageEngine.swift"},"region":{"startLine":927}}}],"partialFingerprints":{"codehealthFindingId/v1":"12ad77f780086efc4ae3c331a589ef2ec8c22d4ba46c15d5d6ca67c854df99ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Modules/Core/ReaderCore/CoreText/HTMLStyledASTRenderableNodeConverter.swift:483-496 | Modules/Core/ReaderCore/CoreText/HTMLStyledASTRenderableNodeConverter.swift:498-511 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/HTMLStyledASTRenderableNodeConverter.swift"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"2346b3db64689d27a162ada787befbffc848aea60a3c5d601f3e3c7fb8d80e85"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Modules/Core/ReaderCore/CoreText/ReviewCardSVGMetrics.swift:380-387 | Modules/Core/ReaderCore/CoreText/ReviewCardTemplate.swift:329-335 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ReviewCardSVGMetrics.swift"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"20bfa296dd7a7fea2e8ff9547c0cdf7635a059907b4128f78b70a75d9194dcf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Modules/Core/RuleEngine/WebNovelParser.swift:106-115 | Modules/Services/Online/ChapterFetcher.swift:1002-1009 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/WebNovelParser.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf42ac52f0ac259d77a295cad8fbd92755b94ab6aa8715e29ec02f2b2f147416"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Modules/Features/BookDetail/BookDetailAuthorWorksSection.swift:23-37 | Modules/Features/BookDetail/BookDetailGenreViews.swift:228-244 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/BookDetailAuthorWorksSection.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"1864302a269f638b6f463a20f8aef091780176e1e88dc424abc499c1550c1e6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Modules/Services/PublicLibrary/PublicLibrary.swift:76-83 | Modules/Services/PublicLibrary/PublicLibrary.swift:87-95 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/PublicLibrary/PublicLibrary.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4ad4a898e2b3d144129170497b548a0e036175607a4c45cf53f4fad0a17fd50"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageView.swift:575-589 | Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:398-411 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageView.swift"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b7a19caee022e738cb71130a068fcf6a3184832e337e4f48fc83e4ae64f8cd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Modules/Features/RSS/RSSListView.swift:431-441 | Modules/Features/RSS/RSSListView.swift:527-537 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/RSS/RSSListView.swift"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"da30c269bb4244311996929d4a994c239a289405d49c2ade39c6da24162721d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Modules/Features/RSS/RSSListView.swift:644-660 | Modules/Features/Settings/GlobalFontSettingsView.swift:148-161 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/RSS/RSSListView.swift"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"a16f0673aaa37f3224bc6b14f44862288046997e10bf505251c4203a9ea6fc4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Modules/Features/Reader/TTS/TTSRoleCastView.swift:510-525 | Modules/Features/Reader/TTS/TTSRoleCastView.swift:548-563 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/TTS/TTSRoleCastView.swift"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"19de27a151a517e56b336c58e0d720b0c9258ab407dbca01c772f306a02604b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 15\u002B corresponding lines): Modules/Core/BookSource/BookSourceFetcher\u002BTOC.swift:95-109 | Modules/Core/BookSource/BookSourceHealthChecker.swift:168-183 | Targets/Yuedu/SharedApp/AppDependencies.swift:107-124 | Targets/Yuedu/SharedApp/AppDependencies.swift:127-142 | Targets/Yuedu/SharedApp/AppDependencies.swift:302-319 | Targets/Yuedu/SharedApp/AppDependencies.swift:321-339 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceFetcher\u002BTOC.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"726d51ba5b73f511b5ed10f8039eca097484d55871d5c8952f0e40b36bd9b1c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Modules/Core/EPUB/FixedLayoutEPUBPageProvider.swift:367-373 | Modules/Core/EPUB/FixedLayoutEPUBPageProvider.swift:375-385 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/FixedLayoutEPUBPageProvider.swift"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"51adfef35a82c4a2ec1f74360e9092711398f97b08bcfb6968ece9023e2a2b2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Modules/Core/ReaderCore/ReaderPositionSentry.swift:190-202 | Modules/Core/ReaderCore/ReaderPositionSentry.swift:209-222 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/ReaderPositionSentry.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"de788548ff2ad020503ee165a6a3a073d9d30652c38591bf4c93b5ca2ad9a98d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Modules/Core/EPUB/PublicationSession.swift:41-49 | Modules/Core/EPUB/PublicationSession.swift:57-63 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/PublicationSession.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fdf2cee78f32b30a38847e423e0ce278abbadf05caf572d32493c6485b414c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Modules/Features/Reader/ReaderModernBookCard.swift:104-119 | Modules/Features/Reader/TTS/TTSPanelView.swift:319-332 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderModernBookCard.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d7834c07f26dc3c9ddfbaf9b514b424649b70794db02e73e1adf0ae12747246"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Modules/Features/Reader/ReaderPageTouchProbe.swift:129-137 | Modules/Features/Reader/ReaderPageTouchProbe.swift:140-150 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderPageTouchProbe.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bf6d54ed69e457fc51416a2db58b545ca7a188c95f689d975aad2851f24ae06"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Modules/Services/Network/WebViewFetcher.swift:16-33 | Modules/Services/Network/WebViewFetcher.swift:62-75 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Network/WebViewFetcher.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f3c81dc2c7729c5a3a42bf9db2338f3c8c76b26ef09364b6b475a2a28661141"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Targets/Yuedu/SharedApp/GlobalSettings\u002BCommentCards.swift:103-116 | Targets/Yuedu/SharedApp/ReaderCustomBackgroundStore.swift:31-44 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/GlobalSettings\u002BCommentCards.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bee43fd536ebde0ab6bfbec94a506b61f1faddf997e0e1d5d5905beb04c7f22"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): Modules/Core/ReaderCore/Customization/ReaderCommentBubbleCustomStyle.swift:197-212 | Modules/Core/ReaderCore/Customization/ReaderCommentCardStyle.swift:146-159 | Modules/Core/ReaderCore/Customization/ReaderCustomBackground.swift:60-73 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderCommentBubbleCustomStyle.swift"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"a54b987707d5b61155ea9a2a00c67d3949a4f3aec8ff1d0f00737f3c6d200c9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Modules/Core/RuleEngine/ModernParser/BookSourceRuntimeStateStore.swift:99-105 | Modules/Services/Online/DiscoverViewModel.swift:1079-1085 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/BookSourceRuntimeStateStore.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"698150a95f34d7bda7046cd74962b22cff08513e6775d09e6e6e965b7deb3544"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Modules/Core/TTS/TTSCoordinator.swift:832-847 | Modules/Core/TTS/TTSCoordinator.swift:849-864 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/TTSCoordinator.swift"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad8092bd648c6c8d9009bb1f23874fe42a13f34077bcb08d7de5a6d932ade89d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Modules/Core/Video/VideoEpisodeGuide.swift:59-64 | Modules/Core/Video/VideoEpisodeGuide.swift:67-72 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/Video/VideoEpisodeGuide.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"214a5fa0f8791efa2e11cea764a14531dc87b68c8e9d54d4cdd814e422cce4d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Modules/Features/BookDetail/AudiobookDetailView.swift:726-735 | Modules/Features/BookDetail/VideoDetailView.swift:787-791 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"87d80a8d0feec4a67672c2a7cdd4a4f24b4081cfc8cf8480cf6b686384a365c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Modules/Features/Library/Modules/RuleModuleImportSheet.swift:252-260 | Modules/Features/Library/Modules/RuleModuleRepositoryView.swift:190-198 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Library/Modules/RuleModuleImportSheet.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bbd6af5a21c303c3400596ad5a4438348facec7f3aeeeb8ed50d2cc8ae49e51"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Modules/Services/Online/DiscoverViewModel.swift:383-392 | Modules/Services/Online/DiscoverViewModel.swift:395-401 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/DiscoverViewModel.swift"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fe1a721bfb909183761e670dcd7b20f4c82670d2c69ef14da26bad51a343fdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Modules/Services/RSS/RSSFetcher.swift:244-250 | Modules/Services/RSS/RSSFetcher.swift:502-508 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSFetcher.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"b411c032b5f53dad15a25f6ccf60011444ee9e7b091d2acc46e455e5531c76ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): Modules/Core/BookSource/BookSourceFetcher\u002BCache.swift:246-250 | Modules/Core/BookSource/BookSourceFetcher\u002BCache.swift:265-269 | Modules/Core/ReaderCore/CoreText/SVGWebViewRasterizer.swift:635-639 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceFetcher\u002BCache.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"837d9fb3b1ca10ca3404bf827060ff1d469d32ca13c55b8137d3e3d4bdc94c81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Modules/Core/EPUB/FixedLayoutEPUBPageProvider.swift:213-215 | Modules/Core/PDF/PDFPageRasterizer.swift:131-139 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/FixedLayoutEPUBPageProvider.swift"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"29a454bae0461979dcc06df50c81a70b8297801b9429ffcb2fe78cc2c7ba6949"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Modules/Core/EPUB/PublicationSession.swift:172-179 | Modules/Core/EPUB/PublicationSession.swift:181-187 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/PublicationSession.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"56159f78195e88bbc2d94245172d9b259a746e322b3c55ddb3228ad48bf11a97"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Modules/Core/EPUB/PublicationSession.swift:433-437 | Modules/Services/LibraryStore/ConvertedBookRegenerator.swift:187-191 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/PublicationSession.swift"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cd81496382f09893c8ace141ee3fc5f2e176c72ba99573548f05884f1bd70b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Modules/Core/ReaderCore/Customization/AppearancePageBackground.swift:235-245 | Modules/Core/ReaderCore/Customization/AppearanceThemeExtras.swift:327-335 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/AppearancePageBackground.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dca4f85fd38c2e0c11baf9ff9507b40f763ed4f307b9dcf7c76372b6a118976"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Modules/Core/RuleEngine/ModernParser/Cache/RegexCache.swift:35-46 | Modules/Core/RuleEngine/ModernParser/Cache/RegexCache.swift:51-61 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/Cache/RegexCache.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"37ab4f98f77682be7d71ea34039308f4059024522449eb85f949bf3f062c62db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Modules/Features/ChangeSource/ChangeSourceSearch.swift:572-580 | Modules/Features/ChangeSource/ChangeSourceSearch.swift:588-598 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/ChangeSource/ChangeSourceSearch.swift"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"0df3725aaa4d2cf90228659c81454e386bdaa0c1c072731c5d2dbf1da9f918f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Modules/Services/RuleModules/ModuleProvider.swift:212-216 | Modules/Services/RuleModules/ModuleProvider.swift:222-227 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/ModuleProvider.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a9ef5daae35cd98bbabf461620363bed842f9dba26a88156c20f4bb63602f89"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Modules/Services/RuleModules/RuleModuleLibrary.swift:167-176 | Modules/Services/RuleModules/RuleModuleLibrary.swift:178-187 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/RuleModuleLibrary.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"1be0652c9338b94c3c1457fcbec5c7989256aa58b9d5cd2a0636d277671987ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Modules/Core/BookSource/SharedImportQueueDrainer.swift:846-855 | Modules/Core/ReaderCore/Customization/LottieTitleTemplateImporter.swift:586-597 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/SharedImportQueueDrainer.swift"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"36810a673e6196755ad74cf7fce74fe1974217297dd68253c135910eeb2c767d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Modules/Core/ReaderCore/CoreText/CoreTextPageEngine.swift:918-925 | Modules/Core/ReaderCore/CoreText/TXTPageEngine.swift:222-232 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageEngine.swift"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"e73052e198c326159bb8e6d3f9679ab10a3e1b5c0b2e9aa978f469dda236a1a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Modules/Services/AI/AIDiagnostics.swift:105-111 | Modules/Services/AI/AIDiagnostics.swift:117-122 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/AI/AIDiagnostics.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"1307352fdef5a31223c6e00e252c7761c0464aabe34fb5d89314907d7128e813"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Modules/Services/Account/FirebaseAccountBackend.swift:73-83 | Modules/Services/Account/FirebaseAccountBackend.swift:98-105 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Account/FirebaseAccountBackend.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"712beb3241917962041d794212cbcd6e8ea90805242d3d05bec3749b8b5a6321"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Modules/Services/RSS/RSSStore.swift:127-136 | Modules/Services/RSS/RSSStore.swift:582-590 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSStore.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"50810ae7a3d6840d9f44e4ef27009576b7be12140c5f5f8ace9656b5c03c41c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Modules/Core/ReaderCore/CoreText/CoreTextPagePrerenderer.swift:53-63 | Modules/Features/Reader/ReaderFragmentRasterizer.swift:97-105 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPagePrerenderer.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"857811d38fe429249c702054092fbd8786885a74fba92e73ee0137cfc16ab97c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Modules/Core/ReaderCore/EPUBProgress.swift:181-187 | Modules/Core/ReaderCore/EPUBProgress.swift:189-195 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/EPUBProgress.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"54896dcdd92346803de0135ce3fa057f9fc0ff92bd0820f06a1175aa3d155e36"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Modules/Core/TTS/ChapterAudioProvider.swift:104-112 | Modules/Services/Offline/OfflineDownloadManager.swift:809-817 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/ChapterAudioProvider.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a19df572b77f88aa4a1ae991e79cf0382efe31717719b3ca1852d905a0eabde"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Modules/Features/Feedback/FeedbackNotificationPresenter.swift:54-68 | Modules/Features/Feedback/FeedbackThreadView.swift:466-482 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Feedback/FeedbackNotificationPresenter.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"81b12dfd469f7b6f9f84940d24f9c5d1ead77123b260704020bc440b1e376075"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Modules/Features/Reader/ChapterTitleInspectorView.swift:575-591 | Modules/Features/Reader/RegexHighlightRuleEditorView.swift:645-653 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ChapterTitleInspectorView.swift"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"27efac94f59f84a4021de4582216aa75041f2ac7e00c2e09eef5c2e02501d815"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Widget/DownloadLiveActivityWidget.swift:52-56 | Widget/DownloadLiveActivityWidget.swift:59-75 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Widget/DownloadLiveActivityWidget.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"6be41f3797d939e6ffdcd6d03ef3f2e6b0ead3e3a6e8a354504f908350191f96"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift:2497-2507 | Modules/Core/ReaderCore/CoreText/RegexHighlightEngine.swift:525-534 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift"},"region":{"startLine":2497}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dbbd84296ef17d547da9e0bdc38f8aa43a3902eb2f67f648c642e5a87992135"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Modules/Core/ReaderCore/CoreText/ReaderScrollItem.swift:37-44 | Modules/Core/ReaderCore/CoreText/ReaderScrollItem.swift:51-58 | Modules/Core/ReaderCore/CoreText/ReaderScrollItem.swift:86-93 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ReaderScrollItem.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eae7e0c549a424e9f8c5081628a6b650f96f7a1d726452b46e5cb2f6ea9f168"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Modules/Core/ReaderCore/OnlineImageRequestOptions.swift:83-88 | Modules/Core/ReaderCore/ReaderHTMLUtilities.swift:2288-2293 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/OnlineImageRequestOptions.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"613c39b2efcb65602fed893d5b3c19aecd4aed52c9ac804b7f60a778c3ed4a98"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Modules/Core/RuleEngine/ModernParser/Login/LoginFieldStyle.swift:72-82 | Modules/Core/RuleEngine/ModernParser/Login/LoginFieldStyle.swift:84-94 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/Login/LoginFieldStyle.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0c952a405ac63c9f8a863b05655ac50e6b13606b64402907d470d32be869973"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Modules/Features/Reader/ReaderView\u002BTXTVerticalScroll.swift:186-202 | Modules/Features/Reader/ReaderView\u002BTXTVerticalScroll.swift:204-214 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderView\u002BTXTVerticalScroll.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"84c7501e60d8ca27288f783de64c0f6d349aa03642fd74ebcd53ea95f8cfcb61"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Modules/Services/Account/GatewayAuthProvider.swift:88-94 | Modules/Services/Account/GatewayAuthProvider.swift:113-119 | Modules/Services/Account/GatewayAuthProvider.swift:121-129 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Account/GatewayAuthProvider.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"88ed7bca97386240f3ce19bd2e5815bc377d4a371dfdf6f89c9a4df27722e4d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Modules/Services/Online/SearchAggregator.swift:1143-1151 | Modules/Services/Works/SearchWorkResolver.swift:190-196 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/SearchAggregator.swift"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"093fab9c8c18731c03cee70818f7990b558d4ed0431a82c72ef45ee9933c89db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Modules/Core/ReaderCore/CoreText/EPUBStyleResolver.swift:543-555 | Modules/Core/RuleEngine/ModernParser/Cache/RegexSanitizer.swift:66-76 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/EPUBStyleResolver.swift"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f13e04345cf804263d40ce4c379a87ead1056286b7cc19844f81ae0c1467559"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift:1251-1262 | Modules/Core/ReaderCore/CoreText/HTMLTableSupport.swift:213-225 | Modules/Core/ReaderCore/CoreText/HTMLTableSupport.swift:316-325 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift"},"region":{"startLine":1251}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e974e679baf04739ec9a9dd747f1ee70d3db8a629a3442a6cea0ab166a6fd3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 10\u002B corresponding lines): Modules/Core/ReaderCore/Customization/AppearancePageBackground.swift:213-222 | Modules/Features/Reader/ReaderChromeCustomization.swift:200-214 | Targets/Yuedu/SharedApp/DefaultCoverLibrary.swift:43-52 | Targets/Yuedu/SharedApp/GlobalSettings.swift:4109-4118 | Targets/Yuedu/SharedApp/GlobalSettings.swift:4234-4243 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/AppearancePageBackground.swift"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"c40ba67ebad06f2453c1b183298a6dbac576b0e5daa974391501ad3f38eb9bba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift:2299-2303 | Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift:2305-2311 | Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift:2313-2317 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift"},"region":{"startLine":2299}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d20ac90b0fd11ae10069a1f13f5da9107e2707f5089dafde24c5989660883f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Modules/Features/AI/AICharacterMemoryView.swift:268-275 | Modules/Features/AI/AIStatusView.swift:93-100 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/AI/AICharacterMemoryView.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfff6d294ae87b063da9dc6cd00cb633156a18da1338b73f226696daec229302"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Modules/Features/BookDetail/AudiobookDetailView.swift:436-440 | Modules/Features/BookDetail/OnlineBookView.swift:494-498 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"72f318f8a6eb895c4fd38342ba82b4522f2182011191c5b064865952949ffabb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Modules/Services/AI/ReaderTranslationSettingsStore.swift:23-29 | Targets/Yuedu/SharedApp/ReaderBackgroundMigration.swift:294-300 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/AI/ReaderTranslationSettingsStore.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0a62329559d4a5fdc7a46601bdfeb1735b50db8b19e4dc473bdaed376de3ef2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Modules/Services/Account/GatewayAccountBackend.swift:191-198 | Modules/Services/Works/ImportedMetadataCapture.swift:309-315 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Account/GatewayAccountBackend.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"d49ece7789594920d4abd868a4bfbd7ecd4442d1920624a30162da960d0ad85e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Modules/Services/RemoteLibrary/RemoteLibraryHTTPClient.swift:62-67 | Modules/Services/RemoteLibrary/RemoteLibraryHTTPClient.swift:69-74 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RemoteLibrary/RemoteLibraryHTTPClient.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"15ce45feeb98921c6b59e6ecdfba71c4827c0ca96c37f796752ab7a49b1a0ba8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageEngine.swift:2105-2113 | Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageEngine.swift:2116-2124 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageEngine.swift"},"region":{"startLine":2105}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3a23559ca5e6855ddb56ac66569ff9333ce025430318a6fe713bac9bb393dc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Modules/Core/ReaderCore/CoreText/ChapterTitleAttributedBuilder.swift:476-480 | Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift:641-646 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ChapterTitleAttributedBuilder.swift"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"ced037be320fc57ffb6d3032591f0d4886437ff9a0c547073e6d31ff78ecb253"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Modules/Core/RuleEngine/ModernParser/ModernRuleEngine.swift:1280-1286 | Modules/Core/RuleEngine/RuleEngine.swift:1252-1257 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/ModernRuleEngine.swift"},"region":{"startLine":1280}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb4618d9498d94e92d6b24c5c5f06c91a8bf9ef097ddb3fe6d845c611bfc9564"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Modules/Core/TTS/EdgeTTSSecurityToken.swift:180-182 | Modules/Core/TTS/EdgeTTSSecurityToken.swift:184-186 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/EdgeTTSSecurityToken.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f9e841fc78b44fc2cb4f174d758d28babc1d13885ce21d643302f1b80f6592a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Modules/Core/TTS/TTSRoleVoiceCast.swift:235-245 | Modules/Core/TTS/TTSRoleVoiceCast.swift:249-260 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/TTSRoleVoiceCast.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"f88e854628dce4249a48dbb532bf8ebc7307f526441da1792ba88039ea21a20a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Modules/Features/Bookshelf/RemoteLibraryBookDetailView.swift:110-115 | Modules/Features/Explore/PublicLibrary/AozoraCatalogViews.swift:121-128 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Bookshelf/RemoteLibraryBookDetailView.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"32769c139fc5a0f52fea005ad247501bd30592437d76f2fbf4bb7e41c74cc922"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Modules/Features/Library/Modules/RuleModuleImportModel.swift:47-52 | Modules/Services/RuleModules/RuleModuleRepository.swift:220-225 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Library/Modules/RuleModuleImportModel.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d85a2fe626ae0e28b9d56e2561f7e4e80fec7affe67d8a9243e7f5c9ee192e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Modules/Features/Reader/ChapterTitleInspectorView.swift:60-68 | Modules/Features/Reader/RegexHighlightRuleEditorView.swift:430-439 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ChapterTitleInspectorView.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"103f896a5f3d3a31f9589e23f73b6c97809d246b49a70b782da6bdc435c448dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Modules/Features/Search/SearchRecents.swift:37-45 | Modules/Services/LibraryStore/OffShelfReadRecords.swift:63-71 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Search/SearchRecents.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d9dbafaa33b6c9fcbe8080201ef6bed5730db8d3b5e82f79df66f299d406027"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Targets/Yuedu/SharedApp/AppDependencies.swift:160-173 | Targets/Yuedu/SharedApp/AppDependencies.swift:286-300 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/AppDependencies.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e3c197de4e2131320bae31b890638b80803a77f53031913dbb4ae70635284be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Modules/Core/BookSource/LegadoImageSourceResolver.swift:210-216 | Modules/Core/ReaderCore/ReaderHTMLUtilities.swift:1625-1631 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/LegadoImageSourceResolver.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fc5c0869cd5f63c13149124e44f340ba437915bd3e4e5c166e859687baf4e59"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): Modules/Core/Video/VideoLinkPositions.swift:33-41 | Targets/Yuedu/SharedApp/AppearanceThemeReadingApplier.swift:203-213 | Targets/Yuedu/SharedApp/GlobalSettings.swift:3229-3237 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/Video/VideoLinkPositions.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"8decd36a42eb9452ea9d1346dcf71405786ea5d617832d5ae49a16bc35675906"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Modules/Features/Onboarding/OnboardingView.swift:233-244 | Modules/Features/Reader/TTS/TTSPanelView.swift:582-593 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Onboarding/OnboardingView.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"92eaa0ea1fb93c15c99900d67eab63f254cad0fa6c7f765a8124b7e548ea8fc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Modules/Services/Online/DiscoverViewModel.swift:1206-1212 | Modules/Services/Online/DiscoverViewModel.swift:1220-1226 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/DiscoverViewModel.swift"},"region":{"startLine":1206}}}],"partialFingerprints":{"codehealthFindingId/v1":"87475c8499e8ee6e161724c8f3516d9f2a231d1960b0df1e14a92fa96b5363ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Modules/Services/Works/HomeDefaultsGenresMigration.swift:25-28 | Modules/Services/Works/HomeDefaultsStoreMigration.swift:32-35 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/HomeDefaultsGenresMigration.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c9591903967ed16ec573db0d146385719e99c78b4766e73ad3d5f8990daf8ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (8 members, 4\u002B corresponding lines): Targets/Yuedu/SharedApp/AppLogger.swift:41-44 | Targets/Yuedu/SharedApp/AppLogger.swift:46-49 | Targets/Yuedu/SharedApp/AppLogger.swift:51-54 | Targets/Yuedu/SharedApp/AppLogger.swift:56-59 | Targets/Yuedu/SharedApp/AppLogger.swift:64-67 | Targets/Yuedu/SharedApp/AppLogger.swift:69-72 | Targets/Yuedu/SharedApp/AppLogger.swift:74-77 | Targets/Yuedu/SharedApp/AppLogger.swift:79-82 \u2014 These 8 members are one piece of code written 8 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 8 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/AppLogger.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"57adf9dcc8da4664e1924f0f8b7b874673462da413edeb47f2901a279f69ef46"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Targets/Yuedu/SharedApp/GlobalSettings\u002BCommentCards.swift:93-101 | Targets/Yuedu/SharedApp/ReaderCustomBackgroundStore.swift:19-29 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/GlobalSettings\u002BCommentCards.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a735f0998d4d161771219ef7a95593fbb89841cc80e4ff48750270ce167213e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:415-419 | Modules/Features/Reader/CoreTextCollectionScrollViewController.swift:417-421 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce768a457c9a5323c3a02cf5796077dd60c7ee9340337c67cad70f11c19c8800"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Modules/Core/ReaderCore/CoreText/CoreTextScrollEngine.swift:293-301 | Modules/Core/ReaderCore/CoreText/CoreTextScrollEngine.swift:305-313 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextScrollEngine.swift"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"797581dcdacab6bb08854d6b89641a80232c205d3309a35b711c2edba9eb972e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Modules/Core/ReaderCore/Customization/ReaderBarLayout.swift:430-436 | Modules/Core/ReaderCore/Customization/ReaderBarLayout.swift:438-449 | Modules/Core/ReaderCore/Customization/ReaderBarLayout.swift:451-457 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderBarLayout.swift"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f2aa240b845dec028f761e5737fe42dedbc76a8251fe89f4841538d2e693097"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Modules/Core/ReaderCore/Customization/RegexHighlightRule.swift:86-100 | Modules/Core/ReaderCore/Customization/RegexHighlightRule.swift:102-118 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/RegexHighlightRule.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"722026ccf090e0f9a826ea250d348258c235731009025f8c763e177150e1bc6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Modules/Core/RuleEngine/ModernParser/ModernRuleEngine.swift:168-174 | Modules/Core/RuleEngine/ModernParser/ModernRuleEngine.swift:290-296 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/ModernRuleEngine.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"49660e7d3da4a7dd7acb66de0f70296e5b90cb3d99efdafdd25e68598ea76223"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): Modules/Services/RuleModules/ModuleWorkDetail.swift:152-164 | Modules/Services/RuleModules/ModuleWorkDetail.swift:182-194 | Modules/Services/Works/WorkReviews.swift:134-146 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/ModuleWorkDetail.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c5abf3e2a340f99d7c5bb48407459aeb011c63b870a36d0a37e77e19ede644"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 6\u002B corresponding lines): Modules/Core/ReaderCore/CoreText/MathMLRendering.swift:99-104 | Modules/Core/ReaderCore/Customization/ChapterTitleHTMLCodec.swift:889-894 | Modules/Features/Reader/ReaderView\u002BSourceChange.swift:1452-1464 | Modules/Services/RSS/RSSUtilities.swift:435-441 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/MathMLRendering.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"b71a7866714668c23c9873137d27ff29324a522605faa95cde88991ae00829f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Modules/Core/ReaderCore/Customization/ReaderBarLayout.swift:221-233 | Modules/Core/ReaderCore/Customization/ReaderOverlayLayout.swift:114-126 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderBarLayout.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c7d4028b914de429caac9505376bac2f223d4f7cf881efc158d09c5d704bdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): Modules/Features/Reader/ReaderViewModel.swift:381-393 | Modules/Features/Reader/ReaderViewModel.swift:396-408 | Modules/Features/Reader/ReaderViewModel.swift:412-422 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderViewModel.swift"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"87ecfc710b0bfe570877a702cfd1ef3f0d8f07c4d2b030668327039ffb954061"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Modules/Services/Feedback/FeedbackModels.swift:195-202 | Modules/Services/Feedback/FeedbackModels.swift:205-212 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Feedback/FeedbackModels.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d9863377e896fde1d0858aa48444929971b3c0cbf093abfbf536046704924f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Modules/Services/Works/HomeConfiguration.swift:187-191 | Targets/Yuedu/SharedApp/GlobalSettings.swift:3347-3353 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/HomeConfiguration.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"12e19edd2195e8eb922a57e22f8ab3dc08d2be9d5fb671ab7b0899b0f82872db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Modules/Services/iCloud/ICloudSyncManager.swift:1266-1268 | Modules/Services/iCloud/ICloudSyncManager.swift:1826-1828 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/iCloud/ICloudSyncManager.swift"},"region":{"startLine":1266}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ee794a0ac7a4f331f51c5cc1e47567cfc8d5a32ee388e5ca26004d9d65769dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 8\u002B corresponding lines): Modules/Core/ReaderCore/Customization/AppearanceThemePreset.swift:758-765 | Modules/Features/Reader/ReaderBarsView.swift:111-118 | Modules/SharedUI/Components/GeneratedBookCover.swift:73-80 | Targets/Yuedu/SharedApp/GlobalSettings.swift:695-702 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/AppearanceThemePreset.swift"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"225b1bfd39ccec2f4aaf875cb7e248cedae4b97b15909833f4b6c907fa0b9975"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Modules/Core/ReaderCore/Customization/ReaderStylePrimitives.swift:10-15 | Modules/Core/ReaderCore/Customization/ReaderStylePrimitives.swift:151-156 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderStylePrimitives.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"8da32829b4586465674da3f360f22ea2d1007d63c86d93850db10370d3e3392a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Modules/Core/RuleEngine/ModernParser/JsonExtractor.swift:787-793 | Modules/Core/RuleEngine/ModernParser/ModernRuleEngine.swift:1253-1260 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JsonExtractor.swift"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec21710850d14581f2d4daa8e397ad17b09aaaac9b90f215adb3e7bad795965"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Modules/Features/BookDetail/WorkDetailView.swift:1171-1174 | Modules/Features/Bookshelf/RemoteLibraryBookDetailView.swift:173-176 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/WorkDetailView.swift"},"region":{"startLine":1171}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bd71396981e94872fafa9566d9135681f8cb803019366ca25d489d16b5d0649"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Modules/Features/ChangeSource/ChangeSourceViews.swift:276-282 | Modules/Features/Settings/TTSSettingsView.swift:331-336 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/ChangeSource/ChangeSourceViews.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a41a5563fa91fe129ed5a1b5dea20359173893d51032ff934d60c4b80242211"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Modules/Features/RSS/RSSListView.swift:703-714 | Modules/Features/RSS/RSSArticleReaderView.swift:134-145 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/RSS/RSSListView.swift"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"791108c5ae1b572f1cb597c0c34ae25b7a08dab44509e3e7502b0491a9c843f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Modules/Features/Subscription/PaywallShowcase.swift:63-70 | Modules/Features/Subscription/PaywallShowcase.swift:109-116 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Subscription/PaywallShowcase.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdf630992d65dcf6bbfc02ee3a0982f877e62418d01e19c07a17cadae12e553f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Targets/Yuedu/SharedApp/AppearanceThemeReadingApplier.swift:56-67 | Targets/Yuedu/SharedApp/ReadingSettingsSync.swift:26-34 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/AppearanceThemeReadingApplier.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"e51fa4a57ea87f35c51563c818483efe62f069fe82e162dca5a4f77b00d1664f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Modules/Core/Audio/LocalAudiobookArchive.swift:311-316 | Modules/Core/Audio/LocalAudiobookArchive.swift:318-323 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/Audio/LocalAudiobookArchive.swift"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aa4e1b3167acb8e016c2330eae1679e4b92604de4762d05d72f25ddbb00e352"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageView.swift:282-293 | Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:1753-1764 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageView.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"d24dfc826cf982864997d11b8599cbecb821b4121e08dd41cec88e8d0289b21c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Modules/Core/ReaderCore/BrowserLayout/PublicationFontScalePolicy.swift:33-40 | Modules/Core/ReaderCore/BrowserLayout/PublicationPageAlignment.swift:17-21 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/BrowserLayout/PublicationFontScalePolicy.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"50136ec23a4ec9964ed60124e3ebc93024b31475fdc4013288d4bb85ec51295b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Modules/Core/ReaderCore/CoreText/ChapterTitleAttributedBuilder.swift:462-471 | Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift:401-413 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ChapterTitleAttributedBuilder.swift"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3cbff3f1cb762888cf422e17e6f2d3eb7b7e2447d39cf86ada59c8032f8cd0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:2827-2835 | Modules/Features/Settings/SharedCustomizationImportFlow.swift:91-97 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":2827}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b600898aa03a451088183051098f74cdfb2330cbbe7e74227588a42905bca87"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Modules/Features/AI/AIChatComponents.swift:303-316 | Modules/Features/WebBrowser/BrowserView.swift:1193-1205 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/AI/AIChatComponents.swift"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bba50dec0e32430c4c8ea9cf150ef1f1e288cdeb283ec6cb406fb2e9a23e845"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): Modules/Services/AI/AIBookSummaryStore.swift:29-35 | Modules/Services/AI/AICharacterMemoryStore.swift:17-21 | Modules/Services/RuleModules/RuleModuleRepository.swift:181-186 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/AI/AIBookSummaryStore.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"f78a4112a24fa53faaaab919436a51ccacc35bb68fe97ebf63aa4160bf366988"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): Targets/Yuedu/SharedApp/GlobalSettings.swift:3079-3087 | Targets/Yuedu/SharedApp/GlobalSettings.swift:3097-3105 | Targets/Yuedu/SharedApp/GlobalSettings.swift:3471-3479 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/GlobalSettings.swift"},"region":{"startLine":3079}}}],"partialFingerprints":{"codehealthFindingId/v1":"717ee11fe4a8f47a005a2a909c7fb9d93bdb185f493c28d27fd2a726a3a7bf9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Modules/Core/AI/LLMProviding.swift:45-57 | Modules/Core/RuleEngine/ModernParser/Login/LoginFieldStyle.swift:36-50 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/LLMProviding.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"58abdedc896540cb2a2e13bfcc6c6cf2b51ce0ee69a8aa422970b2c53b0d1896"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Modules/Core/BookSource/BookSourceStore.swift:62-67 | Modules/Services/RuleModules/RuleModuleStore.swift:40-50 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceStore.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"40d9933d4f7f766d810834203f1a345cf44147228c0028a1219112178cebd2aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Modules/Core/ReaderCore/CoreText/SVGWebViewRasterizer.swift:718-727 | Modules/Core/ReaderCore/CoreText/SVGWebViewRasterizer.swift:766-777 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/SVGWebViewRasterizer.swift"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"984facacdf8f456682524849d0f4f96568641b7a2adfd90eea9fe434dbbb958f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Modules/Core/ReaderCore/Customization/AppearancePageBackground.swift:20-29 | Targets/Yuedu/SharedApp/RootTabCustomization.swift:31-40 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/AppearancePageBackground.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"771d5371940c9508c3602be315c85ca2b07aa76abeb058c9c59b5b5551179320"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Modules/Core/ReaderCore/Customization/ReaderStyleCSSCodec.swift:764-772 | Modules/Core/ReaderCore/Customization/QiThemeManifest.swift:332-339 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderStyleCSSCodec.swift"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5e6f0c2244f5ac1712d834a4a0ce8fccb3695782528271ca4c5016222cd6d09"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Modules/Core/RuleEngine/ModernParser/CssExtractor.swift:65-68 | Modules/Core/RuleEngine/ModernParser/JsoupDefaultExtractor.swift:61-66 | Modules/Core/RuleEngine/ModernParser/JsoupDefaultExtractor.swift:96-101 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/CssExtractor.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"f38e8246f92e04aacefa92a82f27721db13e8cc1d9594c53325ed53f9fda97af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Modules/Features/FixedPageReader/Paged/FixedPagePagedViewController.swift:235-244 | Modules/Features/FixedPageReader/Paged/FixedPagePagedViewController.swift:246-255 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/FixedPageReader/Paged/FixedPagePagedViewController.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6801bc916639cdcc7dee167e61200a57a14aa43b93f2a897a673be2d3efacf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): Modules/Features/Reader/ChapterTitleInspectorView.swift:662-667 | Modules/Features/Reader/ReaderDialogueBubbleSettingsView.swift:430-441 | Modules/Features/Reader/RegexHighlightRuleEditorView.swift:824-829 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ChapterTitleInspectorView.swift"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3eb295e82fcd9fbc34537509394764b1b4c3d561a65433302236f79eb290729"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Modules/Features/Reader/ReaderCommentBubbleSettingsView.swift:52-61 | Modules/Features/Reader/ReaderParagraphBubbleSettingsView.swift:205-213 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderCommentBubbleSettingsView.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc2442af131ee9f51bbd1804e0f48c65e0e5b1a0d5a267829cd6e17fd4dc0672"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Modules/Services/Diagnostics/DiagnosticLog.swift:524-531 | Modules/Services/Diagnostics/MainThreadMonitor.swift:232-239 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Diagnostics/DiagnosticLog.swift"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6d16ac01c49f4401058757dd2a4d0d857f1ae0a16a6981ce092bd03e1d66cd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Modules/Services/Network/WebFetcher.swift:347-351 | Modules/Services/Network/WebViewFetcher.swift:765-769 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Network/WebFetcher.swift"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcccb89e8d28d916730f4e67d952a0de603c9d0161f5cbb6d812514c32908394"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Modules/Services/Online/SearchAggregator.swift:35-44 | Modules/Core/BookSource/BookSource.swift:783-791 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/SearchAggregator.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"e82a3d70eb90fc4899f5378d08894bd38f5796f744bee0fb07bc5a46d5d41451"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Modules/Core/ReaderCore/CoreText/ChapterTitleDesignRenderer.swift:98-107 | Modules/Services/RSS/RSSStore.swift:571-580 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ChapterTitleDesignRenderer.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf7283481bc22991ba182deaabc13dcb5d4f221b3c6189f2ec25346e9ea2d2fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift:2530-2535 | Modules/Core/ReaderCore/CoreText/HTMLStyledASTRenderableNodeConverter.swift:40-49 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift"},"region":{"startLine":2530}}}],"partialFingerprints":{"codehealthFindingId/v1":"f35287a6e098c56eb4ea2da8f0f8a01def16b30399c45e0258daa72249af476c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Modules/Features/BookSource/BookSourceEditView.swift:363-368 | Modules/Features/BookSource/BookSourceListView.swift:771-777 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookSource/BookSourceEditView.swift"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"b56c9b13a43fa855abf1fc7b0b725ddc0324b22676dfa7c86971ff289d4577d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 7\u002B corresponding lines): Modules/Features/Reader/ChapterTitleDesignerModel.swift:74-80 | Modules/Features/Reader/ChapterTitleDesignerModel.swift:82-88 | Modules/Features/Reader/ChapterTitleDesignerModel.swift:200-208 | Modules/Features/Reader/ChapterTitleDesignerModel.swift:210-217 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ChapterTitleDesignerModel.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"40080b5bdcd7f3f49d5d48674209882502a898dad14f80ef9a950a2dd5f96e78"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Modules/Services/ForYou/ForYouCandidateStore.swift:38-42 | Modules/Services/LibraryStore/CoverImagePipeline.swift:665-669 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/ForYou/ForYouCandidateStore.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b38747aa80011257bb5260055116c276b6f953c02d3ccd271268abcac37085e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Modules/Core/ReaderCore/CoreText/CoreTextPageEngine.swift:1787-1792 | Modules/Core/ReaderCore/CoreText/TXTPageEngine.swift:367-370 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageEngine.swift"},"region":{"startLine":1787}}}],"partialFingerprints":{"codehealthFindingId/v1":"24af775f4fc9f0d39f6d3313894cecf0975bad2c853d51aef1c870503a92bc8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:1407-1415 | Modules/Features/Reader/CoreTextCollectionScrollViewController.swift:599-607 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":1407}}}],"partialFingerprints":{"codehealthFindingId/v1":"f484b526d521f8e9f0d35a2fdc7261428cd1dac97e492913c35ae59c20f6d1cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Modules/Core/RuleEngine/ModernParser/JS/LegadoSourceBridge.swift:409-413 | Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift:2274-2281 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoSourceBridge.swift"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"80bb253a39eddc1b3a11957156b29002b44e2164f0e4f880e32ad4feb4f2c735"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Modules/Features/BookDetail/AudiobookDetailView.swift:445-448 | Modules/Features/BookDetail/OnlineBookView.swift:503-506 | Modules/Features/BookDetail/VideoDetailView.swift:738-741 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"261780e270fda317589bfb6e52cef2e2dfc4290082c68ee86f005ea2c391e13e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Modules/Features/BookSource/BookSourceImportConfirmSheet.swift:122-133 | Modules/Features/BookSource/JsBridgeBrowserView.swift:225-237 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookSource/BookSourceImportConfirmSheet.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"8782d4c5c00423902b6a154007d0bef2376520b6723863d6e67e8abe9be7a45b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Modules/Features/FixedPageReader/FixedPageFrameGapProbe.swift:47-54 | Modules/Features/Reader/ReaderTurnFrameRateRequest.swift:25-37 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/FixedPageReader/FixedPageFrameGapProbe.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6992cfc9251d7b15179972afe9054621128c05dec52e0815a74b3beadaaec71"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Modules/Core/ReaderCore/CoreText/ReaderDocumentTrace.swift:34-41 | Modules/Core/ReaderCore/CoreText/ReaderDocumentTrace.swift:91-99 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ReaderDocumentTrace.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4097590cffdb1eafe2e66c5d8051c8e6ba0f84a45043d8e4ca267785273850c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Modules/Features/AI/AIChatComponents.swift:99-108 | Modules/Features/Feedback/FeedbackThreadView.swift:335-344 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/AI/AIChatComponents.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"c370f8cd44cf28046f877f99572d922febd3a08b2f3a651fff835f5f9a4ec6a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Modules/Features/BookDetail/AudiobookDetailView.swift:451-454 | Modules/Features/BookDetail/OnlineBookView.swift:514-517 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c67dacfd4eda140ffbe7f4ff2e3ca7e9be1d932008935d5179c547a4a274b86"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Modules/Features/Feedback/FeedbackComposeView.swift:283-294 | Modules/Features/Settings/DiagnosticsView.swift:343-352 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Feedback/FeedbackComposeView.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"54e7bbee2596a5e82fd1762e14711ac5711af9febc582d1864d52d78b77d54b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Modules/Services/RSS/LegadoRSSScraper.swift:332-338 | Modules/Core/RuleEngine/ModernParser/Variables/RuleData.swift:35-42 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/LegadoRSSScraper.swift"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"d89b0e7d198b90913fa07640b883e48c297b2b7299149d7a345aaa33a7de37a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Modules/Core/BookSource/SharedImportQueueDrainer.swift:254-261 | Modules/Services/RuleModules/RuleModuleStore.swift:210-214 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/SharedImportQueueDrainer.swift"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"61eb643d25b2fee65c50bead60be209306cd74aaaf6803bc10d3153b0f8d94ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift:184-190 | Modules/Services/Network/LegadoOutgoingHeaders.swift:53-59 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd869308c531d3358bb1a6f7ec577cf14cb9a57d71696cb05f3e4fe72e48be08"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Modules/Core/TTS/TTSCoordinator.swift:1467-1472 | Modules/Core/TTS/SystemTTSEngine.swift:668-672 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/TTSCoordinator.swift"},"region":{"startLine":1467}}}],"partialFingerprints":{"codehealthFindingId/v1":"614aabfcb1696d98ec696b94c6ad0643da45c683f0cbc557e2c422fe36eee7fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Modules/Features/BookDetail/SourcePickerSheet.swift:137-147 | Modules/Features/BookDetail/WorkDetailView.swift:1305-1312 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/SourcePickerSheet.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"43348647007096f2c2b40f89f3c7831e8b023721dae6c5ecec6eb044d9054718"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Modules/Services/Online/BookContentProviderAdapters.swift:152-157 | Modules/Services/LibraryStore/UniversalBookInterfaces.swift:324-328 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/BookContentProviderAdapters.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bf87267b7ba6acf5a93ccf499b34535b6c33d8810e873f04c65929bb44cfd48"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): Modules/Services/PublicLibrary/AozoraLibraryDownloadService.swift:41-47 | Modules/Services/RemoteLibrary/RemoteLibraryService.swift:108-112 | Modules/Services/RuleModules/ModuleBooks.swift:94-100 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/PublicLibrary/AozoraLibraryDownloadService.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbd437b7eb6fca32d59fb09e096ebbebad2681acd7b335e1a616fc53e913a52d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Modules/Services/AI/AIDialogueCastStore.swift:32-35 | Modules/Services/Calibre/CalibreWirelessService.swift:52-55 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/AI/AIDialogueCastStore.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dd0420d7ba53322b71dfa0f4f0918414ee9d41202ae2b4359d661da98522c6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Modules/Core/BookSource/BookSourceFetcher\u002BChapterCache.swift:21-33 | Targets/Yuedu/SharedApp/AppDependencies.swift:341-353 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceFetcher\u002BChapterCache.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb6628372f4bac2111a9273d77d7ac03b1aa2ae70e1d640c8fd9b2c49f29083f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Modules/Features/BookSource/BookSourceRowViews.swift:395-401 | Modules/Features/BookSource/SourceValidationListHeader.swift:34-40 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookSource/BookSourceRowViews.swift"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ab6f6896885b5b20931efd368ea94a936c5ef42deebe408c4c91c5bbc1aee59"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Modules/Features/FixedPageReader/Paged/FixedPagePageViewController.swift:47-58 | Modules/Features/FixedPageReader/Paged/FixedPageSpreadViewController.swift:52-63 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/FixedPageReader/Paged/FixedPagePageViewController.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fba43d8c7c643d5f79228a066519e1ea6c628972f2830bdf2d5bcc54d92c913"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Modules/Core/ReaderCore/CoreText/ReaderDialogueBubbleRenderer.swift:396-399 | Modules/Core/ReaderCore/CoreText/RegexHighlightDecorationRenderer.swift:659-666 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ReaderDialogueBubbleRenderer.swift"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d0ab8bb1e892d69eed0ae26ba99cf5b7eb699bb02d9f36de529d7e75a1711dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Modules/SharedUI/Components/SourceWebUIDelegate.swift:39-50 | Modules/Features/Reader/ReaderWebEmbedManager.swift:143-153 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/SharedUI/Components/SourceWebUIDelegate.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae579c3421b2fe9a3e03125a23edf215a20de1adc920889b707f25bd5b36c59f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Targets/Yuedu/SharedApp/AppearanceThemeExtrasApplier.swift:36-42 | Targets/Yuedu/SharedApp/GlobalSettings.swift:1350-1358 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/AppearanceThemeExtrasApplier.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8a3a5695466b72f04707acc86f4124cb3949d6d7c51353527940c85607b9cb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Modules/Core/PDF/LocalPDFArchive.swift:146-153 | Modules/Core/Comic/LocalMangaArchive.swift:252-256 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/PDF/LocalPDFArchive.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbaed5b8ad861f2c23ca31feee6d0b9be1339a72bb4679c3818f747c0f152301"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:574-582 | Modules/Features/Reader/CoreTextCollectionScrollViewController.swift:555-563 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eb632bb0d3d47f1c8b6985a368db418cf08350381ae637d7ed1f062f8b047cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:2327-2335 | Modules/Core/ReaderCore/CoreText/TextSelectionInteractor.swift:78-83 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":2327}}}],"partialFingerprints":{"codehealthFindingId/v1":"edff528997e4465246996b28574796684fd220d0e4bacd6751d7f7abf124812f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 8\u002B corresponding lines): Modules/Core/ReaderCore/Customization/ChapterTitleDesign.swift:277-284 | Modules/Core/ReaderCore/Customization/ReaderBarLayout.swift:245-252 | Modules/Core/ReaderCore/Customization/ReaderDialogueBubbleStyle.swift:345-352 | Modules/Core/ReaderCore/Customization/ReaderOverlayLayout.swift:29-36 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ChapterTitleDesign.swift"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"87107e217ae263ae92e5f4959f98d402f9ca9d23c86e5f8d7116b26ceda7d452"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Modules/Features/Explore/Home/AIRecommendationRow.swift:263-272 | Modules/Features/Library/Modules/AIRecommendationModuleView.swift:129-136 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Explore/Home/AIRecommendationRow.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"48d8d19cc77e484a791ee5f2cf458419b0723322c180cc806d3f4415581eb91b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Modules/Core/AI/AIBM25Index.swift:124-131 | Modules/Core/ReaderCore/CoreText/CSSPropertyApplier.swift:155-163 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIBM25Index.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"682c3fdf306c95b126b6f5eee6b062dffeb3e6ad82c68bff65799a38b52581bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Modules/Core/BookSource/BookSourceFetcher\u002BChapterCache.swift:7-19 | Targets/Yuedu/SharedApp/AppDependencies.swift:393-405 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceFetcher\u002BChapterCache.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"54ec779633dfbb211649fff0f9ccca982f19b70716a06c56bc50c7b70befa93a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Modules/Core/BookSource/BookSourceFetcher\u002BChapterCache.swift:91-103 | Targets/Yuedu/SharedApp/AppDependencies.swift:379-391 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceFetcher\u002BChapterCache.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"adcc935a0180ebb0dff4658f494f2d14223a50e2f884c61520fc0ddc1b5426e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Modules/Core/ReaderCore/CoreText/ReviewCardContent.swift:281-284 | Modules/Services/RSS/RSSModels.swift:212-215 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ReviewCardContent.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"385d9219435d41303295c64ddf54f4ae6586a888035e01d21f86c5e775eba64b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Modules/Core/ReaderCore/CoreText/ReviewCardSVGMetrics.swift:278-281 | Modules/Core/ReaderCore/CoreText/ReviewCardTemplate.swift:337-340 | Modules/Core/TTS/AudiobookPlayer.swift:74-77 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ReviewCardSVGMetrics.swift"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"d42e51ca39db0de6d3a9d5e20aa306350d9136f46b48b7d25c2ea6df94159ee8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Modules/Core/RuleEngine/ModernParser/CssExtractor.swift:96-98 | Modules/Core/RuleEngine/ModernParser/JsoupDefaultExtractor.swift:127-129 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/CssExtractor.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4392b682a241df024db804f54c48af68d8257d6d2df291bef0984afc16b1686"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Targets/Yuedu/SharedApp/DefaultCoverLibrary.swift:108-116 | Targets/Yuedu/SharedApp/GlobalSettings.swift:4191-4199 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/DefaultCoverLibrary.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c9c2b571c43da2e2a51ef926f45635bf65da36b64cfc9b0eb0092f4db3129d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): Modules/Core/BookSource/BookSourceStore.swift:1086-1091 | Modules/Core/RuleEngine/JSRuleEngineRunner.swift:168-172 | Modules/Features/BookSource/JsBridgeBrowserView.swift:407-413 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceStore.swift"},"region":{"startLine":1086}}}],"partialFingerprints":{"codehealthFindingId/v1":"9782c79ee60ad85da5f40009ae6f5979d6abef19812d940d628397ef362dfea3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Modules/Core/ReaderCore/CoreText/CSSPropertyApplier.swift:145-153 | Modules/Core/TTS/SystemTTSEngine.swift:606-613 | Modules/Core/TXT/AozoraMarkupParser.swift:158-166 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CSSPropertyApplier.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b718a3b1e5bec712557a1dcfd4c29c7d081649aa6ed8e68c2d0e80d3d8b4de9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Modules/Core/RuleEngine/ModernParser/JS/LegadoSharedJsLibrary.swift:87-89 | Modules/Services/Online/DiscoverKindsCache.swift:102-104 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoSharedJsLibrary.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ab9e0898cf31f520633973ef6aff9b5135734eeccd4091dee21e676cf6d30d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 4\u002B corresponding lines): Modules/Core/TTS/AzureTTS.swift:282-287 | Modules/Services/AI/AIBookSummaryStore.swift:12-15 | Modules/Services/AI/AIChapterTranslationStore.swift:16-19 | Modules/Services/AI/AICharacterMemoryStore.swift:11-14 | Modules/Services/AI/AIDialogueCastStore.swift:14-18 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/AzureTTS.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"e60ef65ad35f6f08b1b7fd86f9fdb9cde3ad45190db01181839e19d60fa3e121"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Modules/Features/BookDetail/AudiobookDetailView.swift:527-533 | Modules/Features/BookDetail/OnlineBookView.swift:598-604 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e47d188566ab1d37d4e3807f52f1e306818b42b6fcfa57d3dde34b1db986149"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Modules/Features/Reader/ReaderSecondaryAction.swift:38-44 | Modules/SharedUI/Components/ImageSourcePicker.swift:41-51 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderSecondaryAction.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c0fb837668c35dfea2ccdefbd5b1d368bc23706d848dc2588f09ee3d1aa951c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Modules/Services/Works/MetadataResolver.swift:101-106 | Modules/Services/Works/WorkDecisionsStore.swift:53-58 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/MetadataResolver.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"21f6fbf91d529393630d0508638e5a9422806a06398c2d68f15824218911b0f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 4\u002B corresponding lines): Modules/Core/Comic/MangaChapter.swift:310-313 | Modules/Core/ReaderCore/CoreText/OnlineImageLoader.swift:148-151 | Modules/Core/ReaderCore/CoreText/ReaderWebEmbed.swift:93-96 | Modules/Core/RuleEngine/ModernParser/JsonExtractor.swift:627-631 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/Comic/MangaChapter.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ee6416cb2655b35a583f6824b4069082a57bafa974cc1baf5fe389c7b423c09"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 3\u002B corresponding lines): Modules/Core/ReaderCore/Customization/ReaderOverlaySVGAssetStore.swift:354-358 | Modules/Core/ReaderCore/Translation/ReaderTranslationLayout.swift:64-66 | Modules/Services/Online/LegadoReviewActionRunner.swift:121-125 | Modules/Services/RemoteLibrary/RemoteLibraryCache.swift:26-28 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderOverlaySVGAssetStore.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"74ee725f2b36cbc418f2e4ea89be1583b2e1e34e5022143a71d1afd5aba491e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Modules/Core/RuleEngine/ModernParser/CssExtractor.swift:233-237 | Modules/Services/Online/DiscoverViewModel.swift:1214-1218 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/CssExtractor.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed4da09770cfe2d99278774d9b1bd908eaafc00546d3e5ff827b38255d540802"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Modules/Features/BookDetail/SourcePickerSheet.swift:80-87 | Modules/Features/ChangeSource/ChangeSourceViews.swift:287-294 | Modules/Features/Search/SearchBookListRow.swift:69-76 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/SourcePickerSheet.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"50dcbd055ad9d4a63c1fae7ff3cfeebb76b2416a000b7833ff33d5cc656bf182"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Modules/Services/RSS/RSSFetcher.swift:1527-1530 | Modules/Services/RSS/RSSUtilities.swift:488-491 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSFetcher.swift"},"region":{"startLine":1527}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6fec933cbd29f0fb6ff98d78d814a1743f5bb59ff5d1a89cede33a7cbd535c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Modules/Core/BookSource/BookSourceCheckMarks.swift:45-49 | Modules/Services/RuleModules/ModuleFillProvider.swift:236-240 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceCheckMarks.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6d822a29e7ce9c507181823e2b9240c43a9825ca7f5242f42433ab2d44ba2af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageView.swift:15-22 | Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:641-649 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageView.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d1088add555bf8839f3bca9014713ff06236c6d3be11a3f9abbf49b75d53662"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Modules/Core/Replace/ReplaceRuleStore.swift:65-69 | Modules/Core/TXT/TXTTocRuleStore.swift:44-49 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/Replace/ReplaceRuleStore.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"94e3ceb205bd692d56999672bb3e63428b162e0fb18a4f640c2f7649f828f69f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Modules/Features/BookDetail/AudiobookDetailView.swift:205-210 | Modules/Features/BookDetail/OnlineBookView.swift:231-235 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a91122e9b6802592400c9cb4f81394bb898bccbd05a674ee4d66dfaa2f2f9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 11\u002B corresponding lines): Modules/Features/Explore/DiscoverPageSettingsSheet.swift:255-265 | Modules/Features/RSS/RSSListView.swift:937-947 | Modules/SharedUI/Adaptive/SoftScrollEdgeStyle.swift:34-44 | Modules/SharedUI/Components/RootTabTitle.swift:190-200 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Explore/DiscoverPageSettingsSheet.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e8067a72be7bb1951f47610e0938d35676dc56464d505d16ce240c7de7b662f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Modules/Features/RSS/RSSFaviconView.swift:194-197 | Modules/Services/RSS/RSSFetcher.swift:1073-1076 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/RSS/RSSFaviconView.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eb5d4266ff518fcd6fdf8ff117e13de139077fe5a81e5e647b14e893e84147f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Modules/Core/AI/LLMStreamDecoding.swift:32-35 | Modules/Core/ReaderCore/CoreText/MarkdownAttributedStringBuilder.swift:348-351 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/LLMStreamDecoding.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce7e5b2d912a9a349bd42d9a381bc4fd0889d54dbfc2c368d86dcf9941c05660"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Modules/Core/ReaderCore/CoreText/CharOffsetStore.swift:31-37 | Modules/Core/ReaderCore/EPUBProgress.swift:229-234 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CharOffsetStore.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"26f1d3ddf52c48ba1c2d580d367f1136e950c280f51d9d286cb930225955e4c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Modules/Core/ReaderCore/Customization/ReaderCommentBubbleCustomStyle.swift:179-184 | Modules/Core/ReaderCore/Customization/ReaderCommentCardStyle.swift:139-142 | Modules/Core/ReaderCore/Customization/ReaderCustomBackground.swift:79-82 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderCommentBubbleCustomStyle.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"227cebe011afe6b2838ff5ef444248ae2570d297b99f64563e9544938f20735f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 4\u002B corresponding lines): Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift:2655-2658 | Modules/Core/RuleEngine/ModernParser/URL/AnalyzeUrl.swift:1120-1123 | Modules/Core/RuleEngine/RuleEngine.swift:1402-1405 | Modules/Core/TTS/TTSAudioProvider.swift:723-726 | Modules/Services/RSS/RSSModels.swift:255-258 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift"},"region":{"startLine":2655}}}],"partialFingerprints":{"codehealthFindingId/v1":"a191a5c1b061cbda4503879de0b63fcb455dcaa8aef14c83e0a4e23b40991df6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Modules/Features/Reader/ReaderStyleAssetLibraryView.swift:307-314 | Modules/Services/Online/LegadoReviewActionRunner.swift:24-34 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderStyleAssetLibraryView.swift"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"15066c7d7d2d62cee297db2490bf3e42f3424fe46cb749009d17850ed46d1966"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Modules/Services/Subscription/SubscriptionICloudMirror.swift:223-226 | Modules/Services/iCloud/ICloudSyncManager.swift:1966-1969 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Subscription/SubscriptionICloudMirror.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"0380270f28054c03dee1586596336d74b80c380c5b35cdf9368309325b853978"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Modules/Core/BookSource/SourceAPIErrorLog.swift:278-284 | Modules/Core/Replace/ReplaceRuleStore.swift:380-389 | Modules/Core/RuleEngine/ModernParser/Login/LoginManager.swift:490-501 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/SourceAPIErrorLog.swift"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eaa5d0c5f2fce4aa8c87213fd70de88fe7bbd5d3f738d362d0d8552d7017044"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Modules/Core/ReaderCore/BrowserLayout/EPUBBrowserLayoutResourceAdapter.swift:37-40 | Modules/Core/ReaderCore/CoreText/EPUBAttributedStringBuilder.swift:73-76 | Modules/Services/Online/BookContentProviderAdapters.swift:43-46 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/BrowserLayout/EPUBBrowserLayoutResourceAdapter.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"555d177c476b26754aaf4579ca87dd81c97828a9aab7e9d76395ae1f73416598"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Modules/Features/Reader/ChapterTitleDesignerCanvas.swift:427-435 | Modules/Features/Reader/ReaderBarsView.swift:185-193 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ChapterTitleDesignerCanvas.swift"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"06509d0bddaa4dfe81d393d859dd6e9b18513368efad5ead3ef419504a353574"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Modules/Features/Reader/Video/VideoPlaybackController.swift:100-103 | Modules/Services/Online/OnlineChapterContentService.swift:21-24 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/Video/VideoPlaybackController.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b37701893a368b273d82de2cceb6d40d5ee254f9ba44ef98bd0f78b53fffc2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Modules/Services/RSS/RSSStore.swift:563-569 | Modules/Services/RuleModules/RuleModuleRepository.swift:74-77 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSStore.swift"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"bba43976afb1970cfbfc89dcba8247d9f2b69b2b48a13f8d53d25549f73bfe85"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Modules/Core/ReaderCore/BrowserLayout/EPUBBrowserLayoutResourceAdapter.swift:42-45 | Modules/Core/ReaderCore/CoreText/EPUBAttributedStringBuilder.swift:78-81 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/BrowserLayout/EPUBBrowserLayoutResourceAdapter.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4bb628eb1eaa2b0920661440f536d91c54f8c9d2c59aea57e0bebb83053c522"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Modules/Features/BookDetail/AudiobookDetailView.swift:429-432 | Modules/Features/BookDetail/OnlineBookView.swift:477-481 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b04314af6f6cda4fd9e4f187ef130c932a8dda6544aa85c1ada290a47b29fbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Modules/Features/BookDetail/AudiobookDetailView.swift:675-679 | Modules/Features/BookDetail/OnlineBookView.swift:739-743 | Modules/Features/BookDetail/VideoDetailView.swift:743-746 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d65e5a1143a062bddb5384b0ddce82c1464361efbd22433ccffe5d179f9907"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 3\u002B corresponding lines): Modules/Core/AI/AISourceSnapshot.swift:26-28 | Modules/Core/EPUB/EPUBPackageArchive.swift:81-83 | Modules/Core/ReaderCore/CoreText/CoreTextPageEngine.swift:212-214 | Modules/Services/PublicLibrary/AozoraCatalogStore.swift:129-131 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AISourceSnapshot.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac007a4e77fba27adf1917f17122edc8f4165caaa22a5203070eaa47b39b9f02"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Modules/Features/BookDetail/BookDetailReviewsSection.swift:155-157 | Modules/Features/BookDetail/OnlineBookMetadataFormatter.swift:53-55 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/BookDetailReviewsSection.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5863eeb608b312d9041328f3ecd28a9ea2eefa87ad25a5a654e74b11ed7256c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Modules/Features/FixedPageReader/FixedPageReaderView.swift:234-240 | Modules/Features/Reader/ReaderView\u002BLogic.swift:387-393 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/FixedPageReader/FixedPageReaderView.swift"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ed3a41436af1e036839fa83d5eb9db44634421f8664b30d0c9f7c992c51a47f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Modules/Core/ReaderCore/Customization/ChapterTitleDesign.swift:286-292 | Modules/Core/ReaderCore/Customization/ReaderStylePrimitives.swift:304-307 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ChapterTitleDesign.swift"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"e052130a02aa86be5c8e742a2905ae09013914a240dc44b321f60ba3b49ebc20"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Modules/Core/ReaderCore/Customization/ReaderOverlayLayout.swift:138-145 | Modules/Core/ReaderCore/Customization/ReaderStylePrimitives.swift:40-43 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderOverlayLayout.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"da2d657841561ba252ce4c9ef3b7b95f78df52bdc8b6f849c82764c00ef19db6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Modules/Core/AI/AIBookshelfOrganizer.swift:131-134 | Modules/Core/AI/AIRecommendation.swift:113-116 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIBookshelfOrganizer.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6542e7d75a8e1ea13959a0bbaed527644ee9d633747af2daf42511bdf5682a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Modules/Core/ReaderCore/Customization/AppearancePageBackground.swift:247-251 | Targets/Yuedu/SharedApp/DefaultCoverLibrary.swift:103-106 | Targets/Yuedu/SharedApp/GlobalSettings.swift:4287-4290 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/AppearancePageBackground.swift"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"032dbaf4c42d304817a3d295aee8fd39f77442ac2cc8b87adaaf1627fff9ed0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Modules/Features/BookDetail/AudiobookDetailView.swift:568-571 | Modules/Features/BookDetail/OnlineBookView.swift:639-642 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"f33be8e686c80e91adc9c24990cd38600f0272c62f18dfea94a37f1adcd1d881"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Modules/Features/BookDetail/AudiobookDetailView.swift:638-641 | Modules/Features/BookDetail/OnlineBookView.swift:701-704 | Modules/Features/BookDetail/VideoDetailView.swift:632-635 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"4830ba0d04bc0b678bc92df997e9e1aea81184b3fce8e2107a5d0f1abbe6a6a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Modules/Features/BookDetail/VideoDetailView.swift:297-300 | Modules/Features/Explore/Home/HomeSectionCards.swift:654-657 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/VideoDetailView.swift"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"f92e2e8acfa480dd8c1f26e2443bbff78805be6b4eec12384d4201667b71b8a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Modules/Features/BookSource/SourceValidationListHeader.swift:190-202 | Modules/Features/Reader/ReaderModernBottomControlBar.swift:427-437 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookSource/SourceValidationListHeader.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b4fcb646277e6bfe3752ee48d764f6912cc3fb840038b15cd67c1346f7850b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Modules/Features/Bookshelf/HomeView.swift:802-813 | Modules/Features/Settings/TTSSettingsView.swift:217-227 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Bookshelf/HomeView.swift"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"73298d9b1460107b4344a1be7a8d246e14639a8f507a70bec5898efbb2f18621"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Modules/Features/FixedPageReader/FixedPageReaderView.swift:226-232 | Modules/Features/Reader/ReaderView\u002BLogic.swift:356-363 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/FixedPageReader/FixedPageReaderView.swift"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"af18578e0ac3ceac094f952199283846762260c1bc08d5a5c1e808270763f12b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Modules/Features/Reader/ReaderChromeCustomization.swift:253-256 | Targets/Yuedu/SharedApp/RootTabCustomization.swift:182-185 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderChromeCustomization.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"d976561512b3f7e98b6b15d44b650bddaf2c605843e0824fe6e43aaee3dc7c94"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Modules/Services/AI/AIChatStore.swift:63-66 | Modules/Services/AI/AIProviderSettings.swift:81-84 | Modules/Services/Account/AccountDisplayNameEdits.swift:35-39 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/AI/AIChatStore.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ccbc652592db18b191542e8a5dc3b3f60152fdd502f8bfb18d364a39be38b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Modules/Services/LibraryStore/StorageLocations.swift:44-47 | Modules/Services/Works/WebDAVIndexCoordinator.swift:124-127 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/StorageLocations.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab5aad089e0707ad2fa55d9273de579836bd294dedc4dfebde1491f9a7812561"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Modules/Core/EPUB/PLSLexicon.swift:92-94 | Modules/Core/ReaderCore/CoreText/MathMLRendering.swift:57-59 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/PLSLexicon.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"d753a7bd4d290770c90aabbbaff0301fca8f6250d2e2ae56655caac01dbc4486"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Modules/Features/BookDetail/AudiobookDetailView.swift:174-177 | Modules/Features/BookDetail/VideoDetailView.swift:139-142 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba5118299ca969a15b2826fabf7037c4f427eba024520edc2242e7384046a402"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Modules/Services/ForYou/ReadingGenreProfile.swift:96-99 | Modules/Services/Works/HomeFeedPageStore.swift:41-45 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/ForYou/ReadingGenreProfile.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf6212137aa67bc83114ffdb4183468ca5e75e4df6e7466e3ef718d7ff3a0c01"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 4\u002B corresponding lines): Modules/Core/ReaderCore/CoreText/NodeAttributedStringBuilder.swift:25-28 | Modules/Features/BookDetail/VideoDetailView.swift:173-176 | Modules/Services/LibraryStore/UniversalBookInterfaces.swift:342-345 | Modules/Services/Online/BookContentProvider.swift:62-65 | Modules/Services/Online/BookContentProviderAdapters.swift:14-17 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/NodeAttributedStringBuilder.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4bea1f27aeed2827201600b8e912bb74a9322cbd96e10613e4b3a65ccb65420"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Modules/Core/ReaderCore/Customization/ReaderOverlayLayout.swift:319-322 | Modules/Core/ReaderCore/Customization/ReaderStylePrimitives.swift:170-173 | Modules/Features/Reader/ReaderOverlayPresentation.swift:150-153 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderOverlayLayout.swift"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"29fa66767e96a1c32af89c65cece3ac78ae1ed4b52e7cd5dc5a4c1493bb7093f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Modules/Core/TTS/ChapterAudioProvider.swift:88-90 | Modules/Core/Video/VideoChapterLink.swift:186-188 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/ChapterAudioProvider.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"668dfacc5d4432e71ad6cbebe7b2ed60b299f790057d417a3214d668721912c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Modules/Core/TTS/EdgeTTSSecurityToken.swift:192-194 | Modules/Services/RuleModules/RuleModuleScript.swift:274-276 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/EdgeTTSSecurityToken.swift"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d93e30dfe3e04b69433a036732b92721ef6bce54617856434c44c45eb291e8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 1\u002B corresponding lines): Modules/Features/AI/AIBookCharactersView.swift:133-133 | Modules/Features/AI/AICharacterMemoryView.swift:397-399 | Modules/Features/AI/AIStatusView.swift:120-122 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 1 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/AI/AIBookCharactersView.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3cc3a11150115b76e70becb7750e25a5ab058a70b31e7bfd9f5a9ea4565e94d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Modules/Services/WebDAV/WebDAVManager.swift:242-248 | Modules/Services/iCloud/ICloudSyncManager.swift:1386-1393 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/WebDAV/WebDAVManager.swift"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"28dbf9169e3eae5231c649a13fbdc6d73afbce6f6990296921901ff1fdab9ad4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 3\u002B corresponding lines): Modules/Core/AI/AIBookshelfOrganizer.swift:121-123 | Modules/Core/AI/AIRecommendation.swift:109-111 | Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift:2650-2652 | Modules/Core/ReaderCore/CoreText/ReviewCardContent.swift:158-161 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIBookshelfOrganizer.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"21a3eb29c5b3e07a17971b47fa7cc3f7116a782dd54f09578ff0b274019ea9a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Modules/Core/BookSource/SourceImportPlan.swift:153-159 | Modules/Features/BookSource/BookSourceManagementModel.swift:189-196 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/SourceImportPlan.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7aacd50789922bc0eede007194bef5b485dffd90223aafc7fcde826c6c87e52"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Modules/Core/EPUB/FixedLayoutEPUBPageProvider.swift:217-220 | Modules/Core/PDF/PDFPageRasterizer.swift:141-144 | Modules/Services/LibraryStore/CoverImagePipeline.swift:991-994 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/FixedLayoutEPUBPageProvider.swift"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bf19b80b2264f3b83aaea552e1f5eabfa62123cba0d074edb7dd5e1ce96d514"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Modules/Features/AI/AIBookSummaryView.swift:294-298 | Modules/Features/AI/AICharacterListView.swift:239-247 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/AI/AIBookSummaryView.swift"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"446399d011c67ef9733ce04bad57ade5a885f4f4ddd2aa068e16929679565419"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Modules/Features/Reader/TTS/AudiobookPlayerControls.swift:496-502 | Modules/Features/Reader/Video/VideoPlayerView.swift:587-592 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/TTS/AudiobookPlayerControls.swift"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"47582555473e07f127953a319306e46dacead99f4ce6f91c2fd7e95633ba4ecf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Modules/SharedUI/Adaptive/VerticalBarGround.swift:20-26 | Targets/Yuedu/iPad/IPadAdaptiveRootTabStyle.swift:4-11 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/SharedUI/Adaptive/VerticalBarGround.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"762ef017cd024aa299e339ac02db1451a90a71db36ab3ab0ee3a2ddfc773c52e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Targets/Yuedu/SharedApp/DefaultCoverLibrary.swift:56-58 | Targets/Yuedu/SharedApp/GlobalSettings.swift:4248-4250 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/DefaultCoverLibrary.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d04800f788b974bbcedfc622178d49b20cc9724a6fd7af90f4d38cc6b660b30"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageView.swift:908-915 | Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:2787-2794 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageView.swift"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"37eb3971819a55212f589a3f2ddead1bebb1eba55a90c954dbfff399cfd547fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Modules/Core/TTS/TTSRoleVoiceCast.swift:194-196 | Modules/Services/Online/VideoEpisodeStills.swift:42-44 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/TTSRoleVoiceCast.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb54002e7828cb1b6f93efb0ee1266b9d40aac459447a69deb73b675d090d25b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Modules/Features/Reader/ReaderPullDownBookmarkMotion.swift:78-81 | Modules/Features/Reader/ReaderSwipeUpExitMotion.swift:58-61 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderPullDownBookmarkMotion.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"44556f61a3498f473c5f046af0a1167b015a8794da57f011be30cdb4d6f81926"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Modules/Services/Subscription/SubscriptionICloudMirror.swift:187-193 | Modules/Services/iCloud/ICloudSyncManager.swift:1487-1493 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Subscription/SubscriptionICloudMirror.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"f765635a332d7ed30a50a19f44212fb88a14ebdf4c347ca001c3e263ada224c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Modules/Core/ReaderCore/CoreText/MarkdownAttributedStringBuilder.swift:65-67 | Modules/Core/ReaderCore/CoreText/TXTLazyAttributedStringBuilder.swift:202-204 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/MarkdownAttributedStringBuilder.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcebc0d58cd72dc7e42575c734f1ff3e5e096b95a0ac94cf1d0466e34f41cfa4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Modules/Core/ReaderCore/Customization/DialogueBubbleScriptImporter.swift:437-440 | Modules/Core/ReaderCore/Customization/LottieTitleTemplateImporter.swift:673-676 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/DialogueBubbleScriptImporter.swift"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ef28904d0ad9af442ebc794d94a1c55913cf62c6a839d7d3a225d397803318"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Modules/Core/RuleEngine/ModernParser/CssExtractor.swift:61-63 | Modules/Core/RuleEngine/ModernParser/JsoupDefaultExtractor.swift:131-133 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/CssExtractor.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd4d07da5b86e1a9cc3ae36a8598125d22b47524db7fcdb6830b530fe6687fb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift:2637-2639 | Modules/Core/TTS/TTSAudioProvider.swift:1029-1031 | Modules/Services/Online/ChapterFetcher.swift:827-832 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift"},"region":{"startLine":2637}}}],"partialFingerprints":{"codehealthFindingId/v1":"f05d79bbeb0bae762d06d5bebe7286b1c64428f0d8d640afb92ff70c70bd6084"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): Modules/Features/BookDetail/BookDetailComponents.swift:1193-1193 | Modules/Features/Explore/Home/HomeBookCard.swift:178-180 \u2014 These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/BookDetailComponents.swift"},"region":{"startLine":1193}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b736bc6aa813a0df1a9fdfb19c46676fd92edf588e1842509911d34fb2b0032"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Modules/Features/RSS/RSSArticleReaderView.swift:147-154 | Modules/Services/RSS/RSSUtilities.swift:815-822 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/RSS/RSSArticleReaderView.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e744011d78304df3f841a821fd4fdcadf7452af7b6b232933ee9c207112c839"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Modules/Features/Settings/AppearanceThemeView.swift:1099-1110 | Modules/Features/Settings/RootTabCustomizationView.swift:361-373 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Settings/AppearanceThemeView.swift"},"region":{"startLine":1099}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f7906f87ca9c7cc4e981cf8bbd422d48dca4cc2f71cfb10578624935ae21792"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Modules/Features/Explore/Home/HomeCollectionCards.swift:201-205 | Modules/Features/Explore/Home/HomeGenreList.swift:46-50 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Explore/Home/HomeCollectionCards.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"69ea17a879730efa1881e1906f15ae360ac6c60922933cb374ca81ababf80c7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Modules/Core/MOBI/MOBIMetadata.swift:73-76 | Modules/Core/ReaderCore/CoreText/UserReaderFontResolver.swift:37-40 | Modules/Core/ReaderCore/Customization/AppearancePageBackground.swift:134-137 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/MOBI/MOBIMetadata.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"a059c5e28b08b8169831526d61e425a314a427ec1fa9e2f11614920f2dd0ec2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Modules/Core/ReaderCore/CoreText/NoteMarkerOverlayView.swift:60-68 | Modules/Features/Reader/CoreTextChunkCell.swift:13-19 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/NoteMarkerOverlayView.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4539974a976f495ecdbe17b7570468817e8fc681588d9bd14e84fe4dbb1e618"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39\u201340 lines \u00D7 2): Modules/Features/WebBrowser/BrowserView.swift:196-235 | Modules/Features/WebBrowser/BrowserView.swift:257-295 \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 \u0060Modules/Features/WebBrowser/BrowserView.swift:196\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":"Modules/Features/WebBrowser/BrowserView.swift"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"61560acf6d1804c683cd19e8e3bc97ee7f7e97e208fcb6ba18e44b877c578aa8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): Modules/Features/RSS/RSSFeedView.swift:71-105 | Modules/Features/RSS/RSSFeedView.swift:292-326 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/RSS/RSSFeedView.swift:71\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":"Modules/Features/RSS/RSSFeedView.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"c766a81a1cda3bc1154f67eb447f8fdc87aba6d3788d7b6af0b3b70405b9f3ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): Modules/Features/Reader/ReaderCommentCardSettingsView.swift:245-279 | Modules/Features/Reader/ReaderParagraphBubbleSettingsView.swift:356-390 \u2014 before extracting anything, compare \u0060Modules/Features/Reader/ReaderCommentCardSettingsView.swift\u0060 and \u0060Modules/Features/Reader/ReaderParagraphBubbleSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/Reader/ReaderCommentCardSettingsView.swift:245\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 \u0060header\u0060 to \u0060Text(localized(\u0022\u9810\u89BD\u0022)).foregroundStyle(DSColor.textSecondary)\u0060 in one and \u0060Text(localized(\u0022SVG / TXT\u0022)).foregroundStyle(DSColor.textSecondary)\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":"Modules/Features/Reader/ReaderCommentCardSettingsView.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d7d8444f91bdd0a91746c3bf59cc87f9a41ffb9da8073ae1e1c0f2193530a4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:827-859 | Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:951-983 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:860\u0060 calls \u0060debugVerticalLog\u0060 and \u0060Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:984\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":"Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"e94b918175e9c4213858482e1f71e372acb8f8c23a4c77bfee3957267205ce52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): Modules/Core/EPUB/PublicationSession.swift:1175-1201 | Modules/Services/LibraryStore/UniversalBookResourceAdapter.swift:275-301 \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 \u0060Modules/Core/EPUB/PublicationSession.swift:1175\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":"Modules/Core/EPUB/PublicationSession.swift"},"region":{"startLine":1175}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccb1f2cefabfb1defacca803ddbc6c89f8c8bcf89af3f5d9940cec788e2eed67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201327 lines \u00D7 2): Modules/Core/ReaderCore/ReaderHTMLUtilities.swift:2384-2408 | Modules/Services/RSS/RSSUtilities.swift:761-787 \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 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":"Modules/Core/ReaderCore/ReaderHTMLUtilities.swift"},"region":{"startLine":2384}}}],"partialFingerprints":{"codehealthFindingId/v1":"c29edab0730e91a737f805648e7d85271035cb9b48a4386435a6a65e73042587"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 2): Modules/Core/RuleEngine/ModernParser/ModernRuleEngine.swift:816-842 | Modules/Core/RuleEngine/ModernParser/ModernRuleEngine.swift:885-910 \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 \u0060Modules/Core/RuleEngine/ModernParser/ModernRuleEngine.swift:816\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":"Modules/Core/RuleEngine/ModernParser/ModernRuleEngine.swift"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"6abac0d32f5d853c141172fba48c61073dbd45735aa4e31b3db4a861e1e3cfb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201327 lines \u00D7 2): Modules/Features/BookDetail/ChangeCoverView.swift:103-129 | Modules/Features/BookDetail/OnlineCoverSearchView.swift:55-77 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/BookDetail/ChangeCoverView.swift:103\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":"Modules/Features/BookDetail/ChangeCoverView.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cef8c150efa4c87ac32464ae231a08bd2a8c860d7ae83be15f7e9f2db2f29b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201326 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:490-515 | Modules/Features/Reader/CoreTextCollectionScrollViewController.swift:475-498 \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 \u0060Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:490\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":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbafef7255af3dfb64f4e7073dcb6d3bf434b4845046e8a3ed768f75e4267b8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201326 lines \u00D7 3): Modules/Core/EPUB/EPUBBookParser.swift:66-69 | Modules/Services/LibraryStore/UniversalBookInterfaces.swift:68-93 | Modules/Services/Online/BookContentProviderAdapters.swift:67-92 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Core/EPUB/EPUBBookParser.swift:66\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/EPUBBookParser.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"01cfeae173f5a862c165b3425f2b947f6fb18507ac37f6a53fe44eb49569248d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/OnlineProviderAttributedStringBuilder.swift:948-972 | Modules/Core/ReaderCore/CoreText/TXTLazyAttributedStringBuilder.swift:91-115 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/OnlineProviderAttributedStringBuilder.swift"},"region":{"startLine":948}}}],"partialFingerprints":{"codehealthFindingId/v1":"a266fde8cacc83ec5145b8572f49b296e153f11c910f683fcb6666110ae03a5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): Modules/Core/RuleEngine/ModernParser/RuleAnalyzer.swift:392-415 | Modules/Core/RuleEngine/ModernParser/RuleAnalyzer.swift:441-463 \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 \u0060Modules/Core/RuleEngine/ModernParser/RuleAnalyzer.swift:392\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":"Modules/Core/RuleEngine/ModernParser/RuleAnalyzer.swift"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b379fe9c4714ce8a822e2783937569ba9343cd378acd510c30110480ef2a73a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): Modules/Features/RSS/RSSFeedView.swift:119-142 | Modules/Features/RSS/RSSFeedView.swift:349-372 \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 \u0060Modules/Features/RSS/RSSFeedView.swift:119\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":"Modules/Features/RSS/RSSFeedView.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"dad00666b05804b691e4a61cfbe68797f56605bcd887c5f945816f9f010544ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift:445-467 | Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift:488-510 \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 \u0060Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift:445\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":"Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a5461d370e21c7b2bf9d963d14516dce1d751b63a544feeca130741a262f7f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift:1572-1594 | Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift:1644-1666 \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":"Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift"},"region":{"startLine":1572}}}],"partialFingerprints":{"codehealthFindingId/v1":"b708d6c7a6b3006b1548c32eee2bb1e936e7b1d573b0a5e9260972169fdef244"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): Modules/Core/RuleEngine/RuleEngine.swift:578-609 | Modules/Core/RuleEngine/RuleEngine.swift:619-650 \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 \u0060Modules/Core/RuleEngine/RuleEngine.swift:578\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":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a1da006407d13ac051e28c6717ee9cafcb55d76a26de8fc5d6eb752a1c50ed7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Modules/Features/Reader/ReaderCommentCardSettingsView.swift:39-60 | Modules/Features/Reader/ReaderParagraphBubbleSettingsView.swift:31-52 \u2014 before extracting anything, compare \u0060Modules/Features/Reader/ReaderCommentCardSettingsView.swift\u0060 and \u0060Modules/Features/Reader/ReaderParagraphBubbleSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/Reader/ReaderCommentCardSettingsView.swift:39\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderCommentCardSettingsView.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"779414b91e0613c19b361916612646fd5049d4185663cb2be230334a018b3c2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Modules/Services/LibraryStore/BookStore.swift:514-535 | Modules/Services/LibraryStore/BookStore.swift:585-606 \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 \u0060Modules/Services/LibraryStore/BookStore.swift:514\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":"Modules/Services/LibraryStore/BookStore.swift"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"0494d00606ab3e1f452a4aebd986abdbebe7ce954d3f73e6041585305d39c3d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201321 lines \u00D7 4): Modules/Services/Network/WebViewFetcher.swift:217-237 | Modules/Services/Network/WebViewFetcher.swift:273-289 | Modules/Services/Network/WebViewFetcher.swift:356-373 | Modules/Services/Network/WebViewFetcher.swift:520-536 \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 \u0060Modules/Services/Network/WebViewFetcher.swift:217\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 register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Network/WebViewFetcher.swift"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"e56d58ee4510d436d88d69ba4dd2b791db43ba4a3dddd2dc9f1ea8c978db6ca5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:861-881 | Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:984-1004 \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 \u0060Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:861\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:860\u0060 calls \u0060debugVerticalLog\u0060 and \u0060Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:983\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":"Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"18304e790a08975045165cd246ff404eb6f663d1f190f404f9ecd143c7771df3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift:1931-1951 | Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift:1989-2007 \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 \u0060Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift:1931\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":"Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift"},"region":{"startLine":1931}}}],"partialFingerprints":{"codehealthFindingId/v1":"0474b60b312fcf7251e8d65f39096127aca04b6811b70acf78dd1159d4986abe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift:2814-2832 | Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift:2867-2887 \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 \u0060Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift:2867\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":"Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift"},"region":{"startLine":2814}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f2579f8db746b966d1411b7ccf876d25d9b7ba1c383240b8dc33db0dcca609b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): Modules/Features/BookDetail/AudiobookDetailView.swift:316-336 | Modules/Features/BookDetail/VideoDetailView.swift:219-238 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/BookDetail/AudiobookDetailView.swift:316\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"38145406fa102ac2146ce0cf4ee987560e0192ad76f10ee092664664eddb2f67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201321 lines \u00D7 2): Modules/Services/Network/WebViewFetcher.swift:244-264 | Modules/Services/Network/WebViewFetcher.swift:297-313 \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 \u0060Modules/Services/Network/WebViewFetcher.swift:244\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":"Modules/Services/Network/WebViewFetcher.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc978620895dde55b2d3713bfe5714b6006825f1e1b3e384020f1edef655aca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift:818-836 | Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift:870-889 \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 \u0060Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift:818\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":"Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd0b6d567f4494c03ee63af458b07d848ac42c27937cc8305f1310ae076fa910"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Modules/Core/ReaderCore/Customization/HighlightPackImporter.swift:328-347 | Modules/Core/ReaderCore/Customization/ReedenThemeImporter.swift:775-794 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Core/ReaderCore/Customization/HighlightPackImporter.swift:328\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":"Modules/Core/ReaderCore/Customization/HighlightPackImporter.swift"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6ecb558d1b9efd4214c6b0d6d7bd6fdb8268a1cc10a4507c82c3feab3e04900"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): Modules/Features/Settings/ICloudSyncView.swift:100-119 | Modules/Features/Settings/WebDAVSyncView.swift:117-135 \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":"Modules/Features/Settings/ICloudSyncView.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"11c486fddfb0f5e33010de1fa677c31d257708186a9237accc4ccf421883513c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/CoreTextChunkSlicer.swift:878-896 | Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:2815-2833 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Core/ReaderCore/CoreText/CoreTextChunkSlicer.swift:878\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":"Modules/Core/ReaderCore/CoreText/CoreTextChunkSlicer.swift"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"a43f3e526dfaa61055959206d411a100a94ac25d27245224e574410e2393bac6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:2295-2312 | Modules/Features/Reader/CoreTextCollectionScrollViewController.swift:675-693 \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 \u0060Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:2295\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":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":2295}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1f3146e8392345cca980993d8a2d74bf5d6ef848868ea3f8324ae30c105593b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Modules/Features/BookDetail/AudiobookDetailView.swift:329-347 | Modules/Features/BookDetail/OnlineBookView.swift:365-383 \u2014 before extracting anything, compare \u0060Modules/Features/BookDetail/AudiobookDetailView.swift\u0060 and \u0060Modules/Features/BookDetail/OnlineBookView.swift\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/BookDetail/AudiobookDetailView.swift:329\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":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"636a9d939478422132bf2ccb9159a805d1d93a5341ae87dc5adb0887dfe2a303"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): Modules/Features/BookDetail/AudiobookDetailView.swift:310-327 | Modules/Features/BookDetail/OnlineBookView.swift:346-363 | Modules/Features/BookDetail/VideoDetailView.swift:213-230 \u2014 before extracting anything, compare \u0060Modules/Features/BookDetail/AudiobookDetailView.swift\u0060 and \u0060Modules/Features/BookDetail/OnlineBookView.swift\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/BookDetail/AudiobookDetailView.swift:310\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":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"f638af0c77071be12da1c0d954fee13c88b3f064742c646a4ac133c0603da461"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): Modules/Features/Reader/TTS/TTSRoleCastView.swift:628-645 | Modules/Features/Settings/TTSCloudVoiceSettingsView.swift:208-223 \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 \u0060Modules/Features/Reader/TTS/TTSRoleCastView.swift:628\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":"Modules/Features/Reader/TTS/TTSRoleCastView.swift"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"097f88e1745514c3d889514cda323bba111631dfab464eb6b7a26301f43cdb92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201318 lines \u00D7 2): Modules/Features/Settings/ReplaceRuleListView.swift:98-115 | Modules/Features/Settings/TXTTocRuleListView.swift:74-81 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/Settings/ReplaceRuleListView.swift:98\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Settings/ReplaceRuleListView.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f481fb10b4e7e96a674218ecf4e1290eb6d6bcfd768757b8ed6bef41894a241"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:1873-1889 | Modules/Core/ReaderCore/CoreText/TextSelectionInteractor.swift:111-127 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:1873\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":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":1873}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d70c19c7fec7cc43e8eed715b14ca1d9a257b4fb1b74128689363d9fa1b6440"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift:1482-1498 | Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift:1530-1546 \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 \u0060Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift:1482\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":"Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift"},"region":{"startLine":1482}}}],"partialFingerprints":{"codehealthFindingId/v1":"50af19fdb3ecd99c801fbff86175f3718d772fa2c455ea6f11897f3d636e8bfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/PaginationManager.swift:37-53 | Modules/Core/ReaderCore/CoreText/PaginationManager.swift:61-77 \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 \u0060Modules/Core/ReaderCore/CoreText/PaginationManager.swift:37\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":"Modules/Core/ReaderCore/CoreText/PaginationManager.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a1b5740211f9aaf4aa174cbf01e2b769875701d242f26c50f6d4dd6a6ee99fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Modules/Core/ReaderCore/Customization/ReaderStyleCSSCodec.swift:75-91 | Modules/Core/ReaderCore/Customization/ReaderStyleCSSCodec.swift:128-144 \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 \u0060Modules/Core/ReaderCore/Customization/ReaderStyleCSSCodec.swift:75\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":"Modules/Core/ReaderCore/Customization/ReaderStyleCSSCodec.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"2acb24852dc999b3365ae350add6dca2f1fef303b253249b333910b1ebcb7898"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): Modules/Core/TTS/TTSAudioProvider.swift:803-819 | Modules/Core/TTS/TTSLoginScript.swift:117-132 \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":"Modules/Core/TTS/TTSAudioProvider.swift"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b0ca63cd195ba1ba6c8022b617eaf9ff8343b1973e3266aca5c8e23ad063825"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Modules/Features/BookDetail/OnlineBookView.swift:866-882 | Modules/Features/BookDetail/OnlineBookView.swift:905-921 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"Modules/Features/BookDetail/OnlineBookView.swift"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"1078cbb3d8a98494e1c5c0cf2de640ae0d2fb70f96a44501e0f10556a6e5204c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): Modules/Features/BookSource/BookSourceListView.swift:751-767 | Modules/Features/Settings/TTSSettingsView.swift:510-525 \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 \u0060Modules/Features/BookSource/BookSourceListView.swift:751\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, \u0060Modules/Features/Settings/TTSSettingsView.swift:509\u0060 calls \u0060disabled\u0060 and \u0060Modules/Features/BookSource/BookSourceListView.swift:750\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":"Modules/Features/BookSource/BookSourceListView.swift"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"afab9cc32e4ed22ba6c949158432eb938ee07a8538b83441d743f2bc6111be11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Modules/Features/FixedPageReader/Paged/FixedPagePageViewController.swift:178-194 | Modules/Features/FixedPageReader/Webtoon/FixedPageWebtoonCell.swift:152-168 \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 \u0060Modules/Features/FixedPageReader/Paged/FixedPagePageViewController.swift:178\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":"Modules/Features/FixedPageReader/Paged/FixedPagePageViewController.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"e32d356cc2c19d0a40b49ab202de361af96f0b05e842921543c52f099ecdb2a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Modules/Features/Settings/ICloudSyncView.swift:157-173 | Modules/Features/Settings/WebDAVSyncView.swift:137-153 \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":"Modules/Features/Settings/ICloudSyncView.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf047631b36cd05ea2774658ed34bc7a5b186172c556a592bb36a182e07ef425"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Modules/Services/Network/WebViewFetcher.swift:410-426 | Modules/Services/Network/WebViewFetcher.swift:546-562 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Services/Network/WebViewFetcher.swift:410\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":"Modules/Services/Network/WebViewFetcher.swift"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"68cd86c1519c7be9e8c11765dd887cfdef29df666f6942b53b98bbf2abc5aff4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 4): Modules/Features/RSS/RSSListView.swift:1177-1192 | Modules/Features/RSS/RSSListView.swift:1451-1466 | Modules/Features/RSS/RSSListView.swift:1557-1571 | Modules/Features/RSS/RSSListView.swift:1658-1672 \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 \u0060Modules/Features/RSS/RSSListView.swift:1177\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":"Modules/Features/RSS/RSSListView.swift"},"region":{"startLine":1177}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b76aa8dcb891ee65e926bb943bc8cf5c849e86f264be34a55f8d28f541bebc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201316 lines \u00D7 3): Modules/Core/EPUB/PublicationSession.swift:1189-1204 | Modules/Features/Reader/ChapterTitleStyleSettingsView.swift:169-177 | Modules/Services/LibraryStore/UniversalBookResourceAdapter.swift:289-304 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Core/EPUB/PublicationSession.swift:1189\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":"Modules/Core/EPUB/PublicationSession.swift"},"region":{"startLine":1189}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc6002019ae8c904da17b29649c02006be8c1d53bd3b3468b4fcfede37db4218"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): Modules/Features/BookDetail/AudiobookDetailView.swift:338-353 | Modules/Features/BookDetail/OnlineBookView.swift:374-389 | Modules/Features/BookDetail/VideoDetailView.swift:601-616 \u2014 before extracting anything, compare \u0060Modules/Features/BookDetail/AudiobookDetailView.swift\u0060 and \u0060Modules/Features/BookDetail/OnlineBookView.swift\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/BookDetail/AudiobookDetailView.swift:338\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":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"81766148f3484d25779f3a42a37db643813093a05be81416c854a5e13af50ee0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Modules/Core/EPUB/PublicationSession.swift:1774-1789 | Modules/Core/ReaderCore/CoreText/FixedLayoutViewportResolver.swift:75-90 \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":"Modules/Core/EPUB/PublicationSession.swift"},"region":{"startLine":1774}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f6aab903cb019a8ba906244c813085b9f2235ab82898cea67249a5729645bf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201316 lines \u00D7 2): Modules/Core/ReaderCore/BrowserLayout/BrowserReaderAttributes.swift:17-23 | Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:653-668 \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 \u0060Modules/Core/ReaderCore/BrowserLayout/BrowserReaderAttributes.swift:17\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"Modules/Core/ReaderCore/BrowserLayout/BrowserReaderAttributes.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"d67e8625ed885e874daab948736f2c3ca41ad33b1f82cfac3b036d0d4128933e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:547-562 | Modules/Features/Reader/CoreTextCollectionScrollViewController.swift:528-543 \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":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"103c51661253a4a8980e65bfbffbbd9c8fe4e0c69d349ab3571c01bc5f3943ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:810-825 | Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:933-948 \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":"Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"f156c0a5a463735524170d09b3dc2a04368fb1e86f40ced52231f0997997dc26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/RunDelegateProvider.swift:78-93 | Modules/Core/ReaderCore/CoreText/RunDelegateProvider.swift:131-146 \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 \u0060Modules/Core/ReaderCore/CoreText/RunDelegateProvider.swift:131\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":"Modules/Core/ReaderCore/CoreText/RunDelegateProvider.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff43da06796de5ca1add02e3c6c100b7c06c3e1f082cffb1224f9c71fb1ca739"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): Modules/Features/BookSource/BookSourceDebugView.swift:184-197 | Modules/Features/Settings/DiagnosticsRowViews.swift:68-83 \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 \u0060Modules/Features/BookSource/BookSourceDebugView.swift:184\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":"Modules/Features/BookSource/BookSourceDebugView.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2310fa6e68cb97af5156405acf4023e2ebc92d9263f9962215d3890317bbe6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): Modules/Features/Reader/ReaderDownloadOptionsView.swift:470-484 | Modules/Features/Settings/DownloadManagementView.swift:422-437 \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 \u0060Modules/Features/Settings/DownloadManagementView.swift:422\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":"Modules/Features/Reader/ReaderDownloadOptionsView.swift"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"77670b66dc4fef935336254139295974834faabe46e99f893fd19b31107a4c57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Modules/Features/Reader/ReaderNoteEditorView.swift:204-219 | Modules/Features/Reader/ReaderNoteEditorView.swift:221-236 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/Reader/ReaderNoteEditorView.swift:204\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":"Modules/Features/Reader/ReaderNoteEditorView.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"98092090a37117f996ca034702de22f4eea8b1278a59cb39fc6ca0076a80552c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): Modules/Features/BookDetail/AudiobookDetailView.swift:621-635 | Modules/Features/BookDetail/OnlineBookView.swift:684-698 | Modules/Features/BookDetail/VideoDetailView.swift:637-650 \u2014 before extracting anything, compare \u0060Modules/Features/BookDetail/AudiobookDetailView.swift\u0060 and \u0060Modules/Features/BookDetail/OnlineBookView.swift\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd41d23cd3b1295e3525bd46c28cbbecdf6f2becec7a0f08e9a3f3f3fca8d0be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201315 lines \u00D7 3): Modules/Features/BookDetail/AudiobookDetailView.swift:749-760 | Modules/Features/BookDetail/OnlineBookView.swift:969-983 | Modules/Features/BookDetail/VideoDetailView.swift:832-839 \u2014 before extracting anything, compare \u0060Modules/Features/BookDetail/AudiobookDetailView.swift\u0060 and \u0060Modules/Features/BookDetail/OnlineBookView.swift\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/BookDetail/AudiobookDetailView.swift:749\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":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"69bbf88c5fae34a2bf7c9539da60ffa4d3367e44466c747b82ff3e838b93f074"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): Modules/Features/BookSource/BookSourceDebugView.swift:74-88 | Modules/Features/Settings/BackupSyncView.swift:31-45 | Modules/Features/Settings/LanServerView.swift:80-94 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/BookSource/BookSourceDebugView.swift:74\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Modules/Features/BookSource/BookSourceDebugView.swift:90\u0060 calls \u0060accessibilityHidden\u0060 and \u0060Modules/Features/Settings/BackupSyncView.swift:47\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookSource/BookSourceDebugView.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5f9e747f2948ce642b8f46cf3020650c4fb2bab01184ab2a183546c74658aaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201315 lines \u00D7 2): Modules/Core/BookSource/BookSourceFetcher\u002BBookInfo.swift:71-80 | Modules/Core/BookSource/BookSourceFetcher\u002BTOC.swift:198-212 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Core/BookSource/BookSourceFetcher\u002BBookInfo.swift:71\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":"Modules/Core/BookSource/BookSourceFetcher\u002BBookInfo.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c92be920f33bfc380437f2c446de8758cdf75bd0d8e25ed9279c4b098a33142"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Modules/Core/EPUB/PublicationSession.swift:212-226 | Modules/Core/EPUB/PublicationSession.swift:414-428 \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 \u0060Modules/Core/EPUB/PublicationSession.swift:212\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":"Modules/Core/EPUB/PublicationSession.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"59da9987663aa3285782e18ef34aa576b19773c9998ccabe66e95bebb8dc51b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/EPUBMediaPlaceholderRenderer.swift:48-62 | Modules/Core/ReaderCore/CoreText/EPUBMediaPlaceholderRenderer.swift:206-220 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Modules/Core/ReaderCore/CoreText/EPUBMediaPlaceholderRenderer.swift:222\u0060 calls \u0060trimmingCharacters\u0060 and \u0060Modules/Core/ReaderCore/CoreText/EPUBMediaPlaceholderRenderer.swift:64\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/EPUBMediaPlaceholderRenderer.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bb24a50fd98ce2fa80b9155132a95ed456b280d0f5380481775999718363851"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift:1979-1993 | Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift:2008-2022 \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 \u0060Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift:1979\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":"Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift"},"region":{"startLine":1979}}}],"partialFingerprints":{"codehealthFindingId/v1":"134f16a51a3749c7d419bf60bae53ac5057637284ab1890a65b9e329171286c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201315 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift:2016-2022 | Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift:2075-2089 \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 \u0060Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift:2075\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":"Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift"},"region":{"startLine":2016}}}],"partialFingerprints":{"codehealthFindingId/v1":"384284123a5a2eddf39cfb8a1004ec57ffc7120563db1d5a40bbb1d654f94d69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Modules/Core/RuleEngine/JSRuleEngineRunner.swift:288-302 | Modules/Core/RuleEngine/JSRuleEngineRunner.swift:345-359 \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 \u0060Modules/Core/RuleEngine/JSRuleEngineRunner.swift:288\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":"Modules/Core/RuleEngine/JSRuleEngineRunner.swift"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fa70d453afa2a970c82a560d3be2994558fa42745e575e2ac8ef8bebb8afaeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Modules/Core/RuleEngine/RuleEngine.swift:1100-1114 | Modules/Core/RuleEngine/RuleEngine.swift:1121-1135 \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 \u0060Modules/Core/RuleEngine/RuleEngine.swift:1100\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":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":1100}}}],"partialFingerprints":{"codehealthFindingId/v1":"af59f97cabfdc7be8a2bc0910655c0ea570ae190beb6048a55dd88afceb80cfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Modules/Core/TTS/HTTPTTSEngine.swift:348-362 | Modules/Core/TTS/SystemTTSEngine.swift:266-280 \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":"Modules/Core/TTS/HTTPTTSEngine.swift"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbc0abcac781239f9f048fc9d25e307cead727a85d07ac15a5b7dab71e5ed3ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Modules/Core/TTS/HTTPTTSEngine.swift:810-824 | Modules/Core/TTS/SystemTTSEngine.swift:425-439 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Core/TTS/HTTPTTSEngine.swift:810\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":"Modules/Core/TTS/HTTPTTSEngine.swift"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"e26601674afdade93036deddfa21f71c36654d3709935ebe35e51aaae4b40236"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Modules/Features/BookDetail/AudiobookDetailView.swift:492-506 | Modules/Features/BookDetail/OnlineBookView.swift:558-572 \u2014 before extracting anything, compare \u0060Modules/Features/BookDetail/AudiobookDetailView.swift\u0060 and \u0060Modules/Features/BookDetail/OnlineBookView.swift\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"49ff839942c69a3f6db291ef7126c4ca04fc125969035581ff3acfb130e97b3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): Modules/Features/BookDetail/AudiobookDetailView.swift:681-695 | Modules/Features/BookDetail/VideoDetailView.swift:748-761 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/BookDetail/AudiobookDetailView.swift:681\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":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c13f0dd2750661bc4f8799c8ab1f31365bef6700a3cb4f91b9f4f2ca72905e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201315 lines \u00D7 2): Modules/Features/BookDetail/AudiobookDetailView.swift:697-707 | Modules/Features/BookDetail/OnlineBookView.swift:916-930 \u2014 before extracting anything, compare \u0060Modules/Features/BookDetail/AudiobookDetailView.swift\u0060 and \u0060Modules/Features/BookDetail/OnlineBookView.swift\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/BookDetail/AudiobookDetailView.swift:697\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"4da620d86e7996e19852a40afe4598c7d0820bcc35fa59b9bb5c326dc7a56d18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Modules/Features/RSS/RSSListView.swift:1652-1666 | Modules/Features/RSS/RSSListView.swift:1705-1719 \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 \u0060Modules/Features/RSS/RSSListView.swift:1652\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":"Modules/Features/RSS/RSSListView.swift"},"region":{"startLine":1652}}}],"partialFingerprints":{"codehealthFindingId/v1":"1353770770ecd98d651ccc0d316b156fe2178f45947c96f9e1ce96daf249b9da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Modules/Features/RSS/RSSListView.swift:1713-1727 | Modules/Features/RSS/RSSSourceEditSheets.swift:73-87 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/RSS/RSSListView.swift:1713\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":"Modules/Features/RSS/RSSListView.swift"},"region":{"startLine":1713}}}],"partialFingerprints":{"codehealthFindingId/v1":"536545e5f18a9dbb50c6d669d0c36fca1cd8372f43a6b6315a05a82bb4c6709b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Modules/Features/Reader/ReaderView\u002BSourceChange.swift:243-257 | Modules/Features/Reader/ReaderView\u002BSourceChange.swift:273-287 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/Reader/ReaderView\u002BSourceChange.swift:243\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":"Modules/Features/Reader/ReaderView\u002BSourceChange.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"a04862d9b54960b6d1b0f20e54a91888952931d4acf72f6d4fed738b9fe56d43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Modules/Features/Settings/BackupSyncView.swift:37-51 | Modules/Features/Settings/CacheManagementView.swift:167-181 \u2014 before extracting anything, compare \u0060Modules/Features/Settings/BackupSyncView.swift\u0060 and \u0060Modules/Features/Settings/CacheManagementView.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/Settings/BackupSyncView.swift:37\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Settings/BackupSyncView.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f6cdb2f013f4b1ac0458beacd59c62bbe39bcc3671c6a0633199d09d5775692"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Modules/Features/Settings/ICloudSyncView.swift:23-37 | Modules/Features/Settings/WebDAVSyncView.swift:22-36 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/Settings/ICloudSyncView.swift:23\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":"Modules/Features/Settings/ICloudSyncView.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"32f0d40b70f7996227c6b390b7bb52177a4905b5fa75fb958ad7aadf6cae8beb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): Modules/Services/Subscription/SubscriptionICloudMirror.swift:195-209 | Modules/Services/iCloud/ICloudSyncManager.swift:1866-1879 \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":"Modules/Services/Subscription/SubscriptionICloudMirror.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceef1e1b6f68016a8cd3832987849fd8e57830ad816fca5d12186e69e7551918"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201314 lines \u00D7 4): Modules/Features/BookSource/BookSourceCheckView.swift:69-80 | Modules/Features/BookSource/BookSourceRuleDebugView.swift:129-142 | Modules/Features/BookSource/SourceImportJSONEditor.swift:62-73 | Modules/Features/Settings/TXTTocRuleEditView.swift:118-125 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/BookSource/BookSourceCheckView.swift:69\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":"Modules/Features/BookSource/BookSourceCheckView.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"4edf1cd1c4f2ecdd9fa390431ca94541d4e0dbe34d7f3e978169486e220b8ad1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 3): Modules/Core/EPUB/PublicationSession.swift:1811-1824 | Modules/Core/ReaderCore/CoreText/EPUBStyleResolver.swift:316-327 | Modules/Core/ReaderCore/CoreText/EPUBStyleResolver.swift:343-353 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Core/EPUB/PublicationSession.swift:1811\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":"Modules/Core/EPUB/PublicationSession.swift"},"region":{"startLine":1811}}}],"partialFingerprints":{"codehealthFindingId/v1":"40cb1e5d9551b41e9c78960833f6165a88e75179e8122a0764b60bcea978c550"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201314 lines \u00D7 3): Modules/Core/ReaderCore/Customization/ReaderStyleCSSCodec.swift:70-83 | Modules/Core/ReaderCore/Customization/ReaderStyleCSSCodec.swift:123-136 | Modules/Core/ReaderCore/Customization/ReaderStyleCSSCodec.swift:963-971 \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 \u0060Modules/Core/ReaderCore/Customization/ReaderStyleCSSCodec.swift:70\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"Modules/Core/ReaderCore/Customization/ReaderStyleCSSCodec.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c2351c3a953b0f26f6105722b503b619dea906a32c02fd5fce7e46ff41cef4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201314 lines \u00D7 2): Modules/Core/BookSource/BookSourceFetcher\u002BChapter.swift:233-246 | Modules/Core/BookSource/BookSourceFetcher\u002BChapter.swift:390-397 \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 \u0060Modules/Core/BookSource/BookSourceFetcher\u002BChapter.swift:233\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. 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":"Modules/Core/BookSource/BookSourceFetcher\u002BChapter.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"41207042b81084d6fbef618f90540a70fa8ddc6e3078faa56b84faca4ea8c1e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201314 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/CoreTextChunk.swift:452-460 | Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:2025-2038 \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":"Modules/Core/ReaderCore/CoreText/CoreTextChunk.swift"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"12df93f4a55e5c9ef1e811d82010a639e2983077b1e78898655d417edf85776d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): Modules/Core/TTS/TTSAudioProvider.swift:785-798 | Modules/Core/TTS/TTSLoginScript.swift:105-116 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Core/TTS/TTSAudioProvider.swift:785\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, \u0060Modules/Core/TTS/TTSAudioProvider.swift:784\u0060 calls \u0060merge\u0060 and \u0060Modules/Core/TTS/TTSLoginScript.swift:104\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":"Modules/Core/TTS/TTSAudioProvider.swift"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"936777edf349ad5963927b7b6b11fefd6a5eec1c84fd702d4a04c8a7fc92c160"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Modules/Features/BookDetail/AudiobookDetailView.swift:248-261 | Modules/Features/BookDetail/OnlineBookView.swift:280-293 \u2014 before extracting anything, compare \u0060Modules/Features/BookDetail/AudiobookDetailView.swift\u0060 and \u0060Modules/Features/BookDetail/OnlineBookView.swift\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/BookDetail/AudiobookDetailView.swift:248\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":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"a654d48e8cbfd07ab55d4934b886af807a492234fac66e2dc9f70181fa4ecd8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u201314 lines \u00D7 4): Modules/Features/BookDetail/AudiobookDetailView.swift:925-938 | Modules/Features/BookDetail/OnlineBookView.swift:1152-1161 | Modules/Features/BookDetail/OnlineBookView.swift:1172-1173 | Modules/Features/BookDetail/VideoDetailView.swift:910-923 \u2014 before extracting anything, compare \u0060Modules/Features/BookDetail/AudiobookDetailView.swift\u0060 and \u0060Modules/Features/BookDetail/OnlineBookView.swift\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/BookDetail/AudiobookDetailView.swift:925\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":925}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7dc88fe43cf4f0d19a9d74332cb672ff7625cfd6075cfed55e7085ac7559c85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Modules/Features/BookSource/BookSourceCheckOptionsView.swift:79-92 | Modules/Features/BookSource/BookSourceInfoSheet.swift:107-120 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/BookSource/BookSourceCheckOptionsView.swift:79\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, \u0060Modules/Features/BookSource/BookSourceCheckOptionsView.swift:77\u0060 calls \u0060scrollIndicators\u0060 and \u0060Modules/Features/BookSource/BookSourceInfoSheet.swift:105\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":"Modules/Features/BookSource/BookSourceCheckOptionsView.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd84ff23b9874c50998f5fa8bcf71e03d798bf23f08a2496f9b63a25f836aa50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): Modules/Features/Bookshelf/HomeView.swift:2432-2445 | Modules/Features/Bookshelf/HomeView.swift:2508-2520 \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 \u0060Modules/Features/Bookshelf/HomeView.swift:2432\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":"Modules/Features/Bookshelf/HomeView.swift"},"region":{"startLine":2432}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c2e2f3d5d844a4fc43473b1d28247e2c34806209d0cc33baa881f3d0aa4a5ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Modules/Features/Explore/Home/HomeSectionCards.swift:599-612 | Modules/Features/Explore/Home/HomeSectionCards.swift:894-907 \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 \u0060Modules/Features/Explore/Home/HomeSectionCards.swift:599\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":"Modules/Features/Explore/Home/HomeSectionCards.swift"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"453ec2fa4f429c585f9097acd6bc8d8f86160cf6e1d267e49cfd13face45b6bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Modules/Features/FixedPageReader/FixedPageReaderViewController.swift:687-700 | Modules/Features/FixedPageReader/FixedPageReaderViewController.swift:714-727 \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 \u0060Modules/Features/FixedPageReader/FixedPageReaderViewController.swift:687\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":"Modules/Features/FixedPageReader/FixedPageReaderViewController.swift"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"311d486325c6f7546a1954a52099c788f45661957e9962deefd39a904a7aeb2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Modules/Features/FixedPageReader/Paged/FixedPagePagedViewController.swift:303-316 | Modules/Features/FixedPageReader/Paged/FixedPagePagedViewController.swift:332-345 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/FixedPageReader/Paged/FixedPagePagedViewController.swift:303\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":"Modules/Features/FixedPageReader/Paged/FixedPagePagedViewController.swift"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7af3fd6a852b5315bda6217b2f5c9435630e4729ed62be8ea47645a87154f15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201314 lines \u00D7 2): Modules/Features/Reader/ReaderSettingsView.swift:107-120 | Modules/Features/Reader/TTS/AudiobookView.swift:1186-1195 \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 \u0060Modules/Features/Reader/ReaderSettingsView.swift:107\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderSettingsView.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"3229da79b6dab4eb4039d2e43de714b88f168e8b11ae8988d41664f827cbbbe5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201314 lines \u00D7 2): Modules/Features/Reader/ReaderView\u002BLogic.swift:412-425 | Modules/Features/Reader/ReaderView\u002BLogic.swift:433-442 \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 \u0060Modules/Features/Reader/ReaderView\u002BLogic.swift:412\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":"Modules/Features/Reader/ReaderView\u002BLogic.swift"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec76b9880845cdf9b8e6f479bbb6a1c5b15e2d0eda95243ff724d2c2900e798a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Modules/Services/LibraryStore/UniversalBookInterfaces.swift:149-162 | Modules/Services/LibraryStore/UniversalBookInterfaces.swift:170-183 \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":"Modules/Services/LibraryStore/UniversalBookInterfaces.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"c298daf54e60eafa0bdb67f20e7bb3ee6114ff4c71097e889b1b5cf3e8a75857"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (1\u201314 lines \u00D7 3): Modules/Services/Works/AuthorShelf.swift:111-111 | Modules/Services/Works/AuthorWorks.swift:133-146 | Modules/Services/Works/ShelfGenres.swift:16-29 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Services/Works/AuthorShelf.swift:111\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/AuthorShelf.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"286205c3446e3170339ca4d0f59d7d226ef62f8d50491ef7a30b7bc5c4a863c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Modules/SharedUI/DesignSystem/GlobalAppTypography.swift:38-51 | Modules/SharedUI/DesignSystem/GlobalAppTypography.swift:85-98 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/SharedUI/DesignSystem/GlobalAppTypography.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f7ee7ab055781087bab83fff3e6a869d7056ff325c32f23d663f4d0e1216276"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): Targets/Yuedu/SharedApp/AppDependencies.swift:127-140 | Targets/Yuedu/SharedApp/AppDependencies.swift:302-314 \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 \u0060Targets/Yuedu/SharedApp/AppDependencies.swift:127\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":"Targets/Yuedu/SharedApp/AppDependencies.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"61120e4081187c7f8701df2d2eea8beecc728aab4a89d542e239e0700ad765b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): Modules/Features/BookSource/BookSourceCheckOptionsView.swift:78-90 | Modules/Features/BookSource/BookSourceInfoSheet.swift:106-118 | Modules/Features/Settings/BackupSyncView.swift:38-50 | Modules/Features/Settings/CacheManagementView.swift:168-180 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/BookSource/BookSourceCheckOptionsView.swift:78\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, \u0060Modules/Features/BookSource/BookSourceCheckOptionsView.swift:77\u0060 calls \u0060scrollIndicators\u0060 and \u0060Modules/Features/BookSource/BookSourceInfoSheet.swift:105\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":"Modules/Features/BookSource/BookSourceCheckOptionsView.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbba344dd1ed2125262a131e09f48cdfcd2ad117d7956971f072d586458f9d67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): Modules/Features/BookSource/BookSourceAddFlow.swift:403-414 | Modules/Features/BookSource/BookSourceAddFlow.swift:472-483 | Modules/Features/Settings/TTSSettingsView.swift:527-539 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/BookSource/BookSourceAddFlow.swift:403\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":"Modules/Features/BookSource/BookSourceAddFlow.swift"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"50bac37b6b5c9e1e27d1ed56a7c9b3d7313b828c4177b9e6d2c04a26a6e6f110"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): Modules/Core/BookSource/SharedImportQueueDrainer.swift:690-700 | Modules/Core/BookSource/SharedImportQueueDrainer.swift:728-740 \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 \u0060Modules/Core/BookSource/SharedImportQueueDrainer.swift:690\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Modules/Core/BookSource/SharedImportQueueDrainer.swift:687\u0060 calls \u0060readSample\u0060 and \u0060Modules/Core/BookSource/SharedImportQueueDrainer.swift:726\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":"Modules/Core/BookSource/SharedImportQueueDrainer.swift"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"c59a44c92a471675729f2e82079af9e57b33817c86e5108ddf4a54c1fb81a1dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/ChapterTitleAttributedBuilder.swift:332-343 | Modules/Core/ReaderCore/CoreText/ChapterTitleAttributedBuilder.swift:345-357 \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 \u0060Modules/Core/ReaderCore/CoreText/ChapterTitleAttributedBuilder.swift:345\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ChapterTitleAttributedBuilder.swift"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"495d63f92ddedaa7fdcdf64aaed7aede2702cb0f5b0f0b394861e99022b075fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/CoreTextChunkAttachmentExtractor.swift:93-105 | Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:2675-2691 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Core/ReaderCore/CoreText/CoreTextChunkAttachmentExtractor.swift:93\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextChunkAttachmentExtractor.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"edb97eaec883bd47d509af591598eb63ef72376305701aca2ff49d34c313d92a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/EPUBMediaPlaceholderRenderer.swift:31-43 | Modules/Core/ReaderCore/CoreText/EPUBMediaPlaceholderRenderer.swift:187-199 \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 \u0060Modules/Core/ReaderCore/CoreText/EPUBMediaPlaceholderRenderer.swift:31\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":"Modules/Core/ReaderCore/CoreText/EPUBMediaPlaceholderRenderer.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"c939b9e7a88ff238ed6852728bea7fbcc81fa27100e4e561308a41c615dd5db1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Modules/Core/RuleEngine/JSRuleEngineRunner.swift:175-187 | Modules/Core/RuleEngine/JSRuleEngineRunner.swift:213-225 \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 \u0060Modules/Core/RuleEngine/JSRuleEngineRunner.swift:175\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":"Modules/Core/RuleEngine/JSRuleEngineRunner.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8de52d77a503439ce08009c82c36b3f5d2b2d4bdabcdce8946378bc91987ee8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Modules/Core/TTS/HTTPTTSEngine.swift:203-215 | Modules/Core/TTS/SystemTTSEngine.swift:141-152 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Core/TTS/HTTPTTSEngine.swift:203\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/HTTPTTSEngine.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"b64bc2a37727168ae52966cff9f08581a5eb296448ef8ec0fc363ff47656042b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Modules/Features/Reader/ChapterTitleDesignerView.swift:80-92 | Modules/Features/Reader/ChapterTitleDesignerView.swift:116-128 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/Reader/ChapterTitleDesignerView.swift:80\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":"Modules/Features/Reader/ChapterTitleDesignerView.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"48b663d15fc20d930a1a0088f9e68187251a26f59bc74295dae04709bf7f3469"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Modules/Features/Reader/CoreTextCollectionScrollViewController.swift:1484-1496 | Modules/Features/Reader/CoreTextCollectionScrollViewController.swift:1509-1521 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/CoreTextCollectionScrollViewController.swift"},"region":{"startLine":1484}}}],"partialFingerprints":{"codehealthFindingId/v1":"a89ed82c72d71d99a1ca160b1644b37b331fcbb5749ff1cca979a9ad0f3ce083"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Modules/Features/Reader/ReaderView.swift:1930-1942 | Modules/Features/Reader/ReaderView.swift:2009-2020 \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 \u0060Modules/Features/Reader/ReaderView.swift:1930\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderView.swift"},"region":{"startLine":1930}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ac7c0823ee070ebcaf6f028fad27b7241120bf3aca62ebe299e60fb851c32d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Modules/Services/Offline/DownloadActivityIntent.swift:55-67 | Widget/DownloadActivityIntent.swift:55-67 \u2014 before extracting anything, compare \u0060Modules/Services/Offline/DownloadActivityIntent.swift\u0060 and \u0060Widget/DownloadActivityIntent.swift\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Offline/DownloadActivityIntent.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c9b0b69e7b5d444b215671acf38be91d18a99b67fef297704e5f92aadff77c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Modules/Services/Offline/OfflineDownloadManager.swift:282-294 | Modules/Services/Offline/OfflineDownloadManager.swift:463-475 \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":"Modules/Services/Offline/OfflineDownloadManager.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"b343b7ee19c705630501d75ed76b79375d07334a2ed71a7c1408cc9fd3b303c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Modules/Services/Online/BookContentProvider.swift:67-79 | Modules/Services/Online/BookContentProviderAdapters.swift:19-31 \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":"Modules/Services/Online/BookContentProvider.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"c33fa645a9ec3b3904d980f5ee7681c4f7956607333f9293bc97b2fc40eeb13d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Modules/Services/RSS/LegadoRSSScraper.swift:86-98 | Modules/Services/RSS/LegadoRSSScraper.swift:194-206 \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":"Modules/Services/RSS/LegadoRSSScraper.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ca02254845f4260c55e6483a429c85696209e3ed2feaaf97b3284e0d0cb7670"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): Modules/Features/BookSource/BookSourceCheckOptionsView.swift:78-89 | Modules/Features/BookSource/BookSourceCheckView.swift:68-79 | Modules/Features/BookSource/BookSourceInfoSheet.swift:106-117 | Modules/Features/Settings/BackupSyncView.swift:38-49 | Modules/Features/Settings/CacheManagementView.swift:168-179 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/BookSource/BookSourceCheckOptionsView.swift:78\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, \u0060Modules/Features/BookSource/BookSourceCheckOptionsView.swift:77\u0060 calls \u0060scrollIndicators\u0060 and \u0060Modules/Features/BookSource/BookSourceInfoSheet.swift:105\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":"Modules/Features/BookSource/BookSourceCheckOptionsView.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"2573b39be5b36b09a2e4fabd16e9ff5af45198e2eb61e02c5d864473771dbdd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): Modules/Features/BookSource/BookSourceDebugView.swift:78-89 | Modules/Features/Settings/BackupSyncView.swift:35-46 | Modules/Features/Settings/CacheManagementView.swift:165-176 | Modules/Features/Settings/LanServerView.swift:84-95 \u2014 before extracting anything, compare \u0060Modules/Features/Settings/BackupSyncView.swift\u0060 and \u0060Modules/Features/Settings/CacheManagementView.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/BookSource/BookSourceDebugView.swift:78\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Modules/Features/BookSource/BookSourceDebugView.swift:90\u0060 calls \u0060accessibilityHidden\u0060 and \u0060Modules/Features/Settings/BackupSyncView.swift:47\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookSource/BookSourceDebugView.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ce473139cf1d076ff19bc48466b1aa069ea0e195a90d6e6b893bf37b0c61289"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): Modules/Core/ReaderCore/CoreText/EPUBStyleResolver.swift:398-409 | Modules/Core/ReaderCore/CoreText/EPUBStyleResolver.swift:446-456 | Modules/Core/ReaderCore/CoreText/EPUBStyleResolver.swift:558-568 \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 \u0060Modules/Core/ReaderCore/CoreText/EPUBStyleResolver.swift:398\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":"Modules/Core/ReaderCore/CoreText/EPUBStyleResolver.swift"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c3800077aa612a4a9e63b26ea88bf1d353ec5684ae15ee41588e0b387bc53b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Modules/Services/Network/WebViewFetcher.swift:251-265 | Modules/Services/Network/WebViewFetcher.swift:303-314 | Modules/Services/Network/WebViewFetcher.swift:609-622 \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 \u0060Modules/Services/Network/WebViewFetcher.swift:251\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":"Modules/Services/Network/WebViewFetcher.swift"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e0de79e28886a26536600c372dbce28559a15e21a058a81d1aebaa7069ad744"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Modules/Core/BookSource/BookSourceFetcher\u002BCache.swift:218-229 | Modules/Core/BookSource/BookSourceHealthChecker.swift:124-134 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Core/BookSource/BookSourceFetcher\u002BCache.swift:218\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":"Modules/Core/BookSource/BookSourceFetcher\u002BCache.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"dae4b1c57337c7ea93dbe0dce1dc23cb52e090e7c28abddbaabac6deab3fa1c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift:660-671 | Modules/Core/ReaderCore/CoreText/OnlineImageLoader.swift:182-193 \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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"c263b70946c6aa68045f8c6e2ca3d4823b04221f57c203329b4075a0d5a1cfb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/CoreTextPageEngine.swift:1226-1237 | Modules/Core/ReaderCore/CoreText/TXTPageEngine.swift:301-312 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Core/ReaderCore/CoreText/CoreTextPageEngine.swift:1226\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Modules/Core/ReaderCore/CoreText/CoreTextPageEngine.swift:1238\u0060 calls \u0060currentContentInsets\u0060 and \u0060Modules/Core/ReaderCore/CoreText/TXTPageEngine.swift:313\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":"Modules/Core/ReaderCore/CoreText/CoreTextPageEngine.swift"},"region":{"startLine":1226}}}],"partialFingerprints":{"codehealthFindingId/v1":"df6d20af269445f3a02aca58b256cbb3087d602772717a92e0eda6cac23ab8cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift:2350-2361 | Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift:2395-2406 \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 \u0060Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift:2350\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":"Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift"},"region":{"startLine":2350}}}],"partialFingerprints":{"codehealthFindingId/v1":"26bd2580764675e6ffb4ec6f5599e4731a183a4fa7d43d2665b28a848f45239a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Modules/Core/ReaderCore/Customization/AppearancePageBackground.swift:297-308 | Modules/Core/ReaderCore/Customization/AppearanceThemeExtras.swift:348-359 \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":"Modules/Core/ReaderCore/Customization/AppearancePageBackground.swift"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"123d1298a298367c10c775b054e190a442b2ec9d942024fee6fff2a85f7058c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Modules/Core/RuleEngine/JSRuleEngineRunner.swift:199-210 | Modules/Core/RuleEngine/JSRuleEngineRunner.swift:231-242 \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 \u0060Modules/Core/RuleEngine/JSRuleEngineRunner.swift:199\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":"Modules/Core/RuleEngine/JSRuleEngineRunner.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"4259b4b1179fd7011c4d30e8fba12c7f0a92fb9841ea8caf9b387622ad1551fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): Modules/Core/RuleEngine/ModernParser/CssExtractor.swift:147-158 | Modules/Core/RuleEngine/ModernParser/XPathExtractor.swift:448-457 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Core/RuleEngine/ModernParser/CssExtractor.swift:147\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":"Modules/Core/RuleEngine/ModernParser/CssExtractor.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"644fd9c5ae511289005f9c8c9e9de0a67699abd3ad046a9d5fa3da693a5380af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Modules/Features/BookDetail/OnlineBookDetailDestination.swift:231-241 | Modules/Features/BookDetail/OnlineBookDetailDestination.swift:249-260 \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 \u0060Modules/Features/BookDetail/OnlineBookDetailDestination.swift:231\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":"Modules/Features/BookDetail/OnlineBookDetailDestination.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb9f34e5a25e78d293dc0c72b2f7d1a769bb72d60e52e0387d5fdb1820081410"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Modules/Features/Reader/ReaderDownloadOptionsView.swift:456-467 | Modules/Features/Settings/DownloadManagementView.swift:407-418 \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 \u0060Modules/Features/Reader/ReaderDownloadOptionsView.swift:456\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":"Modules/Features/Reader/ReaderDownloadOptionsView.swift"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"92f8250630dfdca96fcad019e9d22914a50697a3c15549028fcd5138a124b86c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201312 lines \u00D7 2): Modules/Features/Reader/ReaderView\u002BSourceChange.swift:382-393 | Modules/Features/Reader/ReaderView\u002BSourceChange.swift:570-577 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/Reader/ReaderView\u002BSourceChange.swift:382\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":"Modules/Features/Reader/ReaderView\u002BSourceChange.swift"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"743bc05335af1583189e530929f01f27254d928ca1352980c14d21800fd9f253"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Modules/Services/Works/ChapterComments.swift:83-93 | Modules/Services/Works/WorkReviews.swift:95-106 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Services/Works/ChapterComments.swift:83\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":"Modules/Services/Works/ChapterComments.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ca6878bdd96f2ab97248d27098d5700fdb46a0f18d24fd89367501e3086667"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): Modules/Core/RuleEngine/JSRuleEngineRunner.swift:254-264 | Modules/Core/RuleEngine/JSRuleEngineRunner.swift:317-327 | Modules/Core/RuleEngine/JSRuleEngineRunner.swift:380-390 | Modules/Core/RuleEngine/JSRuleEngineRunner.swift:437-447 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/JSRuleEngineRunner.swift"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4258d0c2cdcdf5001e6d7550c87774aa4083e5e86e9680d9d72e41f34f25276"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Modules/Core/ReaderCore/CoreText/ReaderDialogueBubbleDecorationShape.swift:42-52 | Modules/Core/ReaderCore/CoreText/ReaderDialogueBubbleDecorationShape.swift:83-93 | Modules/Core/ReaderCore/CoreText/ReaderDialogueBubbleDecorationShape.swift:95-105 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Modules/Core/ReaderCore/CoreText/ReaderDialogueBubbleDecorationShape.swift:94\u0060 calls \u0060closeSubpath\u0060, \u0060move\u0060, \u0060CGPoint\u0060 and \u0060Modules/Core/ReaderCore/CoreText/ReaderDialogueBubbleDecorationShape.swift:53\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":"Modules/Core/ReaderCore/CoreText/ReaderDialogueBubbleDecorationShape.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"122d2bf3bc32b20024984609db288e837bda2016c7516597405d18a11ffb4e1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Modules/Features/BookDetail/AudiobookDetailView.swift:287-297 | Modules/Features/BookDetail/OnlineBookView.swift:319-329 | Modules/Features/BookDetail/VideoDetailView.swift:200-210 \u2014 before extracting anything, compare \u0060Modules/Features/BookDetail/AudiobookDetailView.swift\u0060 and \u0060Modules/Features/BookDetail/OnlineBookView.swift\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/BookDetail/AudiobookDetailView.swift:287\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":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fba594a61c05b26f91b4e37d40e61ba88594034a671df04a8884c9ef197e4c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): Modules/Core/EPUB/PublicationSession.swift:1058-1068 | Modules/Services/LibraryStore/UniversalBookResourceAdapter.swift:121-129 \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 \u0060Modules/Core/EPUB/PublicationSession.swift:1058\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":"Modules/Core/EPUB/PublicationSession.swift"},"region":{"startLine":1058}}}],"partialFingerprints":{"codehealthFindingId/v1":"e56e85efc7f4918c2957fa9969dc454c2496a2386d5c649f389b39b584af74a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/CoreTextAnnotationRenderer.swift:172-182 | Modules/Core/ReaderCore/CoreText/CoreTextAnnotationRenderer.swift:212-222 \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 \u0060Modules/Core/ReaderCore/CoreText/CoreTextAnnotationRenderer.swift:172\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":"Modules/Core/ReaderCore/CoreText/CoreTextAnnotationRenderer.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"82f81b5ba06149e1f0e968716a569927346934cdb11c20453fefbc06747bde7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/CoreTextChunkAttachmentExtractor.swift:52-62 | Modules/Core/ReaderCore/CoreText/CoreTextChunkAttachmentExtractor.swift:117-127 \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 \u0060Modules/Core/ReaderCore/CoreText/CoreTextChunkAttachmentExtractor.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":"Modules/Core/ReaderCore/CoreText/CoreTextChunkAttachmentExtractor.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"e47900dc1a119fb192739b38b92347cca6a18848a874eccc45a35394ce0e698b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:1418-1425 | Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:2253-2263 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":1418}}}],"partialFingerprints":{"codehealthFindingId/v1":"3db20bbf1a00b839b261d676b6f75e3cc9033c34a6826a34516eb3657adcad38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:2316-2325 | Modules/Features/Reader/CoreTextCollectionScrollViewController.swift:697-707 \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 \u0060Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:2316\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":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":2316}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b7cb67bf49e5a91d868c9101de98319a8fd6a2d1379869451df2cc94076ccc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/MarkdownAttributedStringBuilder.swift:438-448 | Modules/Core/ReaderCore/CoreText/MarkdownAttributedStringBuilder.swift:456-465 \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 \u0060Modules/Core/ReaderCore/CoreText/MarkdownAttributedStringBuilder.swift:438\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/MarkdownAttributedStringBuilder.swift"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"6108cc77c64ce60012b9b7aba9d2bae8dc588de14aaa2870d62802b4a8d0611e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Modules/Core/TTS/AudiobookPlayer.swift:1655-1665 | Modules/Features/Reader/Video/VideoPlaybackController.swift:425-435 \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 \u0060Modules/Core/TTS/AudiobookPlayer.swift:1655\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":"Modules/Core/TTS/AudiobookPlayer.swift"},"region":{"startLine":1655}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4caf627e57d7a4142a3316856a09fbb78ade18f503f033aa16304ff67b59b71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Modules/Features/AI/AIBookshelfOrganizerView.swift:62-71 | Modules/Features/Library/Modules/AIRecommendationModuleView.swift:32-42 \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 \u0060Modules/Features/AI/AIBookshelfOrganizerView.swift:62\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. 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":"Modules/Features/AI/AIBookshelfOrganizerView.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4641839e83c84525fe90e413b6b754ce08c105bc2dcc2eb61c06d1495259784"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Modules/Features/BookDetail/AudiobookDetailView.swift:107-117 | Modules/Features/BookDetail/VideoDetailView.swift:104-114 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/BookDetail/AudiobookDetailView.swift:107\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":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc6641647866f00f2689da7d93bc7908c87f7ff4c5c65d4440285d6276269bc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Modules/Features/BookDetail/AudiobookDetailView.swift:590-600 | Modules/Features/BookDetail/OnlineBookView.swift:661-671 \u2014 before extracting anything, compare \u0060Modules/Features/BookDetail/AudiobookDetailView.swift\u0060 and \u0060Modules/Features/BookDetail/OnlineBookView.swift\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/BookDetail/AudiobookDetailView.swift:590\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":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"1580086466727ef870b1df6e78edcfb15c532bee685db747eff0b155528292e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Modules/Features/BookSource/BookSourceListView.swift:701-710 | Modules/Features/Settings/TTSSettingsView.swift:472-482 \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 \u0060Modules/Features/BookSource/BookSourceListView.swift:701\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":"Modules/Features/BookSource/BookSourceListView.swift"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2e5ccd634c5ec61d4e3c43ef1e0c5d9e9bbe045a0583e7e54503a7ddba3e46a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Modules/Features/Bookshelf/OPDSImportView.swift:349-358 | Modules/Features/Bookshelf/RemoteImportViews.swift:118-128 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/Bookshelf/OPDSImportView.swift:349\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":"Modules/Features/Bookshelf/OPDSImportView.swift"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"10e6d683139311f4409368cb40346f248b30e28145884dca43e1791346fcb39f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): Modules/Features/Explore/Home/ExploreHome.swift:193-203 | Modules/Features/Library/LibraryTabRoot.swift:141-149 \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 \u0060Modules/Features/Explore/Home/ExploreHome.swift:193\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":"Modules/Features/Explore/Home/ExploreHome.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb4e2970e849dd694b14b9465a3ceb93847886539cdd3fc7dfb1c4bc32e83121"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Modules/Features/Explore/Home/HomeSectionForm.swift:541-551 | Modules/Features/Explore/Home/HomeSectionForm.swift:589-599 \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 \u0060Modules/Features/Explore/Home/HomeSectionForm.swift:541\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":"Modules/Features/Explore/Home/HomeSectionForm.swift"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee0015eda2c6d9cc4fba99d62888121f95958a0a0960e22dce7afa372cab20cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Modules/Features/Library/Modules/RuleModuleGroupView.swift:66-78 | Modules/Features/Library/Modules/RuleModuleSection.swift:74-86 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/Library/Modules/RuleModuleGroupView.swift:66\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, \u0060Modules/Features/Library/Modules/RuleModuleSection.swift:73\u0060 calls \u0060accessibilityIdentifier\u0060 and \u0060Modules/Features/Library/Modules/RuleModuleGroupView.swift:65\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":"Modules/Features/Library/Modules/RuleModuleGroupView.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"3572804181052ab7955af6263ae6f98492bd7e589dc66f086bda529d3292f3fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Modules/Features/Library/Modules/RuleModuleImportSheet.swift:281-291 | Modules/Features/Library/Modules/RuleModuleImportSheet.swift:293-303 \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":"Modules/Features/Library/Modules/RuleModuleImportSheet.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1a5711b2d775c70448a05eb90d94670566f4c78fa2dbdad0d36cd4ca6421877"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Modules/Features/RSS/RSSListView.swift:1535-1544 | Modules/Features/RSS/RSSSourceEditSheets.swift:38-48 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/RSS/RSSListView.swift:1535\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":"Modules/Features/RSS/RSSListView.swift"},"region":{"startLine":1535}}}],"partialFingerprints":{"codehealthFindingId/v1":"c55867ec3b1f8c8829630bb6250e0bd878ee8ee6c70c8bab65c00e1417e069fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Modules/Features/Reader/ReaderCommentCardSettingsView.swift:62-72 | Modules/Features/Reader/ReaderParagraphBubbleSettingsView.swift:54-64 \u2014 before extracting anything, compare \u0060Modules/Features/Reader/ReaderCommentCardSettingsView.swift\u0060 and \u0060Modules/Features/Reader/ReaderParagraphBubbleSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/Reader/ReaderCommentCardSettingsView.swift:62\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":"Modules/Features/Reader/ReaderCommentCardSettingsView.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"a26aa55c42ec75376f05504b04e9bdadb31d29ccdd17be34484a1b8af992b4e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Modules/Features/Reader/ReaderCustomBackgroundEditorView.swift:140-150 | Modules/Features/Settings/AppearancePageBackgroundView.swift:60-70 \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 \u0060Modules/Features/Reader/ReaderCustomBackgroundEditorView.swift:140\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":"Modules/Features/Reader/ReaderCustomBackgroundEditorView.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"edcddae95d4edf27d2eb2cb2919cdb4b7ff4252a0e21bd375afa73eb4039d4a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Modules/Features/Reader/TTS/TTSRoleCastView.swift:361-371 | Modules/Features/Reader/TTS/TTSRoleCastView.swift:624-633 \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 \u0060Modules/Features/Reader/TTS/TTSRoleCastView.swift:361\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":"Modules/Features/Reader/TTS/TTSRoleCastView.swift"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4dd62d2d227d07491c1e8c539f92ec7e1f1f2ea4dab5c4d52848e09b971fd11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Modules/Features/Settings/ProfileView.swift:409-419 | Modules/Features/Settings/TestFlightApplyView.swift:24-33 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/Settings/ProfileView.swift:409\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":"Modules/Features/Settings/ProfileView.swift"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"b46c352b2a1992eda0d5788aa6f409e9e29f1912b17ad0baea92bfb7a081e1c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Modules/Features/Settings/ReaderChromeIconSettingsView.swift:156-166 | Modules/Features/Settings/RootTabCustomizationView.swift:228-238 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/Settings/ReaderChromeIconSettingsView.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Settings/ReaderChromeIconSettingsView.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"90fd23ff63fc92c87df8510a87e00ca44f88d823bce52e7eb195976027c5cf64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201311 lines \u00D7 2): Modules/Features/Subscription/PaywallMemberPage.swift:72-78 | Modules/Features/Subscription/PaywallView.swift:147-157 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/Subscription/PaywallMemberPage.swift:72\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Subscription/PaywallMemberPage.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb36c60f78de37de85f8aa159a9183f215c17fe0817a0cec16c60a1f66c318ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): Modules/Services/Network/WebViewFetcher.swift:533-543 | Modules/Services/Network/WebViewFetcher.swift:586-594 \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":"Modules/Services/Network/WebViewFetcher.swift"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"6373907ebc2c0d72e4e0524afded82c5d58b078fa41202a4e9c73b179a6f5979"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Modules/Services/Online/SearchResultPresentation.swift:59-69 | Modules/Services/Online/SearchResultPresentation.swift:74-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 \u0060Modules/Services/Online/SearchResultPresentation.swift:59\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":"Modules/Services/Online/SearchResultPresentation.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"502c48c6f0d7edf9951e4a6ab34211fdc2dd6d7e1c6b9e4d07cd1b51cfe3229c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Modules/Services/Subscription/SubscriptionICloudMirror.swift:211-221 | Modules/Services/iCloud/ICloudSyncManager.swift:1951-1960 \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":"Modules/Services/Subscription/SubscriptionICloudMirror.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0244b73b9b9473eb0ffc567d0177cd9e14593f7b0e53bbbf9b1a2b9ecc86db0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Modules/Services/Works/RemoteRecordStore.swift:157-166 | Modules/Services/Works/RemoteRecordStore.swift:173-183 \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 \u0060Modules/Services/Works/RemoteRecordStore.swift:157\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/RemoteRecordStore.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"e23491195991d91b04ce4f6944215e16c66711b8652d51aea63fcbfa3b1934d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): Modules/Core/RuleEngine/JSRuleEngineRunner.swift:253-262 | Modules/Core/RuleEngine/JSRuleEngineRunner.swift:316-325 | Modules/Core/RuleEngine/JSRuleEngineRunner.swift:379-388 | Modules/Core/RuleEngine/JSRuleEngineRunner.swift:436-445 | Modules/Core/RuleEngine/JSRuleEngineRunner.swift:468-477 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Modules/Core/RuleEngine/JSRuleEngineRunner.swift:314\u0060 calls \u0060ruleBookInfoToDict\u0060 and \u0060Modules/Core/RuleEngine/JSRuleEngineRunner.swift:466\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":"Modules/Core/RuleEngine/JSRuleEngineRunner.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd22b18c2a7ed6e41b269be75f4e3ef6be4772ba07b269093648fcea0aba5b20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Modules/Core/ReaderCore/CoreText/CSSPropertyApplier.swift:390-399 | Modules/Core/ReaderCore/CoreText/CSSPropertyApplier.swift:405-414 | Modules/Core/ReaderCore/CoreText/CSSPropertyApplier.swift:420-429 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CSSPropertyApplier.swift"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f453b1d3e16e9762b561d08ee7c0d5ff4e3ff6c0537e1cb38fb0965efb254b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Modules/Core/RuleEngine/RuleEngine.swift:577-586 | Modules/Core/RuleEngine/RuleEngine.swift:618-627 | Modules/Core/RuleEngine/RuleEngine.swift:1360-1369 \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":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"eda53e9450d90835fc343159bd9ec808489b81de68f4b127c8127919683ae34e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Modules/Features/Bookshelf/HomeView.swift:1568-1577 | Modules/Features/Reader/ReaderCommentCardSettingsView.swift:40-49 | Modules/Features/Reader/ReaderParagraphBubbleSettingsView.swift:32-41 \u2014 before extracting anything, compare \u0060Modules/Features/Reader/ReaderCommentCardSettingsView.swift\u0060 and \u0060Modules/Features/Reader/ReaderParagraphBubbleSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/Bookshelf/HomeView.swift:1568\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":"Modules/Features/Bookshelf/HomeView.swift"},"region":{"startLine":1568}}}],"partialFingerprints":{"codehealthFindingId/v1":"d823fd636f0799e579b8db13f1d0f6eeb315352de53b2fe648b35200e6f75b97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Modules/Features/Explore/Home/HomeSectionForm.swift:565-574 | Modules/Features/Explore/Home/HomeSectionForm.swift:744-753 | Modules/Features/Explore/Home/HomeSectionForm.swift:761-770 \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 \u0060Modules/Features/Explore/Home/HomeSectionForm.swift:565\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":"Modules/Features/Explore/Home/HomeSectionForm.swift"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc798155bcc21a72a019870c6d07dbcc9a9d85c15070955b48053da23bcaeb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Modules/Core/EPUB/BookParsing.swift:268-277 | Modules/Core/TTS/TTSAudioProvider.swift:182-191 \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 \u0060Modules/Core/EPUB/BookParsing.swift:268\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":"Modules/Core/EPUB/BookParsing.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"b80471c5eb25a9a7670371d9961be21ddd3d848fba5bafb7ff95c30c291828fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Modules/Core/EPUB/FixedLayoutEPUBPageProvider.swift:401-410 | Modules/Core/EPUB/FixedLayoutEPUBPageProvider.swift:452-461 \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 \u0060Modules/Core/EPUB/FixedLayoutEPUBPageProvider.swift:401\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":"Modules/Core/EPUB/FixedLayoutEPUBPageProvider.swift"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1311fe4bc18921030f481223019ddaad71070a11c7c7072965a853ae9b6ae24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:601-612 | Modules/Features/Reader/CoreTextCollectionScrollViewController.swift:582-593 \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":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"59599f3ef903f745077a088860756556540715ade17976bcdee81e16c58c9b05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:1003-1013 | Modules/Core/ReaderCore/CoreText/RunDelegateProvider.swift:399-409 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:1003\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":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":1003}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf917c344e331ec7f5d6d7286060a0972da3d2229c1e0cc8cb0a352a5a7e1047"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:2153-2162 | Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:2204-2213 \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 \u0060Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:2153\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":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":2153}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca3fc6771462bcf40a0fc831544b3f871258c1173c38c591ca78c925dc22ba0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:2944-2953 | Modules/Core/ReaderCore/CoreText/FixedLayoutPageViewController.swift:173-182 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:2944\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":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":2944}}}],"partialFingerprints":{"codehealthFindingId/v1":"4874668a846d4b383053a14aef86d23edcd62a5692b9607d4996f12593df9515"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Modules/Core/RuleEngine/JSRuleEngineRunner.swift:273-282 | Modules/Core/RuleEngine/JSRuleEngineRunner.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 \u0060Modules/Core/RuleEngine/JSRuleEngineRunner.swift:273\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":"Modules/Core/RuleEngine/JSRuleEngineRunner.swift"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"892ffd87def0aa7206787def52d515ce415da2117225de8b3f644eb9c583cae1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Modules/Core/RuleEngine/ModernParser/JS/LegadoHeadlessWebView.swift:609-618 | Modules/Core/RuleEngine/ModernParser/JS/LegadoSourceBridge.swift:542-551 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Core/RuleEngine/ModernParser/JS/LegadoHeadlessWebView.swift:609\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":"Modules/Core/RuleEngine/ModernParser/JS/LegadoHeadlessWebView.swift"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cbafcbba5e5bb8c2e5d4ed4a19f7423053759eb44c84a3de429ade538df43b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Modules/Core/RuleEngine/RuleEngine.swift:172-181 | Modules/Core/RuleEngine/RuleEngine.swift:242-251 \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 \u0060Modules/Core/RuleEngine/RuleEngine.swift:172\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":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a8ce3f466bdb5115e0e29c756981f4d08751d6a1fe244b87a77be6192eec22b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Modules/Core/TTS/HTTPTTSEngine.swift:303-312 | Modules/Core/TTS/SystemTTSEngine.swift:228-237 \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":"Modules/Core/TTS/HTTPTTSEngine.swift"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcd520a6373e54b79a9f15e9d3cd9c9bbff44c4fbea14f1bb5027f77d22212da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Modules/Features/Bookshelf/HomeView.swift:1180-1189 | Modules/Features/Bookshelf/HomeView.swift:1330-1338 \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 \u0060Modules/Features/Bookshelf/HomeView.swift:1180\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, \u0060Modules/Features/Bookshelf/HomeView.swift:1329\u0060 calls \u0060toggleSelection\u0060 and \u0060Modules/Features/Bookshelf/HomeView.swift:1180\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":"Modules/Features/Bookshelf/HomeView.swift"},"region":{"startLine":1180}}}],"partialFingerprints":{"codehealthFindingId/v1":"196e79a78f1e5313b0d2fbfc47b956f6b7a1ace5d94b568729ba08b4ba440053"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Modules/Features/Reader/ChapterTitleInspectorView.swift:642-651 | Modules/Features/Reader/RegexHighlightRuleEditorView.swift:750-759 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/Reader/ChapterTitleInspectorView.swift:642\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":"Modules/Features/Reader/ChapterTitleInspectorView.swift"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bd08771ccfea2126a96557ab67f78c5c0ba4bfbc4d96954aa374fdb5dc64b90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Modules/Features/Reader/ChapterTitleStyleSettingsView.swift:623-632 | Modules/Features/Reader/ReaderDialogueBubbleSettingsView.swift:595-604 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/Reader/ChapterTitleStyleSettingsView.swift:623\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":"Modules/Features/Reader/ChapterTitleStyleSettingsView.swift"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1ca03cf3d05085af16cb8fd285ff43c3de08ea04e16cad0f189338537f4bd82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Modules/Features/Reader/ReaderCommentCardSettingsView.swift:217-225 | Modules/Features/Reader/ReaderParagraphBubbleSettingsView.swift:321-330 \u2014 before extracting anything, compare \u0060Modules/Features/Reader/ReaderCommentCardSettingsView.swift\u0060 and \u0060Modules/Features/Reader/ReaderParagraphBubbleSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderCommentCardSettingsView.swift"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a941a704631681616dc6faa2eba93e66c74e4616cbb6a2e1f42f41b65e4bbac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u201310 lines \u00D7 2): Modules/Features/Reader/TTS/AudiobookView.swift:1125-1130 | Modules/Features/Stats/ReadingStatsView.swift:63-72 \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 \u0060Modules/Features/Reader/TTS/AudiobookView.swift:1125\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/TTS/AudiobookView.swift"},"region":{"startLine":1125}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d4b2883b7c15a0e0471f1a57d840a0e40dc1a8180d41a7a540009b4ae27f7df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Modules/Services/AI/AIBookIndexStore.swift:25-33 | Modules/Services/AI/AICharacterCardStore.swift:17-26 \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":"Modules/Services/AI/AIBookIndexStore.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"49cd78bd94f0e58957d3f348dee2dd10cb21c3d6f4bbd433438e5156b841d0fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Modules/Services/Account/FirebaseAuthManager.swift:236-245 | Modules/Services/Account/FirebaseAuthManager.swift:782-791 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Account/FirebaseAuthManager.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"63b424970894fd4e2089bd1a1377e1d8902e8438ab4a6be683f75dbc7ebdad56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Modules/Services/Account/GatewayKeychain.swift:44-53 | Modules/Services/Subscription/SubscriptionEntitlementCache.swift:73-82 \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":"Modules/Services/Account/GatewayKeychain.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb9b2c45b8b7c9e50d7541c511bff2fd62333f2793ee6911dd34c4985788141f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Modules/Services/Online/ChapterCacheRepository.swift:296-305 | Modules/Services/Online/ChapterCacheRepository.swift:395-404 \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 \u0060Modules/Services/Online/ChapterCacheRepository.swift:296\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":"Modules/Services/Online/ChapterCacheRepository.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c4fb8f00b9af3e2302311bdc7d85e82dd317b3cdf2667512590a53c6312088a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Modules/Services/Works/ImportedMetadataCapture.swift:12-21 | Modules/Services/Works/ImportedMetadataCapture.swift:32-41 \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":"Modules/Services/Works/ImportedMetadataCapture.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff8b428d06d053126def90f17da5b534dbd4acce34f56ba3403db3c191bd21ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Modules/Core/EPUB/FixedLayoutEPUBPageProvider.swift:401-409 | Modules/Core/EPUB/FixedLayoutEPUBPageProvider.swift:433-441 | Modules/Core/EPUB/FixedLayoutEPUBPageProvider.swift:452-460 \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 \u0060Modules/Core/EPUB/FixedLayoutEPUBPageProvider.swift:401\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":"Modules/Core/EPUB/FixedLayoutEPUBPageProvider.swift"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"6db8942ab1504e1083c630feae6b5dea59436dcb226d18d1890c4ae307289529"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Modules/Core/BookSource/ReviewSummaryResponseCache.swift:62-70 | Modules/Core/BookSource/ReviewSummaryResponseCache.swift:126-134 \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 \u0060Modules/Core/BookSource/ReviewSummaryResponseCache.swift:62\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":"Modules/Core/BookSource/ReviewSummaryResponseCache.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aa34d675507d2ce41bb2541385087a32189b644b973374c540c0e35b5b30e25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Modules/Core/EPUB/EPUBMediaOverlay.swift:129-137 | Modules/Core/EPUB/PublicationSession.swift:1710-1718 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Core/EPUB/EPUBMediaOverlay.swift:129\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/EPUBMediaOverlay.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"cde0001d9019ea3eb65d7856c47d19f2f13867749ca6d98e9eec853f953df225"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageView.swift:300-308 | Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:256-264 \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 \u0060Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageView.swift:300\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":"Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageView.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d1980b6dfc8a179b28f6ffb03c61fe63eb1cff9b0fe91f133173e0dfe4e4c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20139 lines \u00D7 3): Modules/Core/ReaderCore/CoreText/ChapterOutline.swift:173-181 | Modules/Core/ReaderCore/CoreText/CoreTextChunkSlicer.swift:813-820 | Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:3562-3565 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Core/ReaderCore/CoreText/ChapterOutline.swift:173\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ChapterOutline.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"49537c3765b68473092b9cbe1adac183773b1830a12a259695ef5e5a78bee0cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/ChapterTitleDesignRenderer.swift:684-692 | Modules/Core/ReaderCore/CoreText/RegexHighlightDecorationRenderer.swift:600-608 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Core/ReaderCore/CoreText/ChapterTitleDesignRenderer.swift:684\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":"Modules/Core/ReaderCore/CoreText/ChapterTitleDesignRenderer.swift"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"3851404de831edacc73f857c95562d249863dc40150041eba5882ff4381421de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift:212-220 | Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift:841-847 \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 \u0060Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift:212\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":"Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"8767ca82dedb98a6311c598412d444840595ea293771a62520f90e3001e89a22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/CoreTextChunk.swift:217-224 | Modules/Core/ReaderCore/CoreText/CoreTextChunk.swift:263-271 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextChunk.swift"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d7a040c07ea64bc54a87ae7e34926e675d31d54ffcfa9d253741bef82353f92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:591-599 | Modules/Features/Reader/CoreTextCollectionScrollViewController.swift:572-580 \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":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f811e845c08770a6cbadf097a49830fc542a6c4a23ffc765d5413a6c9df9e16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:2568-2576 | Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:2811-2819 \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 \u0060Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:2568\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":"Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift"},"region":{"startLine":2568}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0c12d15a1ce2c95309385a8ee1b61455877b136886327b92c29943039fffd5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/CoreTextReadingPosition.swift:65-73 | Modules/Core/ReaderCore/CoreText/CoreTextReadingPosition.swift:115-123 \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 \u0060Modules/Core/ReaderCore/CoreText/CoreTextReadingPosition.swift:65\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":"Modules/Core/ReaderCore/CoreText/CoreTextReadingPosition.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"caa3acfa7f5f2efecaa44746f17f93dd904c8c850e2d9673b9bef611b7748398"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift:1961-1969 | Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift:2017-2025 \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 \u0060Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift:1961\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift"},"region":{"startLine":1961}}}],"partialFingerprints":{"codehealthFindingId/v1":"28ef068242e4929f8656e0760be35786f1045353581796e0fcb7606eb90ea4e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Modules/Core/ReaderCore/Customization/AppearancePageBackground.swift:457-465 | Targets/Yuedu/SharedApp/AppearanceCustomizationBundle.swift:218-226 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/AppearancePageBackground.swift"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"907bb2d03c8ea8f62274d27a4fdab702249bdf8cba3e2ca01a607ffc214d40bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Modules/Core/ReaderCore/Customization/ReaderOverlayGeometry.swift:182-190 | Modules/Core/ReaderCore/Customization/ReaderOverlaySnapEngine.swift:198-206 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderOverlayGeometry.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"bffaa4d6bebcff292b59b6661b3e2147a215e23d20ae870845b89c09da742c0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Modules/Core/ReaderCore/OnlineImageRequestOptions.swift:91-99 | Modules/Core/ReaderCore/ReaderHTMLUtilities.swift:2296-2304 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/OnlineImageRequestOptions.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c2a30bbae8ea6e1440ab25e6b10e97da9346b8d81f1a39d8fde29b5c4b18dd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift:938-946 | Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift:1177-1185 \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 \u0060Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift:938\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":"Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b9f258d40653e71cbfd309894884ad4705dd5c741dd93c2852d7878f43ab9b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Modules/Core/RuleEngine/ModernParser/JsoupDefaultExtractor.swift:519-527 | Modules/Core/RuleEngine/ModernParser/JsoupDefaultExtractor.swift:597-605 \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 \u0060Modules/Core/RuleEngine/ModernParser/JsoupDefaultExtractor.swift:519\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":"Modules/Core/RuleEngine/ModernParser/JsoupDefaultExtractor.swift"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f234e90843c1688dfd816e2f00cdd510034b9375e30c96d759ba5e328d568f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift:2009-2017 | Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift:2038-2046 \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":"Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift"},"region":{"startLine":2009}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fcc47130ebc4a0db3648f698a35470677064360128613e0afec52e11054123a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Modules/Core/RuleEngine/WebNovelParser.swift:463-471 | Modules/Core/RuleEngine/WebNovelParser.swift:473-481 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/WebNovelParser.swift"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcdfe3be74ed67cedd179e2e28ee016055988daf1647ddb031148732239f2012"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Modules/Features/BookDetail/AudiobookDetailView.swift:585-593 | Modules/Features/BookDetail/VideoDetailView.swift:720-727 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/BookDetail/AudiobookDetailView.swift:585\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":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a840aaf8d31dda4afb77d42fa33efbcbdba7390cc736bb9704851816c913785"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Modules/Features/BookDetail/AudiobookDetailView.swift:652-660 | Modules/Features/BookDetail/OnlineBookView.swift:716-724 \u2014 before extracting anything, compare \u0060Modules/Features/BookDetail/AudiobookDetailView.swift\u0060 and \u0060Modules/Features/BookDetail/OnlineBookView.swift\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/BookDetail/AudiobookDetailView.swift:652\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":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"d18990e2b59712c40ec78ad8a69b433bfbe715c9ce4d7bef9f9e10102cb7b3e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Modules/Features/BookSource/BookSourceExportFile.swift:44-52 | Modules/Features/Settings/AppearanceCustomizationExportPayload.swift:39-47 \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":"Modules/Features/BookSource/BookSourceExportFile.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"f93f5d027a95217bc46083e3c5155650527212606739f13b489bd4afe09141b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Modules/Features/Bookshelf/OPDSImportView.swift:294-302 | Modules/Features/Bookshelf/RemoteImportViews.swift:79-87 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/Bookshelf/OPDSImportView.swift:294\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":"Modules/Features/Bookshelf/OPDSImportView.swift"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ded8718d726af4a9871fa7d2b244e65f93a5ba22b8eb9321900a8394b68f4d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Modules/Features/Explore/Home/HomeChartCards.swift:73-81 | Modules/Features/Explore/Home/HomeGroupedShelves.swift:83-91 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/Explore/Home/HomeChartCards.swift:73\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, \u0060Modules/Features/Explore/Home/HomeGroupedShelves.swift:81\u0060 calls \u0060padding\u0060 and \u0060Modules/Features/Explore/Home/HomeChartCards.swift:71\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":"Modules/Features/Explore/Home/HomeChartCards.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"18e211f39d1fe85f77649a72535d5f91fa1c0ec0b15afe50c6ff8c083479b5e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Modules/Features/Explore/Home/HomeCollectionCards.swift:383-391 | Modules/Features/Explore/Home/HomeSectionCards.swift:160-168 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/Explore/Home/HomeCollectionCards.swift:383\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":"Modules/Features/Explore/Home/HomeCollectionCards.swift"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"e637ff863b069281502d5a5ff12ec1294347e470c2e8fc90ec003a690c59fab2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Modules/Features/RSS/RSSListView.swift:628-636 | Modules/Features/RSS/RSSListView.swift:665-673 \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 \u0060Modules/Features/RSS/RSSListView.swift:628\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":"Modules/Features/RSS/RSSListView.swift"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c89b94edc8ec3ae619e7c3aadfb66bc80a1c700043755e1d0f6d089378130be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Modules/Features/Reader/CoreTextPagedView.swift:2806-2815 | Modules/Features/Reader/CoreTextPagedView.swift:2824-2834 \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 \u0060Modules/Features/Reader/CoreTextPagedView.swift:2824\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":"Modules/Features/Reader/CoreTextPagedView.swift"},"region":{"startLine":2806}}}],"partialFingerprints":{"codehealthFindingId/v1":"70021cdeea36162f9d697615151a623e6bd91637fda900a31c46863d10c5afd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Modules/Features/Reader/ReaderCommentCardSettingsView.swift:81-89 | Modules/Features/Reader/ReaderParagraphBubbleSettingsView.swift:85-93 \u2014 before extracting anything, compare \u0060Modules/Features/Reader/ReaderCommentCardSettingsView.swift\u0060 and \u0060Modules/Features/Reader/ReaderParagraphBubbleSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/Reader/ReaderCommentCardSettingsView.swift:81\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":"Modules/Features/Reader/ReaderCommentCardSettingsView.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"67ed1589a9f01aee009e160867b76f3958cf1a49f08589b4b3fd67d54020ef0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Modules/Features/Reader/ReaderNavigationTransitionDriver.swift:449-457 | Modules/Features/Reader/ReaderNavigationTransitionDriver.swift:468-476 \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 \u0060Modules/Features/Reader/ReaderNavigationTransitionDriver.swift:449\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":"Modules/Features/Reader/ReaderNavigationTransitionDriver.swift"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"d69feaad8138f8c23e5a3411943eac37992f40fc3a9ff6dea0c40348eabb636e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Modules/Features/Reader/ReaderTranslationSheet.swift:67-75 | Modules/Features/Subscription/PaywallView.swift:149-161 \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 \u0060Modules/Features/Reader/ReaderTranslationSheet.swift:67\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderTranslationSheet.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"656c8308da7602162dfc138d912c4cc0cbb5b7ac8dacc9338ca78c62d9fa8228"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Modules/Features/WebBrowser/BrowserBookmarkViews.swift:101-109 | Modules/Features/WebBrowser/BrowserBookmarkViews.swift:418-426 \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 \u0060Modules/Features/WebBrowser/BrowserBookmarkViews.swift:101\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":"Modules/Features/WebBrowser/BrowserBookmarkViews.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b42e9be19995a6761de01960f984ed1a5422f3f584ed5258fb7d56560cc9779"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Modules/Services/LibraryStore/AozoraBookImporter.swift:199-207 | Modules/Services/LibraryStore/MOBIBookImporter.swift:108-116 \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":"Modules/Services/LibraryStore/AozoraBookImporter.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7f914cb00b7575be8cf137dae416c23933920b0c8739e537243effd5720e673"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Modules/Services/Works/HomeConfigurationPhotos.swift:40-48 | Modules/Services/Works/HomeConfigurationPhotos.swift:128-136 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/HomeConfigurationPhotos.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"8802ab105dc14c62626dd4906ea2b2199309d50833f9de9ad6efe0c87a05ab27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Modules/Services/Works/HomePageStore.swift:311-324 | Modules/Services/Works/HomePageStore.swift:338-351 \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 \u0060Modules/Services/Works/HomePageStore.swift:311\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":"Modules/Services/Works/HomePageStore.swift"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"9796888617e04c4d15219c84435edbbc5a580feedab2a0f9c66c6b8e0d0cf527"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20139 lines \u00D7 2): Modules/SharedUI/Components/BookCoverImage.swift:300-305 | Modules/SharedUI/Components/GeneratedBookCover.swift:677-685 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/SharedUI/Components/BookCoverImage.swift:300\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":"Modules/SharedUI/Components/BookCoverImage.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4e92b4a1c59256cde9a10971d1cc4f8298143188cc27222b4b22bdcdb4d5b84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Modules/Core/ReaderCore/CoreText/ReaderDialogueBubbleDecorationShape.swift:56-63 | Modules/Core/ReaderCore/CoreText/ReaderDialogueBubbleDecorationShape.swift:87-94 | Modules/Core/ReaderCore/CoreText/ReaderDialogueBubbleDecorationShape.swift:99-106 \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 \u0060Modules/Core/ReaderCore/CoreText/ReaderDialogueBubbleDecorationShape.swift:56\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ReaderDialogueBubbleDecorationShape.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"3970baef79a91657bd5ccd6d8f1c4262173876aae6ae991b86d883f7882bd1b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Modules/Core/RuleEngine/RuleEngine.swift:886-893 | Modules/Core/RuleEngine/RuleEngine.swift:1373-1380 | Modules/Core/RuleEngine/RuleEngine.swift:1390-1397 \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 \u0060Modules/Core/RuleEngine/RuleEngine.swift:886\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Modules/Core/RuleEngine/RuleEngine.swift:1389\u0060 calls \u0060lowercased\u0060 and \u0060Modules/Core/RuleEngine/RuleEngine.swift:885\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":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"8be78ad6ceaae564ece6bc03adb90e2121e9c944aa79dd3082ecd22a58e9e1de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Modules/Features/Reader/ReaderTranslationSheet.swift:67-74 | Modules/Features/Subscription/PaywallMemberPage.swift:74-81 | Modules/Features/Subscription/PaywallView.swift:149-160 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/Reader/ReaderTranslationSheet.swift:67\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderTranslationSheet.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"154f2278bbc4dc638567ba7086d5de1281f66eb4f1e362b575622547f268e081"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:2667-2674 | Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:3409-3416 \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":"Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift"},"region":{"startLine":2667}}}],"partialFingerprints":{"codehealthFindingId/v1":"50922dca1dd349cd174624413334e7dcbed5caf97325a33a057915a68e0fc1bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:2708-2715 | Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:3418-3425 \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":"Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift"},"region":{"startLine":2708}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcc8ca6bd6c81c8b3996e8b1738665c4550d39041d6d73b4e3337b7916237e75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:3067-3074 | Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:3501-3508 \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 \u0060Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:3067\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":"Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift"},"region":{"startLine":3067}}}],"partialFingerprints":{"codehealthFindingId/v1":"b80e7b0c076c924f745c5e6fb5ee9f6a93f703db5f5370523f9c328885e0271c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/OnlineImageLoader.swift:327-334 | Modules/Services/LibraryStore/BookCoverLoader.swift:157-164 \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 \u0060Modules/Core/ReaderCore/CoreText/OnlineImageLoader.swift:327\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":"Modules/Core/ReaderCore/CoreText/OnlineImageLoader.swift"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd94613d684c2058a831ba072162a85af6a75a57593f9b9ca8df9b9f34948a5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/RegexHighlightDecorationRenderer.swift:730-737 | Modules/Core/ReaderCore/CoreText/RegexHighlightEngine.swift:536-543 \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":"Modules/Core/ReaderCore/CoreText/RegexHighlightDecorationRenderer.swift"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5db36bd7e61ed2ecec176f6358275d924aa112e37d315943c6f6c970a8b9e6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Modules/Core/ReaderCore/Customization/QiThemeImporter.swift:258-265 | Modules/Core/ReaderCore/Customization/QiThemeImporter.swift:279-289 \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 \u0060Modules/Core/ReaderCore/Customization/QiThemeImporter.swift:258\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"Modules/Core/ReaderCore/Customization/QiThemeImporter.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"065c17172dc7589d0c3538a70eff00688d04fc8b558808eecba696eedf5b68d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Modules/Core/RuleEngine/ModernParser/JS/LegadoRuleScope.swift:537-544 | Modules/Services/RuleModules/RuleModuleClient.swift:419-426 \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 \u0060Modules/Core/RuleEngine/ModernParser/JS/LegadoRuleScope.swift:537\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":"Modules/Core/RuleEngine/ModernParser/JS/LegadoRuleScope.swift"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"678efc0e6f61c99f0e88e978a497e71842b236138420e143a5d94f3f9f82ff8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20138 lines \u00D7 3): Modules/Core/RuleEngine/NextPageLinkExtractor.swift:19-26 | Modules/Core/RuleEngine/NextPageLinkExtractor.swift:33-40 | Modules/Core/RuleEngine/NextPageLinkExtractor.swift:53-56 \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 \u0060Modules/Core/RuleEngine/NextPageLinkExtractor.swift:53\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"Modules/Core/RuleEngine/NextPageLinkExtractor.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c9e988d7dc845aaf5c6944a14cb19832daf84ba77fe00f926d71457ed30eaf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20138 lines \u00D7 3): Modules/Core/RuleEngine/RuleEngine.swift:571-578 | Modules/Core/RuleEngine/RuleEngine.swift:613-616 | Modules/Core/RuleEngine/RuleEngine.swift:1332-1339 \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. 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":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"38d3420d4c8457f5cfcb7c4c3f0570604c3f17ca37a49ea15a5bbaac668c5ed2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Modules/Core/TTS/HTTPTTSEngine.swift:320-328 | Modules/Core/TTS/SystemTTSEngine.swift:245-253 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Core/TTS/HTTPTTSEngine.swift:320\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":"Modules/Core/TTS/HTTPTTSEngine.swift"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"102ab5d81b00dc8cfa9a37d65c683113a71041c6d2baa8c7f61a608e34d5b642"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Modules/Features/Library/Modules/RuleModuleGroupView.swift:96-103 | Modules/Features/Library/Modules/RuleModuleSection.swift:95-102 \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":"Modules/Features/Library/Modules/RuleModuleGroupView.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7bd90c0dd7e526bdf3ff93d194e144cb2c4de7ca93303ef481fe90db936bb45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Modules/Features/RSS/RSSListView.swift:1549-1557 | Modules/Features/RSS/RSSSourceEditSheets.swift:55-63 \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":"Modules/Features/RSS/RSSListView.swift"},"region":{"startLine":1549}}}],"partialFingerprints":{"codehealthFindingId/v1":"8656c0681b0c80304e20a5a99b441a0e2b7a99adbe14ae3f666edf23f8d32556"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Modules/Features/Reader/ReaderView.swift:1365-1372 | Modules/Features/Reader/ReaderView.swift:1387-1395 \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. 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":"Modules/Features/Reader/ReaderView.swift"},"region":{"startLine":1365}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae793441a594656f08d9927e47f988d7a4d8ba567c27cbdf07e3c94699fb7603"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Modules/Features/Settings/ReaderChromeIconSettingsView.swift:95-102 | Modules/Features/Settings/RootTabCustomizationView.swift:189-196 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Modules/Features/Settings/ReaderChromeIconSettingsView.swift:105\u0060 calls \u0060accessibilityElement\u0060, \u0060modifier\u0060, \u0060ToolReorderActions\u0060 and \u0060Modules/Features/Settings/RootTabCustomizationView.swift:198\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":"Modules/Features/Settings/ReaderChromeIconSettingsView.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"157a58fbcffa0aa2a243c1f861246a39f459fdaf51149bb1af8891179bfa40c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Modules/Services/LibraryStore/ShelfWorkService.swift:209-216 | Modules/Services/LibraryStore/ShelfWorkService.swift:252-259 \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":"Modules/Services/LibraryStore/ShelfWorkService.swift"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"c494aad32a3b51f8dd7ef6bc4dc3add7ac04d6844887f69a458042bd37560d95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20138 lines \u00D7 4): Modules/Core/EPUB/EPUBBookParser.swift:95-98 | Modules/Core/ReaderCore/ReaderHTMLUtilities.swift:155-158 | Modules/Services/LibraryStore/UniversalBookInterfaces.swift:96-103 | Modules/Services/Online/BookContentProviderAdapters.swift:95-102 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Core/EPUB/EPUBBookParser.swift:95\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Modules/Core/EPUB/EPUBBookParser.swift:98\u0060 calls \u0060trimmingCharacters\u0060 and \u0060Modules/Services/LibraryStore/UniversalBookInterfaces.swift:103\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":"Modules/Core/EPUB/EPUBBookParser.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"0905aebb7aa123aecbbc3a5edab58df922aaffb6d33f5053d60bde8bc458af39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): Modules/Services/LibraryStore/UniversalBookInterfaces.swift:125-131 | Modules/Services/LibraryStore/UniversalBookInterfaces.swift:139-146 \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 \u0060Modules/Services/LibraryStore/UniversalBookInterfaces.swift:125\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Modules/Services/LibraryStore/UniversalBookInterfaces.swift:124\u0060 calls \u0060parseUnifiedChapters\u0060, \u0060content\u0060, \u0060makeTableOfContents\u0060 and \u0060Modules/Services/LibraryStore/UniversalBookInterfaces.swift:139\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":"Modules/Services/LibraryStore/UniversalBookInterfaces.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf5e469455c486665aacc5479a2e7a9ce13a075931cbb8060c6e46ca32c2b8e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Modules/Services/Online/ChangeSourceCache.swift:127-134 | Modules/Services/Works/SourceRecordDerivation.swift:8-15 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/ChangeSourceCache.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2b17b9c63a2db7778c3ee4b3158b62f32d788dbdd8e9ed08f4a7545c91ad70f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Modules/Services/RuleModules/ModuleSearch.swift:46-53 | Modules/Services/Works/LibrarySearch.swift:99-106 \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 \u0060Modules/Services/RuleModules/ModuleSearch.swift:46\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/ModuleSearch.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"69052919468822f4970817fcc6660a6eee6ab4807590c6934eb7ad8f9dbe88a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Modules/Services/Works/HomePageStore.swift:218-225 | Modules/Services/Works/WorkDecisionsStore.swift:190-197 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Services/Works/HomePageStore.swift:218\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Modules/Services/Works/WorkDecisionsStore.swift:189\u0060 calls \u0060File\u0060 and \u0060Modules/Services/Works/HomePageStore.swift:217\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":"Modules/Services/Works/HomePageStore.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"59aa5a4128f842b6903464d5e98d90888a2305ad413f5554bd1043d183f985ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 4): Modules/Features/AI/AIBookshelfOrganizerView.swift:61-66 | Modules/Features/AI/AICustomPromptListView.swift:15-20 | Modules/Features/Library/Modules/AIRecommendationModuleView.swift:31-36 | Modules/Features/Reader/ReaderBatterySVGImportView.swift:162-168 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/AI/AIBookshelfOrganizerView.swift:61\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":"Modules/Features/AI/AIBookshelfOrganizerView.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"54599c32c94540028432da241f24b43131879dec7a435af5b398e188ee787d58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20137 lines \u00D7 4): Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:1390-1396 | Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:3758-3764 | Modules/Core/ReaderCore/CoreText/CoreTextScrollEngine.swift:995-1001 | Modules/Features/Reader/ReaderBarRenderer.swift:372-374 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:1390\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:3757\u0060 calls \u0060CGSize\u0060, \u0060CGRect\u0060 and \u0060Modules/Features/Reader/ReaderBarRenderer.swift:372\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":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":1390}}}],"partialFingerprints":{"codehealthFindingId/v1":"534ca5f9e6dc8b59f4eac2b47967ba6b72a60df3ca4f3d9db8525ad058fafd62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift:1961-1967 | Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift:2017-2023 | Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift:2081-2090 \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 \u0060Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift:2081\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, \u0060Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift:2092\u0060 calls \u0060renderBlock\u0060 and \u0060Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift:1968\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":"Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift"},"region":{"startLine":1961}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee933daf1a1144e25ef73e7a0803eab33af4e0fdc717a80fd9ed8a7090143a89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201313 lines \u00D7 3): Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift:3201-3209 | Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift:3242-3254 | Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift:3311-3323 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift:3198\u0060 calls \u0060handler\u0060, \u0060bodyOnly\u0060 and \u0060Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift:3242\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":"Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift"},"region":{"startLine":3201}}}],"partialFingerprints":{"codehealthFindingId/v1":"92c0eb3da1fdbac50ea29b60f70f186d9ca3e19a4b527c538b175ccc2034f2cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Modules/Features/Explore/Home/HomeHeroCard.swift:60-66 | Modules/Features/Explore/Home/HomeSectionCards.swift:665-671 | Modules/Features/Explore/Home/HomeSectionCards.swift:826-832 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/Explore/Home/HomeHeroCard.swift:60\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Modules/Features/Explore/Home/HomeSectionCards.swift:835\u0060 calls \u0060padding\u0060 and \u0060Modules/Features/Explore/Home/HomeSectionCards.swift:672\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":"Modules/Features/Explore/Home/HomeHeroCard.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b237719b26bce49e5fa0f46d1e17029c381578b1175ecf2db3a2a4f37967cd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Modules/Features/RSS/RSSListView.swift:617-626 | Modules/Features/RSS/RSSListView.swift:645-654 | Modules/Features/Settings/AppearanceThemeView.swift:685-691 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/RSS/RSSListView.swift:617\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. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/RSS/RSSListView.swift"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"36c87cb0d85a311e8cc88d2446df3c212192a23274a2b3179a3f5af79678ac45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Modules/Features/Reader/ReaderSettingsView.swift:108-118 | Modules/Features/Reader/TTS/AudiobookView.swift:1127-1133 | Modules/Features/Reader/TTS/AudiobookView.swift:1187-1193 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/Reader/ReaderSettingsView.swift:108\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":"Modules/Features/Reader/ReaderSettingsView.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ec1a6ffc1a9a406ac08deb200d313aa726b59f62a7495e7eed71821f2a7efdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Modules/Core/AI/AIBookSummary.swift:313-319 | Modules/Core/AI/AIChapterTranslation.swift:81-87 \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":"Modules/Core/AI/AIBookSummary.swift"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac1ad8bfdac616fd075ee89ed6f042baa5626f7830d0811a7ed20f76a60e71b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Modules/Core/BookSource/SharedImportQueueDrainer.swift:837-844 | Modules/Core/EPUB/BookParsing.swift:121-128 \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 \u0060Modules/Core/BookSource/SharedImportQueueDrainer.swift:837\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":"Modules/Core/BookSource/SharedImportQueueDrainer.swift"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"b91e6ca0b03f46dbfed64e2329176e8d0fd2fff76ed7059d25f3eca384e27ff6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Modules/Core/EPUB/EPUBPackageArchive.swift:36-42 | Modules/Features/Reader/ReaderSettingsImportService.swift:321-327 \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 \u0060Modules/Core/EPUB/EPUBPackageArchive.swift:36\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/EPUBPackageArchive.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"64dbfb6cf02068d8a69c407222d86b8c36fef93d6e48422f658f82b04523c7d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Modules/Core/ReaderCore/BrowserLayout/BrowserReaderAttributes.swift:20-26 | Modules/Core/ReaderCore/CoreText/TXTLazyAttributedStringBuilder.swift:162-175 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Core/ReaderCore/BrowserLayout/BrowserReaderAttributes.swift:20\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":"Modules/Core/ReaderCore/BrowserLayout/BrowserReaderAttributes.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"3315f34b0bd0ef84970dac10b72d150de592464f93371f0c79bdc43aa52d012c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/CharOffsetStore.swift:45-51 | Modules/Core/ReaderCore/EPUBProgress.swift:239-245 \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 \u0060Modules/Core/ReaderCore/CoreText/CharOffsetStore.swift:45\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":"Modules/Core/ReaderCore/CoreText/CharOffsetStore.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef024bb6b818a24e6f9b517237efc59cd975b2108d1a9cdfcef5f7d9540299ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/CoreTextChunkSlicer.swift:756-765 | Modules/Core/ReaderCore/CoreText/CoreTextChunkSlicer.swift:789-798 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextChunkSlicer.swift"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d8f1d868cdbb64f2c50a8c96c68a3fbc98ac774519ab428940e49cdd36f34a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/CoreTextPageEngine.swift:1795-1801 | Modules/Core/ReaderCore/CoreText/TXTPageEngine.swift:373-379 \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":"Modules/Core/ReaderCore/CoreText/CoreTextPageEngine.swift"},"region":{"startLine":1795}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5380401f04103c34141ae3bde72e4dedeb55be96632da15a7990bf4a0f20e73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:2772-2778 | Modules/Features/Reader/CoreTextCollectionScrollViewController.swift:1558-1564 \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 \u0060Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:2772\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":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":2772}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fddbddf2650b25c6f88a80239ff36f578f1315e9fe1483a736c995a2c2135cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:2604-2610 | Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:3393-3399 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:2603\u0060 calls \u0060CTRunGetTypographicBounds\u0060, \u0060CFRangeMake\u0060 and \u0060Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:3392\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":"Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift"},"region":{"startLine":2604}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6aeb08168ca0a85322ef3f6d826fde0a7f2e9f0d2152f199c9951743f085d0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/EPUBMediaPlaceholderRenderer.swift:124-135 | Modules/Core/ReaderCore/CoreText/EPUBMediaPlaceholderRenderer.swift:156-167 \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":"Modules/Core/ReaderCore/CoreText/EPUBMediaPlaceholderRenderer.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aec2443d0bb7074d3e9ec9a0f03c62dab3c97c2b7809bdc2996a0dcb6548273"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/ReviewCardSVGMetrics.swift:256-270 | Modules/Core/ReaderCore/CoreText/ReviewCardSVGMetrics.swift:315-329 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ReviewCardSVGMetrics.swift"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"586ec9b16370bdb276e733569f1e68b23c9ae2e936854722186eababd1718459"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Modules/Core/ReaderCore/Customization/ChapterTitleHTMLCodec.swift:861-868 | Modules/Core/ReaderCore/Customization/ReaderStyleCSSCodec.swift:898-905 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Core/ReaderCore/Customization/ChapterTitleHTMLCodec.swift:861\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":"Modules/Core/ReaderCore/Customization/ChapterTitleHTMLCodec.swift"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"595e8a8f2ee0e75e3c9dca835b113e2db4eae0f4e42bab9a57ff8b8daf2f09c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Modules/Core/ReaderCore/Customization/ReaderOverlayGeometry.swift:89-95 | Modules/Core/ReaderCore/Customization/ReaderOverlayGeometry.swift:101-107 \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":"Modules/Core/ReaderCore/Customization/ReaderOverlayGeometry.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"a640d6e0ba0d042f6da24ce90d45db95eeced040effb70ed6eedb615997f7e7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Modules/Core/ReaderCore/ReaderHTMLUtilities.swift:1961-1967 | Modules/Core/ReaderCore/ReaderHTMLUtilities.swift:1982-1988 \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":"Modules/Core/ReaderCore/ReaderHTMLUtilities.swift"},"region":{"startLine":1961}}}],"partialFingerprints":{"codehealthFindingId/v1":"4078557318a534574cde15813badda8e84159540320a0e3f63ecf92ecde05220"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Modules/Core/RuleEngine/ModernParser/CssExtractor.swift:131-138 | Modules/Core/RuleEngine/ModernParser/XPathExtractor.swift:121-127 \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":"Modules/Core/RuleEngine/ModernParser/CssExtractor.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee7c4c0b6ec791ccb8b591bdebcded73701282ef75d286ae353b42556f419c62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20137 lines \u00D7 3): Modules/Core/RuleEngine/ModernParser/URL/AnalyzeUrl.swift:376-378 | Modules/Core/RuleEngine/ModernParser/URL/AnalyzeUrl.swift:433-439 | Modules/Core/RuleEngine/ModernParser/URL/AnalyzeUrl.swift:451-457 \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 \u0060Modules/Core/RuleEngine/ModernParser/URL/AnalyzeUrl.swift:376\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/URL/AnalyzeUrl.swift"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"34cbd9d6c323f2c8e735bf0728c2099d7bc01fbd8130eefa837de8ac4c3b497f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Modules/Core/TTS/TTSAudioProvider.swift:357-363 | Modules/Core/TTS/TTSAudioProvider.swift:370-378 \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 \u0060Modules/Core/TTS/TTSAudioProvider.swift:357\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":"Modules/Core/TTS/TTSAudioProvider.swift"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"113046c67bfde4eb26d70da2e2712303381443af53dd9e0792785804740929ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Modules/Features/AI/AIBookshelfOrganizerView.swift:144-150 | Modules/Features/Reader/ReaderTranslationSheet.swift:82-88 \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":"Modules/Features/AI/AIBookshelfOrganizerView.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb506f3bc145bb55823f1a1b88f8906ae790bc2081c3300b97e8d17a8cb957e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Modules/Features/AI/AICharacterMemoryView.swift:269-275 | Modules/Features/AI/AIStatusView.swift:94-100 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/AI/AICharacterMemoryView.swift"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"187d7028a713936c8b4826df096f24f82345a5238cf0d9de2d912d79005e3386"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Modules/Features/BookDetail/BookDetailComponents.swift:781-788 | Modules/Features/Explore/Home/HomeSectionCards.swift:234-241 \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":"Modules/Features/BookDetail/BookDetailComponents.swift"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b43eb537dedfb9c8e34b0ddd911d11f4187d457c2a65d7c9d91667bc6d4fbd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): Modules/Features/BookSource/BookSourceListView.swift:889-895 | Modules/Features/Bookshelf/HomeView.swift:1881-1886 \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 \u0060Modules/Features/BookSource/BookSourceListView.swift:889\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":"Modules/Features/BookSource/BookSourceListView.swift"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"c05fc3c64e246f78d23bc8f5015523aa8e4c68e4d4bebd3e81300a1a71b7ba70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Modules/Features/Bookshelf/HomeView.swift:713-719 | Modules/Features/Bookshelf/HomeView.swift:723-729 \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 \u0060Modules/Features/Bookshelf/HomeView.swift:713\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":"Modules/Features/Bookshelf/HomeView.swift"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"663fe2d22deab5a3885c6da0bbae2c834dab3f9cc3c61e187da94efdc76662a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Modules/Features/Bookshelf/HomeView.swift:2064-2070 | Modules/Features/Bookshelf/HomeView.swift:2196-2202 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Modules/Features/Bookshelf/HomeView.swift:2203\u0060 calls \u0060padding\u0060 and \u0060Modules/Features/Bookshelf/HomeView.swift:2071\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":"Modules/Features/Bookshelf/HomeView.swift"},"region":{"startLine":2064}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25025fef17ca1e15dc86c006fda5e484c9cc472cd35e4a37c86adef339c7468"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Modules/Features/Bookshelf/HomeView.swift:2225-2231 | Modules/Features/Bookshelf/HomeView.swift:2476-2482 \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 \u0060Modules/Features/Bookshelf/HomeView.swift:2225\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":"Modules/Features/Bookshelf/HomeView.swift"},"region":{"startLine":2225}}}],"partialFingerprints":{"codehealthFindingId/v1":"55d84c9a9592aea2ede8a5de40618b8eb2000ad9ca37cad22bdac3cba4499413"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Modules/Features/Explore/Home/HomeCollectionCards.swift:495-501 | Modules/Features/Explore/Home/HomeCollectionCards.swift:524-530 \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 \u0060Modules/Features/Explore/Home/HomeCollectionCards.swift:495\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":"Modules/Features/Explore/Home/HomeCollectionCards.swift"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c667543b24759f130c8985755335917b1b49af8a8e25381197aa42ebb71138a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Modules/Features/RSS/RSSListView.swift:683-689 | Modules/Features/RSS/RSSListView.swift:1637-1643 \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 \u0060Modules/Features/RSS/RSSListView.swift:683\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":"Modules/Features/RSS/RSSListView.swift"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"acd738597008de72b675cd89928af1d53641377148b7893f5e2b69c5760edcb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Modules/Features/Reader/ReaderAutoChangeSourceBanner.swift:25-31 | Modules/Features/Reader/ReaderBookmarkToast.swift:55-61 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/Reader/ReaderAutoChangeSourceBanner.swift:25\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderAutoChangeSourceBanner.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"68eb454a9fb1ee49dc13663beffe2c5688f596d78ed5057f6d654bdfd8ec3c19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Modules/Features/Reader/ReaderBookmarkToast.swift:37-44 | Modules/Features/Reader/ReaderBookmarkToast.swift:60-66 \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 \u0060Modules/Features/Reader/ReaderBookmarkToast.swift:37\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderBookmarkToast.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"d766695f3f7b4e4fbe23726dfcf28d9ae5ec336d4b78e2d8df45cb460269b9f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Modules/Features/Reader/ReaderTOCViews.swift:591-601 | Modules/Features/Reader/ReaderTOCViews.swift:637-648 \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 \u0060Modules/Features/Reader/ReaderTOCViews.swift:591\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":"Modules/Features/Reader/ReaderTOCViews.swift"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c406ab87dc3b1c484bb46478825882ac940331e0530fa9e8fd6912b7c12bbe9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Modules/Services/Offline/DownloadActivityIntent.swift:71-77 | Widget/DownloadActivityIntent.swift:71-77 \u2014 before extracting anything, compare \u0060Modules/Services/Offline/DownloadActivityIntent.swift\u0060 and \u0060Widget/DownloadActivityIntent.swift\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Offline/DownloadActivityIntent.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"238050419b84a6fe16f0bf5e63fd01bdbba4a3169d223ef6da5bade6f4fc663e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Targets/Yuedu/SharedApp/GlobalSettings.swift:4146-4152 | Targets/Yuedu/SharedApp/GlobalSettings.swift:4275-4281 \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 \u0060Targets/Yuedu/SharedApp/GlobalSettings.swift:4146\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/GlobalSettings.swift"},"region":{"startLine":4146}}}],"partialFingerprints":{"codehealthFindingId/v1":"394347a2b3ea2c18443d17451985c1669f970a4753e8b41080d526147f409e22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Modules/Core/ReaderCore/BrowserLayout/BrowserReaderAttributes.swift:20-25 | Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:479-491 | Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:659-671 | Modules/Core/ReaderCore/CoreText/TXTLazyAttributedStringBuilder.swift:162-174 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Core/ReaderCore/BrowserLayout/BrowserReaderAttributes.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/BrowserLayout/BrowserReaderAttributes.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"d11324da845bcc9f4d7c68808e5d9448a7f2a30a869c2328b32c2cbe87466fb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Modules/Features/BookSource/BookSourceExportFile.swift:45-50 | Modules/Features/Reader/ReaderStyleExportPayloads.swift:24-29 | Modules/Features/Settings/AppearanceCustomizationExportPayload.swift:40-45 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookSource/BookSourceExportFile.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c64c47a36ea71f1e2416447b6770e249f8e077ad6115b1aeebbcb893c9b284c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Modules/Services/LibraryStore/BookStore.swift:530-535 | Modules/Services/LibraryStore/BookStore.swift:601-606 | Modules/Services/LibraryStore/BookStore.swift:667-672 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/BookStore.swift"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7b94918ffb9d1aa23c55c9c7d4fc02c12da2f7a3b471546b28235dcc1472be0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Modules/Core/BookSource/SharedImportQueueDrainer.swift:671-677 | Modules/Core/BookSource/SharedImportQueueDrainer.swift:716-722 \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 \u0060Modules/Core/BookSource/SharedImportQueueDrainer.swift:671\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, \u0060Modules/Core/BookSource/SharedImportQueueDrainer.swift:679\u0060 calls \u0060contains\u0060, \u0060localBook\u0060 and \u0060Modules/Core/BookSource/SharedImportQueueDrainer.swift:724\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":"Modules/Core/BookSource/SharedImportQueueDrainer.swift"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5208dcfae736c4736cb936716083d6271c221d38e0bc8536ce8619ba8643063"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Modules/Core/EPUB/EPUBMediaOverlay.swift:102-107 | Modules/Core/EPUB/PublicationSession.swift:1684-1689 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Core/EPUB/EPUBMediaOverlay.swift:102\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":"Modules/Core/EPUB/EPUBMediaOverlay.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"da058aa6ee777ac5a062db45e920212f4bf612cc2e047b7a93edd05af7eb1eeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Modules/Core/EPUB/FixedLayoutEPUBPageProvider.swift:204-211 | Modules/Core/PDF/PDFPageRasterizer.swift:122-129 \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 \u0060Modules/Core/EPUB/FixedLayoutEPUBPageProvider.swift:204\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/FixedLayoutEPUBPageProvider.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"01c766b60e64735f52a4a68c7f8b6a3dbb317de9676208cda6957cd858533052"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Modules/Core/EPUB/FixedLayoutEPUBPageProvider.swift:368-373 | Modules/Core/EPUB/FixedLayoutEPUBPageProvider.swift:378-385 \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 \u0060Modules/Core/EPUB/FixedLayoutEPUBPageProvider.swift:378\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":"Modules/Core/EPUB/FixedLayoutEPUBPageProvider.swift"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"66ceb93e611fff801a2bad5837569dff5c313b92eaadab4c0049ac8167506057"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift:1668-1673 | Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift:1685-1690 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift"},"region":{"startLine":1668}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8a1f2dd907c1cd1a31458429543094537eb905df292076560eab171a1554a1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/CoreTextChunk.swift:293-298 | Modules/Core/ReaderCore/CoreText/CoreTextChunk.swift:328-333 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextChunk.swift"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a9f06d031c854f5f0387cd68aad3a40057aa2923dbefd6533e42b09817700bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/CoreTextChunkAttachmentExtractor.swift:26-31 | Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:2572-2577 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Core/ReaderCore/CoreText/CoreTextChunkAttachmentExtractor.swift:26\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":"Modules/Core/ReaderCore/CoreText/CoreTextChunkAttachmentExtractor.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"b05f902ff3082fd90b72f291df62fc3adf527053c9eb744a9d4400eb5a5ff8c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/HTMLTableSupport.swift:161-168 | Modules/Core/ReaderCore/CoreText/HTMLTableSupport.swift:186-193 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Modules/Core/ReaderCore/CoreText/HTMLTableSupport.swift:194\u0060 calls \u0060RenderColor\u0060 and \u0060Modules/Core/ReaderCore/CoreText/HTMLTableSupport.swift:169\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":"Modules/Core/ReaderCore/CoreText/HTMLTableSupport.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe9de2d550b9c1f7e33430299a6260f466485c7aebd1bb3f6eb6e41781af663f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/HTMLTableSupport.swift:335-340 | Modules/Core/ReaderCore/CoreText/HTMLTableSupport.swift:357-362 \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":"Modules/Core/ReaderCore/CoreText/HTMLTableSupport.swift"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"5be1b4a077e3803be1ad425c1391cb966e61a840fc52a0b6439eaece5c3f1a69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/ReaderTextDecorationRenderer.swift:97-102 | Modules/Core/ReaderCore/CoreText/RegexHighlightDecorationRenderer.swift:272-277 \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 \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, \u0060Modules/Core/ReaderCore/CoreText/RegexHighlightDecorationRenderer.swift:270\u0060 calls \u0060CTFrameGetLineOrigins\u0060, \u0060CFRangeMake\u0060 and \u0060Modules/Core/ReaderCore/CoreText/ReaderTextDecorationRenderer.swift:96\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":"Modules/Core/ReaderCore/CoreText/ReaderTextDecorationRenderer.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"0df0705cb58339b019e425fe77b59cfbe65661f5e707fa15bb40f64fb72424a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Modules/Core/ReaderCore/Customization/AppearancePageBackground.swift:290-295 | Modules/Core/ReaderCore/Customization/AppearanceThemeExtras.swift:320-325 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Core/ReaderCore/Customization/AppearancePageBackground.swift:290\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/AppearancePageBackground.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"970f66ebceffd3a9eb73af0a29af81c5ecf840d0e10754c1c815fc8029fcd4a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Modules/Core/ReaderCore/Customization/QiThemeImporter.swift:159-164 | Modules/Core/ReaderCore/Customization/ReedenThemeImporter.swift:72-77 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Core/ReaderCore/Customization/QiThemeImporter.swift:159\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 register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/QiThemeImporter.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdd6a5c82ef65c170c7faf3aced141f5652183b8426ecedf3de75dcd87f4051f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Modules/Core/RuleEngine/RuleEngine.swift:552-557 | Modules/Core/RuleEngine/RuleEngine.swift:1355-1360 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cd11d26996644c701a1d844b7f5efa292955274110507f4ddf65ad96094f609"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Modules/Core/RuleEngine/RuleEngine.swift:1032-1037 | Modules/Core/RuleEngine/RuleEngine.swift:1388-1393 \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":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":1032}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a03204552325e6bfa6d74928ff43ebacb24032fe61b9da878e3cdb89f10e02f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Modules/Core/TTS/TTSAudioProvider.swift:764-770 | Modules/Core/TTS/TTSLoginScript.swift:92-98 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Core/TTS/TTSAudioProvider.swift:764\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Modules/Core/TTS/TTSLoginScript.swift:99\u0060 calls \u0060onLoginInfo\u0060 and \u0060Modules/Core/TTS/TTSAudioProvider.swift:771\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":"Modules/Core/TTS/TTSAudioProvider.swift"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a5d6aaf0565b81ea67b367561478c584951a52c8eef6ad6e26bdc26bcf8110c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Modules/Features/BookDetail/AudiobookDetailView.swift:703-708 | Modules/Features/BookDetail/VideoDetailView.swift:765-770 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/BookDetail/AudiobookDetailView.swift:703\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":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"08732df6148a734edb18c0054b621d012347a5d3ed6761494db5a86634b02968"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Modules/Features/BookDetail/SourcePickerSheet.swift:167-172 | Modules/Features/BookDetail/SourcePickerSheet.swift:180-185 \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 \u0060Modules/Features/BookDetail/SourcePickerSheet.swift:167\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":"Modules/Features/BookDetail/SourcePickerSheet.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdecac5626a00d80735dd16919a6d2bc00f02e41fcb238089b08809e9bcfebee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20136 lines \u00D7 2): Modules/Features/BookSource/BookSourceFormLoginView.swift:977-981 | Modules/Features/BookSource/BookSourceFormLoginView.swift:1039-1044 \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 \u0060Modules/Features/BookSource/BookSourceFormLoginView.swift:1039\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"Modules/Features/BookSource/BookSourceFormLoginView.swift"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f76850b4230f20b4a974d945daf6c037f432f49de315725b756f227ada6566b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Modules/Features/Explore/Home/HomeSectionCards.swift:291-296 | Modules/Features/Explore/Home/HomeSectionCards.swift:439-444 \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 \u0060Modules/Features/Explore/Home/HomeSectionCards.swift:291\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":"Modules/Features/Explore/Home/HomeSectionCards.swift"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"86b19dc56b2f790d35774e917628587b4e4e98dd7cce1d1bd508d4d9b540d890"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Modules/Features/Reader/ReaderCommentCardSettingsView.swift:203-208 | Modules/Features/Reader/ReaderParagraphBubbleSettingsView.swift:305-310 \u2014 before extracting anything, compare \u0060Modules/Features/Reader/ReaderCommentCardSettingsView.swift\u0060 and \u0060Modules/Features/Reader/ReaderParagraphBubbleSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/Reader/ReaderCommentCardSettingsView.swift:203\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderCommentCardSettingsView.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"19810019f1135f3bc562b41c53dfa762e7bf04f8805f8f5c190b8d46f1915419"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Modules/Services/Online/OnlineReadingPipeline.swift:458-463 | Modules/Services/Online/OnlineReadingPipeline.swift:620-625 \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 \u0060Modules/Services/Online/OnlineReadingPipeline.swift:458\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":"Modules/Services/Online/OnlineReadingPipeline.swift"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eb370307cf3e4633930c8187bce9cfc24d1ddea47f34f6305f159714ce76a39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Modules/Services/RSS/RSSFetcher.swift:11-16 | Modules/Services/RSS/RSSFetcher.swift:37-42 \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 \u0060Modules/Services/RSS/RSSFetcher.swift:11\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":"Modules/Services/RSS/RSSFetcher.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ae9044aa65a7b960db4aaea6ca6c85bfb18590570b51837aa3932c101ccd6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Modules/Services/RSS/RSSUtilities.swift:55-60 | Modules/Services/RSS/RSSUtilities.swift:70-75 \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 \u0060Modules/Services/RSS/RSSUtilities.swift:55\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSUtilities.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"9caff755d395549f1cd0d99cd835add4a4ecdaf6cbf484c8b3fa02209a20322b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Modules/Services/Works/AuthorWorks.swift:124-129 | Modules/Services/Works/ShelfGenres.swift:9-14 \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":"Modules/Services/Works/AuthorWorks.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"bab16b270ea6b75f0f952370ab3e2213466ceab4d1077bad476e6e9d3236c3a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:1086-1090 | Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:2349-2353 | Modules/Core/ReaderCore/CoreText/EPUBAttributedStringBuilder.swift:441-445 | Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift:736-740 | Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift:2558-2562 | Modules/Core/ReaderCore/CoreText/RunDelegateProvider.swift:435-439 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 6 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:1086\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060limit\u0060 to \u0060Int\u0060 in one and \u0060Int = 80\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":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":1086}}}],"partialFingerprints":{"codehealthFindingId/v1":"686bb45cf7cfd4bfc63026cfb59ec71f01da40f1dbb99f4e1b44582918e63e0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): Modules/Services/Works/Providers/ShelfProvider.swift:141-146 | Modules/Services/Works/Providers/ShelfProvider.swift:163-168 | Modules/Services/Works/Providers/ShelfProvider.swift:200-205 | Modules/Services/Works/Providers/ShelfProvider.swift:220-225 | Modules/Services/Works/Providers/ShelfProvider.swift:245-250 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/Providers/ShelfProvider.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f45d78500e034e30f663702e995da1d595ea6e9c4a681d862381e8d354dbb58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Modules/Core/BookSource/BookSourceFetcher\u002BCache.swift:240-244 | Modules/Core/ReaderCore/CoreText/NodeAttributedStringBuilder.swift:98-102 | Modules/Services/LibraryStore/UniversalBookResourceAdapter.swift:267-271 | Modules/Services/Online/ChapterCacheRepository.swift:437-441 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceFetcher\u002BCache.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"b343300584f99b4b8aa874af2baf06eba6c5c934988dfbab806603bc1508deca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Modules/Core/ReaderCore/CoreText/CoreTextChunk.swift:220-224 | Modules/Core/ReaderCore/CoreText/CoreTextChunk.swift:267-271 | Modules/Core/ReaderCore/CoreText/CoreTextChunk.swift:294-298 | Modules/Core/ReaderCore/CoreText/CoreTextChunk.swift:329-333 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. 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":"Modules/Core/ReaderCore/CoreText/CoreTextChunk.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"22ddf3890ab99069c74564277b0c5af5d4d024a27af560ae2d1ccf3e1e5563d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Modules/Core/ReaderCore/CoreText/CoreTextChunk.swift:419-423 | Modules/Core/ReaderCore/CoreText/CoreTextChunk.swift:459-463 | Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:1993-2002 | Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:2034-2043 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Core/ReaderCore/CoreText/CoreTextChunk.swift:419\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":"Modules/Core/ReaderCore/CoreText/CoreTextChunk.swift"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"2af2f5122ae6b90072f4441e945722d72b8704183c761aba165c492d4a2322f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Modules/Features/RSS/RSSListView.swift:1537-1541 | Modules/Features/RSS/RSSSourceEditSheets.swift:40-44 | Modules/Features/Reader/ReaderCommentCardSettingsView.swift:204-208 | Modules/Features/Reader/ReaderParagraphBubbleSettingsView.swift:306-310 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/RSS/RSSListView.swift:1537\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":"Modules/Features/RSS/RSSListView.swift"},"region":{"startLine":1537}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dfbbe2969a720fd18e710c35cae953985e827e5788eecdfbb730a6f55ef5d9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Modules/Features/Reader/ReaderChromeCustomization.swift:239-243 | Targets/Yuedu/SharedApp/GlobalSettings.swift:4146-4150 | Targets/Yuedu/SharedApp/GlobalSettings.swift:4275-4279 | Targets/Yuedu/SharedApp/RootTabCustomization.swift:161-165 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderChromeCustomization.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c52c3a2acbf9968fec2c7e35044ba2af04514ef23de1454c9bd3c1f85983deb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Modules/Features/Library/Modules/RuleModuleDetailView.swift:99-104 | Modules/Features/Library/Modules/RuleModuleGroupView.swift:89-94 | Modules/Features/Library/Modules/RuleModuleSection.swift:88-93 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/Library/Modules/RuleModuleDetailView.swift:99\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Library/Modules/RuleModuleDetailView.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa58240e12b83d5336cef6f0d7cca84c360ca72398e2e1d2d65470c2fd832fc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 3): Modules/Features/Reader/ReaderAutoChangeSourceBanner.swift:28-34 | Modules/Features/Reader/ReaderBookmarkToast.swift:35-43 | Modules/Features/Reader/ReaderBookmarkToast.swift:58-65 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/Reader/ReaderAutoChangeSourceBanner.swift:28\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":"Modules/Features/Reader/ReaderAutoChangeSourceBanner.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3422f26dbfff156f0c8984bc7e1ce7509bee42fa01c78ab627b22cd0f44fa18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Modules/Services/iCloud/ICloudSyncManager.swift:494-498 | Modules/Services/iCloud/ICloudSyncManager.swift:534-538 | Modules/Services/iCloud/ICloudSyncManager.swift:554-558 \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 \u0060Modules/Services/iCloud/ICloudSyncManager.swift:494\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":"Modules/Services/iCloud/ICloudSyncManager.swift"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1b29adddbfd49779400089da07e84b28089e40f0d5e7c4ba27e28f4548cd92b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 6): Modules/Core/ReaderCore/CoreText/CoreTextChunkAttachmentExtractor.swift:85-89 | Modules/Core/ReaderCore/CoreText/CoreTextChunkAttachmentExtractor.swift:128-130 | Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:2664-2668 | Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:2703-2705 | Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:3402-3404 | Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift:3483-3485 \u2014 there are 6 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Core/ReaderCore/CoreText/CoreTextChunkAttachmentExtractor.swift:85\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":"Modules/Core/ReaderCore/CoreText/CoreTextChunkAttachmentExtractor.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"54d0d7b05cdbfa9aa9268a3fe7d16eadfa16bcdfa2f954c7f429b9f33a9697b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:1216-1221 | Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:1226-1231 \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 \u0060Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:1216\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":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":1216}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cbfefb680a37ad02e84f2d8a2ede4e665ca718a016083c251116946c28ff14c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Modules/Core/ReaderCore/Customization/ChapterTitleHTMLCodec.swift:877-883 | Modules/Core/ReaderCore/Customization/ReaderStyleCSSCodec.swift:1040-1046 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ChapterTitleHTMLCodec.swift"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"38f956cc606376c7c78945b51bc43a880cd1cd9699cd04b4d731127333081d1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Modules/Core/ReaderCore/Customization/ReaderCustomBackground.swift:87-91 | Targets/Yuedu/SharedApp/GlobalSettings.swift:3598-3602 \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 \u0060Modules/Core/ReaderCore/Customization/ReaderCustomBackground.swift:87\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":"Modules/Core/ReaderCore/Customization/ReaderCustomBackground.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"0372a41624612d63d77c068860d8f48a3daa8c819f49349db533b60ac27dc78f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift:3174-3179 | Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift:3219-3224 \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 \u0060Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift:3174\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":"Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift"},"region":{"startLine":3174}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e2299bab0146600138287ee9eafed6045e4d3ff30983e1eeab182c94cee6291"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift:3192-3197 | Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift:3237-3242 \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 \u0060Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift:3192\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":"Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift"},"region":{"startLine":3192}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc5afbb1ae6718d67c734674448a2f73956649c286df612faf0312840964ddac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift:1262-1267 | Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift:1590-1595 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift"},"region":{"startLine":1262}}}],"partialFingerprints":{"codehealthFindingId/v1":"425c2f8a69c5718d6ba3daa8c3b8fab399a48171a408453da2023dd2af273bd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Modules/Features/BookDetail/AudiobookDetailView.swift:189-196 | Modules/Features/BookDetail/OnlineBookView.swift:208-215 \u2014 before extracting anything, compare \u0060Modules/Features/BookDetail/AudiobookDetailView.swift\u0060 and \u0060Modules/Features/BookDetail/OnlineBookView.swift\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c6d5ab5330a4ee3f6a00701f72d74d0f256526b20a36d2742b925485a0e0d17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Modules/Features/Explore/Home/HomeSectionCards.swift:572-578 | Modules/Features/Explore/Home/HomeSectionCards.swift:659-665 \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 \u0060Modules/Features/Explore/Home/HomeSectionCards.swift:572\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":"Modules/Features/Explore/Home/HomeSectionCards.swift"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d9515f54a1865fcb6d9158c0d688b9b97b8601308eb1cfa70d54dcfd1007ea9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Modules/Features/Reader/CoreTextPagedView.swift:1506-1510 | Modules/Features/Reader/CoreTextPagedView.swift:1533-1537 \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 \u0060Modules/Features/Reader/CoreTextPagedView.swift:1506\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":"Modules/Features/Reader/CoreTextPagedView.swift"},"region":{"startLine":1506}}}],"partialFingerprints":{"codehealthFindingId/v1":"2321db1af8b033066ede5510e763cf614bd6d94b8020b89e7c157f2001f88bd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 3): Modules/Core/RuleEngine/RuleEngine.swift:1302-1305 | Modules/Features/WebBrowser/BrowserView.swift:503-507 | Modules/Features/WebBrowser/BrowserView.swift:529-533 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Core/RuleEngine/RuleEngine.swift:1302\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":1302}}}],"partialFingerprints":{"codehealthFindingId/v1":"089fc3313c0d13293e5947d81290be6a6e9647372dcbbf03493e779bb332adaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Modules/Services/LibraryStore/AozoraBookImporter.swift:55-59 | Modules/Services/LibraryStore/MOBIBookImporter.swift:23-27 \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 register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/AozoraBookImporter.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"7589979b367aa91018ee255a39e27bf858d3f34acddc169def73f75089f90eba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Modules/Services/RSS/RSSStore.swift:128-133 | Modules/Services/RSS/RSSStore.swift:584-588 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Modules/Services/RSS/RSSStore.swift:134\u0060 calls \u0060save\u0060 and \u0060Modules/Services/RSS/RSSStore.swift:589\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":"Modules/Services/RSS/RSSStore.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab08842053e62c9b9d507c845c455155dc4f8bbc883609cb4136623ab6149af3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 3): Modules/Services/RuleModules/ModuleProvider.swift:161-165 | Modules/Services/RuleModules/ModuleWorkDetail.swift:17-21 | Modules/Services/RuleModules/ModuleWorkDetail.swift:61-63 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Services/RuleModules/ModuleProvider.swift:161\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/ModuleProvider.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"47a4e31d9556d325c439bd4c064950b4cd5cab0b226812f0b0327943ad54279b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Modules/Services/RuleModules/ModuleSearch.swift:62-66 | Modules/Services/Works/LibrarySearch.swift:115-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Services/RuleModules/ModuleSearch.swift:62\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":"Modules/Services/RuleModules/ModuleSearch.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"099a09354f84dbb5bca7e5558876f0cb15a564992ca87671207f1c3509320043"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Modules/Services/RuleModules/RuleModuleClient\u002BComments.swift:269-273 | Modules/Services/RuleModules/RuleModuleClient\u002BReviews.swift:98-102 \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":"Modules/Services/RuleModules/RuleModuleClient\u002BComments.swift"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"891629fe58dc24103218d65eacf2ed5518499727a36dc3828fed9a3df5908df5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Modules/Services/Works/ImportedMetadataStore.swift:63-67 | Modules/Services/Works/ImportedMetadataStore.swift:180-184 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Services/Works/ImportedMetadataStore.swift:63\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":"Modules/Services/Works/ImportedMetadataStore.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a7c5221e2f1f0718c45abfab1d82a0185ab00b824c9ab41fa8ccc4e877fc8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Modules/Services/Offline/DownloadActivityAttributes.swift:30-47 | Widget/DownloadActivityAttributes.swift:30-69 \u2014 before extracting anything, compare \u0060Modules/Services/Offline/DownloadActivityAttributes.swift\u0060 and \u0060Widget/DownloadActivityAttributes.swift\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Services/Offline/DownloadActivityAttributes.swift:30\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":"Modules/Services/Offline/DownloadActivityAttributes.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc84712a8bbd6da9732d37ab1b87b1ad6d503a55e41770dd2b03ac5afaba06b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Modules/Core/Audio/LocalAudiobookArchive.swift:330-336 | Modules/Core/Comic/LocalMangaArchive.swift:244-250 \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":"Modules/Core/Audio/LocalAudiobookArchive.swift"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba26f340cec30b575e60221360780f69eb14411d9ba262e97f8e3173be0e1b6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Modules/Core/BookSource/SharedImportQueueDrainer.swift:814-819 | Modules/Core/EPUB/BookParsing.swift:130-135 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/SharedImportQueueDrainer.swift"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"29b5d4f2b84854616113e369017f05728e2eb91481c943550e7819959b140b86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 12): Modules/Core/EPUB/FixedLayoutEPUBPageProvider.swift:355-359 | Modules/Core/ReaderCore/CoreText/SVGWebViewRasterizer.swift:690-694 | Modules/Core/RuleEngine/JSRuleEngineRunner.swift:498-502 | Modules/Core/RuleEngine/ModernParser/JS/LegadoHeadlessWebView.swift:243-247 | Modules/Features/BookDetail/BookIntroRichView.swift:189-193 | Modules/Features/BookSource/JsBridgeBrowserView.swift:687-691 | Modules/Features/RSS/RSSArticleReaderView.swift:344-348 | Modules/Features/Reader/ReaderWebEmbedManager.swift:118-122 | Modules/Features/WebBrowser/BrowserView.swift:441-445 | Modules/Features/WebBrowser/BrowserView.swift:669-673 | Modules/Services/Network/WebViewFetcher.swift:841-845 | Modules/SharedUI/Components/SourceLoginWebView.swift:208-212 \u2014 there are 12 copies across 11 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 12 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Modules/Features/WebBrowser/BrowserView.swift:436\u0060 calls \u0060URL\u0060, \u0060load\u0060, \u0060URLRequest\u0060 and \u0060Modules/SharedUI/Components/SourceLoginWebView.swift:204\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":"Modules/Core/EPUB/FixedLayoutEPUBPageProvider.swift"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2ed8fd5d37a94c38b3e495bcfe1ed908b1e91db48375799c6bc8de37a2feb46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageView.swift:558-567 | Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:381-390 | Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:3119-3128 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageView.swift"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ac912bf0d7c6d831495b2688e2d36f7273456a97b003c51b87983ed5ecd09e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/CoreTextPageEngine.swift:448-454 | Modules/Core/ReaderCore/CoreText/TXTPageEngine.swift:44-50 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageEngine.swift"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"adf998c5b84293a550451ff0c0fdf61ea920e7a96d8fcf1a4ddd86cdf53e4925"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:564-570 | Modules/Features/Reader/CoreTextCollectionScrollViewController.swift:545-551 \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":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd4ad356adfd808eb85305a83dab88e282522fa9504ff67a513b79737fbae733"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift:584-589 | Modules/Features/Reader/CoreTextCollectionScrollViewController.swift:565-570 \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":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"a61b1707a556229e5739bb4e7ddaa41de3f627eb80eb1fef53d93a0f7579f4de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Modules/Core/ReaderCore/Customization/AppearancePageBackground.swift:310-318 | Modules/Core/ReaderCore/Customization/AppearanceThemeExtras.swift:361-369 | Targets/Yuedu/SharedApp/GlobalSettings.swift:4292-4300 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/AppearancePageBackground.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"2db7546e8357bc9f1371c1a44a24a66b254c75e879b5fade8ffd89792a4ddc08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Modules/Core/ReaderCore/Customization/DialogueBubbleScriptImporter.swift:414-418 | Modules/Core/ReaderCore/Customization/LottieTitleTemplateImporter.swift:601-605 \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":"Modules/Core/ReaderCore/Customization/DialogueBubbleScriptImporter.swift"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"72698a165c5f628656d53a97c62918020103e403ed5b81622ca09939825a6d47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Modules/Core/ReaderCore/Customization/QiThemeImporter.swift:496-504 | Modules/Core/ReaderCore/Customization/ReedenThemeImporter.swift:316-324 \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":"Modules/Core/ReaderCore/Customization/QiThemeImporter.swift"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"29fb46f1b00302dd4349c76d574b048dcf0f4159af5ccde4ac401570646c2a8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Modules/Core/ReaderCore/Customization/ReaderStyleAssetStore.swift:804-808 | Modules/Core/ReaderCore/Customization/ReaderStylePackage.swift:415-419 \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":"Modules/Core/ReaderCore/Customization/ReaderStyleAssetStore.swift"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"abf5031101c75cc05388774f20cc0a50622cd4d1ddb8cef488b4dcce75d74284"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Modules/Core/RuleEngine/ModernParser/Variables/BookSourceRuleData.swift:20-26 | Modules/Core/RuleEngine/ModernParser/Variables/RuleData.swift:10-17 \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":"Modules/Core/RuleEngine/ModernParser/Variables/BookSourceRuleData.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c17ed066f24148f6ce6ec29647305c6b4103976f65fbce9f6b341117d14dbf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Modules/Core/TTS/HTTPTTSEngine.swift:314-318 | Modules/Core/TTS/SystemTTSEngine.swift:239-243 \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":"Modules/Core/TTS/HTTPTTSEngine.swift"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e6513a6b9444e9c658a724d1eb221b49b8a2778968c8af6e3bc4b4d6b8b2575"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Modules/Core/TTS/HTTPTTSEngine.swift:788-796 | Modules/Core/TTS/SystemTTSEngine.swift:517-525 \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":"Modules/Core/TTS/HTTPTTSEngine.swift"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"01c73ad40fd168da585289a88f80e3f6da05debc87093cdce2b9c28f735094c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Modules/Core/TTS/HTTPTTSEngine.swift:924-929 | Modules/Core/TTS/SystemTTSEngine.swift:686-691 \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":"Modules/Core/TTS/HTTPTTSEngine.swift"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7754d055d77d4da1d09255a83faba1979f67795834ef45d64edf94949e0b5be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Modules/Features/BookDetail/AudiobookDetailView.swift:149-154 | Modules/Features/BookDetail/OnlineBookView.swift:237-242 | Modules/Features/BookDetail/VideoDetailView.swift:153-158 \u2014 before extracting anything, compare \u0060Modules/Features/BookDetail/AudiobookDetailView.swift\u0060 and \u0060Modules/Features/BookDetail/OnlineBookView.swift\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"682fe565eb00ee470860bf15899712474240facbe032ab98f4f01b1fe8cc5ae7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Modules/Features/BookDetail/AudiobookDetailView.swift:162-166 | Modules/Features/BookDetail/VideoDetailView.swift:128-132 \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":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"16e909b231c9f68a4a7035cb103777ae3e9732dbcea2a632c5ba199e302a3dc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Modules/Features/BookDetail/AudiobookDetailView.swift:219-225 | Modules/Features/BookDetail/VideoDetailView.swift:160-166 \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":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"378cae5db2d471800fe35aa5fb8cb1bf949aee67a0d40349925f648cdd4c44f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Modules/Features/BookDetail/AudiobookDetailView.swift:471-479 | Modules/Features/BookDetail/OnlineBookView.swift:534-542 \u2014 before extracting anything, compare \u0060Modules/Features/BookDetail/AudiobookDetailView.swift\u0060 and \u0060Modules/Features/BookDetail/OnlineBookView.swift\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"eff0910285fee27a68c05e55dfc1ad07d523bda4f4ce5cfcc8d0f155a1ac714f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Modules/Features/BookDetail/AudiobookDetailView.swift:508-516 | Modules/Features/BookDetail/OnlineBookView.swift:574-582 \u2014 before extracting anything, compare \u0060Modules/Features/BookDetail/AudiobookDetailView.swift\u0060 and \u0060Modules/Features/BookDetail/OnlineBookView.swift\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e00b3a90f67f19ec8a35e835039caf75d88f6a6e2cb6bee12da699533e62ea5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Modules/Features/BookDetail/AudiobookDetailView.swift:537-547 | Modules/Features/BookDetail/OnlineBookView.swift:608-618 | Modules/Features/BookDetail/VideoDetailView.swift:684-694 \u2014 before extracting anything, compare \u0060Modules/Features/BookDetail/AudiobookDetailView.swift\u0060 and \u0060Modules/Features/BookDetail/OnlineBookView.swift\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ea751a1f9a317351de752923fbf6f5a658c2e4a4b27ea76ef04228cdbcd9fdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Modules/Features/BookDetail/AudiobookDetailView.swift:555-565 | Modules/Features/BookDetail/OnlineBookView.swift:626-636 | Modules/Features/BookDetail/VideoDetailView.swift:700-710 \u2014 before extracting anything, compare \u0060Modules/Features/BookDetail/AudiobookDetailView.swift\u0060 and \u0060Modules/Features/BookDetail/OnlineBookView.swift\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7782a7aa1653fbcbc490ab4e8f3d7c266d2de6b9474ddfe7a2741c96f9e6bd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Modules/Features/BookDetail/AudiobookDetailView.swift:573-581 | Modules/Features/BookDetail/OnlineBookView.swift:644-652 | Modules/Features/BookDetail/VideoDetailView.swift:712-718 \u2014 before extracting anything, compare \u0060Modules/Features/BookDetail/AudiobookDetailView.swift\u0060 and \u0060Modules/Features/BookDetail/OnlineBookView.swift\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2775bce7a3cb72da559bd0b92d1af22f3c80c899bb78472ed53bc5eb66bb25d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Modules/Features/BookSource/BookSourceDebugExportFile.swift:19-35 | Modules/Services/Diagnostics/DiagnosticReportBundle.swift:104-120 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookSource/BookSourceDebugExportFile.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb297211f74dcd2a7a8009194c23c7bc5221513383effe27cb6b2dea66c3cedf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Modules/Features/Reader/ChapterTitleInspectorView.swift:698-702 | Modules/Features/Reader/RegexHighlightRuleEditorView.swift:831-835 \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":"Modules/Features/Reader/ChapterTitleInspectorView.swift"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b32863b1b35be2046750adc688476a83d69ccd7ab087fcf3205528d383cd054"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Modules/Features/Reader/ChapterTitleInspectorView.swift:706-713 | Modules/Features/Reader/RegexHighlightRuleEditorView.swift:938-945 \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":"Modules/Features/Reader/ChapterTitleInspectorView.swift"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"0713d0b43a7a7a9608a2dce12d51d55e30eb62d277dc6a73eed7b44581f33464"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Modules/Features/Reader/ChapterTitleInspectorView.swift:717-724 | Modules/Features/Reader/RegexHighlightRuleEditorView.swift:907-914 \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":"Modules/Features/Reader/ChapterTitleInspectorView.swift"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"9221aaaf2fe0e4e45f5130b0a296fad5398e8ac0e631fdf1881b4786cf740d95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Modules/Features/Reader/ReaderChromeCustomization.swift:175-184 | Targets/Yuedu/SharedApp/RootTabCustomization.swift:98-107 \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":"Modules/Features/Reader/ReaderChromeCustomization.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ceb6020de2671d33df81a7273f3467278f62fa050e328ebca181a56c7171d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Modules/Features/Reader/ReaderViewModel.swift:664-668 | Modules/Services/Online/OnlineReadingPipeline.swift:311-315 \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":"Modules/Features/Reader/ReaderViewModel.swift"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"40d269fd047c665e0c9b0ea79dc0ee645586905a1ec73bf6dfde7e122e57372b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Modules/Features/Settings/ICloudSyncView.swift:213-219 | Modules/Features/Settings/WebDAVSyncView.swift:210-216 \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":"Modules/Features/Settings/ICloudSyncView.swift"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"36c00740fb3bc8f12ed0e5fab6a484ff2f01e65eb8e8c7067bea7862342c65ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Modules/Features/WebBrowser/BrowserView.swift:447-457 | Modules/SharedUI/Components/SourceLoginWebView.swift:216-226 \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":"Modules/Features/WebBrowser/BrowserView.swift"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"6011ef57a3995d038c870633c67b732b963f5b6cd08ad68b9771df1826cbc518"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Modules/Services/Diagnostics/CrashContext.swift:27-33 | Modules/Services/WebDAV/WebDAVManager.swift:83-89 \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":"Modules/Services/Diagnostics/CrashContext.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d420ac6774e45219ac5fb880df2adde8a6c65f207c08c9dd5e4344901d155e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Modules/Services/Online/ChangeSourceCache.swift:38-43 | Modules/Services/Online/DiscoverKindsCache.swift:25-30 \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":"Modules/Services/Online/ChangeSourceCache.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"fedbf0a4ad375be72e4e9641a1ab5e875d972a88357835181077c9a1535c140c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Modules/Services/RSS/LegadoRSSScraper.swift:366-373 | Modules/Services/RSS/RSSUtilities.swift:1239-1247 \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":"Modules/Services/RSS/LegadoRSSScraper.swift"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f6629d3a3dc9b5b6bcf770afb75b8bebbc80b191da2d4e92f1c2adee9d55ce2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Modules/Services/Works/ImportedMetadataStore.swift:21-25 | Modules/Services/Works/RemoteRecordStore.swift:108-112 \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":"Modules/Services/Works/ImportedMetadataStore.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d75d7a49a328e36ef1cbe206dbfbe04b64cc86ce726dc2a51e9cf6f23f99aed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Targets/Yuedu/SharedApp/GlobalSettings\u002BCommentCards.swift:26-32 | Targets/Yuedu/SharedApp/GlobalSettingsSnapshot.swift:83-89 \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":"Targets/Yuedu/SharedApp/GlobalSettings\u002BCommentCards.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"62349d630cb4cac61f6eeea3c241bd21da0f289d152126a28ddf4f42a068fed2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Modules/Core/BookSource/SharedImportQueueDrainer.swift:904-908 | Modules/Core/Replace/ReplaceRuleStore.swift:320-324 \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":"Modules/Core/BookSource/SharedImportQueueDrainer.swift"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dad967b6ee2ff90037b969b4407e85cf3dda6c05b16d20e27cd7f0b7fd9ca81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Modules/Core/RuleEngine/ModernParser/JsoupDocumentCache.swift:90-98 | Modules/Core/RuleEngine/ModernParser/XPathExtractor.swift:595-601 \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":"Modules/Core/RuleEngine/ModernParser/JsoupDocumentCache.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"f14d4732e9a01d2733af45c561057b45d430b484151215ce4de2fda55dae4df6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Modules/Features/BookDetail/AudiobookDetailView.swift:643-650 | Modules/Features/BookDetail/OnlineBookView.swift:706-713 \u2014 before extracting anything, compare \u0060Modules/Features/BookDetail/AudiobookDetailView.swift\u0060 and \u0060Modules/Features/BookDetail/OnlineBookView.swift\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"079729b768875d492549115144a3f8f84de9be380bb450098a042e34fb0c4ff0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Modules/Features/Reader/ChapterTitleInspectorView.swift:728-735 | Modules/Features/Reader/RegexHighlightRuleEditorView.swift:918-925 \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":"Modules/Features/Reader/ChapterTitleInspectorView.swift"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"86d9bddfdb8d993274d61a1b7d9bf8fe9231f756e42be66b2505576617ea56d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Modules/Features/Reader/ChapterTitleInspectorView.swift:737-744 | Modules/Features/Reader/RegexHighlightRuleEditorView.swift:927-934 \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":"Modules/Features/Reader/ChapterTitleInspectorView.swift"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3660790030079ec3c040b524c683c60082657bc9003f0e9b500a2bd78fa002c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Modules/Features/Reader/ReaderChromeCustomization.swift:262-270 | Targets/Yuedu/SharedApp/RootTabCustomization.swift:191-199 | Targets/Yuedu/SharedApp/UserFontStorageManager.swift:150-158 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderChromeCustomization.swift"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c562ffd6b76c5e41ab26a97c66b2c532aa22ec783135c43203b25c0d5feffa2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Modules/Features/Reader/ReaderChromeCustomization.swift:412-416 | Targets/Yuedu/SharedApp/RootTabCustomization.swift:348-352 \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":"Modules/Features/Reader/ReaderChromeCustomization.swift"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb8dca6555bd7a9e52bccf2934fd2e4eba12247465790b5e77ca85d64f66fc1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Modules/Features/Reader/ReaderChromeCustomization.swift:445-453 | Targets/Yuedu/SharedApp/RootTabCustomization.swift:383-391 \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":"Modules/Features/Reader/ReaderChromeCustomization.swift"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d64ce938e41ed3ff8a117b2559ff7c8dc4848122599a665f36157472c1bc7ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Modules/Features/Reader/ReaderCommentCardSettingsView.swift:152-159 | Modules/Features/Reader/ReaderParagraphBubbleSettingsView.swift:189-196 \u2014 before extracting anything, compare \u0060Modules/Features/Reader/ReaderCommentCardSettingsView.swift\u0060 and \u0060Modules/Features/Reader/ReaderParagraphBubbleSettingsView.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderCommentCardSettingsView.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a44e2bf680364a34b4804d4419e6db44677b0ac8d56ee93be1b195f726f274a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Modules/Features/Reader/ReaderTextUnderlineSettingsView.swift:65-75 | Modules/Features/Reader/TTS/TTSPanelView.swift:565-570 | Modules/Features/Reader/TTS/TTSPanelView.swift:572-577 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderTextUnderlineSettingsView.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"27bbbb940568d92bfba4e436b9562b9bb283fdda812a41067f8309f01a428d7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Modules/Features/Search/SearchRecents.swift:47-54 | Modules/Services/LibraryStore/OffShelfReadRecords.swift:73-80 \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":"Modules/Features/Search/SearchRecents.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab058dc6bdb03f85c6dc632d5862e98ce34e0c47169810599d14fe12856355b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Modules/Services/AI/AIBookSummaryService.swift:43-47 | Modules/Services/AI/AIChapterTranslationService.swift:53-57 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060store\u0060 to \u0060AIBookSummaryStore = .shared\u0060 in one and \u0060AIChapterTranslationStore = .shared\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":"Modules/Services/AI/AIBookSummaryService.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"168169302ca9660d0a8f1ad588a986aab0a9aaa94c537543d4a88a7a35684211"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Modules/Services/AI/AIChapterTranslationStore.swift:45-49 | Modules/Services/AI/AIDialogueCastStore.swift:59-63 \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":"Modules/Services/AI/AIChapterTranslationStore.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cc36232809bfc175c8eed6b7fd49d8d045f809479ebe0a53af92797c5a5db88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Modules/Services/Works/HomeDefaultsGenresMigration.swift:18-23 | Modules/Services/Works/HomeDefaultsStoreMigration.swift:22-27 \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":"Modules/Services/Works/HomeDefaultsGenresMigration.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"00206ff9a149249e8cf51ee60751a1e43d68c1edfa1972de0c9f0cba02f40510"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): Modules/Services/iCloud/ICloudSyncManager.swift:125-131 | Targets/Yuedu/SharedApp/GlobalSettings.swift:783-789 | Targets/Yuedu/SharedApp/GlobalSettings.swift:950-959 | Targets/Yuedu/SharedApp/GlobalSettings.swift:975-984 | Targets/Yuedu/SharedApp/GlobalSettings.swift:1219-1225 \u2014 there are 5 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/iCloud/ICloudSyncManager.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"405c0b7443bb4ed812bd99c3efc86410e014a1ed026ce795678f961a01c1801f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Modules/Core/EPUB/BookParsing.swift:279-283 | Modules/Core/TTS/TTSAudioProvider.swift:208-212 \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":"Modules/Core/EPUB/BookParsing.swift"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"13b687018f3fe8e1a691231c2e10faf908b75f92af7eec38065d235346dce288"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Modules/Core/MOBI/KF8Converter.swift:420-424 | Modules/Core/ReaderCore/CoreText/ReviewCardContent.swift:405-409 \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 \u0060Modules/Core/MOBI/KF8Converter.swift:420\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":"Modules/Core/MOBI/KF8Converter.swift"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"af06b458ad42f3296b61c055c1b3bafdd9679aa15559dc0de5b34a0f4b2a904f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift:736-741 | Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift:756-761 | Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift:782-787 | Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift:806-811 \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 \u0060Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift:736\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":"Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"d97badc2f3b868dceb81f84c0dfada030569cefe35b5ff17dc3fda8dabc84661"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift:743-747 | Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift:770-774 | Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift:794-798 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift:791\u0060 calls \u0060parseCoordinate\u0060, \u0060extractAttribute\u0060 and \u0060Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift:769\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":"Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"057a5072925fb88a456a5e6a7d11cfde02a44d8149f0c6f53520276902ab4aaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift:2164-2168 | Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift:2234-2238 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift"},"region":{"startLine":2164}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b7c7ff90a28aec8f8e242c1dd24644e17f5bb12cf7d41b0e6116703a5c24121"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Modules/Core/ReaderCore/Customization/ReaderBatterySVGTemplate.swift:735-739 | Modules/Core/ReaderCore/Customization/ReaderBatterySVGTemplate.swift:769-773 \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 \u0060Modules/Core/ReaderCore/Customization/ReaderBatterySVGTemplate.swift:735\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":"Modules/Core/ReaderCore/Customization/ReaderBatterySVGTemplate.swift"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"99e936efdefde7ff37c96b83412df46b70d76da4f980dadadb5aab9b129fac1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Modules/Core/ReaderCore/ReaderHTMLUtilities.swift:101-105 | Modules/Core/ReaderCore/ReaderHTMLUtilities.swift:118-122 \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 \u0060Modules/Core/ReaderCore/ReaderHTMLUtilities.swift:101\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":"Modules/Core/ReaderCore/ReaderHTMLUtilities.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad3561301a8d55eefd5a3df2e269072cb9d06eb1d6a0f68e2937fa6dbcc9e4a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift:527-531 | Modules/Features/BookSource/BookSourceFormLoginView.swift:851-855 \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":"Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"63e24247541da2888c529703347655750ce35105f3e1cd7018a05da4c2b7a492"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift:964-969 | Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift:996-1001 | Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift:1134-1139 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift"},"region":{"startLine":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ac04677051c3022c6070bd54e8789b19a036afcd56bfd2336b4c9e68e0fed2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Modules/Core/RuleEngine/RuleEngine.swift:426-430 | Modules/Core/RuleEngine/RuleEngine.swift:451-455 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Core/RuleEngine/RuleEngine.swift:426\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/RuleEngine.swift"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5826927886a2e78128abc9bbe2c9f94e3eeb39c1b49f0f07dfa8c8641436ed1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Modules/Core/TXT/TXTChapterParser.swift:1071-1076 | Modules/Core/TXT/TXTChapterParser.swift:1085-1090 \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 \u0060Modules/Core/TXT/TXTChapterParser.swift:1071\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":"Modules/Core/TXT/TXTChapterParser.swift"},"region":{"startLine":1071}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ab9c27a5d4fd76dbf61236d4dc8782a2c42fa9ebca7c4507889af2bd6a2848d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Modules/Features/BookDetail/AudiobookDetailView.swift:460-464 | Modules/Features/BookDetail/OnlineBookView.swift:523-527 \u2014 before extracting anything, compare \u0060Modules/Features/BookDetail/AudiobookDetailView.swift\u0060 and \u0060Modules/Features/BookDetail/OnlineBookView.swift\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Modules/Features/BookDetail/AudiobookDetailView.swift:460\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":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dcf47fdac544d97d754004c6b86b719b4e061ea428320dc825a38c3fd59ee2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Modules/Features/Explore/Home/HomeSectionCards.swift:974-978 | Modules/Features/Explore/Home/HomeSectionCards.swift:990-994 \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 \u0060Modules/Features/Explore/Home/HomeSectionCards.swift:974\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 \u0060spacing\u0060 to \u0060DSSpacing.xxs\u0060 in one and \u0060DSSpacing.md\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, \u0060Modules/Features/Explore/Home/HomeSectionCards.swift:996\u0060 calls \u0060HomeSectionLists\u0060, \u0060HomeSectionLayout\u0060 and \u0060Modules/Features/Explore/Home/HomeSectionCards.swift:979\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":"Modules/Features/Explore/Home/HomeSectionCards.swift"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"522cd9c6fdad20e37fe0f0c9a73bb5296ac9f39eccbe1a54632f0ca56d9ed17d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Modules/Features/Reader/CoreTextPagedView.swift:2271-2276 | Modules/Features/Reader/CoreTextPagedView.swift:2304-2309 \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 \u0060Modules/Features/Reader/CoreTextPagedView.swift:2271\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":"Modules/Features/Reader/CoreTextPagedView.swift"},"region":{"startLine":2271}}}],"partialFingerprints":{"codehealthFindingId/v1":"4872b4597119398503122b7c460b128252aaf60f579e5da99ab27da747bafca3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Modules/Features/Reader/CoreTextPagedView.swift:2857-2861 | Modules/Features/Reader/CoreTextPagedView.swift:2874-2878 \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":"Modules/Features/Reader/CoreTextPagedView.swift"},"region":{"startLine":2857}}}],"partialFingerprints":{"codehealthFindingId/v1":"43697258b36d7f8b50842c9c25b48d0b0047af87f2c2013dd17bcde9ceef916f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Modules/Services/Network/WebViewFetcher.swift:324-328 | Modules/Services/Network/WebViewFetcher.swift:663-667 | Modules/Services/RSS/RSSUtilities.swift:964-968 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Modules/Services/RSS/RSSUtilities.swift:963\u0060 calls \u0060escapeJavaScriptString\u0060 and \u0060Modules/Services/Network/WebViewFetcher.swift:662\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":"Modules/Services/Network/WebViewFetcher.swift"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"392fa22fd03ba0f62867ba5cad5357fbf1a8d58fd2ea20bf16687b56b64ccf8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): Modules/Services/RuleModules/RuleModuleValidator.swift:322-331 | Modules/Services/RuleModules/RuleModuleValidator.swift:528-537 | Modules/Services/RuleModules/RuleModuleValidator.swift:567-576 | Modules/Services/RuleModules/RuleModuleValidator.swift:621-630 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/RuleModuleValidator.swift"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c299ec87ef41641c45649232cc933aadb36c7640ab08913f780106d573d2e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Modules/Services/RuleModules/RuleModuleValidator.swift:354-358 | Modules/Services/RuleModules/RuleModuleValidator.swift:596-600 \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 \u0060Modules/Services/RuleModules/RuleModuleValidator.swift:354\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":"Modules/Services/RuleModules/RuleModuleValidator.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"92e8cb96149b9aa963c1997786643e2b8d3d3ad73b640a62dacdc794b71db2e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Modules/Services/RuleModules/RuleModuleValidator.swift:522-526 | Modules/Services/RuleModules/RuleModuleValidator.swift:560-564 \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":"Modules/Services/RuleModules/RuleModuleValidator.swift"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3112b4a460c013d6899cff3c2eb7b216284cea67a3e45948a65db00e47540a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Modules/Services/Works/ImportedMetadataCapture.swift:43-47 | Modules/Services/Works/ImportedMetadataCapture.swift:190-194 \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":"Modules/Services/Works/ImportedMetadataCapture.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"24d33c6a504e03e76fbf8f30fa866c080ca59a4779eb96cbb4c086bee9190824"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Modules/Features/Settings/TestFlightApplyView.swift:87-107 | Modules/Features/Settings/TestFlightApplyView.swift:131-151 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Settings/TestFlightApplyView.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"28bba3e01a3f4c9c9f88d2b05c8ce827532cf5f03cb37461664ebce5b316a214"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): scripts/explore_cover_fixture.py:42-44 | scripts/navigation_swipe_fixture.py:61-63 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/explore_cover_fixture.py"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"60f5fee3c67653318a9473c4ad56b9a84533a96f6fd3b50d15b50c2def052f32"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): scripts/narou_reading_fixture.py:64-69 | scripts/reader_chrome_fixture.py:62-67 | scripts/search_paging_fixture.py:63-68 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/narou_reading_fixture.py"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"a44144c535aa80dca95f4e81f76dc4b54ed44b7647c454e1f52560c5013512ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): scripts/source_category_cards_fixture.py:23-33 | scripts/work_fill_fixture.py:25-35 \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":"scripts/source_category_cards_fixture.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e1798365f885f4a26e7f4d607e3a5700fa673576859000ed8ca45f21cea123b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): scripts/trends/build_trends.py:1410-1417 | scripts/trends/build_trends.py:1520-1527 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060scripts/trends/build_trends.py:1519\u0060 calls \u0060ranked\u0060 and \u0060scripts/trends/build_trends.py:1409\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":"scripts/trends/build_trends.py"},"region":{"startLine":1410}}}],"partialFingerprints":{"codehealthFindingId/v1":"29092e431f209a8c13db5968ffc01901c88016da51ca248fa5ad783f253b3845"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): scripts/explore_cover_fixture.py:48-54 | scripts/navigation_swipe_fixture.py:83-89 \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":"scripts/explore_cover_fixture.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"9876455de2e79b6bde71c51eaa4a0100a0ceed4cfd7b8319c34f43db5d9e7334"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): scripts/module_repository_fixture.py:51-55 | scripts/source_category_cards_fixture.py:47-51 | scripts/work_fill_fixture.py:46-50 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/module_repository_fixture.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"6145d4632237188690fb604314262d967ea6d6e913497eb45376ad5fd27b9dc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): scripts/aozora_tables.py:62-66 | scripts/aozora_tables.py:95-99 \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":"scripts/aozora_tables.py"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"408806d07ac220fbb5e600a31d91f3d6a19c91f2c01309be1338cc42b27969c2"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: LegadoJSBridge (LCOM4 54): LegadoJSBridge\u0027s methods fall into 54 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 54 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":"Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"0319f4992b0028e16294345d5121319e1566556318fb54c59f1481c4d4593f3d"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: String (LCOM4 23): String\u0027s methods fall into 23 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 23 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":"Modules/Core/AI/AICharacterProfile.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"93d2da477610481c65fe553f714867a61abd641f7328ad3919afa1aa40365c36"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: GlobalSettings (LCOM4 14): GlobalSettings\u0027s methods fall into 14 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 14 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/GlobalSettings.swift"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb4a2af743ca5142309ea75312ce13da2dc93b80c84ccb5d8f49ccf309593225"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: BookSourceFetcher (LCOM4 11): BookSourceFetcher\u0027s methods fall into 11 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 11 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":"Modules/Core/BookSource/BookSourceFetcher.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"d91c1f45605bdeda524a91a4f111b958b244940aa1089f07f059c7cf3d1fbc80"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: HTMLAttributedStringBuilder (LCOM4 9): HTMLAttributedStringBuilder\u0027s methods fall into 9 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 9 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f4c49e56a00caa9c9e15385277d998418f4b1f8a49e9338c9e8be2017baf786"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ReaderViewModel (LCOM4 7): ReaderViewModel\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderViewModel.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"53bc68603351b6d77824e74b876905e90dc29db8a648b3fb26bbdda5ae215772"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Coordinator (LCOM4 6): Coordinator\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":"Modules/Features/BookSource/JsBridgeBrowserView.swift"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"c332b899f43c938a35e9c2cbec1afb4f375e6b0adfe8c2cdaad0d3e80fdc94a5"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: FixedPageZoomableScrollView (LCOM4 6): FixedPageZoomableScrollView\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":"Modules/Features/FixedPageReader/FixedPageZoomableScrollView.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b3a9856707338774fe5e4b5c307781707bfc88da93de2344730676fc445c686"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ReaderWebEmbedManager (LCOM4 5): ReaderWebEmbedManager\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderWebEmbedManager.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4bd83c24064d4f2e79d87b40cc2bd8e62fa2d0564bea4711629618015d3ac64"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ReadingStatsStore (LCOM4 5): ReadingStatsStore\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Stats/ReadingStats.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"72e675f9d37f63b2ac0ce8a84366e7264ac599af8681f68e65892fc71e1eed21"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: UIViewController (LCOM4 5): UIViewController\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/SharedUI/Extensions/UIViewController\u002BCoversFullScreen.swift"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3f05e9c6cabc00dc63418250f055fbbea8f6ddf73ddcd6013cd1834a7937eda"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SourceTurnGate (LCOM4 4): SourceTurnGate\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceSession.swift"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8172bba80e177902c3760cc449907abb409355770ce1d5df3dd2ef1b9ce291b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: BookSourceStore (LCOM4 4): BookSourceStore\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceStore.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8ba65b9be4254a56597127fda2ecbc30c065f448c6dd81766c0df99eb36a1d7"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WebViewFetcher (LCOM4 4): WebViewFetcher\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Network/WebViewFetcher.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"00992486ed8b285b92c8b16593170187359c7d77e4816cd88f1c54600c8bdd9b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: RSSNotificationManager (LCOM4 4): RSSNotificationManager\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSNotificationManager.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c3aab981294fa9480121e5e961bd31b6fb6a95f4b335b5acb000e2ec2510dc3"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SubscriptionAccountService (LCOM4 4): SubscriptionAccountService\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Subscription/SubscriptionAccountService.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d2f302e530d68d60b71f47338a5b1529b8f13b51e91121007e029974189862"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SourceWebUIDelegate (LCOM4 4): SourceWebUIDelegate\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/SharedUI/Components/SourceWebUIDelegate.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"c16bf2d1287bcf4e091a9bc2de693cc80cfcfc57cc103c8125a2ec181e432df4"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: NavigationBackEdgePanGestureRecognizer (LCOM4 4): NavigationBackEdgePanGestureRecognizer\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/SharedUI/Navigation/NavigationBackEdgePanGestureRecognizer.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"46ef9f19c4a7d3b0259a4b591f32797b39c0b5038334366f11724edadcad366d"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: GutenbergProvider (LCOM4 4): GutenbergProvider\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/Providers/OPDSProvider.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cc13b4cae2397869646ee69407c4374afa2f48df6d14980dd205889b5f6e7dd"}},{"ruleId":"D8","level":"warning","message":{"text":"Coverage not measured \u2014 Swift suite: Coverage NOT MEASURED: the Swift half could not be measured \u2014 llvm-cov\u0027s export for Packages/CLexbor carried no production source rows. Coverage is excluded from the score rather than counted as a near-zero. The named suite step is one the repository\u0027s maintainers can perform; once it passes, the real number is measured on the next scan."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"62e63e619c28f057e129f2997c965d32a457366a9ce18ca019ffb6bdfba85c99"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLargeLibraryOpensScrollsAndSwitchesPages: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/BookSourceManagementUITests.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"89d78218091d28bdbbc3e5afc7d3ed1deb021e9c1d683b738003507b7b46b7c9"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testGroupChipsLeaveWithTheTitle: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/BookshelfGroupsUITests.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"8859ad41fb2a634d4a18efa78fa8f87b1754d92638afdf0682960e1a1a8fa038"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testFirstSwitchToLibrary: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/LibraryTabSwitchProfilingUITests.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"7992853d962b4b691e94c61451f0e5216a2ac848518c099e1d46adc1ce6b469d"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLocalReadingSession: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/LocalReaderProfilingUITests.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bfdecd11dc2e3fcef7f08983a1fb930d6808befed83ead0112c3bd1b24314e4"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testOpenLinkShowsDisclaimerThenImport: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/ModuleLibraryUITests.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"49087df0a82283275cd527cb05a5f1d1ae2e84790d8457e3a1ba00086178fd2c"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testGutenbergWithoutPro: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/PublicLibraryLiveUITests.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"43a3b21921d143c07ae0e63ea564e6594c4893ba64fdfc0fde25803d7bcd5f61"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testAozoraFixtureWithImportedThemeAndPro: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/PublicLibraryLiveUITests.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"425044bf5e5d0a0256a862f678b5e1fc5dc114c719a1f8f67204b90fcdd79f6c"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testAozoraCatalogFromTheWebsite: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/PublicLibraryLiveUITests.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"3acb15eb90835ff9bc079e84d0bbe7dc095a4d5791d52932d27f506bf58128e5"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testAozoraWorkDetailOrder: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/PublicLibraryLiveUITests.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b7cce8d49eb23c1a75cdec8627d4b824ba4ce5e2d9d7b28b17a83d9a76cbe66"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testAozoraWorkKeepsItsPageAfterReading: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/PublicLibraryLiveUITests.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7ec9bcd0c6338d66eeb50f6d19fe6e8beaea452e6c9991b74b58affdb2b9a18"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testAozoraWorkListsItsChapters: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/PublicLibraryLiveUITests.swift"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9e8b396e45ad915f84a6d442264debf7b1833edc63cd901d2e89af45fa2e9c6"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testGutenbergWorkListsItsChapters: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/PublicLibraryLiveUITests.swift"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce6ffac54c9a40d3523dceddda16f897f9759076c059660a4f781140fb951607"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testCardExpansionCarouselAndAuthorWithoutPro: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/PublicLibraryStorefrontUITests.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a1c0a3bff3fdb603500baae69299800bf10a41d973c1caa6a11f57dc48bf44b"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testProThemeCard: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/PublicLibraryStorefrontUITests.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"62ea4b491351537e4f6524448008919c54ded4cd4f0aa29f0757a3de53af2a40"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testPullDownClosesRestingCard: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/PublicLibraryStorefrontUITests.swift"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"fabeb21915cceb931e3f7fc01ae20be90156fc702740b7bb846d68a93ad67a66"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testWebDAVLibraryIndexesItself: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/RemoteLibrarySettingsUITests.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"678e0eeffe7a1b1af1f41956531cdb2bbe5deaa36f9a47ab0379102c80995b8b"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testASeriesCardOpensItsSeriesPage: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/TrendsSeriesLiveUITests.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"6841c09500592e9114f35df8fc3bf563cede6ceeea87cc5fdb551794c93371b8"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testAnEnglishSeriesOpensItsBooks: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/TrendsSeriesLiveUITests.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"1298c37588606d223f6a7372da0eb371f9cfdbe6bf7fcb87bc3a13501ad35a98"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testProvisionedBookAtHalfProgress: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/AILiveBookVerificationTests.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7967f6ff536ff547ae3efb1b79cf84e8f321a663dffdd99559449244feb9c29"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testMicrosoftPlaybackPauseResumeAndStop: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/EdgeTTSLiveTests.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c17ee894754f344327fac75daed9c34018272727a5c87935e441a13a77c0eb4"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testDetailAndShelfHostsBackReaderToolbarAndRestoreItOnExit: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/FixedPageReaderBarAppearanceTests.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee0d60f1f248da183fd972b763478c2eab6a9bf6171dc825da0de1bfb04baf28"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testDownloadedPDFsUseDocumentReader: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/RemotePDFReaderTests.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"d81f20231d5d9869e0b5871d926b72ca98be554cb4e938894081c1e043c6ed56"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testTraditionalChinese: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/ASOScreenshotUITests.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"81125e523b128110bdf01f2cdd70d21ec7522aeeed3273c881a3453137f84d92"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testSimplifiedChinese: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/ASOScreenshotUITests.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcbf849830bf177c93b95a43775d20308547a796ce78c05006c50e700499c8e0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testEnglish: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/ASOScreenshotUITests.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d57117aae2f07bbe75658a017ef0dd17dfa427f7a0689250cb37a994b058e6d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testJapanese: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/ASOScreenshotUITests.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"93c80fa2ee938500e365e39a93c66f287b2ee5feb2029ad7dc37f2a44ca8c458"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testKorean: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/ASOScreenshotUITests.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce5155d29ba2088d0424ebebcd2805b116049b1506f6394498b1c49c1d090342"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFolderMenuRenamesAndUngroupsOnlyWhenConfirmed: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/BookshelfGroupsUITests.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"d94e2acf15d60acab962e95b6b70dabdd2e7891aa0ccb445a7d854b18ea9b19b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRowSwipeOpensActionsWithoutGroups: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/BookshelfRowSwipeUITests.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"676f832e62efab45afd6a9e90b10d30d5c9eb151e28c7654c9f3470f48e683ca"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testReverseFlickKeepsMomentumAcrossGeometryAndChapterInsertion: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/ContinuousScrollMomentumUITests.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6c4c9d620df98a415e5060eecf46427702bea7483a27a436cf976790996b6b5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testTXTReverseFlickKeepsMomentumWhenPreviousChapterArrives: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/ContinuousScrollMomentumUITests.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"167a50c63b886eab8203427df22587524a0bc21a7141c0af83bad27d3c3aa899"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDetailReaderLoadsAndReturns: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/DetailReaderBackSwipeUITests.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fc8b3691ed26679fe9146fa9ccc4a0f1b4d925429644ab2d4d68a3d7ba14fb3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testSearchDetailReaderLoadsAndReturns: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/DetailReaderBackSwipeUITests.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"d42fef1a3cf092be5d8db80c4945f8ba68777c598d270f579d54e67e500c4d67"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testBareBookDetailLooksFinished: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/DetailReaderBackSwipeUITests.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"907fc4ed16de31007cc36714c8b1c5d91c72c295b5b46436763b6c8e4fa34ef5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testBareBookDetailLooksFinishedWithPro: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/DetailReaderBackSwipeUITests.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba51c434cfd4e5013285b13cc20a4844a3cee3eba01c5d972ca1583f383b2571"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDetailMangaReaderLoadsAndReturns: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/DetailReaderBackSwipeUITests.swift"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"de4559fb4f7055564bb4cc3cd49377ee2365a92d83d4d3f87e1d8f60047c38da"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testSearchDetailMangaReaderLoadsAndReturns: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/DetailReaderBackSwipeUITests.swift"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"452bd7913e9ffc36a93133d1a91313422b26faea19baf23c0b8ef1f35cb76689"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testSlideTurnHidesMenu: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/DetailReaderBackSwipeUITests.swift"},"region":{"startLine":1067}}}],"partialFingerprints":{"codehealthFindingId/v1":"14e280fb812ebcbcc707bcceb99e6f7f2c2707e93a5f4cabee1da96d60153a15"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCoverTurnHidesMenu: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/DetailReaderBackSwipeUITests.swift"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a5c02f5442370d4db167527c6d49f3e69cc474ba9cb0c6f10bc5ed3187e15cf"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCurlTurnHidesMenu: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/DetailReaderBackSwipeUITests.swift"},"region":{"startLine":1069}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2fdfbe9e01c9a0a936aaba4ad9a4df5d6c5ddf08f3ef6bde3327545452c04a8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testInstantTurnHidesMenu: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/DetailReaderBackSwipeUITests.swift"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"3656a1e8c50dc66d17c233e2762222942065c4fdc6d71bf15b765aed8def8580"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testScrollHidesMenu: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/DetailReaderBackSwipeUITests.swift"},"region":{"startLine":1071}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ac7c584fed2b02128ea30ee28b5b678ed6d9d823697366cec9070e70d83bc8b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testSlideEdgeBack: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/DetailReaderBackSwipeUITests.swift"},"region":{"startLine":1519}}}],"partialFingerprints":{"codehealthFindingId/v1":"b342bceb04936cb8dde31a239ba217d7363585f6482c1028422bd0a2c33a20d7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCoverEdgeBack: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/DetailReaderBackSwipeUITests.swift"},"region":{"startLine":1520}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bb8720c9c067865d6f187e80ef3d6d9c7c3e831cb44fd3bb5e3cea5c00ef7e7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCurlEdgeBack: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/DetailReaderBackSwipeUITests.swift"},"region":{"startLine":1521}}}],"partialFingerprints":{"codehealthFindingId/v1":"dad5a6d3c429a8d58150e9f6b6186a1174e453d9c350aa8c0bec9ffe73960169"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testInstantEdgeBack: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/DetailReaderBackSwipeUITests.swift"},"region":{"startLine":1522}}}],"partialFingerprints":{"codehealthFindingId/v1":"a302d7e1e50184c20e534315902f77f11e1b78b9f17a87b2cbe41b036645b5ea"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testScrollEdgeBack: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/DetailReaderBackSwipeUITests.swift"},"region":{"startLine":1523}}}],"partialFingerprints":{"codehealthFindingId/v1":"03f721a300871b73f0cafc7b33b0acbd6151ef5ed3176834ead243e1f809ee5a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testScrollingWithManyGroups: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/LibraryScrollProfilingUITests.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"26723bec039e4dc993a5676a19bb454033b270b1f0ef2c3c1921079807261633"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testReaderInteractionSession: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/LocalReaderProfilingUITests.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4c7f39573785988a8162ad2424f40e7222e41a9d9411c29cb290e4da1ab41c7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testScreenshotsEnglish: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/LocalizedScreenshotUITests.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"4439d3e097434d2ca0b40d7dbd39684b6a872c40009d839cc596f6ff9dab6961"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testScreenshotsTraditionalChinese: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/LocalizedScreenshotUITests.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cce1c67e2809d972b66f5911cd231eaf5298bf7f80e38b5754571aab008defc"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testScreenshotsSimplifiedChinese: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/LocalizedScreenshotUITests.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f542ff8f84523ca2c4193fbe2839a16a31136fcc419768cdd379a2310abac8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testScreenshotsJapanese: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/LocalizedScreenshotUITests.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d1503b76940407f7836e70266f9ac63f13ba9ae3e60798f7b20540ed867be3b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testScreenshotsKorean: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/LocalizedScreenshotUITests.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"13ce661ee1e692c63a5b37edbc418c75e9c1cc34bee133b9e4e983031f738d13"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFormatsEnglish: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/LocalizedScreenshotUITests.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6d1c19570a6e273927850ef4e55b4cb2af071479b2342d0e783523f26b96388"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFormatsTraditionalChinese: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/LocalizedScreenshotUITests.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c9c204db766fa086502949766b717f78737d9c2f018ed3cfb1833f0310d7dfe"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFormatsSimplifiedChinese: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/LocalizedScreenshotUITests.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c30bcb82944383668f6dec784c6fe644f7306b8de661dbedff83e1edc0cc97"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testClosingABookThatMovedToTheFrontShowsItAtTheTopOfTheGrid: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/ReaderCloseRecentSortUITests.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb8704382eaf4ff7ff3f08edb767444bd12630713ef29a3855babaa834d1cdb3"}},{"ruleId":"D10","level":"error","message":{"text":"Assertions commented out: testExample: The test body contains commented-out assertion calls and no live one \u2014 it runs, verifies nothing, and still passes. Restore the assertions or delete the test; a green test that checks nothing is worse than an absent one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/yuedu_appUITests.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7ecda9615c4c81f0d3d0e0c6b61a2a4c6feb1e6e3917e9168dff1a6b6e3290b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testLaunchPerformance: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/yuedu_appUITests.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"430c347899fff95e9fb9eac03b742f415ecb64041e4e2f2db66092a538402f9f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testLaunch: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS-UI/yuedu_appUITestsLaunchTests.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2193bbf55d771ca38af07302757805d5562c4ed9d464b49188a30817616aecb"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCurrentPassageAtChapterBoundary: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/AILiveBookVerificationTests.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5a4754b0386142340588fd5652aef12e840cecad0f13631ec8ce9a5a35e97ed"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCharacterMemoryAtHalfProgress: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/AILiveBookVerificationTests.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae3e74fcbca393326c35d181247c9013041d37dae43732c3af2c33e63c52228"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: debuggerPage: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/AccessibilityStepperTests.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"89708718cea8a4e13d0fbf23bcb25c9886f2af6cc12fc2e097d37bb790ce6a34"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: dialogueBubbleWeight: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/AccessibilityStepperTests.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb40be395a46bfccd1f1382b5a1d5e7b68006b9454379c0dd8d33d3829523203"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: highlightRuleWeight: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/AccessibilityStepperTests.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8f3ca7c533140d6e5a618ea0ca198a7c7be229af22a335d4bb3b1787053787a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: chapterTitleWeight: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/AccessibilityStepperTests.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"de4af86e92a8928f1af472022646abfc166d0d3903b6d91e6721abb16b93712f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: coverage: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/AozoraTokenizerTests.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"e866b22f8e5ec5ea8c3c3ce13acc07a9eb9e8d400eb2778c82c86626e31a9695"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: smokeAudiobookChapterContent: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/AudiobookChapterSmokeTests.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d44f86f47bee492681850d69ba73f6ab554ea31f337db603988051033a28849"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: debugAudioContentJS: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/AudiobookChapterSmokeTests.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"37ed2bbe974272edcbe0f5d831094e201ae9cf94eb8556d2942b74998546f59d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: offlineAudioURLReplay: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/AudiobookChapterSmokeTests.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b291c89648f9e7e1674662b4d8be3bf08070b5b95fe46a5d6ccc201c2f860b4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: listLoopWrapsToTheFirstChapter: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/AudiobookChapterTransitionTests.swift"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbf0c9d7a28bd3b39e5b3211e7ed47bbcc02827197b46172c0169ae5edf1b256"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: interruptionPausesAndResumes: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/AudiobookChapterTransitionTests.swift"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"94e2c5e5dfddb146bc51aff8835b87e756f5d57853cb2a816bf94fe4c25ff9c1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: headphonesUnpluggedPauses: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/AudiobookChapterTransitionTests.swift"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e04205de067eae596f53419a87ac3c855af360d14487dc318e6ed5f0f964522"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: fetcherFacadeIsNotAGlobalActor: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/BookSourceHealthCheckerPerformanceTests.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"52d6742fd88f10069ff16e59fdfbc881c9601c4b74a76496a75e13a7f78f824b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: cancelledWebViewLeaseExitsQueue: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/BookSourceHealthCheckerPerformanceTests.swift"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"d701dd654c87817c3a94d8fa598d2ebd00e404aa80fddf039186ca51f0343d1a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: pageWithoutBooks: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/BookSourceSearchOutcomeTests.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b86490901c8b4399acfaa8649eefed759733947538ddf924a2c326bd235d2c3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: clearingDownloadAnnouncesCacheClear: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/BookStoreMetadataWriteBudgetTests.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6841d9f8d569ca2f9696afb728540d43d5273e5a7d7591bf9526390d6965157"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: ordinaryProseGeometryFingerprintIsStable: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/BrowserLayoutInlineFormattingContextParityTests.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e04089fe816ae08e46a6b1f149e5f3ad496652f9d3065f2680eed4b0063fc89"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: emojiZWJFamilyNeverSplits: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/BrowserLayoutLineBreakerClusterTests.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cf326939fa3017c56809c80028ae2dfa51f1ef26353b9cf50e3dae8f3c1081d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: combiningMarksNeverSeparated: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/BrowserLayoutLineBreakerClusterTests.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"d338933067e6fe62cd43187c5e6eb1a0b827e0ea645fa6afe2b809f3906ab13c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: zWJSequencesNeverSplit: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/BrowserLayoutLineBreakerClusterTests.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd14c60c69f1c74d11eb5ef1ee8ac4944ae9407db5dcc809ffea34b2d4db4f31"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: actualLayerCompositionPreservesRichTextAndCSSPaint: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/BrowserViewportFragmentTests.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf9fc46ecd4eafe777593b54b1826d169c4d52cf944e31999f3eb4cb7f6d493c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: overlappingRuleDecorationsStayUnderAllGlyphsIncludingShadows: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/BrowserViewportFragmentTests.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6ba3352421b9cd4c8681fc26ea2ef07a6a7177abf265376aa2bc8fc26acd67c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: rawRasterizerAtIntrinsicSize: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/ChapterCommentCardRasterTests.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"40e2fdff9849fc6106c7579911aa9079f9ba9832805f291de8cbb6c61e452790"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: localSelectorTimings: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/ChapterLocalSelectorsTests.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba42df161d41947ad8f330ca1cfb614fab05c510b434c1fa6eb10df6ac9299e4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: txt: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/ChapterTitleTopSpacingTests.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"109a213f53711570c3e520c95e3a12f266569502a670bb070588f3d5ac671f75"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: onlinePlain: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/ChapterTitleTopSpacingTests.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"03ca38b08ec22fbc29b7d2317ddbfb67d9ee23182ca94283c9edccd0d16f4329"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: onlineHTML: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/ChapterTitleTopSpacingTests.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"48ff2113791905ecb3602f52c8e18db6288b3b6854367ad35542819e175cef1e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: epubHeading: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/ChapterTitleTopSpacingTests.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"caab1fe232200e64fa578a853a3bc1b7029120f7446c3024088d0ba8ad64c212"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: validateDecode: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/ComicSourcesDebugTests.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"0567d08a2cbb3a9c3413a5eb1a17153a9b85e26fc149e435cae91bd3a6c7a511"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: validateSearchURLs: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/ComicSourcesDebugTests.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b1f6ee60b46e13a316db336d8e346194a30a54a03cd4c9a2e94e32c0f66309d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: validateExplore: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/ComicSourcesDebugTests.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"24c3255f6b79f092f6f54adcf4a577de5e17f01425d08ed635384f505780fe1f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: debugDiscover: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/ComicSourcesDebugTests.swift"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f2b70319fe46171b20b0cae3b63a99b201861d8e0c90ca45c09199162ded37c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: debugPipeline: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/ComicSourcesDebugTests.swift"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"81fe6e2c43ff87d96d2dcb6dcf2149d76fcee0814a42c649c145071f94aac568"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: offOnMatrix: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/CommentBubblePerformanceTests.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7cdeb8e64b31cc6fdee7cf27c3cacc5329113cf622bbb63daaf5d7a3bfd4f27"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: inspectBuildRequest: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/CommonSourcesSmokeTests.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"02c9590e6bca0e2e181b2b4d129f2e8201b81fc57d0b75c554b65262ee13fb32"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: smokeAllSources: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/CommonSourcesSmokeTests.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"86055adcecbfabf4f21fc22a42019d82b2d31595c20d905dace8eedd812ebb40"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: smokeDetailAndToc: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/CommonSourcesSmokeTests.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba750b03b1c02597ba9a91173a07a037ec3ce025e4d58550b19803cc88cbaa99"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: sweepCorpus: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/CoreTextChunkSlicerCorpusSweepTests.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"7421f87f77d535456a493ce089925b12d4656c81eabf07ecfd79575da6d03adf"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: feedDiscoveryFindsKnownFeeds: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/FeedIntegrationTests.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeb9c065f62a2a554993fc7d8f999e2646aa833c8379c04fccbc8a1846e50588"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFailedSegmentPausesAndResumeRequestsTheSameText: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/HTTPTTSQueueTests.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cd31251459e74d4192b940447034e4ecc65b3fe010fd1394cb891065dfa2cc2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testProviderCancellationDoesNotLeavePlaybackWaitingForever: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/HTTPTTSQueueTests.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfb53aea7c0eae5b8705e9fa60965a166c946303460c1122d9c1704e96fd875c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: allFailed: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/HomeListCardsTests.swift"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a5c1c1ef7eba4f8527aecd0003ef38d600be3cdbaeda59116c9f643196af1d6"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: exportAllFixtures: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/LegadoAlignmentTests.swift"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"adde17544e7a9dd749fcde7a33efa6e9a75913b0beccaea7a532391e3b831646"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: probeListMarkers: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/ListMarkerProbeTests.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"67d33dde5deae3e90028e97c9821d862988f1e01884aea33c9277074ea438849"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: invalidCredentials: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/LiveCalibreWritingTests.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"92ee6d27314aa1479c89d58684e51a353871295859038faac5ebc9b58e6bcc76"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: schemaThreeIsDiscarded: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/NextInSeriesTests.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f6509732ad586aba6e570f75ec373252aba32941d9a0b9f137a9b0aa22d6292"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: bangumi: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/OfficialModulesLiveTests.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d08a652825a60a067da9280921819bb4b76b9fcdbb4c4e2dba7c92579a4d4b9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: aniList: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/OfficialModulesLiveTests.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"f67abbeca3b42d94aab6c75422a22567cc8eed41f3f5e398c29b02d167b20882"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: theTourAloneIsReadWhileItIsUp: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/OnboardingVoiceOverTests.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"99810e7b7d03478afa78158276f69cc358cf980dedb06c92f436af7c80d7b6d9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: aCoverOverTheTourIsRead: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/OnboardingVoiceOverTests.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a7926e05c801a6f8528d506c496e15a7e7c336ac224560048b7840f50483bd"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: chapterWithoutContentRuleFails: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/OversizedResponseTests.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a75a3470ffd7a4fd2954d168f7934d55a8fbca4269a63f8b367a75ff0fa36c5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: chapterWithContentRuleFails: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/OversizedResponseTests.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7e044c242cb0e2f699f426ddfd50fccac6a021904eec295b5374fdcabbdf1b1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: localTXTUsesParagraphStyleIndent: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/PlainTextParagraphFormattingTests.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"34a20fc57b538c9a6437c84847dfcdd3409674a245a77a2b16ce9fff1371b1f0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: onlinePlainTextUsesParagraphStyleIndent: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/PlainTextParagraphFormattingTests.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"37dfd3bbb668861ded417eec206d2c74a3cd6e0cab1fa6900b4daa2867e912ed"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: storedLegacyArticleKeepsIDAndStateAcrossRefresh: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/RSSArticleLinkResolutionTests.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8b4c5857e44d13ae5ea36e898ef0c70459487cb475314fba55182f62f194d1c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: smartFeed: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/RSSToolbarVoiceOverTests.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"607d0f737d8f807d2159433e928a8085afd5cf02c5811b011cdbe7bbd95e3f63"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: feed: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/RSSToolbarVoiceOverTests.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"33a7dca540ef0af8e6b8c15a0162decc018b629e138d1c98cc3a9acb3fecc63c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: article: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/RSSToolbarVoiceOverTests.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a2f495ffcf03bfb1c8c518c67cbc5f85363abbe2636eb98ab3d09f6138fde4c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: opmlImport: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/RSSToolbarVoiceOverTests.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ab90e1557286ed3271885553864e444c9cb74e240dd527054264cad85819e6a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: legadoJSONImport: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/RSSToolbarVoiceOverTests.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"da4d027040ce8181ac7e1bc5601386d76fdd7e005a4b2a4de28e992023254356"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: addSource: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/RSSToolbarVoiceOverTests.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"98715cc3ae9f1e843a372c5567a471f0f9e82bd973f6942ac8300bae43d9130f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: addFolder: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/RSSToolbarVoiceOverTests.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"27a0f72c02d9edde7ebba8fc692ffd0d2b236807845d10cdb2124510a518ee4b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: renameFolder: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/RSSToolbarVoiceOverTests.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"18dd645ceb4e57aaeb6bc0d2bdd2aafe32e4d1942df14170b9b167c0707f1982"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: editSource: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/RSSToolbarVoiceOverTests.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef8ff1e5978dc31437ced969c92ec78483d622e5537d5d07232d465f9e80723c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: paintsRealChapter: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/ReaderDialogueBubbleRealChapterTests.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"90bbb2da14b2b5e796ffe24a300996aafdee6626e8360e6e93c4fc60d6035544"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: pagedEnginesExposeExplicitCapabilityContracts: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/ReaderEngineContractTests.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8c1eb5f3d72be9a4eb435c8502c65de59b0ff8a92470cfe7a4abcca07338677"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: scrollEngineExposesScrollCapabilityContract: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/ReaderEngineContractTests.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a87761450c3141c507074698d2f360411ef36d432400b7d3a1b58e22a2208dc"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: verticalMatchesFlowLayout: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/ReaderScrollLayoutTests.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"e704453de56b8d6838f6ebd133e48a5a996bdf435e9e90aabfc00aa835c16e8f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: verticalRTLMatchesFlowLayout: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/ReaderScrollLayoutTests.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a78cb62fa258ba00fa8242099f3d2aa327702735f71a7ce47879585d346e8f1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: failedPackageMapsToFailureState: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/ReaderViewModelChapterStateTests.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab260a3c60d2b0d8ff7400caab96d10ca120fc13c174452ff00aad322bb2cc45"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: cancellationErrorLandsOnCancelled: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/ReaderViewModelChapterStateTests.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"7783a832650248981957efe01b9618a16b2aa33fa7365328c70001e6cc00a2ce"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: refetchClearsFailureBeforeCacheProbe: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/ReaderViewModelChapterStateTests.swift"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"1457ceabd14dc9189397f2fa0aef1d822b948078c2340608b20dc1e58c06e084"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: reporterFollowsTheWindowAcrossResizes: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/ReaderViewportFollowsWindowTests.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"84ae72c825e62adbf944af42f10b8f218e8025d6c10f1854f6fc5b74b86b7c54"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: reporterReportsTheWholeWindowNotTheSafeAreaRectangle: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/ReaderViewportFollowsWindowTests.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"5287f4eed975c95da3c042197d6a49735c85c919959844d641eb67089d57b369"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: schemaTwoIsDiscarded: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/RelatedWorksTests.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"64877bd99a0aecb18465741a99d129a9e501f4ce885e29c52fbdc77262e55ca9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: loginPageDoesNotTriggerDownload: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/RemoteLibraryHTTPTests.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"122788b43fcd63e8f2f4f999588ea5c01edfd346527f8380008c45800399b09c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: malformedPartialResponse: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/RemoteLibraryHTTPTests.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c37549b09e39d7d5a0c47db82d453a74b50a011748da70de3decc35705d617a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAutomaticCachePDFUsesDocumentReader: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/RemotePDFReaderTests.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb00832be4eb86393d03e34b146aece7aac1ae87e8ee29f451c246657cbdc042"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testOfflinePDFUsesDocumentReader: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/RemotePDFReaderTests.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"06c101e626ae21b1ddc712ac5ebb311e9d023c91f4d7481a24a98deb10979991"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testLegacyRemotePDFResumesWithoutReplacingReadingRecord: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/RemotePDFReaderTests.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c2899a170a230cce88e120b08aa91f6b44d8485f2493cad4a5f11f7982ed83e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: mergeCost: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/SearchWorkMergeBenchmarkTests.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dcb32c95159eb886e9b4b6207c5bb064468f7f435010b642f95678d0b528e73"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: resolverCost: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/SearchWorkMergeBenchmarkTests.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d4bf60879ed7c807ea4062ebdd19cbe27f88ba31e729c8af53bf5dd9d6fcae9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: unifiedUpdateCost: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/SearchWorkMergeBenchmarkTests.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a6a21896bd3c02e3b81f40a77f700c807fbbdeffe2befed23bf15f9a8d4e4a2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: oversizedBodyIsRefused: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/SingleWriteHTTPTests.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"9661f7cdbd05c9346420b3866d8daf08bffd7b45086c3a620b966ce4ac89f539"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: silentServerTimesOut: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/SingleWriteHTTPTests.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dfa0ec55b394a0bb92976c99bf50536c8138e45e79b65c10b8c4e5e56c7bbd5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: oversizedImportIsRefused: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/SourceImportPlanTests.swift"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c308c4e0bd3646b99581e784f85b67135048910e5aeba87a4335194cd302679"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: nonUTF8ImportIsRefused: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/SourceImportPlanTests.swift"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee7ba7c0df024c3c3f38b42d1b164b821d4f7e8ce8af1339bfee882f4b8361fc"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: readsTitleAndSpeedOnce: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/TTSSpeechRateStepperTests.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"b04199ce50611a01e3069783fa8ce776c7a7e31d983244d0f1032592c713a206"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: positions: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/VerticalTypographyAcceptanceTests.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"25f169241c965c2dd85bb32cf5ad8ebef9f27fa7035a99ab7d8e37bc51cb24aa"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: positionsInAForeignFont: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/VerticalTypographyAcceptanceTests.swift"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb03460c5345bfcee45de0400ed15dc0e91d2260ecd581561eaeb585059f9868"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: coreTextPaginatorCacheHandlesConcurrentPreloadRequests: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/yuedu_appTests.swift"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf6f12bb5fbdda7ed65070690628372c17947178575f026326335bfa0d4937ab"}},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"33ae8c623122d6c34496074363e08958a992d0acfab4d14e3948aebe15973b7b"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Features/Reader/ReaderView.swift: Modules/Features/Reader/ReaderView.swift changed 96 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 127 in ReaderView.buildBody at line 1885. 41 of those changes were fix/bug commits, and the other 55 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/Reader/ReaderView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderView.swift"},"region":{"startLine":1885}}}],"partialFingerprints":{"codehealthFindingId/v1":"486064e927f946842612117a1f0c36ad8633defb89486d240e782d392abef1fb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift: Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift changed 42 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 54 in ModernParserBridge.wireJSEngine at line 420. 24 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"f048464f2d23461e17f5a1e89af78bb0221989c9c9d7c6d764bf736057148dad"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Services/LibraryStore/BookStore.swift: Modules/Services/LibraryStore/BookStore.swift changed 84 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in BookStore.commitRefreshedList at line 2578. 36 of those changes were fix/bug commits, and the other 48 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Services/LibraryStore/BookStore.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/BookStore.swift"},"region":{"startLine":2578}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfa190a0b0ed91da87f42c49c319f4d014bede66d800185189ac6c0ecacdb712"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift: Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift changed 34 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 58 in NodeAttributedStringRenderer.render at line 417. 16 of those changes were fix/bug commits, and the other 18 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d5a3cb24c94214c26ecbbce5bdee65ae35fc801edf4475005a1dc5e1707fc77"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift: Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 105 in HTMLAttributedStringBuilder.apply at line 1761. 3 of those changes were fix/bug commits, and the other 12 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift"},"region":{"startLine":1761}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb0a682c8646efcea4d404cd42a069e2760607208d08344220bbc779217f76f5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Targets/Yuedu/SharedApp/yuedu_appApp.swift: Targets/Yuedu/SharedApp/yuedu_appApp.swift changed 75 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in yuedu_appApp.init at line 78. 22 of those changes were fix/bug commits, and the other 53 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Targets/Yuedu/SharedApp/yuedu_appApp.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/yuedu_appApp.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"842bf34ffce9798379bb4c392011a8b7d272aea57f87e3977ac74b5930c364ce"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Targets/Yuedu/SharedApp/GlobalSettings.swift: Targets/Yuedu/SharedApp/GlobalSettings.swift changed 50 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in GlobalSettings.init at line 2121. 11 of those changes were fix/bug commits, and the other 39 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Targets/Yuedu/SharedApp/GlobalSettings.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/GlobalSettings.swift"},"region":{"startLine":2121}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9288adcc07120cc6b31d8b6454e09027f0311bc3f983eef0fb637ea543c97b6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Features/BookDetail/OnlineBookView.swift: Modules/Features/BookDetail/OnlineBookView.swift changed 40 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in OnlineBookView.loadTOC at line 761. 12 of those changes were fix/bug commits, and the other 28 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/BookDetail/OnlineBookView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/OnlineBookView.swift"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a20b48816d08b5e7f9fe01342185c1436dba84fb1b2f9576bf0e01a67c64df6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift: Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 62 in CoreTextPaginator.computeLayout at line 1055. 11 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPaginator.swift"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ec9e019d04ffc8d3eb1f5cbcc8b465880b8a2858c2145a369d6b6f8b530bfb6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Features/Bookshelf/HomeView.swift: Modules/Features/Bookshelf/HomeView.swift changed 62 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in HomeView.body at line 598. 14 of those changes were fix/bug commits, and the other 48 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/Bookshelf/HomeView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Bookshelf/HomeView.swift"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0481b7669cd6ec6e04741ae83b7e7b0544c4642f620c4d35ff7d9cbf07cd27e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Features/Reader/CoreTextPagedView.swift: Modules/Features/Reader/CoreTextPagedView.swift changed 35 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in CoreTextPageEngineView.updateUIViewController at line 201. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/Reader/CoreTextPagedView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/CoreTextPagedView.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b5326a8200eb3c940c1f1cd55432208117b3ff3f8c1b273a1d5524a75b1d759"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Features/BookDetail/WorkDetailView.swift: Modules/Features/BookDetail/WorkDetailView.swift changed 43 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in WorkDetailView.workPage at line 292. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/BookDetail/WorkDetailView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/WorkDetailView.swift"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c76f171078d771b51479e78b18d9128cb49b10659ca79a31ae63db30f1dd10"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Features/Explore/Home/ExploreHome.swift: Modules/Features/Explore/Home/ExploreHome.swift changed 63 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in ExploreHomeRoot.home at line 230. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/Explore/Home/ExploreHome.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Explore/Home/ExploreHome.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"e785ceb85a60c68e88e4d732ac8ce3c33fd971821a72c79a2422f6dc6e37e093"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Features/BookDetail/AudiobookDetailView.swift: Modules/Features/BookDetail/AudiobookDetailView.swift changed 34 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in AudiobookDetailView.body at line 233. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/BookDetail/AudiobookDetailView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"400e210a0479dbe0a48cd5ce104a6ad7396b5376c24eff6014b52cbaf1550ad0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Services/iCloud/ICloudSyncManager.swift: Modules/Services/iCloud/ICloudSyncManager.swift changed 29 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in ICloudSyncManager.performSyncPass at line 414. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Services/iCloud/ICloudSyncManager.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/iCloud/ICloudSyncManager.swift"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"f53955d453d36c5b080b3d3f0e0d795e5ed2a95015807eb4982231075ec89488"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Services/RuleModules/RuleModuleValidator.swift: Modules/Services/RuleModules/RuleModuleValidator.swift changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 67 in RuleModuleValidator.validateFields at line 69. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Services/RuleModules/RuleModuleValidator.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/RuleModuleValidator.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"71b5b8ab62e81e75ec109e055ad636725b9cddedd935138d1576837c408a0706"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Services/Online/OnlineReadingPipeline.swift: Modules/Services/Online/OnlineReadingPipeline.swift changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in ChapterFetchManager.fetchChapter at line 319. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Services/Online/OnlineReadingPipeline.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/OnlineReadingPipeline.swift"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a1d1551deb054d232ee149f93a49698fe8d20d9d052d9068654cac4a4772ebe"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageEngine.swift: Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageEngine.swift changed 32 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in BrowserLayoutPageEngine.preloadChapter at line 602. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageEngine.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageEngine.swift"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"67af4d9dbffcbeba98a985971fb443957c3d0509a1fd221a0c32ae0925a5a89b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift: Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift changed 32 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in CoreTextPageView.handleTap at line 1474. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageView.swift"},"region":{"startLine":1474}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7f1fbc67ec372cf00baaf08c7df2ce170a1627069e8948c15ba4df1291e1a68"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Features/Reader/ReaderView\u002BSourceChange.swift: Modules/Features/Reader/ReaderView\u002BSourceChange.swift changed 40 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in ReaderView.followTTSPlaybackHighlight at line 798. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/Reader/ReaderView\u002BSourceChange.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderView\u002BSourceChange.swift"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5c596e3357a02b0e532cc84394b37a3afa3bc7cd9c568a2853d0095927b1a6f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Features/Explore/Home/HomeRowView.swift: Modules/Features/Explore/Home/HomeRowView.swift changed 28 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in HomeSection.displayTitle at line 12. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/Explore/Home/HomeRowView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Explore/Home/HomeRowView.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"133e9e24f5b60f069e46763cb734b74a6b5b676687a4fea8cfc18810f76ba89e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Features/Reader/ReaderView\u002BPageBuilding.swift: Modules/Features/Reader/ReaderView\u002BPageBuilding.swift changed 30 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in ReaderView.loadContent at line 362. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/Reader/ReaderView\u002BPageBuilding.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderView\u002BPageBuilding.swift"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"83cd888e003f3afc9d0965c59dd506335bf62d96b13b7a50817d517f7ad65657"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Features/Reader/CoreTextCollectionScrollViewController.swift: Modules/Features/Reader/CoreTextCollectionScrollViewController.swift changed 29 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in CoreTextCollectionScrollViewController.commitViewportGeometry at line 1924. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/Reader/CoreTextCollectionScrollViewController.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/CoreTextCollectionScrollViewController.swift"},"region":{"startLine":1924}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a5991dabbda3d8e0f8cdc9a10bbfb6d0698ed8ffae9aeecd3e679d2203a3cbc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/ReaderCore/CoreText/CoreTextPageEngine.swift: Modules/Core/ReaderCore/CoreText/CoreTextPageEngine.swift changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in CoreTextFontRegistrationService.registerUncached at line 69. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/ReaderCore/CoreText/CoreTextPageEngine.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageEngine.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"0226e46cacd0af0d3b06d61ad64913a6c553bbe35b40b6f1fd56fb6fd0909806"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/ReaderCore/CoreText/CoreTextScrollEngine.swift: Modules/Core/ReaderCore/CoreText/CoreTextScrollEngine.swift changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in CoreTextScrollEngine.loadChapter at line 551. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/ReaderCore/CoreText/CoreTextScrollEngine.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextScrollEngine.swift"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"4140e85cf33a73db810167847ca5ef961a411d12dc9392dd3dfaa3e4d311da6c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/ReaderCore/CoreText/HTMLStyledASTRenderableNodeConverter.swift: Modules/Core/ReaderCore/CoreText/HTMLStyledASTRenderableNodeConverter.swift changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 51 in ElementNode.asRenderableNode at line 181. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/ReaderCore/CoreText/HTMLStyledASTRenderableNodeConverter.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/HTMLStyledASTRenderableNodeConverter.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"89ba4e3ff03c28e34c01d055df312cf31af23578a8fbcfed136b1e387bba9771"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Features/Search/BookSearchView.swift: Modules/Features/Search/BookSearchView.swift changed 31 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in BookSearchView.body at line 333. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/Search/BookSearchView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Search/BookSearchView.swift"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"08bd202f4e0c757b42889a08d274676842a55a7ee2e19bd73757bc42d89d8990"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/ReaderCore/CoreText/HTMLTableSupport.swift: Modules/Core/ReaderCore/CoreText/HTMLTableSupport.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 92 in HTMLTableRasterizer.renderPages at line 461. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/ReaderCore/CoreText/HTMLTableSupport.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/HTMLTableSupport.swift"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"45f0ec8faa50e8af096a91a17be65a3bbda0f407d926bacd9c2382e458b1818b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/ReaderCore/EPUBPageRenderer.swift: Modules/Core/ReaderCore/EPUBPageRenderer.swift changed 24 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in RefreshPreparation.preparePaged at line 185. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/ReaderCore/EPUBPageRenderer.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/EPUBPageRenderer.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8e8f964d319730a52cd31442b59bb34fcbef96115d8a676763588052815831e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Features/Explore/Home/HomeSectionForm.swift: Modules/Features/Explore/Home/HomeSectionForm.swift changed 24 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in HomeSectionForm.body at line 216. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/Explore/Home/HomeSectionForm.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Explore/Home/HomeSectionForm.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe6c6066af270c08a91988b05f91a4f943c6f15c44147a7f3175294b58651285"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Services/Works/HomeModel.swift: Modules/Services/Works/HomeModel.swift changed 25 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in HomeModel.build at line 128. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Services/Works/HomeModel.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/HomeModel.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8948b15faa31815ce1d95b90f8b43068487bf54ef160a40fbafb37085fa253b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/RuleEngine/ModernParser/JS/JSCoreEngine.swift: Modules/Core/RuleEngine/ModernParser/JS/JSCoreEngine.swift changed 26 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in JSCoreEngine.configureContext at line 947. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/RuleEngine/ModernParser/JS/JSCoreEngine.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/JSCoreEngine.swift"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc05b0af399583031d8ae847215c97e8da367bc335a55f106a29ae6707e477cb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Features/FixedPageReader/FixedPageReaderView.swift: Modules/Features/FixedPageReader/FixedPageReaderView.swift changed 25 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in FixedPageReaderView.readerContent at line 95. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/FixedPageReader/FixedPageReaderView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/FixedPageReader/FixedPageReaderView.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"09ac75e1785a9d06fd7124a049bd46bdac4be5d74fd3cd291266cd1eb3bfab3e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/BookSource/BookSourceFetcher\u002BChapter.swift: Modules/Core/BookSource/BookSourceFetcher\u002BChapter.swift changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in BookSourceFetcher.fetchChapterPackageInner at line 52. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/BookSource/BookSourceFetcher\u002BChapter.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceFetcher\u002BChapter.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a7f727f871bbe372883fefed20f7a4b61b098b214fdb26496fd44ddb2f9061d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Services/OPDS/OPDSClient.swift: Modules/Services/OPDS/OPDSClient.swift changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in OPDSFeedParserDelegate.parser at line 378. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Services/OPDS/OPDSClient.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/OPDS/OPDSClient.swift"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f813e71c88774a059481a12f49bdbfa5d87432dad999f09984699ff181b6aa1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift: Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift changed 23 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in LegadoJSBridge.runAjaxBatch at line 1102. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift"},"region":{"startLine":1102}}}],"partialFingerprints":{"codehealthFindingId/v1":"f489ba895c406a50dd63158792b0310d9de2861f0635d3572be8d45e544fcb1e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Services/Online/ChapterFetcher.swift: Modules/Services/Online/ChapterFetcher.swift changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in ChapterFetcher.looksLikeRejectedChapterPage at line 888. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Services/Online/ChapterFetcher.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/ChapterFetcher.swift"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7f4ee3dd6fd97b3cd85891b4fb941f1aba6d4db683741e6b844645460f079ee"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Features/Reader/BookReaderView.swift: Modules/Features/Reader/BookReaderView.swift changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in BookReaderContent.body at line 73. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/Reader/BookReaderView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/BookReaderView.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"abc348aff331b1729a06d624d30c60c695004723fd71a39b3dcbc67942e97b24"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Features/Explore/Home/HomeSectionCards.swift: Modules/Features/Explore/Home/HomeSectionCards.swift changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in HomeSectionCards.body at line 89. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/Explore/Home/HomeSectionCards.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Explore/Home/HomeSectionCards.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a13561d9560bcd3d5199c8f1b41846e310a667dbbcd5cec1fcb91bdc3fa31a9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Services/Online/DiscoverViewModel.swift: Modules/Services/Online/DiscoverViewModel.swift changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in DiscoverViewModel.reload at line 489. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Services/Online/DiscoverViewModel.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/DiscoverViewModel.swift"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"78629361f0cd90214a255f41c0b51c84c78352c65c2f95c75b4ff5e0e29b7746"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift: Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in CommentBubbleSVGRecognizer.parseSVG at line 689. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0194936fc1658f60dd3f388f1619844d1d2edfdc87c32a179897cfbfd2c388f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Features/Settings/UserDetailView.swift: Modules/Features/Settings/UserDetailView.swift changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in UserDetailView.body at line 40. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/Settings/UserDetailView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Settings/UserDetailView.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3c791fa3ed4c021b216cfd085120a7eac2ecba2d7ec46f8c48396f73f303a97"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/AI/AIAgenticAssistant\u002BQuestion.swift: Modules/Core/AI/AIAgenticAssistant\u002BQuestion.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 83 in AIAgenticAssistant.answerQuestion at line 30. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/AI/AIAgenticAssistant\u002BQuestion.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIAgenticAssistant\u002BQuestion.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"2625bc87c8181433068fe8aae9e5288606655ff4052c43879f0fc4f2c015c370"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Features/Reader/ReaderView\u002BTXTVerticalScroll.swift: Modules/Features/Reader/ReaderView\u002BTXTVerticalScroll.swift changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in ReaderView.scrollBody at line 11. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/Reader/ReaderView\u002BTXTVerticalScroll.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderView\u002BTXTVerticalScroll.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"a64f45454bebd35c8ceef40adc3c051472ae19b54a84bc0bc2d5f186df9312f2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Features/Bookshelf/OPDSImportView.swift: Modules/Features/Bookshelf/OPDSImportView.swift changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in OPDSFeedView.body at line 232. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/Bookshelf/OPDSImportView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Bookshelf/OPDSImportView.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7aede9ce03a7a651372212d365cc6471b280ccdb20d56929bfcced29559bf98"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/ReaderCore/ReaderHTMLUtilities.swift: Modules/Core/ReaderCore/ReaderHTMLUtilities.swift changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in ReaderHTMLUtilities.normalizeQidianGodReviewImage at line 1538. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/ReaderCore/ReaderHTMLUtilities.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/ReaderHTMLUtilities.swift"},"region":{"startLine":1538}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba6a138b5f7438f1ce0454cf79578d2dbcb3f96d662cf74f92f51996dd9457f8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Features/WebBrowser/BrowserView.swift: Modules/Features/WebBrowser/BrowserView.swift changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in BrowserPage.addressField at line 1053. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/WebBrowser/BrowserView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/WebBrowser/BrowserView.swift"},"region":{"startLine":1053}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad921a2023cbb4574b6ce81847c4a93e90ee6ccd0a717fda02402b6300353b61"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/BookSource/SharedImportQueueDrainer.swift: Modules/Core/BookSource/SharedImportQueueDrainer.swift changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in SharedImportPayloadClassifier.classify at line 714. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/BookSource/SharedImportQueueDrainer.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/SharedImportQueueDrainer.swift"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"38bd3f3d39aae85e1f81dfb0ab2cc807163d17c0f7fde44f91582fa7351ce92a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/BookSource/BookSourceFetcher\u002BSearch.swift: Modules/Core/BookSource/BookSourceFetcher\u002BSearch.swift changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in BookSourceFetcher.searchOutcome at line 151. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/BookSource/BookSourceFetcher\u002BSearch.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceFetcher\u002BSearch.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"94d594c2587528e2b4f8b19e63f5b878a60bb45d543b77cfc995badd09cde432"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Services/Online/SearchAggregator.swift: Modules/Services/Online/SearchAggregator.swift changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in SearchAggregator.runSearch at line 614. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Services/Online/SearchAggregator.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/SearchAggregator.swift"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f1f3105cea8bac1884d7ad0756d4fb3e4f3857db24606b67ffa3552d700e22b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Services/RuleModules/RuleModule.swift: Modules/Services/RuleModules/RuleModule.swift changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in RuleModule.localized at line 534. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Services/RuleModules/RuleModule.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/RuleModule.swift"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ec4cec6905a1bcbe03229d0519a997104abca6a9773211b286b90e0f9a09285"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/TTS/TTSAudioProvider.swift: Modules/Core/TTS/TTSAudioProvider.swift changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in CustomHTTPProvider.buildJSRequestOrThrow at line 728. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/TTS/TTSAudioProvider.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/TTSAudioProvider.swift"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8779f4e0125c369b818bf5878520bc0a899f45fcda4b4388d95a7b4ebbb7c84"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/ReaderCore/ReaderRenderRefresh.swift: Modules/Core/ReaderCore/ReaderRenderRefresh.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in ReaderRenderSettings.refreshIntent at line 147. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/ReaderCore/ReaderRenderRefresh.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/ReaderRenderRefresh.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"eab67fa0262fc1d37d32ccb54054bb67e8db489e77b3f421775880942772746e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/Aozora/AozoraDocumentParser.swift: Modules/Core/Aozora/AozoraDocumentParser.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in AozoraBlockParser.handleAnnotation at line 1075. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/Aozora/AozoraDocumentParser.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/Aozora/AozoraDocumentParser.swift"},"region":{"startLine":1075}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a02f73b4f2043b9c809ec93cf07b0984ed8272e49c3896988aae3e8a1924c65"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Targets/Yuedu/SharedApp/AppearanceThemeExtrasApplier.swift: Targets/Yuedu/SharedApp/AppearanceThemeExtrasApplier.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in GlobalSettings.writeAppearanceExtras at line 187. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Targets/Yuedu/SharedApp/AppearanceThemeExtrasApplier.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/AppearanceThemeExtrasApplier.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"13de6268db693521ffcb974a97613e2dfa9f5893790052f1e92cc75ae929c6dd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/ReaderCore/CoreText/CoreTextChunkSlicer.swift: Modules/Core/ReaderCore/CoreText/CoreTextChunkSlicer.swift changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in CoreTextChunkSlicer.slice at line 54. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/ReaderCore/CoreText/CoreTextChunkSlicer.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextChunkSlicer.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"d65b4ecbd051c8b24d722d005fe07384ad72f31e1b1864380aa6be75085ed2fa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/ReaderCore/BrowserLayout/BrowserTextInteractionController.swift: Modules/Core/ReaderCore/BrowserLayout/BrowserTextInteractionController.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in BrowserTextInteractionController.editMenuInteraction at line 211. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/ReaderCore/BrowserLayout/BrowserTextInteractionController.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/BrowserLayout/BrowserTextInteractionController.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"d319e0789f48b3bcf5eae8338d557f12f02e58d385e4c3ae3f76e8918250428c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Features/RSS/RSSFeedView.swift: Modules/Features/RSS/RSSFeedView.swift changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in RSSFeedView.body at line 230. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/RSS/RSSFeedView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/RSS/RSSFeedView.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"80f25842eb148ec7501353e80164a78b84cdbe451f2701a11c4b3df4fff3631f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Services/Offline/OfflineDownloadManager.swift: Modules/Services/Offline/OfflineDownloadManager.swift changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in OfflineDownloadManager.reconcileInterruptedDownloads at line 232. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Services/Offline/OfflineDownloadManager.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Offline/OfflineDownloadManager.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9296e8ce586446e403029255b13d698100cf74983b480fb883e9f07435aa91f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/Aozora/AozoraXHTMLWriter.swift: Modules/Core/Aozora/AozoraXHTMLWriter.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in AozoraXHTMLWriter.write at line 294. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/Aozora/AozoraXHTMLWriter.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/Aozora/AozoraXHTMLWriter.swift"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"426cf23538b5cbe2f4bce3315d95d6b97411babd1c04d3817a1e19ba7a432f72"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Features/BookSource/BookSourceFormLoginView.swift: Modules/Features/BookSource/BookSourceFormLoginView.swift changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in BookSourceFormLoginView.configureLegadoRuntime at line 812. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/BookSource/BookSourceFormLoginView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookSource/BookSourceFormLoginView.swift"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"feaaef102e587495a06f27cfc6230c2c5dd99901657f7d8b87dfcf83b0fbfa7c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/ReaderCore/Customization/AppearanceThemeExtras.swift: Modules/Core/ReaderCore/Customization/AppearanceThemeExtras.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in AppearanceThemeExtras.isEmpty at line 246. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/ReaderCore/Customization/AppearanceThemeExtras.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/AppearanceThemeExtras.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ada1e2906cc51bbdb3652a6ab367e250613a3f4011c1aec94ea88bd23efa4f0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Services/Works/WorkIndexService.swift: Modules/Services/Works/WorkIndexService.swift changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in WorkIndexService.compute at line 235. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Services/Works/WorkIndexService.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/WorkIndexService.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b427d69c664542897a7eafe9d6e4a093f2d226b3c605f3c71159b59cc2bd948"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/RuleEngine/ModernParser/ModernRuleEngine.swift: Modules/Core/RuleEngine/ModernParser/ModernRuleEngine.swift changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in ModernRuleEngine.getStringList at line 299. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/RuleEngine/ModernParser/ModernRuleEngine.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/ModernRuleEngine.swift"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"d33b60488124b8250c8d45dfcb55d63972e635db6026ef310e3046e8d39bd225"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Features/AI/AIAssistantPanelView.swift: Modules/Features/AI/AIAssistantPanelView.swift changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in AIAssistantPanelView.body at line 41. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/AI/AIAssistantPanelView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/AI/AIAssistantPanelView.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c6219f218cc8476b8d573fc1e69cd9376ee0d5dfcb56f7b4d2947618037077e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Targets/Yuedu/SharedApp/AppearanceThemeReadingApplier.swift: Targets/Yuedu/SharedApp/AppearanceThemeReadingApplier.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in GlobalSettings.writeReadingSettings at line 371. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Targets/Yuedu/SharedApp/AppearanceThemeReadingApplier.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/AppearanceThemeReadingApplier.swift"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"21e75fad2063dbec44f81489780274236db73849bbec24b4967b8f85781a7198"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Features/Reader/ReaderSettingsImportService.swift: Modules/Features/Reader/ReaderSettingsImportService.swift changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in ReaderSettingsExportSnapshot.make at line 464. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/Reader/ReaderSettingsImportService.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderSettingsImportService.swift"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca7864319c43b7e81450911da467710f6af4ca2fe908306f328d15fe4473cc18"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Features/Reader/ReaderViewportFragmentHost.swift: Modules/Features/Reader/ReaderViewportFragmentHost.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 52 in ReaderViewportFragmentHost.update at line 160. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/Reader/ReaderViewportFragmentHost.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderViewportFragmentHost.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c00bc2c094d8bf5c4ab4d258e69ea60f24141ff559aa0b72872c7a4630d4690"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/ReaderCore/Customization/ReaderStyleCSSCodec.swift: Modules/Core/ReaderCore/Customization/ReaderStyleCSSCodec.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 77 in ReaderStyleCSSCodec.apply at line 422. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/ReaderCore/Customization/ReaderStyleCSSCodec.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderStyleCSSCodec.swift"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff670fe6841157ab119ec87edf7d7d32ccf7baddd91e4bbd5df294464aa130ec"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/TXT/TXTReaderIndexMigrationService.swift: Modules/Core/TXT/TXTReaderIndexMigrationService.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in TXTReaderIndexMigrationService.complete at line 34. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/TXT/TXTReaderIndexMigrationService.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TXT/TXTReaderIndexMigrationService.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"514194100b5d8461fa304fd6ccc72b20c05bc1f329770b25ac7797556f71d454"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/ReaderCore/Customization/QiThemeImporter.swift: Modules/Core/ReaderCore/Customization/QiThemeImporter.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in QiThemeImporter.applyAppearance at line 203. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/ReaderCore/Customization/QiThemeImporter.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/QiThemeImporter.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9483b55113dbb9c01c69b7565d194ce4f3c01f4c2d2758aa4319589a09cf33a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Services/OPDS/OPDS2FeedParser.swift: Modules/Services/OPDS/OPDS2FeedParser.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in Mapper.entry at line 137. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Services/OPDS/OPDS2FeedParser.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/OPDS/OPDS2FeedParser.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"6226dd1df380a428abe1a810b6519f6fa753a9f88843398ccb7081ce2c5303d3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: scripts/trends/build_trends.py: scripts/trends/build_trends.py changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in build_trends.run at line 1494. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- scripts/trends/build_trends.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/trends/build_trends.py"},"region":{"startLine":1494}}}],"partialFingerprints":{"codehealthFindingId/v1":"12bbc2e3c130305a410b110640d784e6839736d39d345b75155791b306ab3e58"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/RuleEngine/ModernParser/JS/LegadoRhinoNormalizer.swift: Modules/Core/RuleEngine/ModernParser/JS/LegadoRhinoNormalizer.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 69 in LegadoRhinoNormalizer.normalize at line 40. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/RuleEngine/ModernParser/JS/LegadoRhinoNormalizer.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoRhinoNormalizer.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"c059c52554cb1555eb941778d03ea9953832363becd0098d047d08d72def3271"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/ReaderCore/CoreText/CoreTextChunk.swift: Modules/Core/ReaderCore/CoreText/CoreTextChunk.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in CoreTextChunk.stringIndex at line 370. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/ReaderCore/CoreText/CoreTextChunk.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextChunk.swift"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"dab89982acee16c9a66dfe9cd0dd8be686a55722cb5714374ee0978cc877109e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Features/Library/Modules/RuleModuleImportSheet.swift: Modules/Features/Library/Modules/RuleModuleImportSheet.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in RuleModuleManifestSections.body at line 151. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/Library/Modules/RuleModuleImportSheet.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Library/Modules/RuleModuleImportSheet.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fa1be455fc717ef43564917394d3d6bf58998c6b74e7b33e972ebfc0438c779"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Services/LibraryStore/LocalBookImportService.swift: Modules/Services/LibraryStore/LocalBookImportService.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in LocalBookImportService.importBook at line 15. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Services/LibraryStore/LocalBookImportService.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/LocalBookImportService.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c6e04ecc2ffe4b59ebed46b157fa71ae4dcd0a6693e410f816fd67b2295f0a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Services/Works/ImportedMetadataCapture.swift: Modules/Services/Works/ImportedMetadataCapture.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in ImportedMetadataCapture.classify at line 142. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Services/Works/ImportedMetadataCapture.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/ImportedMetadataCapture.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2a8485e8c592f49796ffb50c9f999003091b7472e99f38d1e313d66c7888dc4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/AI/AICharacterMemoryExtraction.swift: Modules/Core/AI/AICharacterMemoryExtraction.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in AIMemoryExtraction.validate at line 128. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/AI/AICharacterMemoryExtraction.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AICharacterMemoryExtraction.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"2918f89158b14ae812e1e1071ef8dc367e8179d2ba1e1b281ebfa91e0b521d3e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/TXT/TXTChapterParser.swift: Modules/Core/TXT/TXTChapterParser.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in TXTChapterParser.detectMappedTitleMatches at line 538. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/TXT/TXTChapterParser.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TXT/TXTChapterParser.swift"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"adf8e6a4b1dc1d5245865ff08a5430861a48154cfcbc15dafc3d7fddf9e6c673"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Features/AI/AICharacterMemoryView.swift: Modules/Features/AI/AICharacterMemoryView.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in AICharacterMemoryView.body at line 58. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/AI/AICharacterMemoryView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/AI/AICharacterMemoryView.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdf75e2b3ec696c5417556476602393476dae28510b25ef8cc9f7e15d478d23a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/BookSource/BookSourceURLRendering.swift: Modules/Core/BookSource/BookSourceURLRendering.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in BookSource.legacySearchURLParts at line 107. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/BookSource/BookSourceURLRendering.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceURLRendering.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a16253b0b51c9eda4447603dfffccee564b2c7f1ab8fa82b8e7525662909de8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Features/Reader/Video/VideoPlayerView.swift: Modules/Features/Reader/Video/VideoPlayerView.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in VideoPlayerView.body at line 46. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/Reader/Video/VideoPlayerView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/Video/VideoPlayerView.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9c59a87ce3aebdffcb80e2502b49699ccb30e30ccce66a241a81b184561f231"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Services/Online/BookOriginSearchService.swift: Modules/Services/Online/BookOriginSearchService.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in BookOriginSearchService.stream at line 52. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Services/Online/BookOriginSearchService.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/BookOriginSearchService.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"81e4361b2432640123ba05b8a0fc00315b0fd7f471f0387a88c7df80b79b1c1b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/ReaderCore/CoreText/CoreTextChunkAttachmentExtractor.swift: Modules/Core/ReaderCore/CoreText/CoreTextChunkAttachmentExtractor.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in CoreTextChunkAttachmentExtractor.extract at line 11. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/ReaderCore/CoreText/CoreTextChunkAttachmentExtractor.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextChunkAttachmentExtractor.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c7a97597978b1a0fdcd7b3cc937063d09444179f63cc4f436f9df7242cdaad9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Features/Bookshelf/CalibreWirelessView.swift: Modules/Features/Bookshelf/CalibreWirelessView.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in CalibreWirelessView.body at line 16. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/Bookshelf/CalibreWirelessView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Bookshelf/CalibreWirelessView.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"14bf2af94dae14ae88227c9b26895ce4c897ebde395d9c28ece01f0dab1754af"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Services/AI/AIBookSummaryService.swift: Modules/Services/AI/AIBookSummaryService.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in AIBookSummaryService.run at line 120. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Services/AI/AIBookSummaryService.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/AI/AIBookSummaryService.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"09b46fe8f94a2d1699b2f094202c092e47d2d93cda3a5ae16b781fc908307195"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/ReaderCore/CoreText/ChapterTitleAttributedBuilder.swift: Modules/Core/ReaderCore/CoreText/ChapterTitleAttributedBuilder.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in ChapterTitleAttributedBuilder.append at line 29. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/ReaderCore/CoreText/ChapterTitleAttributedBuilder.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ChapterTitleAttributedBuilder.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5a0a473e019974114453dae6b7fc1731463adf88cd3a5e5dde08b76500069ea"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Features/Reader/BrowserScrollTileCell.swift: Modules/Features/Reader/BrowserScrollTileCell.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in BrowserScrollTileCell.configure at line 174. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/Reader/BrowserScrollTileCell.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/BrowserScrollTileCell.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cc94c09103d3194493bf094d71441ae3b48726fa3e9fd8f4f4048729e849e0b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Services/LibraryStore/ShelfWorkService.swift: Modules/Services/LibraryStore/ShelfWorkService.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in ShelfWorkMerger.absorb at line 231. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Services/LibraryStore/ShelfWorkService.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/ShelfWorkService.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"e46e7e1c9d68dc013444dadf0249fde7b744b158a1149ed82f18c0f15e889d02"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Features/Bookshelf/ImportedBookPresentation.swift: Modules/Features/Bookshelf/ImportedBookPresentation.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in ImportedBookPresentationController.presentPending at line 110. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/Bookshelf/ImportedBookPresentation.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Bookshelf/ImportedBookPresentation.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"7791e86e3d2f026b5746211d044f55f039e0283a980f59074e2bc7ae7dbf167c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/Replace/ReplaceRuleEngine.swift: Modules/Core/Replace/ReplaceRuleEngine.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in ReplaceRuleEngine.edits at line 216. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/Replace/ReplaceRuleEngine.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/Replace/ReplaceRuleEngine.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"25b00a634919951ade4eb988976ecf135f73fbbf1d5442bc7a67b47ae35d4ba7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Services/PublicLibrary/AozoraLibraryDownloadService.swift: Modules/Services/PublicLibrary/AozoraLibraryDownloadService.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in AozoraLibraryDownloadService.importWork at line 65. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Services/PublicLibrary/AozoraLibraryDownloadService.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/PublicLibrary/AozoraLibraryDownloadService.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd8c3d1236f56c6c988bafc9a0cbb8bd9e068b3fbede456ac5d7aae9fed1535a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/ReaderCore/CoreText/ChapterDocument.swift: Modules/Core/ReaderCore/CoreText/ChapterDocument.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in ChapterDocumentStore.document at line 97. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/ReaderCore/CoreText/ChapterDocument.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ChapterDocument.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"85ee8ee52fc5dd1bb03460a35fef82383506e790d5134faf7c5a2b5a0eff9e27"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/ReaderCore/Translation/ReaderTranslationLayout.swift: Modules/Core/ReaderCore/Translation/ReaderTranslationLayout.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in ReaderTranslationLayout.splice at line 142. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/ReaderCore/Translation/ReaderTranslationLayout.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Translation/ReaderTranslationLayout.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"b02c22356a407b93fc889078167b30d2770cb1a940d227b5b73d4af7c975d74a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/AI/AIAgenticAssistant.swift: Modules/Core/AI/AIAgenticAssistant.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in AIAgenticAssistant.run at line 80. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/AI/AIAgenticAssistant.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIAgenticAssistant.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbe5ae85f5102e5d3d0c97cd4548dd6f8a2f2665f8683b2526542331da9ff07b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/RuleEngine/ModernParser/URL/AnalyzeUrl.swift: Modules/Core/RuleEngine/ModernParser/URL/AnalyzeUrl.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in AnalyzeUrl.parseOptions at line 550. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/RuleEngine/ModernParser/URL/AnalyzeUrl.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/URL/AnalyzeUrl.swift"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"f22a5abe7a9b61e579e64a15b43f5a46491fbdd47b3f7f73beaa1cdf0281a91c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Services/Works/HomeListCards.swift: Modules/Services/Works/HomeListCards.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in CollectionSummary.cards at line 241. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Services/Works/HomeListCards.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/HomeListCards.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6acf9779937141c11ba5d1f595fd6254637e72fab87fe81ee2e0c75cf392d86"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Services/RSS/RSSFetcher.swift: Modules/Services/RSS/RSSFetcher.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in RSSFetcher.fetchItems at line 1133. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Services/RSS/RSSFetcher.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSFetcher.swift"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"7828353dc9c5c63e3e241c89b5bd34bbf74a996a891ae1ae31fb18d4aa736c85"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Services/Network/HTMLResponseDecoder.swift: Modules/Services/Network/HTMLResponseDecoder.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in HTMLResponseDecoder.decode at line 16. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Services/Network/HTMLResponseDecoder.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Network/HTMLResponseDecoder.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"255f5fc19b2e60f8f9f7acf41d02ca6c3d768458d30046c00565f84ed38f0ffe"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Features/Bookshelf/RemoteLibraryManagementView.swift: Modules/Features/Bookshelf/RemoteLibraryManagementView.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in RemoteLibraryManagementView.body at line 19. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/Bookshelf/RemoteLibraryManagementView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Bookshelf/RemoteLibraryManagementView.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"8968f0ffd3db43090af159d1765ba25a09ead54448dc81ce3b399d322abde822"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Core/EPUB/CalibreCFIMapper.swift: Modules/Core/EPUB/CalibreCFIMapper.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in CalibreCFIMapper.match at line 36. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/EPUB/CalibreCFIMapper.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/CalibreCFIMapper.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"e016e9ebf961d032623606a7ebeffab83e1d600606c1f66f65106da369b69968"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Modules/Features/Reader/CoreTextPaintFragment.swift: Modules/Features/Reader/CoreTextPaintFragment.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in CoreTextPaintFragment.make at line 17. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/Reader/CoreTextPaintFragment.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/CoreTextPaintFragment.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"05afb793677de74ca62e53c058e769dfd82636acd2cd4e7175462ec537a66232"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: functions/src/feedbackTriage.ts: functions/src/feedbackTriage.ts changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in feedbackTriage.onFeedbackThreadCreated at line 65. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- functions/src/feedbackTriage.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"functions/src/feedbackTriage.ts"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cf16f07a848a7a3f03541d732b4e2a6544c52df3a6269ffc6d005f513a9d7c5"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Modules/Features/RSS/RSSListView.swift: Modules/Features/RSS/RSSListView.swift changed 21 times in last 90 days and 12 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is AddRSSSourceSheet.addSource at line 1592), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(rss): VoiceOver names the sheets\u0027 toolbar buttons\u201D; \u201Cfix(rss): RSS \u8A02\u95B1 stays responsive on iOS 17 once a feed has been opened\u201D; \u201Cfix(rss): RSS home rows\u0027 swipe actions open, and VoiceOver reaches them on every iOS\u201D; \u201Cfix(theme): swipe actions fill with the system blue, not the accent\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/RSS/RSSListView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/RSS/RSSListView.swift"},"region":{"startLine":1592}}}],"partialFingerprints":{"codehealthFindingId/v1":"69483c747d32fe2be1231703d6a7e575b4f664de1552366b15a101ad11a4c29a"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Modules/Features/Reader/ReaderTOCViews.swift: Modules/Features/Reader/ReaderTOCViews.swift changed 15 times in last 90 days and 8 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is ReaderTOCView.chapterRow at line 476), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(reader): filter the \u76EE\u9304 once per body, not once per row\u201D; \u201Crevert(reader): remove the \u76EE\u9304 section index (FB-160)\u201D; \u201Cfix(reader): \u76EE\u9304 scrolls to the current chapter as it appears, without a 0.1 s wait\u201D; \u201Cfix(reader): the table of contents keeps its search field on screen (FB-46)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/Reader/ReaderTOCViews.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderTOCViews.swift"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e0032f013008e6521e2f639d0a87a5eb3b4daa7dcb6d9eec7a5d43dad6a1b34"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Modules/Features/FixedPageReader/Webtoon/FixedPageWebtoonViewController.swift: Modules/Features/FixedPageReader/Webtoon/FixedPageWebtoonViewController.swift changed 15 times in last 90 days and 8 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is FixedPageWebtoonViewController.scrollViewDidScroll at line 555), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(reader): a status bar tap no longer scrolls a webtoon or a scrolling book back to its start (FB-178)\u201D; \u201Cfix(comic): a strip closed mid-fling stops its frame-gap probe (FB-133)\u201D; \u201Cfix(reader): put webtoon page edges on the pixel grid (FB-127)\u201D; \u201Cfix(comic): webtoon pages keep their images across chapter loads (FB-114)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/FixedPageReader/Webtoon/FixedPageWebtoonViewController.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/FixedPageReader/Webtoon/FixedPageWebtoonViewController.swift"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"41a3527a0234478b7c949d7911645b5a28d2b97faaf39067d661a7f69f51a3ca"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Modules/Core/BookSource/BookSourceFetcher\u002BTOC.swift: Modules/Core/BookSource/BookSourceFetcher\u002BTOC.swift changed 12 times in last 90 days and 7 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 15 (its worst body is BookSourceFetcher.fetchTOCPackage at line 113), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(source-check): audio sources read their chapter URL, and ~ selectors stop being cubic\u201D; \u201Cfix(sources): a book\u0027s requests are built with its own variables\u201D; \u201Cfix(toc): a following page\u0027s HTTP error adds no chapters, as in Legado\u201D; \u201Cfix(toc): read nextTocUrl as a URL list, as Legado does\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/BookSource/BookSourceFetcher\u002BTOC.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceFetcher\u002BTOC.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"c96f91ea3d0adff5bfcf4dc97adb40f05e63f178fe741b3774b73d1433e1b9b5"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Modules/Features/Reader/ReaderBatterySVGImportView.swift: Modules/Features/Reader/ReaderBatterySVGImportView.swift changed 10 times in last 90 days and 7 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is ReaderBatterySVGStatePreviewStrip.loadPreviews at line 554), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(typography): empty-state actions and search results follow the global font (#41)\u201D; \u201Cfix(typography): empty-state descriptions follow the global font; titles match per OS (#41)\u201D; \u201Cfix(theme): swipe actions fill with the system blue, not the accent\u201D; \u201Cfix(theme): UIKit draws DSColor\u0027s dark colours on iOS 17\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/Reader/ReaderBatterySVGImportView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderBatterySVGImportView.swift"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"7be4305daca9a00532f1b83f25166bff780025ec3389ec3b5e7cd70e0f5c1ce7"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Modules/Features/Settings/DownloadManagementView.swift: Modules/Features/Settings/DownloadManagementView.swift changed 11 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 7 (its worst body is DownloadManagementView.activeDownloadsSection at line 121), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(source): the charset URL option decodes every response, as in Legado\u201D; \u201Cfix(l10n): format counts as whole sentences, not fragments\u201D; \u201Cfix(library): keep each book\u0027s table of contents in its own file, as legado does\u201D; \u201Cfix(reader): fetch online chapter illustrations with the book source\u0027s headers\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/Settings/DownloadManagementView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Settings/DownloadManagementView.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"c089eb91c6e85aebeb49d163ac3ad8be4d7ad379c100c99746d39552fb547b64"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Modules/Features/RSS/RSSArticleReaderView.swift: Modules/Features/RSS/RSSArticleReaderView.swift changed 11 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is RSSArticleReaderView.loadFullTextIfNeeded at line 220), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(typography): empty-state descriptions follow the global font; titles match per OS (#41)\u201D; \u201Cfix(rss): VoiceOver names the feeds\u0027 filter menu and the article\u0027s \u22EF\u201D; \u201Cfix(rss): route every RSS link before it can reach SFSafariViewController\u201D; \u201Crevert(navigation): each tab owns its stack again; pages hide the tab bar themselves\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/RSS/RSSArticleReaderView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/RSS/RSSArticleReaderView.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"16fe0e02fda14901a8c7b06f66708682509ec9e80ca994a2df871cb1de8e6c5f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Modules/SharedUI/Adaptive/RootTabBarVisibility.swift: Modules/SharedUI/Adaptive/RootTabBarVisibility.swift changed 8 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 3 (its worst body is RootTabBarVisibility.setRequest at line 21), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(explore): \u63A2\u7D22\u0027s readers are immersive on iOS 17, as \u66F8\u67B6\u0027s are (FB-100)\u201D; \u201Cfix(tabbar): keep the tab bar on pushed pages and sheets; stop minimizing it\u201D; \u201Cfix(tabs): leave the bottom tab bar up under a sheet floating clear of it\u201D; \u201Crevert(tabs): hide the bottom tab bar under a popover again\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/SharedUI/Adaptive/RootTabBarVisibility.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/SharedUI/Adaptive/RootTabBarVisibility.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"98aebbed2ece25aa1fd98043a1fac5948e739309a3e56353da9349f6236e85a5"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Modules/Core/ReaderCore/CoreText/PageRenderingProvider.swift: Modules/Core/ReaderCore/CoreText/PageRenderingProvider.swift changed 8 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 3 (its worst body is StablePositionResolving.chapterPagination at line 182), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(reader): closing a reader stops laying out its chapters\u201D; \u201Cfix(reader): turn pages without dropping frames when tapping or swiping\u201D; \u201Cfix(reader): optimize chapter rendering and restore legacy EPUB routing\u201D; \u201Cfix(reader): make a chapter that never arrives say why\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/ReaderCore/CoreText/PageRenderingProvider.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/PageRenderingProvider.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8fd8c2cfa27fd5eb10f7487f46ed01b2b4e2ef87b07c8b64e9b26db4ed34cec"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Modules/Features/Reader/ReaderBookmarkListView.swift: Modules/Features/Reader/ReaderBookmarkListView.swift changed 8 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is BookmarkListSection.body at line 179), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(reader): YueduCoreText 0.11, an illustration page has a place of its own\u201D; \u201Cfix(typography): empty-state descriptions follow the global font; titles match per OS (#41)\u201D; \u201Cfix(l10n): format counts as whole sentences, not fragments\u201D; \u201Cfix(motion): pace tapped page turns, settle drags, honour Reduce Motion\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/Reader/ReaderBookmarkListView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderBookmarkListView.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc84cdc6bf26380c47c5b7d152c10d25f0fb84c6f671ad65e013389ade174f44"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Modules/Features/Feedback/FeedbackListView.swift: Modules/Features/Feedback/FeedbackListView.swift changed 5 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 6 (its worst body is FeedbackListView.observe at line 142), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(ui): confirmation dialogs hang off the control that opens them (FB-19)\u201D; \u201Cfix(typography): empty-state actions and search results follow the global font (#41)\u201D; \u201Cfix(typography): empty-state descriptions follow the global font; titles match per OS (#41)\u201D; \u201Cfix(feedback): \u6211\u7684\u56DE\u994B\u0027s groups are a bottom tab bar with icons on iPad too\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/Feedback/FeedbackListView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Feedback/FeedbackListView.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcc391446750355b3898f5fbf85651ff26e8b972a31416fce37fdebfd3d16bb1"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Modules/Features/BookSource/SourceBrowserPresenter.swift: Modules/Features/BookSource/SourceBrowserPresenter.swift changed 7 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is SourceBrowserPresenter.presentNextIfIdle at line 128), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(ui): cover full screen without taking the content out of the window\u201D; \u201Cfix(reader): keep the reader hearing its scene under an image preview\u201D; \u201Cfix(video): \u5927\u7070\u72FC, \u4E03\u732B-OE and \u4E66\u5C71 \u77ED\u5267 open as videos\u201D; \u201Cfix(video): aggregate-source videos play in the app\u0027s player, never a page\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/BookSource/SourceBrowserPresenter.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookSource/SourceBrowserPresenter.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac918f051b3689027b4ee65587cfbc63729a0a574f7092f5b118881390adf175"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Modules/Features/FixedPageReader/Webtoon/FixedPageWebtoonCell.swift: Modules/Features/FixedPageReader/Webtoon/FixedPageWebtoonCell.swift changed 7 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 7 (its worst body is FixedPageWebtoonCell.analyzeLiveText at line 150), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(comic): webtoon pages keep their images across chapter loads (FB-114)\u201D; \u201Cfix(comic): decode source images and keep webtoon panels in place\u201D; \u201Cfix: improve reader controls, TXT decoding and page rendering\u201D; \u201Cfix(manga): pinch zoom in paged and webtoon modes; fit whole pages; no repeated webtoon chapters\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/FixedPageReader/Webtoon/FixedPageWebtoonCell.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/FixedPageReader/Webtoon/FixedPageWebtoonCell.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4c421f40ad7691edcfc1b805755c597f099a4d8112a86b9fda2001839aa7856"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Modules/Features/FixedPageReader/Webtoon/FixedPageWebtoonLayout.swift: Modules/Features/FixedPageReader/Webtoon/FixedPageWebtoonLayout.swift changed 7 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is FixedPageWebtoonLayout.scrollAnchor at line 100), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(reader): put webtoon page edges on the pixel grid (FB-127)\u201D; \u201Cfix(comic): webtoon pages keep their images across chapter loads (FB-114)\u201D; \u201Cfix(comic): decode source images and keep webtoon panels in place\u201D; \u201Cfix(manga): pinch zoom in paged and webtoon modes; fit whole pages; no repeated webtoon chapters\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/FixedPageReader/Webtoon/FixedPageWebtoonLayout.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/FixedPageReader/Webtoon/FixedPageWebtoonLayout.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"10808e33d28de02a273cc7ce7ee735a1b82da883848404be7c2be5f455d9083b"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Modules/Features/AI/AIBookshelfOrganizerView.swift: Modules/Features/AI/AIBookshelfOrganizerView.swift changed 7 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is AIBookshelfOrganizerView.body at line 23), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(typography): empty-state actions and search results follow the global font (#41)\u201D; \u201Cfix(typography): empty-state descriptions follow the global font; titles match per OS (#41)\u201D; \u201Cfix(theme): prominent buttons stay legible on a near-white accent\u201D; \u201Cfix: stabilize reader navigation, parsing, and background refresh\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/AI/AIBookshelfOrganizerView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/AI/AIBookshelfOrganizerView.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"c63ce6478d97ea6f3a8b5b992c95a2c7c382ce48f14c74806a6655f0e871c437"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Modules/Services/Diagnostics/DiagnosticReportBundle.swift: Modules/Services/Diagnostics/DiagnosticReportBundle.swift changed 6 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is DiagnosticReportBundle.render at line 136), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(reader): optimize chapter rendering and restore legacy EPUB routing\u201D; \u201Cfix(reader): make source review cards a full-width banner at reading size\u201D; \u201Cfix(reader): lock the stylesheet cache, and stop exports arriving as pasted text\u201D; \u201Cfix(diagnostics): catch the no-op page turn, stop the false positives, quiet the log\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Services/Diagnostics/DiagnosticReportBundle.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Diagnostics/DiagnosticReportBundle.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7171653bb67c368a02d962665e118421d8cf59ff165ded7f3fe7554567d9dbf"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Modules/Services/LibraryStore/BookChapterStore.swift: Modules/Services/LibraryStore/BookChapterStore.swift changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 7 (its worst body is BookChapterStore.flush at line 136), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(library): tally every refresh-path disk writer and check for new chapters every 30 min\u201D; \u201Cfix(library): an unchanged table of contents is not written again\u201D; \u201Cfix: clear the Swift 6 concurrency warnings\u201D; \u201Cfix(library): never wait for the shelf write queue on the main thread\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Services/LibraryStore/BookChapterStore.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/BookChapterStore.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"880abd00c1127974d6a64b9770b5a690df8e57fe9e924d4f82e57b5d9e7021c4"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Modules/Features/Library/Modules/AIRecommendationModuleView.swift: Modules/Features/Library/Modules/AIRecommendationModuleView.swift changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 6 (its worst body is AIRecommendationModuleView.lastRunSection at line 76), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(library): let AI \u63A8\u85A6, Gutenberg and \u9752\u7A7A\u6587\u5EAB leave \u8CC7\u6E90\u5EAB\u0027s \u6A21\u7D44\u201D; \u201Cfix(typography): empty-state actions and search results follow the global font (#41)\u201D; \u201Cfix(typography): empty-state descriptions follow the global font; titles match per OS (#41)\u201D; \u201Cfix(theme): prominent buttons stay legible on a near-white accent\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/Library/Modules/AIRecommendationModuleView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Library/Modules/AIRecommendationModuleView.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"72ad8bcb53178ea20bc78afb88476dbb6833bcb2d46fe9a24ae1d5c79d1f9869"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Modules/SharedUI/Navigation/NavigationBackSwipeReservation.swift: Modules/SharedUI/Navigation/NavigationBackSwipeReservation.swift changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is NavigationBackSwipeReservationController.attach at line 131), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(nav): only iOS 17.0 pops a reader\u0027s swipe without the interactive transition (FB-204)\u201D; \u201Cfix(nav): a swipe out of a reader no longer freezes every later transition on iOS 17.0 (FB-204)\u201D; \u201Cfix(a11y): VoiceOver reaches the bottom bar of a reader opened from a detail page\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/SharedUI/Navigation/NavigationBackSwipeReservation.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/SharedUI/Navigation/NavigationBackSwipeReservation.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8176c1e1019ea406f97925b42a5fc4944254a44418922abdba2d178fdafb7a2"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Modules/Features/Library/Modules/RuleModuleRepositoryView.swift: Modules/Features/Library/Modules/RuleModuleRepositoryView.swift changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is RuleModuleRepositoryView.toolbar at line 205), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(ui): confirmation dialogs hang off the control that opens them (FB-19)\u201D; \u201Cfix(typography): empty-state actions and search results follow the global font (#41)\u201D; \u201Cfix(typography): empty-state descriptions follow the global font; titles match per OS (#41)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/Library/Modules/RuleModuleRepositoryView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Library/Modules/RuleModuleRepositoryView.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a863ce1692d26192fe5474dc60ce9224dd770bf999da50eb29a3c0b6ae37b4d"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Modules/Features/Reader/ReaderViewportReporting.swift: Modules/Features/Reader/ReaderViewportReporting.swift changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is ReaderWindowObstructions.inset at line 172), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(reader): opening the menu on a folded iPhone Duo no longer relays out the book\u201D; \u201Cfix(reader): read reserved regions over the whole window, not the safe-area rect\u201D; \u201Cfix(reader): side margins follow the reader\u0027s window, not the tab that pushed it\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/Reader/ReaderViewportReporting.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderViewportReporting.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"000237b293d219e295a685479fded1e78f12a23b7c44b997ba3d1c4f4b52bf00"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Modules/Features/Explore/Home/HomeConfigurationPrompts.swift: Modules/Features/Explore/Home/HomeConfigurationPrompts.swift changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 4 (its worst body is HomeConfigurationPrompts.body at line 60), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(ui): confirmation dialogs hang off the control that opens them (FB-19)\u201D; \u201Cfix(explore): \u9810\u8A2D\u914D\u7F6E makes the app\u0027s defaults; \u7A7A\u767D\u6A21\u677F is back\u201D; \u201Cfix(explore): a \u9996\u9801\u914D\u7F6E picked opens at the home\u0027s top; no built-in \u7A7A\u767D\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/Explore/Home/HomeConfigurationPrompts.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Explore/Home/HomeConfigurationPrompts.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"21320b4b28f0711eb5264e0aa9e3eb354ddb9d272df3ea307fd47cdd0b87a63c"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Modules/Features/AI/AIRelationshipMapView.swift: Modules/Features/AI/AIRelationshipMapView.swift changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 6 (its worst body is AIRelationshipMapView.body at line 35), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(typography): empty-state actions and search results follow the global font (#41)\u201D; \u201Cfix(typography): empty-state descriptions follow the global font; titles match per OS (#41)\u201D; \u201Cfix(theme): text on the accent turns black where the accent is too light for white (feedback #77)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/AI/AIRelationshipMapView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/AI/AIRelationshipMapView.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"521918daa75db9c0fb8c5252e191fe7d8b38161cf075d89d0ebcc98b30ef2b7e"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Modules/SharedUI/Components/SettingsRows.swift: Modules/SharedUI/Components/SettingsRows.swift changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 4 (its worst body is SettingsRowLabel.foreground at line 35), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(typography): empty-state actions and search results follow the global font (#41)\u201D; \u201Cfix(typography): empty-state descriptions follow the global font; titles match per OS (#41)\u201D; \u201Cfix(typography): TOC titles and empty-state titles follow the global font (#41)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/SharedUI/Components/SettingsRows.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/SharedUI/Components/SettingsRows.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"75a1b7751eeb641812d47b61ed65dcae87df32f4123e19d9e9a2181243478354"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Modules/Features/Reader/ReaderHostingController.swift: Modules/Features/Reader/ReaderHostingController.swift changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is ReaderHostingController.viewWillDisappear at line 75), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Crevert(navigation): each tab owns its stack again; pages hide the tab bar themselves\u201D; \u201Cfix(tabs): leave the bottom tab bar up under a sheet floating clear of it\u201D; \u201Cfix: stabilize reader navigation, parsing, and background refresh\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/Reader/ReaderHostingController.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderHostingController.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"29c338eab36d95c08875266fe451d17bcc1ea18ae048c3aa31bbbe6e2a4ac0bf"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Modules/Core/ReaderCore/CoreText/FixedLayoutPageEngine.swift: Modules/Core/ReaderCore/CoreText/FixedLayoutPageEngine.swift changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 5 (its worst body is FixedLayoutPageEngine.warmUpNext at line 122), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: resolve Swift warnings without changing reader behavior\u201D; \u201Cfix(reader): make a chapter that never arrives say why\u201D; \u201Cfix(sync,tts): keep the 3 MB source write off the main thread, and name what the log could not\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/ReaderCore/CoreText/FixedLayoutPageEngine.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/FixedLayoutPageEngine.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fd43e1dec3c15c307ff16fc728f98c17194573a6e4a9c074e7a8f4bcf65e1c9"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Modules/Core/AI/LLMProviding.swift: Modules/Core/AI/LLMProviding.swift changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is LLMError.errorDescription at line 171), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(ai): each feature asks for the thinking it needs; DeepSeek gets a 64K allowance\u201D; \u201Cfix(ai): answer in the reader\u0027s language, stop truncating chapter translation, unblock Claude\u201D; \u201Cfix(ai): repair source-scoped retrieval and diagnostics\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/AI/LLMProviding.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/LLMProviding.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7c25b63b7396ea2dd59be0581b726655e76c1ab240203418102ac4815c6fa7f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Modules/Core/BookSource/SourceScriptHost.swift: Modules/Core/BookSource/SourceScriptHost.swift changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 1 (its worst body is SourceScriptHost.unownedExecutor at line 26), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(explore): give source JS jsoup Elements toArray and indexing (FB-124)\u201D; \u201Cfix(sources): a page\u0027s, a chapter\u0027s and a book\u0027s puts stay with them\u201D; \u201Cfix(sources): a book\u0027s requests are built with its own variables\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/BookSource/SourceScriptHost.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/SourceScriptHost.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"122fc2217ff144aab911cdd0a7d5c1fed1cadd5f10d6aa49447624ffeda53ce2"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Modules/Features/Library/LibraryEntries.swift: Modules/Features/Library/LibraryEntries.swift changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 5 (its worst body is LibraryEntries.body at line 46), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(ui): confirmation dialogs hang off the control that opens them (FB-19)\u201D; \u201Cfix(library): count and list explore sources from one predicate (FB-123)\u201D; \u201Cfix(typography): empty-state actions and search results follow the global font (#41)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/Library/LibraryEntries.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Library/LibraryEntries.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"c907a0c080ab214ef32beaa0523dc23a6e1c2261d5921c50fd5acc06982916a7"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Modules/Features/Reader/EPUBMediaOverlayPlayerView.swift: Modules/Features/Reader/EPUBMediaOverlayPlayerView.swift changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 4 (its worst body is EPUBMediaOverlayPlayerView.primaryActionTitle at line 85), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(theme): prominent buttons stay legible on a near-white accent\u201D; \u201Cfix(l10n): format counts as whole sentences, not fragments\u201D; \u201Cfix(l10n): give a word\u0027s second meaning its own key\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/Reader/EPUBMediaOverlayPlayerView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/EPUBMediaOverlayPlayerView.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ab3016402bc929b964a6096a9e8352ed0f056ba788e197f041b9d81776207f0"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Modules/Core/ReaderCore/CoreText/CoreTextAnnotationRenderer.swift: Modules/Core/ReaderCore/CoreText/CoreTextAnnotationRenderer.swift changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is CoreTextAnnotationRenderer.noteMarkers at line 96), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(reader): selection, highlights and taps follow the line as drawn\u201D; \u201Cfix(selection): place character boundaries where the glyphs stand after a squeeze\u201D; \u201Cfix(diagnostics): catch the no-op page turn, stop the false positives, quiet the log\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/ReaderCore/CoreText/CoreTextAnnotationRenderer.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextAnnotationRenderer.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"326eb01616ddda9ddfdeaa94ae756cb0e58e163b869fc214343f29cc648e035c"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Modules/Services/Diagnostics/DiagnosticLog.swift: Modules/Services/Diagnostics/DiagnosticLog.swift changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is DiagnosticLog.record at line 244), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(diagnostics): keep numbering log lines across launches\u201D; \u201Cfix(reader): make a chapter that never arrives say why\u201D; \u201Cfix(diagnostics): catch the no-op page turn, stop the false positives, quiet the log\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Services/Diagnostics/DiagnosticLog.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Diagnostics/DiagnosticLog.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e25d340e2fd1a5c008ffff89a7c2ff3762ea005161ed10f896be54fce8d6732"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Modules/Core/ReaderCore/ReaderPositionSentry.swift: Modules/Core/ReaderCore/ReaderPositionSentry.swift changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 15 (its worst body is ReaderPositionSentry.observeCommit at line 243), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: resolve Swift warnings without changing reader behavior\u201D; \u201Cfix(reader): instrument the mechanisms that move the reader, not the paths\u201D; \u201Cfix(diagnostics): catch the no-op page turn, stop the false positives, quiet the log\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/ReaderCore/ReaderPositionSentry.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/ReaderPositionSentry.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e17f5ff784818a16c6cf53be720fd2278d31b9a55b67171e47542954759831d"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Modules/Features/Library/Modules/RuleModuleGroupView.swift: Modules/Features/Library/Modules/RuleModuleGroupView.swift changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is RuleModuleGroupView.body at line 30), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(ui): confirmation dialogs hang off the control that opens them (FB-19)\u201D; \u201Cfix(typography): empty-state actions and search results follow the global font (#41)\u201D; \u201Cfix(modules): \u5B98\u65B9\u6A21\u7D44 lists AI \u63A8\u85A6, Gutenberg and Aozora\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Features/Library/Modules/RuleModuleGroupView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Library/Modules/RuleModuleGroupView.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"427c4494e1b15c930225bbe51551be25d983a44797544d2d5e83a5f45e1c5643"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Modules/Core/RuleEngine/ModernParser/BookSourceRuntimeStateStore.swift: Modules/Core/RuleEngine/ModernParser/BookSourceRuntimeStateStore.swift changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is BookSourceRuntimeStateStore.moveSharedSuiteIntoSourceSuites at line 145), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(sources): each source keeps its runtime state in its own defaults suite\u201D; \u201Cfix(source): a login script\u0027s setVariable reloads the open \u53D1\u73B0\u9875 (#73)\u201D; \u201Cfix(reader): make source review cards a full-width banner at reading size\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- Modules/Core/RuleEngine/ModernParser/BookSourceRuntimeStateStore.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/BookSourceRuntimeStateStore.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c81601cf87b16622e4cddea0eec25c95100bfde75cb2d1a17feef634f5dc2f8"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: functions/src/appleTriage.ts: functions/src/appleTriage.ts changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 7 (its worst body is appleTriage.appStoreConnectWebhook at line 130), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(triage): treat build without diagnostics as empty; keep reply script\u201D; \u201Cfix(functions): file a TestFlight crash whose crash log App Store Connect does not have\u201D; \u201Cfix(functions): read each build\u0027s Organizer diagnostics on its own\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 09:02:28 \u002B08:00\u0027 --until=\u00272026-11-16 09:02:28 \u002B08:00\u0027 --full-history --no-merges -- functions/src/appleTriage.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"functions/src/appleTriage.ts"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d53dbeb9a502bdc40285e830075eff1aded49464bb53b93b0075e7e5f0ff7fd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Replace with HTML from a real Legado book source \u002B verified output. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/iOS/yuedu appTests/LegadoAlignmentTests.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5332e71a693edaf275d504ed04fdf8ebbd0a64c88056bc720751bf4ea17a369"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Modernization - A fixed-layout book\u0027s \u65B9\u5411 is forced here through the app-wide mask \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderOrientationController.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fe6d54cdfbef923ce6f64d4920094d25b896d5f08a7ac7d16ea8cf8380bf894"}},{"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. ADRs are expected here because \u0060Yuedu-Reader.xcodeproj/project.pbxproj\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Yuedu-Reader.xcodeproj/project.pbxproj"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8225baec34dac8ee4cf4134295ee10fb07b9c222cf8046465eb9c5d07977449a"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060resolvedHREF\u0060 spells \u0060HREF\u0060 where 89 names in the project spell it \u0060Href\u0060: 89 of 91 names in project repository spell the token \u0060Href\u0060 (89 of 91; unit: names in project repository containing \u0060Href\u0060). Peers: AozoraXHTMLWriter.stylesheetHref (Modules/Core/Aozora/AozoraXHTMLWriter.swift:153); UnifiedChapter.sourceHref (Modules/Core/EPUB/BookParsing.swift:10); EPUBMediaOverlayFragment.textHref (Modules/Core/EPUB/EPUBMediaOverlay.swift:5); EPUBMediaOverlayFragment.audioHref (Modules/Core/EPUB/EPUBMediaOverlay.swift:7); EPUBMediaOverlay.chapterHref (Modules/Core/EPUB/EPUBMediaOverlay.swift:18). Rename to \u0060resolvedHref\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/PublicationSession.swift"},"region":{"startLine":1122}}}],"partialFingerprints":{"codehealthFindingId/v1":"481fdafedfedba6eee429e731a247268c74f1940cf31b1ac492845e2f875009a"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060normalizedHREF\u0060 spells \u0060HREF\u0060 where 89 names in the project spell it \u0060Href\u0060: 89 of 91 names in project repository spell the token \u0060Href\u0060 (89 of 91; unit: names in project repository containing \u0060Href\u0060). Peers: AozoraXHTMLWriter.stylesheetHref (Modules/Core/Aozora/AozoraXHTMLWriter.swift:153); UnifiedChapter.sourceHref (Modules/Core/EPUB/BookParsing.swift:10); EPUBMediaOverlayFragment.textHref (Modules/Core/EPUB/EPUBMediaOverlay.swift:5); EPUBMediaOverlayFragment.audioHref (Modules/Core/EPUB/EPUBMediaOverlay.swift:7); EPUBMediaOverlay.chapterHref (Modules/Core/EPUB/EPUBMediaOverlay.swift:18). Rename to \u0060normalizedHref\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/PublicationSession.swift"},"region":{"startLine":1942}}}],"partialFingerprints":{"codehealthFindingId/v1":"f88c5255ed103c33b89f007201b45efa4eeab02415d8d5afc2cfa0895a75d550"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060replaceEMLengths\u0060 spells \u0060EM\u0060 where 39 names in the project spell it \u0060Em\u0060: 39 of 40 names in project repository spell the token \u0060Em\u0060 (39 of 40; unit: names in project repository containing \u0060Em\u0060). Peers: BrowserChapterAdditions.bubbleWidthEm (Modules/Core/ReaderCore/BrowserLayout/BrowserChapterAdditions.swift:121); ReaderDialogueBubbleRenderer.tailLipEm (Modules/Core/ReaderCore/CoreText/ReaderDialogueBubbleRenderer.swift:15); ReaderDialogueBubbleDecoration.sizeEm (Modules/Core/ReaderCore/Customization/ReaderDialogueBubbleDecoration.swift:92); ReaderDialogueBubbleDecoration.offsetXEm (Modules/Core/ReaderCore/Customization/ReaderDialogueBubbleDecoration.swift:93); ReaderDialogueBubbleDecoration.offsetYEm (Modules/Core/ReaderCore/Customization/ReaderDialogueBubbleDecoration.swift:94). Rename to \u0060replaceEmLengths\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ChapterTitleHTMLCodec.swift"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"439651db8becc8231eafce37269b4e252f3f2e05bf643707a6ba2b30da436a1d"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060currentEpubPage\u0060 spells \u0060Epub\u0060 where 22 names in the project spell it \u0060EPUB\u0060: 22 of 24 names in project repository spell the token \u0060EPUB\u0060 (22 of 24; unit: names in project repository containing \u0060EPUB\u0060). Peers: repository.AozoraEPUBManifest (Modules/Core/Aozora/AozoraEPUBWriter.swift:6); repository.AozoraEPUBWriter (Modules/Core/Aozora/AozoraEPUBWriter.swift:37); repository.FixedLayoutEPUBPageProviderError (Modules/Core/EPUB/FixedLayoutEPUBPageProvider.swift:15); repository.FixedLayoutEPUBPageProvider (Modules/Core/EPUB/FixedLayoutEPUBPageProvider.swift:32); repository.FixedLayoutEPUBRenderer (Modules/Core/EPUB/FixedLayoutEPUBPageProvider.swift:46). Rename to \u0060currentEPUBPage\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/EPUBPageRenderer.swift"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"3004f28e651c10bc35c4ef4484aaf45cec7689b403dd1038dde2e93010c06ea2"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060isJsonArrayOrObject\u0060 spells \u0060Json\u0060 where 95 names in the project spell it \u0060JSON\u0060: 95 of 96 names in project repository spell the token \u0060JSON\u0060 (95 of 96; unit: names in project repository containing \u0060JSON\u0060). Peers: OnlineBookContentInference.kind(fromJSONObject) (Modules/Core/BookSource/BookSource.swift:639); BookSource.importEditableJSON (Modules/Core/BookSource/BookSourceImportOptions.swift:126); BookSource.importParse(editedJSON) (Modules/Core/BookSource/BookSourceImportOptions.swift:136); BookSourceStore.importFromJSON (Modules/Core/BookSource/BookSourceStore.swift:735); BookSourceStore.exportToJSON (Modules/Core/BookSource/BookSourceStore.swift:1086). Rename to \u0060isJSONArrayOrObject\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift"},"region":{"startLine":2655}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9aac8e18002bfa156ee491c60607db7490069e3415a3179a3db8c5aef9ddcfb"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060importEpub\u0060 spells \u0060Epub\u0060 where 22 names in the project spell it \u0060EPUB\u0060: 22 of 24 names in project repository spell the token \u0060EPUB\u0060 (22 of 24; unit: names in project repository containing \u0060EPUB\u0060). Peers: repository.AozoraEPUBManifest (Modules/Core/Aozora/AozoraEPUBWriter.swift:6); repository.AozoraEPUBWriter (Modules/Core/Aozora/AozoraEPUBWriter.swift:37); repository.FixedLayoutEPUBPageProviderError (Modules/Core/EPUB/FixedLayoutEPUBPageProvider.swift:15); repository.FixedLayoutEPUBPageProvider (Modules/Core/EPUB/FixedLayoutEPUBPageProvider.swift:32); repository.FixedLayoutEPUBRenderer (Modules/Core/EPUB/FixedLayoutEPUBPageProvider.swift:46). Rename to \u0060importEPUB\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/BookStore.swift"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"124ec7b781e186c8384fae8a5530684e68a23dd8e6cfa82cd5ad5fd63333d3d5"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060containsNormalizedTextASCII\u0060 spells \u0060ASCII\u0060 where 33 names in the project spell it \u0060Ascii\u0060: 33 of 35 names in project Packages~SwiftSoup spell the token \u0060Ascii\u0060 (33 of 35; unit: names in project Packages~SwiftSoup containing \u0060Ascii\u0060). Peers: Attributes.containsAsciiUppercase (Packages/SwiftSoup/Sources/Attributes.swift:1307); Attributes.containsAsciiUppercase (Packages/SwiftSoup/Sources/Attributes.swift:1318); CharacterReader.consumeAsciiScalar (Packages/SwiftSoup/Sources/CharacterReader.swift:211); CharacterReader.advanceAscii (Packages/SwiftSoup/Sources/CharacterReader.swift:275); CharacterReader.containsAsciiTransformed (Packages/SwiftSoup/Sources/CharacterReader.swift:860). Rename to \u0060containsNormalizedTextAscii\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/SwiftSoup/Sources/Element.swift"},"region":{"startLine":2286}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2b276682a654868b87b6811414b123c2d6fc7a57025bdf253e0198b7a1936ae"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060containsOwnTextASCII\u0060 spells \u0060ASCII\u0060 where 33 names in the project spell it \u0060Ascii\u0060: 33 of 35 names in project Packages~SwiftSoup spell the token \u0060Ascii\u0060 (33 of 35; unit: names in project Packages~SwiftSoup containing \u0060Ascii\u0060). Peers: Attributes.containsAsciiUppercase (Packages/SwiftSoup/Sources/Attributes.swift:1307); Attributes.containsAsciiUppercase (Packages/SwiftSoup/Sources/Attributes.swift:1318); CharacterReader.consumeAsciiScalar (Packages/SwiftSoup/Sources/CharacterReader.swift:211); CharacterReader.advanceAscii (Packages/SwiftSoup/Sources/CharacterReader.swift:275); CharacterReader.containsAsciiTransformed (Packages/SwiftSoup/Sources/CharacterReader.swift:860). Rename to \u0060containsOwnTextAscii\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/SwiftSoup/Sources/Element.swift"},"region":{"startLine":2331}}}],"partialFingerprints":{"codehealthFindingId/v1":"04c2a1234247099f81cc89414d9c9b0964f92c930ac2c0a17cd2c2d0d9c2e1b2"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022For embed with \u003Cobject\u003E tag, check inner HTML as well.\u0022 repeats the code it sits on: 6 of its 7 words (embed, object, tag, check, inner, html) are already in \u0060if (\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/Readability.js"},"region":{"startLine":2531}}}],"partialFingerprints":{"codehealthFindingId/v1":"057ca6e71c912744bff05d0ebdc369970edfb518bfee90df5d0783572c0898ad"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Unwrap image from noscript\u0022 repeats the code it sits on: 3 of its 3 words (unwrap, image, noscript) are already in \u0060this._unwrapNoscriptImages(this._doc);\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/Readability.js"},"region":{"startLine":2738}}}],"partialFingerprints":{"codehealthFindingId/v1":"191c4c2fbaeb9f209f861e96c18353aec196bef09f0107a9bd14d0415a2cc777"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060(repository root)\u0060 (341946 LoC, 3940 module-visible types across 95 directories) overshoots its size bounds. 1 of 7 build unit(s) (SwiftPM, Xcode, npm) overshoot their size bounds, lowering Project Cohesion to 7.1/10. 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":[{"physicalLocation":{"artifactLocation":{"uri":"Yuedu-Reader.xcodeproj/project.pbxproj"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b02b1877a70bf6ba9f661ac121d0facd013be85456d77e62f160270755b3b468"}},{"ruleId":"D28","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":"2e0880db49a422d698d5bf6ab57fee1d5a0de0ebbd7921a2e085ad8c60866b5b"},"properties":{"commitSha":"e00db0724e0aa4f4132c4bc57dfe14f4c05518e1"}},{"ruleId":"D28","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":"994dd11ef27c0422af8582c4e08e202f83f901427df0bb44dd489bb987fe3901"},"properties":{"commitSha":"e00db0724e0aa4f4132c4bc57dfe14f4c05518e1"}},{"ruleId":"D28","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":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"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":"fa06aa94a1a41deec78f124a50d23ef3c66a37be6a7d4506d019e2a725458460"},"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":"3706ea1f86a1f360e90769dd9332cfd444be8e04a0a2fa580f3aa3d10c05a235"},"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":"89f2a09491ed669a543bb5d75a6d356515b39956699b668ec732fe734f8cfa14"},"taxa":[{"id":"CWE-311","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06: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":"3e59578c18ae7b554c7f0b7f1cfb63f48ba11dd3bcc2289c3ebca9c1be93039d"},"taxa":[{"id":"CWE-94","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":"4c7d3444b0bf5ca584abebd128c2ab2085c334e68ba7dfac76670cc6cf185688"},"taxa":[{"id":"CWE-94","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":"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":"92bb27486cc43d51ef4e362594bd335f9bfcd9ad3e3e4b9ce8de65024e8a0e4d"},"taxa":[{"id":"CWE-1333","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cd20a7d056f5a784d7dc4eca262648dd818c8d5f7a818964abdfa8f12a25e8e0"},"taxa":[{"id":"CWE-1333","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"aa4862c7b8b52e6a7922aa27ceb5a22685e14384a5037c77af77513c2fac96e1"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ce2933e6ea9e91437e8a477e228ab91ea991ba204c53accda14bef1d557c1440"},"taxa":[{"id":"CWE-1333","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"340f23990b03968b2d46e5811ebb725073a52d738f5360ed3dc36e5b297d2bd2"},"taxa":[{"id":"CWE-1333","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb168f7f23c228306069ba0920994c97db92211b1e862e1380096777a3f8d305"},"taxa":[{"id":"CWE-1333","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7b6524064752df4ae4b37ad2364c11823ce1fef8590e333fddf50218cebb84a5"},"taxa":[{"id":"CWE-862","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e93333e79e0843ef88f8a10afddb8f107e63a48fa1a212a7aedca4f800643770"},"taxa":[{"id":"CWE-862","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"22cd8d0beaa3344fe6663d842f535f4d54a38823130ea2d1bd1d4e115f9e82e5"},"taxa":[{"id":"CWE-862","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"54ffbc70c59b082df6b590ceeeecab021a6223a5c9d977b338c294d21afd6160"},"taxa":[{"id":"CWE-862","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e125e58f020e7a475841ea3169645a29380924497f77ed29d846f826902c4838"},"taxa":[{"id":"CWE-862","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c303533e638b2b1742129cbd60aaac6eb50e259f478bb83a68edd4fd835d7cab"},"taxa":[{"id":"CWE-862","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"843ea850d7a3bc737584fad19dc3af2a2ebc1cbaa97f920b4d85474b491cbb19"},"taxa":[{"id":"CWE-862","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6d9e502a55bd553dcf7bec628d3a9ab966e37c22e2f42fbd60772d629aff415e"},"taxa":[{"id":"CWE-862","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"036825cc5bcfc3a95f82447bc97cf9b1b49b01589ea7aa55d47296b396137cdc"},"taxa":[{"id":"CWE-862","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c2365a4eb9c2565684188f8a8f00f5f357b564572c51534b8c01f6639d3fe0fd"},"taxa":[{"id":"CWE-862","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"69b7198fadd5d9d45230a0bf72eca686ca43fee7e175c20590d14e1122e4fd9f"},"taxa":[{"id":"CWE-862","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ea28fb68025b6cae06069b06d28a211ad9836678f3b899863bcf904b833515df"},"taxa":[{"id":"CWE-862","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4be888a36e84ae81d984bdfdcc3a772f1d1dcb011c64698b33f242aa8f3ebcb2"},"taxa":[{"id":"CWE-862","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6b6695a93fee29ded151bc0f0436d2b1456d6c45c73cf28ced58c063ddba7b9d"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7b92529dcf5a1093c9c25f183de399c3672ec5091e1174c04400b71a34a392d3"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ded82633faf0433259dc6d8d85f1bb9be1e39c6addd23fa9f79b1563bbcabe2c"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f7bcd1d5ed3d723ec1d60ba6e54298094a278181b94a18c538a6e808d8a612e3"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","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":"af8b846bfa61ab97d7becf2e8c0ccd26b8050117bf2ec481f58593c526e24484"},"properties":{"dependency":{"package":"proxy-addr","version":"2.0.7","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"critical","fixedVersion":"2.0.8","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"029b4de7bfac407433b1efc2338b3a44fc0f36e9b1fbc589a60d97d0245edec7"},"properties":{"dependency":{"package":"proxy-addr","version":"2.0.7","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"critical","fixedVersion":"2.0.8","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"479f01e59e25ba5262f30236a60a6c4ef927e9ccb38ae074c036e84d3b11175f"},"properties":{"dependency":{"package":"github.com/marmelroy/Zip","version":"2.1.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"39dd8edea67571bdd3f9a13a078c5cca5c89c6f0ca9ff5854a089756f3ed64e2"},"properties":{"dependency":{"package":"@fastify/busboy","version":"3.2.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"3.2.1","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"a321c62d48c0113427e1695f913e807a4b652a4df28a7c2c5d0be19a582217a9"},"properties":{"dependency":{"package":"@grpc/grpc-js","version":"1.14.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"1.14.5","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"8111dec2e1aa185933e60f15dfaa4c08ade036070ee2f68b4c40c67890e29cb3"},"properties":{"dependency":{"package":"body-parser","version":"1.20.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","fixedVersion":"1.20.9","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"85554c01a80f788e4f2ab82d0e0c772cef9d09471aa385fd34978745fe56b8ac"},"properties":{"dependency":{"package":"brace-expansion","version":"2.1.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"2.1.5","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"c280cd66a2c0461d8f411fc73ada409b12416b083c8b9fd01524f463e2a7491c"},"properties":{"dependency":{"package":"@grpc/grpc-js","version":"1.14.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"1.14.5","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"176360f12cf4d90f8c61cf168840d254cc73ae0761c4c224d3500c660fe1b520"},"properties":{"dependency":{"package":"body-parser","version":"1.20.8","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","fixedVersion":"1.20.9","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"197cc390d552961acf345071d3191d1d6cbd726b38ffd0397fa56fc3307728aa"},"properties":{"dependency":{"package":"brace-expansion","version":"2.1.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"2.1.5","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"1eb43f1bda3013a21cfec88972e0756178879f7521e786d53ccc17d8c1675c75"},"properties":{"dependency":{"package":"glob","version":"10.5.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"14.0.2","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"d81ef8b6ca1c41f7e20842409b4975cf6395c71117a869cb83b355dba11135c0"},"properties":{"dependency":{"package":"minimatch","version":"9.0.9","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"11.0.1","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"b4e32c015bf36b5ff8c9ac27fca5e44ebe2465ec5f688ba14f899b418754ddbc"},"properties":{"dependency":{"package":"qs","version":"6.15.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"medium","fixedVersion":"6.16.0","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"4d58231847538ea944fc1eb0ed6bd2545b3b6a04aa0c4588836cf4b64f8da94b"},"properties":{"dependency":{"package":"qs","version":"6.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"6.16.1","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"0c8ae4af4060f69d21ab55a5d6145b56b64b2c97ca4a8640fd05c27302039c99"},"properties":{"dependency":{"package":"glob","version":"10.5.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"14.0.2","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"e7cd2d5b2a0f1b490a8916075f447474a2feda63cc8cef9e859fe68ec9c72851"},"properties":{"dependency":{"package":"minimatch","version":"9.0.9","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"11.0.1","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"ebd0e6590be035761f49f9419ea2bc4211bd08b6ccde9b985a3b063eeeae57d0"},"properties":{"dependency":{"package":"qs","version":"6.15.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"medium","fixedVersion":"6.16.0","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"0bfb40aebb61e58df6f040a962b959f5c1ed96882cb5d9317c6db65caae1694a"},"properties":{"dependency":{"package":"uuid","version":"9.0.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]"],"severity":"medium","fixedVersion":"11.1.1","relation":"transitive","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"3eaee69bddb57eb2209e566df45b4bd53d8956918d0c33d1e4f63429ccc6819d"},"properties":{"dependency":{"package":"fast-xml-parser","version":"5.10.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"low","fixedVersion":"5.12.0","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"e09abeceda74c93095dc990838f5335e1b8bd0c4148f2006363d126371cfef80"},"properties":{"dependency":{"package":"fast-xml-parser","version":"5.11.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"low","fixedVersion":"5.12.0","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D31","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":"53d2c1b465a8572bfe0c174940d7522dec0784114a9f1f5dbe4747d5a90a02bf"},"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":"D31","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":"9b1d472278a07ba9d30d12682cd672e2b66d4b424fab46488561b43fbcc1b5ba"},"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":"D31","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":"ad620e90beb67c31e278e5e32b624dfe071dd3ce2a097f9a615bd276c6600113"},"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":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: ReaderView.swift \u2194 BookContentProviderAdapters.swift: \u0060Modules/Features/Reader/ReaderView.swift\u0060 (context Features) and \u0060Modules/Services/Online/BookContentProviderAdapters.swift\u0060 (context Services) sit in DIFFERENT parts of the tree yet change together 70% of the time (7 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u0060a4d77f62\u0060 refactor: unify online reader rendering pipeline; \u0060cae3405f\u0060 Render online \u6BB5\u8A55 chapters via node layout; resolve EPUB TOC anchors t\u2026 (at that commit the files were still \u0060iOS/Views/Reader/ReaderView.swift\u0060 and \u0060iOS/Models/Online/BookContentProviderAdapters.swift\u0060); \u0060bb8476c2\u0060 refactor: \u522A\u9664 LegacyParser\uFF0C\u79FB\u9664 DefaultWebNovelParserService \u4F9D\u8CF4 (at that commit the files were still \u0060yuedu app/Views/Reader/ReaderView.swift\u0060 and \u0060yuedu app/Models/Online/BookContentProviderAdapters.swift\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9933f142c97baa7002e479eac397881968b0b5fabba93952632c5624e5accf6b"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: ReaderView.swift \u2194 ChapterCacheRepository.swift: \u0060Modules/Features/Reader/ReaderView.swift\u0060 (context Features) and \u0060Modules/Services/Online/ChapterCacheRepository.swift\u0060 (context Services) sit in DIFFERENT parts of the tree yet change together 64% of the time (7 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u0060ef165c3a\u0060 feat(reader): the table of contents marks the chapters that are not c\u2026; \u006014f37c72\u0060 Show imported books in the Files app, move internal data out of Docum\u2026; \u0060136a7428\u0060 Fix book source runtime compatibility and reviews \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d7362bbee9c04f1e0fb9518e248a2ae6001dac664c56be7e9bb17781c53d83"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: AudiobookDetailView.swift \u2194 OnlineBookView.swift: \u0060Modules/Features/BookDetail/AudiobookDetailView.swift\u0060 and \u0060Modules/Features/BookDetail/OnlineBookView.swift\u0060 change together 88% of the time (30 of the 34 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 30 shared commits counted here, the most recent 3 are \u0060724f13a8\u0060 feat(detail): a book\u0027s page shows its main genre alone; \u0060d5f8a85d\u0060 feat(toc): \u6B63\u5E8F\uFF0F\u5012\u5E8F in every \u76EE\u9304, remembered per book (FB-37); \u0060bf6e3a42\u0060 feat(video): an Emby-style detail page and a player for video sources \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"69207c734c8b481ad290521e37c860a9f056b244c26aa3f5cc21bd38702c7882"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: BookSourceParsingPipeline.swift \u2194 ModernParserBridge.swift: \u0060Modules/Core/BookSource/BookSourceParsingPipeline.swift\u0060 and \u0060Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift\u0060 change together 80% of the time (8 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u0060960e71f5\u0060 fix(video): aggregate-source videos play in the app\u0027s player, never a\u2026; \u006087bcd9c9\u0060 fix(sources): a page\u0027s, a chapter\u0027s and a book\u0027s puts stay with them; \u0060bd56705e\u0060 fix(toc): read nextTocUrl as a URL list, as Legado does \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceParsingPipeline.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e62c947838a0725cc4c96086f0c3a47bd775f0adb9659f290355fc91fc1dc53"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: ReaderView.swift \u2192 CoreTextScrollEngine.swift, TXTLazyAttributedStringBuilder.swift, TXTPageEngine.swift, ReadingPositionStore.swift, CoreTextCollectionScrollViewController.swift, ReaderViewModifiers.swift: \u0060Modules/Features/Reader/ReaderView.swift\u0060 changes together with 6 other files \u2014 \u0060Modules/Core/ReaderCore/CoreText/CoreTextScrollEngine.swift\u0060, \u0060Modules/Core/ReaderCore/CoreText/TXTLazyAttributedStringBuilder.swift\u0060, \u0060Modules/Core/ReaderCore/CoreText/TXTPageEngine.swift\u0060, \u0060Modules/Core/ReaderCore/ReadingPositionStore.swift\u0060, \u0060Modules/Features/Reader/CoreTextCollectionScrollViewController.swift\u0060, \u0060Modules/Features/Reader/ReaderViewModifiers.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":"Modules/Features/Reader/ReaderView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e0a517f38bd5364d5a88650397548d822fab0c6109182f61aa2276321e6c904"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ExploreHome.swift \u2194 AggregationSettingsView.swift: \u0060Modules/Features/Explore/Home/ExploreHome.swift\u0060 and \u0060Modules/Features/Settings/AggregationSettingsView.swift\u0060 change together 70% of the time (7 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u0060aa1a4b8f\u0060 feat(aggregation): one \u4E2D\u7E7C\u8CC7\u6599\u8A9E\u8A00\u504F\u597D\u63A8\u85A6 menu that follows the app\u0027s language; \u0060894c166f\u0060 feat(settings): \u805A\u5408\u8A2D\u5B9A follows Emby\u0027s Home Screen page; \u00600fdc15be\u0060 refactor(explore): remove the catalog entry at the top of the home \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Explore/Home/ExploreHome.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"89d8c01594d891fdc8bf511c2be161da27eee916b98d0aeeb7e9fcc690d12845"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: BookSourceFetcher\u002BChapter.swift \u2194 ModernParserBridge.swift: \u0060Modules/Core/BookSource/BookSourceFetcher\u002BChapter.swift\u0060 and \u0060Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift\u0060 change together 67% of the time (10 of the 15 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in 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 \u0060960e71f5\u0060 fix(video): aggregate-source videos play in the app\u0027s player, never a\u2026; \u006087bcd9c9\u0060 fix(sources): a page\u0027s, a chapter\u0027s and a book\u0027s puts stay with them; \u006067eb5e9b\u0060 fix(sources): a book\u0027s requests are built with its own variables \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceFetcher\u002BChapter.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"77d061c481772a1435964542f9d4965628d65b688f338d0843973c61a09683bc"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: ReaderViewModifiers.swift \u2192 CoreTextScrollEngine.swift, ReaderView\u002BPageBuilding.swift, ReaderView\u002BTXTVerticalScroll.swift: \u0060Modules/Features/Reader/ReaderViewModifiers.swift\u0060 changes together with 3 other files \u2014 \u0060Modules/Core/ReaderCore/CoreText/CoreTextScrollEngine.swift\u0060, \u0060Modules/Features/Reader/ReaderView\u002BPageBuilding.swift\u0060, \u0060Modules/Features/Reader/ReaderView\u002BTXTVerticalScroll.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":"Modules/Features/Reader/ReaderViewModifiers.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b6998cc8fb31af54e7ca6b8ab06d90657e2f329d56991d4912bf6dffbc7e7ad"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ExploreDestinations.swift \u2194 HomeRowView.swift: \u0060Modules/Features/Explore/ExploreDestinations.swift\u0060 and \u0060Modules/Features/Explore/Home/HomeRowView.swift\u0060 change together 56% of the time (10 of the 18 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 \u00603f0bc32e\u0060 feat(explore): a \u4F86\u6E90\u914D\u7F6E\u0027s categories as \u5206\u985E\u5361\u7247; \u00605ffa123a\u0060 feat(explore): shelf copies open their reader; a \u66F8\u67B6 section for the home; \u0060af58eaca\u0060 feat(ai): AI \u63A8\u85A6 home section, official module in the content picker (8c) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Explore/ExploreDestinations.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccc8f57d19bffc0458a8630343193b338cc659dad5cee5ea06091b8ad4911daa"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: BookStore.swift \u2194 ChapterCacheRepository.swift: \u0060Modules/Services/LibraryStore/BookStore.swift\u0060 and \u0060Modules/Services/Online/ChapterCacheRepository.swift\u0060 change together 55% of the time (6 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in 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 6 shared commits counted here, the most recent 3 are \u0060e8a07db8\u0060 feat(cache): automatic cleanup keeps caches under a size cap (FB-47); \u00604cac5edf\u0060 fix(reader): keep other highlights intact when one is added or removed; \u006014f37c72\u0060 Show imported books in the Files app, move internal data out of Docum\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/BookStore.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7368887f74391f9614f7fb68ecd1bb08fa9edfed43d8c0a754c9e2fa091de8c7"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: OnlineProviderAttributedStringBuilder.swift \u2194 TXTLazyAttributedStringBuilder.swift: \u0060Modules/Core/ReaderCore/CoreText/OnlineProviderAttributedStringBuilder.swift\u0060 and \u0060Modules/Core/ReaderCore/CoreText/TXTLazyAttributedStringBuilder.swift\u0060 change together 53% of the time (9 of the 17 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are \u00607c38881c\u0060 fix(reader): apply \u7E41\u7C21\u8F49\u63DB everywhere the reader shows text; \u00601c8570ae\u0060 Fix replace rules not taking effect after long-press selection; \u006087b88857\u0060 Fix reader navigation, imports, fonts, and offline cache \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/OnlineProviderAttributedStringBuilder.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e57c4f0fd4704b2264e2613882cbca5728b0f05eddc442555b7034373fe93422"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: HTTPTTSEngine.swift \u2194 TTSPanelView.swift: \u0060Modules/Core/TTS/HTTPTTSEngine.swift\u0060 and \u0060Modules/Features/Reader/TTS/TTSPanelView.swift\u0060 change together 50% of the time (10 of the 20 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 \u00605171372e\u0060 refactor(tts): remove the dead segment-skipped notice chain; \u0060df6c392c\u0060 feat: export the whole customised look, and keep TTS playing with the\u2026; \u0060576a3776\u0060 Fix iOS TTS background playback \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/HTTPTTSEngine.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"175e0667612dab6782a86f8a1b9efed39451621e8ea033f9b017ad2136395c96"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: BookSourceFetcher\u002BChapter.swift \u2194 BookSourceFetcher\u002BSearch.swift: \u0060Modules/Core/BookSource/BookSourceFetcher\u002BChapter.swift\u0060 and \u0060Modules/Core/BookSource/BookSourceFetcher\u002BSearch.swift\u0060 change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u006087bcd9c9\u0060 fix(sources): a page\u0027s, a chapter\u0027s and a book\u0027s puts stay with them; \u00605ee41bd8\u0060 refactor(swift6): Sendable source session, header snapshot, RSS host \u2026; \u00606b0fe026\u0060 wip(booksource): in-flight book-source, RSS, and audio-source changes \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceFetcher\u002BChapter.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"303099a73fbc069da6cf3bfa8c484a4ff0d3a0ba586c92ecd9e9cbd5ace80c39"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: NodeAttributedStringBuilder.swift \u2194 BookContentProviderAdapters.swift: \u0060Modules/Core/ReaderCore/CoreText/NodeAttributedStringBuilder.swift\u0060 and \u0060Modules/Services/Online/BookContentProviderAdapters.swift\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are \u0060a4d77f62\u0060 refactor: unify online reader rendering pipeline; \u0060dea80e62\u0060 Remove temporary \u6BB5\u8A55 / manga-fetch DEBUG diagnostics (at that commit the files were still \u0060iOS/Models/Reader/CoreText/NodeAttributedStringBuilder.swift\u0060 and \u0060iOS/Models/Online/BookContentProviderAdapters.swift\u0060); \u0060cae3405f\u0060 Render online \u6BB5\u8A55 chapters via node layout; resolve EPUB TOC anchors t\u2026 (at that commit the files were still \u0060iOS/Models/Reader/CoreText/NodeAttributedStringBuilder.swift\u0060 and \u0060iOS/Models/Online/BookContentProviderAdapters.swift\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/NodeAttributedStringBuilder.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0d2dfcc3ffc1ff025a6016868b554c95e782679a885a9c8adf22b88aa24f97e"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: BookContentProviderAdapters.swift \u2194 OnlineReadingPipeline.swift: \u0060Modules/Services/Online/BookContentProviderAdapters.swift\u0060 and \u0060Modules/Services/Online/OnlineReadingPipeline.swift\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are \u0060a4d77f62\u0060 refactor: unify online reader rendering pipeline; \u0060dea80e62\u0060 Remove temporary \u6BB5\u8A55 / manga-fetch DEBUG diagnostics (at that commit the files were still \u0060iOS/Models/Online/BookContentProviderAdapters.swift\u0060 and \u0060iOS/Models/Online/OnlineReadingPipeline.swift\u0060); \u00603599a076\u0060 Fix browser TOC web novel paragraphing (at that commit the files were still \u0060iOS/Models/Online/BookContentProviderAdapters.swift\u0060 and \u0060iOS/Models/Online/OnlineReadingPipeline.swift\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/BookContentProviderAdapters.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd22822f83090d94fb35ab278bb1957df857c7edf0ac806e323985b5f3df5cc2"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: HomeModel.swift \u2194 BookSourceProvider.swift: \u0060Modules/Services/Works/HomeModel.swift\u0060 and \u0060Modules/Services/Works/Providers/BookSourceProvider.swift\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are \u0060d9e0e952\u0060 feat(explore): draw each home row\u0027s saved page while it loads again; \u0060edabe226\u0060 fix(discover): \u70BA\u4F60\u63A8\u85A6 follows the home\u0027s categories, shares one queue a\u2026; \u006002d60022\u0060 feat(discover): one first-page fetch per home, saved for \u70BA\u4F60\u63A8\u85A6 (7a-1) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/HomeModel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"066494f223e75dded9700f27ac06e60c152e8e7d5fe7921587f57e1fe79ca2b2"}},{"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":"3c4e2a857daa963cd5b6c1b8f626e91ffbbc8459a5521cf3714ea8ee199a0afb"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: LegadoJSBridgeExport (105 requirements): \u0060LegadoJSBridgeExport\u0060 declares 105 requirements: \u0060ajax\u0060, \u0060axja\u0060, \u0060ajaxAll\u0060, \u0060ajaxTestAll\u0060, \u0060connect\u0060, \u0060connectWithOptions\u0060, \u0060head\u0060, \u0060headWithOptions\u0060, \u0060post\u0060, \u0060postWithOptions\u0060, \u0060httpExecute\u0060, \u0060httpGet\u0060, \u0060importScript\u0060, \u0060readFile\u0060, \u0060readTxtFile\u0060, \u0060deleteFile\u0060, \u0060downloadFile\u0060, \u0060cacheFile\u0060, \u0060webView\u0060, \u0060webViewGetSource\u0060, \u0060webViewGetOverrideUrl\u0060, \u0060getCookie\u0060, \u0060getCookieValue\u0060, \u0060removeCookie\u0060, \u0060getWebViewUA\u0060, \u0060put\u0060, \u0060get\u0060, \u0060getString\u0060, \u0060getStringList\u0060, \u0060setContent\u0060, \u0060getElements\u0060, \u0060getElementValue\u0060, \u0060newAnalyzeRule\u0060, \u0060digestBytes\u0060, \u0060sleepMillis\u0060, \u0060makeStrResponse\u0060, \u0060getUserAgent\u0060, \u0060getVerificationCode\u0060, \u0060startBrowser\u0060, \u0060startBrowserAwait\u0060, and 65 more. Counted over its method requirements (members with no body), once per name; a default supplied by a protocol extension is not counted, because no conformer is forced to write it. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"45bc5f7ec49ec9b8ad40e04b54e3efc615af3c5b4e0e854eb24b3578fddf1d20"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: LegadoStrResponseExport (21 requirements): \u0060LegadoStrResponseExport\u0060 declares 21 requirements: \u0060raw\u0060, \u0060callTime\u0060, \u0060request\u0060, \u0060header\u0060, \u0060hasHeader\u0060, \u0060cookie\u0060, \u0060contentType\u0060, \u0060isRedirect\u0060, \u0060priorResponse\u0060, \u0060body\u0060, \u0060bodyBytes\u0060, \u0060cookies\u0060, \u0060jsHeaders\u0060, \u0060code\u0060, \u0060message\u0060, \u0060statusCode\u0060, \u0060statusMessage\u0060, \u0060url\u0060, \u0060urlString\u0060, \u0060isSuccessful\u0060, \u0060toString\u0060. Counted over its method requirements (members with no body), once per name; a default supplied by a protocol extension is not counted, because no conformer is forced to write it. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift"},"region":{"startLine":3591}}}],"partialFingerprints":{"codehealthFindingId/v1":"9769429911ce34542e2bf2e1cb71581f1094735e71bd8b243d21c055f61e2103"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: LegadoJsoupElementExport (40 requirements): \u0060LegadoJsoupElementExport\u0060 declares 40 requirements: \u0060isJsoupNode\u0060, \u0060select\u0060, \u0060children\u0060, \u0060parent\u0060, \u0060body\u0060, \u0060html\u0060, \u0060outerHtml\u0060, \u0060text\u0060, \u0060ownText\u0060, \u0060wholeText\u0060, \u0060data\u0060, \u0060attr\u0060, \u0060absUrl\u0060, \u0060hasAttr\u0060, \u0060attributeList\u0060, \u0060tagName\u0060, \u0060id\u0060, \u0060className\u0060, \u0060title\u0060, \u0060matches\u0060, \u0060nextElementSibling\u0060, \u0060previousElementSibling\u0060, \u0060firstElementSibling\u0060, \u0060lastElementSibling\u0060, \u0060siblingElements\u0060, \u0060elementSiblingIndex\u0060, \u0060parents\u0060, \u0060closest\u0060, \u0060isSameNode\u0060, \u0060cloneElement\u0060, \u0060remove\u0060, \u0060setAttr\u0060, \u0060removeAttr\u0060, \u0060setText\u0060, \u0060setHtml\u0060, \u0060appendHtml\u0060, \u0060prependHtml\u0060, \u0060beforeHtml\u0060, \u0060afterHtml\u0060, \u0060empty\u0060. Counted over its method requirements (members with no body), once per name; a default supplied by a protocol extension is not counted, because no conformer is forced to write it. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoJsoupBridge.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"140589e31fc7906756a49d678538727bcfea81314d958551adfe348b790accc8"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: LegadoSourceBridgeExport (22 requirements): \u0060LegadoSourceBridgeExport\u0060 declares 22 requirements: \u0060getVariable\u0060, \u0060setVariable\u0060, \u0060putVariable\u0060, \u0060jsGetLoginInfo\u0060, \u0060putLoginInfo\u0060, \u0060getLoginInfoMap\u0060, \u0060removeLoginInfo\u0060, \u0060putLoginHeader\u0060, \u0060jsGetLoginHeader\u0060, \u0060getLoginHeaderMap\u0060, \u0060removeLoginHeader\u0060, \u0060getHeaderMap\u0060, \u0060login\u0060, \u0060put\u0060, \u0060get\u0060, \u0060evalJS\u0060, \u0060getKey\u0060, \u0060getTag\u0060, \u0060getSource\u0060, \u0060refreshExplore\u0060, \u0060refreshJSLib\u0060, \u0060putConcurrent\u0060. Counted over its method requirements (members with no body), once per name; a default supplied by a protocol extension is not counted, because no conformer is forced to write it. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoSourceBridge.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"228ccc360cffe037a2d259e9298a4a19608eb2243e72e2e0a8dd9301efd72a0b"}},{"ruleId":"AX9","level":"error","message":{"text":"Query writes persistent state on the read path: BookStore.loadMeta: \u0060BookStore.loadMeta\u0060 is a read-named query yet it performs a durable write on the read path (a persist to a store/client). A query must stay side-effect-free so reads are safe to retry, cache, and route to a read replica; move the write into a command."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/BookStore.swift"},"region":{"startLine":3613}}}],"partialFingerprints":{"codehealthFindingId/v1":"95c81527695717ab29bc32b73d16644d895db60f5643692f033ee11c91c9ba36"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: DownloadActivityAttributes.appGroupID: \u0060DownloadActivityAttributes.appGroupID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Widget/DownloadActivityAttributes.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e6debb6e5e470831746729acfda55a1ac6f397f92108b021fc10234b0c5a0f3"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Book.id: \u0060Book.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Widget/DownloadActivityAttributes.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"47271c350812fbdb23775859f00d62b4fe3df8577b0b66b69934c52ea013152a"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIBookRetrievalIndex.bookID: \u0060AIBookRetrievalIndex.bookID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIBookRetrievalIndex.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"765c7d82fcc6de70568dfd5600fcd0856bd855018d854a6dc288fb0ea30a0539"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIBookVolume.id: \u0060AIBookVolume.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIBookSummary.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"1615f218779625e169bfb397b739fab719ecaa707d3a7d8b09fda69feb2510d1"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIBookSummaryPlan.bookID: \u0060AIBookSummaryPlan.bookID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIBookSummary.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"298c0e962fda89880dbb980a9aa74806613bc726af7ecb8434bc39243397aa1a"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Part.id: \u0060Part.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIBookSummary.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fc5ed0c8d8992bd70194e2ac915a23441d9507edfe0b4bd9558fe322ca9ff5e"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Batch.id: \u0060Batch.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIBookSummary.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd937f7a66eb6ce4aaf8bdf339e01e027c3cab7f101a383b221edf3499b389f2"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Book.id: \u0060Book.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIBookshelfOrganizer.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"af7f099a7bc0d7f1a03a97e34d991b4ac736b0c5a9d29ad3b63c5c52deae34c9"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Move.id: \u0060Move.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIBookshelfOrganizer.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"499607f925d2b7d71889305817e1c9f647a5ba3a8f392bc54092a9061cedb041"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Group.id: \u0060Group.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIBookshelfOrganizer.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a29630df79f6349ff3c0f79f570ee49b22c63f79b48a5c2d3c15e49464b6acc"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIMemorySpan.sectionID: \u0060AIMemorySpan.sectionID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AICharacterMemory.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"01c7c94da439abcb689e1d748e0d21343fb4512e92c03097e7890961bddce42e"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIMemoryUnit.id: \u0060AIMemoryUnit.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AICharacterMemory.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c10789f48215e6a1f68003a40ed51c6e1114d4df65b6e2489b8c36053e02edf"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIMemoryUnit.parentID: \u0060AIMemoryUnit.parentID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AICharacterMemory.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b76e8c164b02c51487a3ebb708354e712dbfa4f85133e2f5e2ae37424e916d"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIMemoryJob.id: \u0060AIMemoryJob.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AICharacterMemory.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8b8bd7718b52b8f1e39b90d4db05151ec9448682e73efa344010260d08901ce"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIMemoryJob.bookID: \u0060AIMemoryJob.bookID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AICharacterMemory.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"a30dc3e45308b8d98c1dc80d5853be95ea9fdd28b471c73ae8f97351a6cd3cea"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIMemoryJob.inFlightUnitID: \u0060AIMemoryJob.inFlightUnitID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AICharacterMemory.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"b648eff7523cd24a9f76b8fdefa535b1f3fa9b886dd11424484462310a348da1"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIMemoryEvidence.id: \u0060AIMemoryEvidence.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AICharacterMemory.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"b887d81bffcf04ee997e238bf569661772161351c8aada8fa71f39a4024d3d75"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIMemoryEvidence.segmentID: \u0060AIMemoryEvidence.segmentID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AICharacterMemory.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"59ed503b5473e3e97609563a0c6f277e4c14994e071495671a0001bb268d5190"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIMemoryEvidence.unitID: \u0060AIMemoryEvidence.unitID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AICharacterMemory.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"48a0bdc062fc2359a03e6e09f704118dc48e04e3316a33f6c704c52d49fb24c7"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIMemoryMention.id: \u0060AIMemoryMention.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AICharacterMemory.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"96d88ef051d8e9cd81781cf6aa4facf30015409fb48e25d7c3c32a6454c0287e"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIMemoryMention.entityID: \u0060AIMemoryMention.entityID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AICharacterMemory.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f774367bae70812a97cfbbe0c9de2376b91f618ffd01b056884e29cacda53f"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIMemoryFact.id: \u0060AIMemoryFact.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AICharacterMemory.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e7ef3a16bdfef5dc0e92d218884adbeacf0a7812c16ebfe941b40de806c7312"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIMemoryAlias.id: \u0060AIMemoryAlias.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AICharacterMemory.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"34f116c2191798017899c9dee6145e84e8560a3ba2fef3ad6f632cd4cdfded7e"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIMemoryAliasDecision.aliasID: \u0060AIMemoryAliasDecision.aliasID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AICharacterMemory.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"409b5033575a619bea0f68cfecac8822c3de3d6eba2accfa5ded5030a18e7b02"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIMemoryCard.id: \u0060AIMemoryCard.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AICharacterMemory.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa007bce206348d1fc9bb1532205d9ccbc545b001b013335ff6b8c786162cbab"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Segment.id: \u0060Segment.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AICharacterMemoryExtraction.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"9248788b8a63f3d835519761c3fc4653d2460134a7c585c22e1b3513038f45cb"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Background.recordID: \u0060Background.recordID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AICharacterMemoryExtraction.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cb2c6d33ac58a9e1a7b6ee1d8034e62e09afd0d8c05e03fbf7d512a7bb0c72c"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Quote.segmentID: \u0060Quote.segmentID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AICharacterMemoryExtraction.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9a3419c6c3624bcde3c08a7aa946eb6b6086bd9168f5931c0d663376d05f062"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Mention.id: \u0060Mention.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AICharacterMemoryExtraction.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"c734680d47628b02adcf9ee38e46c5cfc632509956d25cf24209a250ff79639c"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIChatMessage.id: \u0060AIChatMessage.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIChatMessage.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec0cd68967d0f476e0587f3c4461bfdbba8eb84a97cd8f4fca5facc2c9ea9612"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIChatSession.id: \u0060AIChatSession.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIChatMessage.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbb8a3d160d36305a35b650c3527695b2d7f2f5a37e5e28a0cc6e2b488906323"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIChatSession.serviceID: \u0060AIChatSession.serviceID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIChatMessage.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eb81e42a4f6656e43b3c746d1a527b85576a452974e281ee8e90f8427f6e57a"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIChatSuggestion.id: \u0060AIChatSuggestion.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIChatMessage.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"56a85d5be54ea8145dfdfa13148ec46fb9dc6d4e6183c054f9cfdd1fb51c5592"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIContentChunk.id: \u0060AIContentChunk.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIChunking.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"bea848869477a9891473eed366a9a84cad4e299aa37721efcd309156e7595202"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIContentChunk.bookID: \u0060AIContentChunk.bookID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIChunking.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"1192d4bd3907538a5df76193ee6ea01b7bac6ad9836f6ed80b5c08d05f9cde57"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIContentChunk.sectionID: \u0060AIContentChunk.sectionID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIChunking.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a76253ca75b629caa4a72b7da81491eb95058e8448fb726ffed6662250acfc4"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIChunkableSection.id: \u0060AIChunkableSection.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIChunking.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"57e1d58f58761cbc18c565f99234bd0e7aad6f633239d33a515eb440665f098d"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Quote.id: \u0060Quote.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIDialogueAttribution.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8ae8d426e219b1969878d6323208dad9e357862e653d2b51fd074175d96e214"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIProviderPreset.id: \u0060AIProviderPreset.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIProviderPreset.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bced88025263283ca26c476828b8df21fb5aa4716d0767b2a87e096bfe5fff1"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIQuestionEvidence.parentChunkID: \u0060AIQuestionEvidence.parentChunkID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIQuestionContext.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"8015f716d1d17a694cdb417d71cece160b7ceae2f2209e49a1f7a008c63561a2"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIChatProvenance.requestID: \u0060AIChatProvenance.requestID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIQuestionContext.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dbb681f8cb750c76f953be5196240794321c99ec52f9a6591fbd0b9d16a768f"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIChatProvenance.bookID: \u0060AIChatProvenance.bookID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIQuestionContext.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"a881f8670e4c0d3b08d3d8f089fe4d7e0e432dfed4bff68dbe1fae297a762798"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIChatProvenance.conversationID: \u0060AIChatProvenance.conversationID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIQuestionContext.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"d38ee8695bfdbb62d4c6baaddc7341c0d8b6b8eeda786e204d0ab36f038ad7b4"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIQuestionContext.requestID: \u0060AIQuestionContext.requestID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIQuestionContext.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc604543fc38b3dcbc344451bf0be0fa695888f0467102a09d7166fd1643e738"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIQuestionContext.bookID: \u0060AIQuestionContext.bookID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIQuestionContext.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"dedc8e7246e59ce720a3021561b14a74fcad3c263abd4b45e281c8b54bdbe646"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIQuestionContext.conversationID: \u0060AIQuestionContext.conversationID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIQuestionContext.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e35fd4c7b1aa9fe4fe5d32b7942adf6406bc1537d7554a9e5d20e3b6e886cc8"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIQuestionContext.serviceID: \u0060AIQuestionContext.serviceID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIQuestionContext.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"e02a00d1fe03c6265ccc50ad58f1a6eed704b30d4727297c5431e051853c4dd4"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIChatRequestOwner.requestID: \u0060AIChatRequestOwner.requestID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIQuestionContext.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e682a7d1fd61f483bb59c581947bcd58266fd2d14ff1d556871200d15dfd3fd"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIChatRequestOwner.conversationID: \u0060AIChatRequestOwner.conversationID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIQuestionContext.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1e82ae709150362c287a9e842a738da6428c4df54d917664c8ac83ea41d6410"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIChatRequestOwner.bookID: \u0060AIChatRequestOwner.bookID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIQuestionContext.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec8f09b0d418842e934e7373273f7debfc497893d9048231015b853364c4578c"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIReaderAnnotation.id: \u0060AIReaderAnnotation.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIReaderAnnotations.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"17d20c9555fe27de0eadb64efb25757adbfd2effba632e2696092e1a28fcfece"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIReadingSelection.bookID: \u0060AIReadingSelection.bookID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIReadingAction.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"c02883dfebb38cbbfbe004dcad7bf684368a8cda5242d9dd20b272fb85d16cff"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIReadingLaunch.id: \u0060AIReadingLaunch.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIReadingAction.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ace4aa8bb08e522b007dcfe9440756dc430392dbbe0af4402f490bc894b5bef"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AICustomPrompt.id: \u0060AICustomPrompt.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIReadingAction.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f78037c5f87d33beceda382599232ed20885b55fae6257fcf858a2d84d93a76"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Node.id: \u0060Node.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIRelationshipGraph.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"07d3a12b80c600bbef426e99adb7b8739e0f5dcc29165ae200da45846b8bea2d"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Node.entityID: \u0060Node.entityID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIRelationshipGraph.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"5111d0ea6269299310191cbcff169e3eaee6d9ab2cf2aeb1881dcbfb44ccf849"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Edge.id: \u0060Edge.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIRelationshipGraph.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"71e91fee122a0c50f5691db5ebbc42fab1c90ed58a5bb290f2a6c2e209d7c61b"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Neighbor.id: \u0060Neighbor.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIRelationshipGraph.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"4027aeb9c926f2d7b06b41dcb56ab6ef406148450951e94c006280e01b0657fe"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIRetrievalHit.id: \u0060AIRetrievalHit.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIRetrieval.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"2af6810350a355382e9a6eac076bac2c2f8dab1dad1443305fa99528fc89e363"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Chapter.id: \u0060Chapter.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AISourceSnapshot.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9c2e50ab75c5f7e8a559f8dc5f89dd355520e70072448b6c90bf7b664425ddd"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIReadingBoundary.sectionID: \u0060AIReadingBoundary.sectionID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AISourceSnapshot.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"efbbfbb8c7b8faee0fe4fbbc024e8ad604fe773f512416407286f3557902df89"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: LLMCitation.chunkID: \u0060LLMCitation.chunkID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/LLMProviding.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c0247fb1bb9a2248a38126cae6b033b62dcf607b39cc7e8d248ac7b752277db"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: BookSource.id: \u0060BookSource.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSource.swift"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c8b1c7587882aeb980c582a9fca53c6c828ba75f6ba0957386c0ad9a90d49e8"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: OnlineBook.id: \u0060OnlineBook.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSource.swift"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"19c69a60987ef81d1eab3c4a0a5932b8805e3ffccd3c7ff14dea837e2831677f"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: OnlineBook.sourceId: \u0060OnlineBook.sourceId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSource.swift"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e3a567356298f2d5d51d74351be09d0f6d518bcdb2a0bf4b08b213d2e7df4c4"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: OnlineChapterRef.id: \u0060OnlineChapterRef.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSource.swift"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f252159b4c40c9b4c162eb48f1557c77bde11b6e48252583de76f723a7f030b"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: DebugLogEntry.id: \u0060DebugLogEntry.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceDebugEngine.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"d77a610936ba71316f7095513650fbfa0bdc061caf0a001356d63964f9c7584e"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: LogEntry.id: \u0060LogEntry.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceFetcher.swift"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"e09a702ad69d49ff3d2bbfa8cb40c6dd2d8175e044e1cea8e4be873a98cf47c8"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: BookSourceCheckItem.id: \u0060BookSourceCheckItem.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceHealthChecker.swift"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"976b2e9b19f2eaff01c7b74fd73719d88e44a6bcfebbc584257f3e7a3bae3b4a"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Pending.id: \u0060Pending.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceImportCoordinator.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"34b2dde4b7bfdd4b2aab0e1b36f98ffd427a115a123f3fb707edd0c838e5a34d"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: QueuedPayload.id: \u0060QueuedPayload.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/SharedImportQueueDrainer.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"c87a847883124f64da13bb67efcf1c18b62d10dd2afe3c16966c2557cafdd9ed"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ImportResult.bookID: \u0060ImportResult.bookID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/SharedImportQueueDrainer.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"1adf1275db17fc3300522b40a518a468c51140a0476011178648d914ee51370e"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderRequest.id: \u0060ReaderRequest.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/SharedImportQueueDrainer.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"31228eb076178f9cabb89c8a32700c42ef173a7ddc2b60f85f10daef1986297c"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderRequest.bookID: \u0060ReaderRequest.bookID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/SharedImportQueueDrainer.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fa1f174d4727e0249a0ae0f892a112c657addb49343a44436692d0eee6dce37"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: BookSourceReviewRequest.id: \u0060BookSourceReviewRequest.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/SharedImportQueueDrainer.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"aad8886bdce4a55e5ce0b4899280b1d687785fabe2a7d237d99a6d5a3dbde61a"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Entry.id: \u0060Entry.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/SourceImportPlan.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"c23092048960e735d7720d369c83f99dea6f0ab17b6f58ba3539094ce6b1054a"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: FixedPage.id: \u0060FixedPage.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/Comic/MangaChapter.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"928c5b90d476ee437666837c466ee4f018212f179cf464b731d2d935903bda25"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: UnifiedChapter.id: \u0060UnifiedChapter.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/BookParsing.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"0131a7888dcd13b6e1dee40bb6e336f70bec9730fc0a74319ebd11b29214fac9"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: EPUBManifestReference.id: \u0060EPUBManifestReference.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/EPUBCFIResolver.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cbf9161896d8190044417c016bfaf371dee8f96dc96e9cc35c88e641586860b"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: EPUBSpineReference.itemrefID: \u0060EPUBSpineReference.itemrefID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/EPUBCFIResolver.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c5eecb4429e366023a8fd11f3fa2f8fe3b5c54b4476c772a2d2be62f0ea83b3"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: EPUBMediaOverlayFragment.id: \u0060EPUBMediaOverlayFragment.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/EPUBMediaOverlay.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"662ce0ed47ba3db78c6fbdefec60063fd94b9557a0d1ca5067a21d252512d165"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: EPUBMediaOverlayFragment.textFragmentID: \u0060EPUBMediaOverlayFragment.textFragmentID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/EPUBMediaOverlay.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a57fb9d36b1903e3762a35ed03f5bcd192711aa40c75233309bb7fcd063e323"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Request.id: \u0060Request.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/FixedLayoutEPUBPageProvider.swift"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"addb37319bdf191fcadcac033f935f14bb063f6c19f556b8e1d304d80d52c388"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: PublicationSession.id: \u0060PublicationSession.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/PublicationSession.swift"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa18512e92e051e43b1d824642576fd318083bd8b10d00ffe2616b4a135de078"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: OPFManifestItem.mediaOverlayID: \u0060OPFManifestItem.mediaOverlayID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/PublicationSession.swift"},"region":{"startLine":1644}}}],"partialFingerprints":{"codehealthFindingId/v1":"de341da4a4267ace2ce4f6f1ab029b7b58a7102ce8a38385362d2dee464af799"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Fragment.id: \u0060Fragment.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/MOBI/KF8Converter.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"64f7f7e2778eec812502fd5994953cd404f9abb2e12e5dfc0783017959ef1351"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: MOBIHeaders.uniqueID: \u0060MOBIHeaders.uniqueID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/MOBI/MOBIHeaders.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"0caf6a690283280b87e11620934c935543bc952643ef09842505cd67e6e18573"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderLocator.generationId: \u0060ReaderLocator.generationId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/EPUBProgress.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"73eb07ba314d0f3465d25fd90bf92a32b537346c763076755723521a0fc12b28"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReviewTarget.id: \u0060ReviewTarget.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/ReaderHTMLUtilities.swift"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"d42955e95e6d5c02126c0415e8f3bd3f08ea4319f62168e95700613cb2a2b4a4"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: TransitionToken.id: \u0060TransitionToken.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/ReaderNavigator.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"209abfc2cbc0462e79f397a6c776f700a8822ee9ddb16e8c43c02ea1bea1244c"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderVisibleRefreshCommit.transactionID: \u0060ReaderVisibleRefreshCommit.transactionID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/ReaderRenderRefresh.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8b3bb291107d8d9b30790567ba0f13fc1126ff0212d15d76b570e9a30079755"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderDocumentStyleFingerprint.commentBubbleSelectedCustomStyleID: \u0060ReaderDocumentStyleFingerprint.commentBubbleSelectedCustomStyleID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/ReaderRenderRefresh.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"493d0bef2e50f55f873c5e7e766d87f3fd979ff42405009344b748a507a8cb26"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ActiveRuleSignature.id: \u0060ActiveRuleSignature.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/ReaderRenderRefresh.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"333106c290bc4b9902c6d07c42d382ad7ba778f1ce6dc612d9579aad6e50844e"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReadingPositionSyncItem.bookId: \u0060ReadingPositionSyncItem.bookId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/ReadingPositionStore.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"de0ed9642dac175dc03d552b5631ad357891b6ec14911aad1e8e373dd69c3b6c"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReplaceRule.id: \u0060ReplaceRule.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/Replace/ReplaceRule.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a3a4230926dc0b80d4be20e1d169e962cff7fbacd52a0456393047928ac9b4a"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: SimpleSelector.id: \u0060SimpleSelector.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/HTMLParser.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9d92aadfa2e595f27daa88af0f4916610bdb2425464741958957d32186b8b8e"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AzureTTSVoice.id: \u0060AzureTTSVoice.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/AzureTTS.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"85d47e27b81d98a8c0c1c1f489f3b6dc0cf96053e8bcc44171aeedf0b39ccbaa"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: EdgeTTSVoice.id: \u0060EdgeTTSVoice.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/EdgeTTSVoice.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"79802445cf34f073c49b0676ba84f6b92da3518f066fca84840d1e1c17cfe1fb"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: DownloadTask.id: \u0060DownloadTask.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/HTTPTTSEngine.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc7d7945bccc887bb3f644411184a410c4feb06cda91601c03201f7655d101b6"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: CloudTTSVoiceOption.id: \u0060CloudTTSVoiceOption.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/OpenAICompatibleTTS.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c5bf1f9d122ffca303f7599b760436a9bf132a98ec85c29646d104f221aa366"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: IdentifiedUtterance.id: \u0060IdentifiedUtterance.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/SystemTTSEngine.swift"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"8780851b6b0d14228a8aef9567e8c4526a3ed7b442e5f30f0457390a0d8f9f81"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: VoiceGroup.id: \u0060VoiceGroup.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/SystemTTSVoiceCatalog.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"e03eed6535b0d499bbca57ac51c366c97d8c5d3601943eddf2cce7c4ce66f0c2"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ImportedTTSSource.id: \u0060ImportedTTSSource.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/TTSAudioProvider.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"01154599e3ef833e79f2da23e242a51a1b7db3bdf86427a97951064fa3f4c101"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: TTSChunkAudioPlayer.currentChunkID: \u0060TTSChunkAudioPlayer.currentChunkID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/TTSChunkAudioPlayer.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"43e527ac70527cfb8dff3667a47267420c61f2e17e7da887615769831a2ca989"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: TTSChunkAudioPlayer.queuedChunkID: \u0060TTSChunkAudioPlayer.queuedChunkID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/TTSChunkAudioPlayer.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"a33730c9507a363f6e6363fd30fcd35e97b95293edecc2034dd900aa92b9ed1f"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Journal.bookId: \u0060Journal.bookId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TXT/TXTReaderIndexMigrationService.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"240ceeabcc7c67e1a09e8300a098ad0d479d232b1db912ce2659dc2cd6d11154"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: TXTReaderPreparation.bookId: \u0060TXTReaderPreparation.bookId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TXT/TXTReaderPreparationService.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecc31ad7ecc031d19ac821a3e67857a5fe455730f80070f588c9a31a1ee92e0a"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: TXTTocRule.id: \u0060TXTTocRule.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TXT/TXTTocRule.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa9a37c1433f4b39dd8f48a027ceb64bd5280ec7b2521e6de4de0dd114af7e74"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: TXTCompiledTocRule.id: \u0060TXTCompiledTocRule.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TXT/TXTTocRule.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec2a2deb5b89010f0a27c9e29160bb3a7ce33b2e7aacc75b2d9945423e4478fb"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: BuiltIn.id: \u0060BuiltIn.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TXT/TXTTocRuleDefaults.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f5779b60da40045db3fcf487ec2903c534501bff2ce487aff117202ea72b83"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Route.id: \u0060Route.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/Video/VideoEpisodeGuide.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfdfecf9fcc72d5691f6ddf429ea93480610f0a13f2f26026b8331c2832d433e"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Proposal.id: \u0060Proposal.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/AI/AIBookSummaryView.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"7598cefe23e70a94876eee05f0bf9ce1c5e48380563b1ea2baa645d1569a07e3"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Selection.id: \u0060Selection.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/AI/AICharacterMemoryView.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ff9dc054d42bd99ab1e87108b76627ae20146472efa9cbb451ec86d2cd43ee2"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIChatModelChoice.serviceID: \u0060AIChatModelChoice.serviceID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/AI/AIChatComponents.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"de1d90871e27ca7789cc084bdbb6b7ff1f0746d6876ae6a4df0122914a7ec429"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Item.id: \u0060Item.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/AI/AIChatComponents.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"c835e14d16aeb315b7932f39542e7906401e6a359060bcf03f6981bdbc91ef64"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: EditorRoute.id: \u0060EditorRoute.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/AI/AISettingsView.swift"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a0193484e6658200eb3bad7f77e4a9e5edcb7565828199b2f0a2191811a1b42"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: BookDetailAuthorAction.id: \u0060BookDetailAuthorAction.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/BookDetailComponents.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"c87a6592c68d0972b1f3e2fa8a43a3bcaffcd2d7bf407496120e6b640c0885a2"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: BookDetailLink.id: \u0060BookDetailLink.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/BookDetailComponents.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6586f79e1e7c04ab93b26b395b7d81080c7c9bc4fcd7b06278ab9a7ba91328a"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: BookDetailInfoItem.id: \u0060BookDetailInfoItem.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/BookDetailComponents.swift"},"region":{"startLine":1177}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0009afb76a04bfaa9a06466f3dc645a2363d385199d20b32ec7df421374c0d5"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Option.id: \u0060Option.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/BookDetailComponents.swift"},"region":{"startLine":1215}}}],"partialFingerprints":{"codehealthFindingId/v1":"6834fa209195aaa9d35dbd80be1e267acd4e7d349dfbcb5d617158acabce992f"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: SourceTagPage.sourceID: \u0060SourceTagPage.sourceID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/BookDetailGenreViews.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"4218d8c618e21be543b83c7972cd84cc51bf011fd72e077a3d9e041fc123eb0f"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Volume.id: \u0060Volume.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/BookDetailSeriesFan.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d23721467770696e7730b4d2fe06b6e5001c701c7a6ebfe6c99989a206ddb7"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Remote.sourceID: \u0060Remote.sourceID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/BookDetailSeriesFan.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2f608e4729ea968100e37570bf1bc7c4cdb397b4dacb7286c7195d1146750ba"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: SeriesPageRow.id: \u0060SeriesPageRow.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/BookDetailSeriesPageLayout.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"37b5908416277a1e2e4e95a7dbbfff7ef22c31f9e0b2dc189decc3b7a80ad55a"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: SourceCallBackTapRequest.id: \u0060SourceCallBackTapRequest.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/BookDetailSourceCallBacks.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c0b4506524dc94f7702399ab0908060fc118ad32c93dc6164b896468d87db9c"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: BookDetailSourceCallBacks.shelfBookId: \u0060BookDetailSourceCallBacks.shelfBookId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/BookDetailSourceCallBacks.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"66adb6136495bb726781fc5d47725bb581ea770b5ab36e831d3d43dff8891fa4"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: BookIntroActionRequest.id: \u0060BookIntroActionRequest.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/BookIntroRichView.swift"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b71da1ba0dba0ed52eea505162841b2564be1a70603ff2ad5f8d2ca20e994fd"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Failure.id: \u0060Failure.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/BookIntroRichView.swift"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac2be51881d6b4dd364f8786af969e855e1e623be9e97d33b08f080646c81e85"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: CoverCandidate.id: \u0060CoverCandidate.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/CoverCandidateGrid.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebc153323d0d0f0db2991de92a31c37f9239fd185327c76c6ac5e8017015ee38"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: CoverCandidate.sourceId: \u0060CoverCandidate.sourceId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/CoverCandidateGrid.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b04975b1375bbda5f4a8b4c6ddabe0d7985e6c52cebf45800d5c57d6d4ab607"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: VideoEpisodeRange.id: \u0060VideoEpisodeRange.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/VideoEpisodeCard.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"34b198a171d91875d1380a459650a2519a87021bf2af14943c3518ec8af29729"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: TOCLoad.formatID: \u0060TOCLoad.formatID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/WorkDetailView.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"b089cf4afa1195fdd56a44375f835e6796b95c85fa536b55b1d44de2f9ad5739"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: WorkDetailReaderContext.bookId: \u0060WorkDetailReaderContext.bookId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/WorkDetailView.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b292c2d13f99670513dc67440be44038cf851585c33f312fbedf9482274e141"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: BookSourceFieldSpec.id: \u0060BookSourceFieldSpec.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookSource/BookSourceEditView.swift"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5990cdd4cf33b6622cfbbcfbfd9e6857b67f4e9e4125707193d2180f7b503cb"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: MenuActionAlert.id: \u0060MenuActionAlert.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookSource/BookSourceFormLoginView.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"c339fd09c719ac8e4bd36d6400bcf59eeeda815454e763982573e07f4f98bfa9"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: BookSourceGroupCandidate.id: \u0060BookSourceGroupCandidate.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookSource/BookSourceGroupPickerSheet.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"038941414801b34f7c1141e052a6b41cfbafc53ad57bf81d2e4ea95433ab7338"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: PendingSourceCheck.id: \u0060PendingSourceCheck.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookSource/BookSourceListView.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"9645df5d34f0bc408511455747419cb6504a1b74605b28156c8cc3c35ecae74f"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: PendingGroupAction.id: \u0060PendingGroupAction.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookSource/BookSourceListView.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"31066625959ba6e3fede9cc0139f16fb912a881a7653c2c5ff268cae8a340b5a"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: PendingGroupPick.id: \u0060PendingGroupPick.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookSource/BookSourceListView.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7fa5615a8313bffa6b43c0b003fdcc0e112fea71646fb4e61222b59c05efc63"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: PendingGroupNaming.id: \u0060PendingGroupNaming.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookSource/BookSourceListView.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ccb9ba1c1e7d421be1b1ae6c0dcd81710bbc8640b2fa3dc546aaabcca6ff4b7"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: BookSourceRowGroup.defaultGroupID: \u0060BookSourceRowGroup.defaultGroupID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookSource/BookSourceRowViews.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"a09a9be103ec9e621c3b10d3d14c9c325882f671b8858afb8564b7674412c064"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: BookSourceRowGroup.topPinnedID: \u0060BookSourceRowGroup.topPinnedID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookSource/BookSourceRowViews.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"50889338a8c056093b35d4ae0bad0f0c6b8a3363a76682e4b8d0d659cd45e7bc"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: BookSourceRowGroup.bottomPinnedID: \u0060BookSourceRowGroup.bottomPinnedID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookSource/BookSourceRowViews.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6266f074dec001a6ac2276ed73522c8517e5e51d74da46d60943e11c2bb3426"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: BookSourceRowGroup.id: \u0060BookSourceRowGroup.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookSource/BookSourceRowViews.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3165530f8a54ed19322b471287a39c34ae7582a99e158a01a36f25012801fbf"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Pending.id: \u0060Pending.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookSource/SourceBrowserPresenter.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"330102b54694f8aaca997644980a53959c77236b35ee963c9683d467fc7d1542"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: EditingEntry.id: \u0060EditingEntry.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookSource/SourceImportConfirmList.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf4ffa04cd5086caf64a6bba4a4bbc7daa5fe068d7c2f21efe2fc2707ec3aec8"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderContentDebugTarget.id: \u0060ReaderContentDebugTarget.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookSource/SourceWebPage.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f15bf5f1590c9ad590216bee918c179e9ea5158b1b642d15634b5e30576bdcf"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ImportedBookPresentationController.pendingID: \u0060ImportedBookPresentationController.pendingID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Bookshelf/ImportedBookPresentation.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"aef761dbd0820c8624d39efeadf21f4c273f8be44ee583e85ef14b3251772ec6"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ImportedBookPresentationController.presentingID: \u0060ImportedBookPresentationController.presentingID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Bookshelf/ImportedBookPresentation.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"639621c4f712d1dc7418a1af0e7fd480c8ec5fda9956f13b8a66aa17ef41738c"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: OPDSFeedRoute.catalogID: \u0060OPDSFeedRoute.catalogID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Bookshelf/OPDSImportView.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5d8c1f783143cc7f4e4ad66f0835a41406e037d9725a26c8b5a095dd65fe330"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: WebDAVDirectoryRoute.connectionID: \u0060WebDAVDirectoryRoute.connectionID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Bookshelf/RemoteImportViews.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"a59bce195f460b2107bfe51b6ff9af63de7374a75b9fab86e8b756aa0148e0eb"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ChangeSourceTarget.bookId: \u0060ChangeSourceTarget.bookId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/ChangeSource/ChangeSourceSearch.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9a5fc3ad1d3f43f0de41b060fd8f29af2969ac46c5f0dd3d484658e13ee01af"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ChangeSourceTarget.currentSourceId: \u0060ChangeSourceTarget.currentSourceId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/ChangeSource/ChangeSourceSearch.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"e953fb7197d1b3fdc0275736369dd0bc503e0fb722d772662752c529f85ebd65"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: SubscriptionArticleRoute.articleID: \u0060SubscriptionArticleRoute.articleID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Explore/ExploreDestinations.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bf4f0b9e2091d0fba316b8800a602a769170ab51509b06e12d24f4f5c49fd5f"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: FixedPageChapterListItem.id: \u0060FixedPageChapterListItem.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/FixedPageReader/FixedPageReaderView.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c8a7c619d1f852bd75cce8e21c169721820a847835f65cfea9f1c0459e36e56"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Group.id: \u0060Group.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Library/LibraryEntries.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aa86a987f80b36a85327ba00794278cf50bbbd2a5129fb93845fd183c59d964"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: BrowserEntryPresentation.id: \u0060BrowserEntryPresentation.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Library/LibraryTabRoot.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"0474431201d26e5eb8427795dd39bd6ece3917132057b45dbabf79a624ffa79e"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Row.id: \u0060Row.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Onboarding/OnboardingContent.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"528734a9225da5eeb99b37ee30027fbc70eb9f595b6f5ecd7ca41eb31a9ff624"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: SwitchedVersion.id: \u0060SwitchedVersion.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/BookReaderView.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"62391a0b624466b19cf6b59be5da7ed4910d57ff7f68e38e4c01f08da22a36d2"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: TitleStyleAlert.id: \u0060TitleStyleAlert.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ChapterTitleStyleSettingsView.swift"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"00d721cbff1a54734ef2f59388658c37920c3cf7b2dd23210010a3130de189a6"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderAISourceIdentity.bookID: \u0060ReaderAISourceIdentity.bookID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderAISourceIdentity.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8a385738a48356b25271c62932fa58fafa2e9d0b4b6566ab84b3e63584b46ae"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderAISourceIdentity.sourceID: \u0060ReaderAISourceIdentity.sourceID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderAISourceIdentity.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"1592ef644773b990325002183029135934f1a25449046d2b5dda8b8fff073f1e"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ImportedKey.assetID: \u0060ImportedKey.assetID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderBarRenderModelBuilder.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"6548bfba2759b7d7bfed7e5eb4edefe6d90ffea50dd6ed2c9680955bd2a6478d"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderBookSearchHit.id: \u0060ReaderBookSearchHit.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderBookSearchMatcher.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"947b780d5cd429a092c61c925c1ff251a05c84ec6d6fdd036204b08f0c607936"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ChapterSection.id: \u0060ChapterSection.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderBookSearchSession.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c0bd6e8ddb53c7a7e583a68f5aff96ade741c84c4e249a3937be853fc97d2a8"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Row.id: \u0060Row.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderBookSearchSession.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc7d784b9e4c17695a324d3ef8b0e18cbe1237ee24ee11568debfb4f8af7a899"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderBookmarkChapterGroup.id: \u0060ReaderBookmarkChapterGroup.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderBookmarkChapterGroup.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"68a2a513762c33f2ccfd2a2e5e03ac625e74cce83c8c628eb7a1f7c83ab73c25"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderBookmarkToast.id: \u0060ReaderBookmarkToast.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderBookmarkToast.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ba75e9f0cb5a7c159b35ad48a7b7a722ae24a9c991e3dff424016d7c7be92fb"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderChromeIconAsset.id: \u0060ReaderChromeIconAsset.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderChromeCustomization.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"528bd49db5f8c3877760c4de8002a0dea417eefbf1e3af9390e3fd277732c5fe"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderChromeIconAsset.itemID: \u0060ReaderChromeIconAsset.itemID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderChromeCustomization.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b0a299f6f132fc0f28f5b4ca712055a1aacef9ca89c5075c2e5f08c975184c0"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: CommentCardStyleDraft.id: \u0060CommentCardStyleDraft.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderCommentCardSettingsView.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f00613e1e8bcf6d20eb1307b01526fce1a305b7f2adf5e079258350dcc1f20e"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ActionCell.id: \u0060ActionCell.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderModernBookCard.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f5570ef25f2ded5f9e13b8e8e657f107c569b66f18b3f0e56bbafbec8c32433"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: DetailReaderRoute.id: \u0060DetailReaderRoute.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderNavigationContainer.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"e70363b246305556f72089019d93e10a081a4ac1f7cd2d49149a95f3bc6a9443"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: CommentBubbleStyleDraft.id: \u0060CommentBubbleStyleDraft.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderParagraphBubbleSettingsView.swift"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb48a65441877679b208d4b3fc0c4fc4d065abfbc116bbfbfdc0d0f4227e2a14"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderRenderSettingsSnapshotInput.bookID: \u0060ReaderRenderSettingsSnapshotInput.bookID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderRenderSettingsSnapshotBuilder.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cfcec66233f9c99e51b1318e169946e1665b1d622b2e38f50162a98df6ea061"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: LayoutImportAlert.id: \u0060LayoutImportAlert.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderSettingsView.swift"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"19aa0e4ad85630663e529a86d2940a5791d43c62fb5b7348ae6a1a75f0c104cb"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderStyleAssetLibraryAlert.id: \u0060ReaderStyleAssetLibraryAlert.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderStyleAssetLibraryView.swift"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbae05fe85e37ef94f6c365eaccf6f8d53eeebee6ba66e6b486b6b18272dfc09"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderStyleImportAlert.id: \u0060ReaderStyleImportAlert.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderStyleImportPresentation.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"696d343a95e9fa3e125730f5223e8a6ec653139243d3c8e001c573d33d207be8"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: PendingPlan.id: \u0060PendingPlan.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderStyleImportPresentation.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"f487098281fbd3e32fbf1073dd71d8e2696a8e31bcdc2fe6ac774d8ac4397273"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderTransitionSource.bookID: \u0060ReaderTransitionSource.bookID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderTransitionSource.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"63e2a32c294c8515d9243a5f88835c514cc59c36c6b8c062815525de3b093398"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderNoteEditorRoute.id: \u0060ReaderNoteEditorRoute.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderView\u002BLogic.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"47ad4729ddf390c6e3e65ce9c96010987177cd356adb7432fb346ddc912858b7"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderNoteEditorRoute.bookmarkID: \u0060ReaderNoteEditorRoute.bookmarkID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderView\u002BLogic.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2cda1ab0e941090d72c3a8b168c829e55b90f34168d838ad572c5a267408908"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderNoteDeleteRoute.id: \u0060ReaderNoteDeleteRoute.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderView\u002BLogic.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"bce90cc91c9db976b4b503873117812bb67e9d295853cd3c48cba6add2127602"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderWordLookupRoute.id: \u0060ReaderWordLookupRoute.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderView.swift"},"region":{"startLine":3616}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2b8df89c243b8c2f5ac841dbdf864f959b0735934abf7a5cf3605d188e7af32"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: CachedChapterInspectionKey.bookId: \u0060CachedChapterInspectionKey.bookId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderViewModel.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5e1b95577da8f367d7c31ae7dd3f1800b23be26549a11dd9c7f8db3d4c9c182"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Group.id: \u0060Group.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReadingSettingsScopeView.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"023df8a7eb1adc1e28a83d4e1b42c8aa9a605bffcbe2aabf5f943023cb9a442c"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: SliceImageRequest.assetID: \u0060SliceImageRequest.assetID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/RegexHighlightRuleEditorView.swift"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"405931ea3e4e46d5ac580d1607288d5f9834c8aaab6603b4eaf569d1a3fd57bd"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: IOS17SearchResultTableRow.id: \u0060IOS17SearchResultTableRow.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Search/IOS17SearchResultTableModel.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dd309da36ace14af768f5e519cf3925eff8733bd45eaefb04eb849193e9bcb7"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: LibrarySearchMatch.id: \u0060LibrarySearchMatch.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Search/LibrarySearchResults.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"86d292d6ad11cc04996a22887343ebb456a22c969d44567c0532baeeaf3446b4"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: LibrarySearchMatch.connectionID: \u0060LibrarySearchMatch.connectionID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Search/LibrarySearchResults.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eeb4af0e1c153238a47705ae01b0fa0cff4be1c1c59880900a46e23f4ddb179"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: LibrarySearchFailure.id: \u0060LibrarySearchFailure.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Search/LibrarySearchResults.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"b43843ad63cb64f120d5a1d26b3088484911ed87c74dab3a0cd5887f890f8954"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: SearchResultRoute.id: \u0060SearchResultRoute.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Search/SearchResultRoute.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6c364c61318f8d60edab20d98f79af0f8e5d8178ab06de829fd87629a8f3c9a"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ShelfSearchMatch.id: \u0060ShelfSearchMatch.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Search/ShelfSearchResults.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"97f1896560acb5975eb499c239be55466b275f45cfa64e088dfdf07c97c88892"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: UnifiedSearchRow.id: \u0060UnifiedSearchRow.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Search/UnifiedSearchResults.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"a16c2fd4e328c9996a7ac652730c901493aa37d83460eed29004bf7a17c2623d"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ThemeScreenAlert.id: \u0060ThemeScreenAlert.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Settings/AppearanceThemeView.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d2b96423aecdb49cb3984e281b124c4974c957d124353ed6102d55ad130ba3d"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: CustomizationImportPrompt.id: \u0060CustomizationImportPrompt.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Settings/CustomizationImportOverview.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa23bf0871bca8ff278a0c2323afd825c653b7bfca882b31c6f3fc7e31358849"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Item.id: \u0060Item.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Settings/CustomizationImportOverview.swift"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"a91981342eeb40aa567c5a205db2a5a5aaeec7a2bfa88059207aaed592bfed4b"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: GlobalFontImportError.id: \u0060GlobalFontImportError.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Settings/GlobalFontSettingsView.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"2827e1e6ccc71b10e1e5947a53854c18ada1783635dbf47a399b69d4ab8301e5"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: LaunchImageImportAlert.id: \u0060LaunchImageImportAlert.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Settings/LaunchImageSettingsView.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bacf77754f3ff2fc1d4ca4e6e4f7ccb8c899ece342c84021f0c7c9075dad958"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderChromeIconImportError.id: \u0060ReaderChromeIconImportError.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Settings/ReaderChromeIconSettingsView.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b4614dfd0d244ba604e935d5ba96d053a860337e4c770927f7f9e6b03f574f5"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReplaceRuleImportAlert.id: \u0060ReplaceRuleImportAlert.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Settings/ReplaceRuleListView.swift"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d1cac3634562f91e96b60bb79f2549fb1dc5fca0fe6d3b288b46bb7de2932ab"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: RootTabIconImportError.id: \u0060RootTabIconImportError.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Settings/RootTabCustomizationView.swift"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d473e8b00e1518e6aa9a6b05b1081f6390c9dadd49d49b726d6f9317faa8745"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: PendingTTSSourceReview.id: \u0060PendingTTSSourceReview.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Settings/TTSSourceImportReviewHost.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"914460e694e3e821b315fcc0be01f1f99394c31f2429215a3b8c62f8f60bb36a"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: TXTTocRuleImportAlert.id: \u0060TXTTocRuleImportAlert.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Settings/TXTTocRuleListView.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fcb7e6abe45b59befeac5d916fdbaecf90e2a27254b62a54838eeb5a0c43f42"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: UnlinkTarget.id: \u0060UnlinkTarget.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Settings/UserDetailView.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"333513e5776efc42cdb9d89870a28a4c7b5c86dcee8b1741660f8560a3e4a3e5"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: WebChapterItem.id: \u0060WebChapterItem.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/WebBrowser/BrowserView.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddd6f5c80358ea997f334492683e20a5d05d9e346312fa9e32ceae5ffeb41563"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderPresentation.id: \u0060ReaderPresentation.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/WebBrowser/BrowserView.swift"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3d8132e52b263d54077e868076807adc038832ce189d6b91911bd1d86a12913"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIBookContentAdapter.chunkBookID: \u0060AIBookContentAdapter.chunkBookID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/AI/AIBookContentAdapter.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"082803790122f4fa260c563acbc598f165380fcfbdfc0942d8e3f667e620fdef"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Run.id: \u0060Run.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/AI/AIChapterTranslationService.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"b02a0cf4fd0757e1ff73d0306989477fad097d71b136c7b4bf6769dacfdad378"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIRequestTrace.requestID: \u0060AIRequestTrace.requestID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/AI/AIDiagnostics.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b1aafc12fff58a82b8575a9ca0a9cb090f0453cdb5ed6ec5c3b314ead24894a"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIRequestTrace.bookID: \u0060AIRequestTrace.bookID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/AI/AIDiagnostics.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"f94dc5504b4e95b8f3701d3351f1a049207d90138f2d9ec79250f5455f6d2e27"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Export.requestID: \u0060Export.requestID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/AI/AIDiagnostics.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"d71b8fa363eb813c2652a96ced2014b82ceef75011ba307b36d4a38e9b9f99be"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Request.bookID: \u0060Request.bookID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/AI/AIDialogueCastService.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"120924004fc6c9261bab8b35acef76d007825e4689053c974b68fcf759fa95a9"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Entry.id: \u0060Entry.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/AI/AIModelCatalog.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"c730f95fea300285aae639d09506cae42cc8269fcb6a18dce672d8d8570ebef7"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AIServiceProfile.id: \u0060AIServiceProfile.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/AI/AIProviderSettings.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"f854c96e416f987a4e1295499e42c28e46df95ab044ae2c9bc5cfae46e00f1ab"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ModuleRecommendationResolver.moduleID: \u0060ModuleRecommendationResolver.moduleID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/AI/AIRecommendationService.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"054d6d3956331588b6df1e4cc713863f060d28d547ca572903d96f4ed2b8eed5"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Entry.id: \u0060Entry.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/AI/AIRecommendationStore.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"83dbf045c4b2e48c280bc4afd0cf85212f2327685688055876bd4bf6b00f61c0"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: CalibreDiscoveredServer.id: \u0060CalibreDiscoveredServer.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Calibre/CalibreWirelessService.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"17e7a1cb6c5b28230fad965b31442da4516d312f5730ba780f08925ffb14a0b6"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: CalibreTransferStatus.id: \u0060CalibreTransferStatus.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Calibre/CalibreWirelessService.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aca8fe83581747d2a9a5e384a9dca31b7aa6026c1ecc358038345f63bac469d"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: CalibreDeviceBook.libraryID: \u0060CalibreDeviceBook.libraryID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Calibre/CalibreWirelessService.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"27803f200fa78c861b4c89efca7ba1e5bc12606255a276dd77bbcb31eb3802e5"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: CalibreDeviceBook.calibreUUID: \u0060CalibreDeviceBook.calibreUUID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Calibre/CalibreWirelessService.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"57129ed0fab6b323c04c888ea4fad8de1eb1f7de6e99e08b35351f4368276689"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: CalibreDeviceBook.bookID: \u0060CalibreDeviceBook.bookID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Calibre/CalibreWirelessService.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"944c2537b74264e23795a5c13d439bb05525ec2a548e962ed2e2aaee6f902f72"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Key.bookId: \u0060Key.bookId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Diagnostics/ChapterRetryLog.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a90532135b907d118ad887b110eaadbd310c9424791cb4c093d3c0108b1bd72"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: DiagnosticEntry.id: \u0060DiagnosticEntry.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Diagnostics/DiagnosticEntry.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"f99dd7814c46ebbca7052120e410fe779289c418b723cd9558c86477ac41266d"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: DiagnosticSession.id: \u0060DiagnosticSession.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Diagnostics/DiagnosticEntry.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"61594b26082c04320bff042aff86789d1ea32b097e6a71666f0a838d5a707519"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Receipt.reportID: \u0060Receipt.reportID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Diagnostics/DiagnosticReportUploader.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1e387448c18ee5e5dcdb4f6c311ed24dd4b99ae67552930f8d00d66f530a6fc"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReportBody.reportId: \u0060ReportBody.reportId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Diagnostics/DiagnosticReportUploader.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e485b4dbffa68ec92251ec35c8b594997831a25993a29e5e97e6e3925e2c2d6"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReportBody.installId: \u0060ReportBody.installId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Diagnostics/DiagnosticReportUploader.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"96d730eebd2fded583cf2ba6554e31c8c1df21d91f8844c8149e559bc9bdd85b"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Frame.binaryUUID: \u0060Frame.binaryUUID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Diagnostics/MetricKitCallStack.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a4e296ecad32f3803ee25a3956ddfa0df3174ff0d0b3c8c0945b10d99b5a79e"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Row.id: \u0060Row.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Feedback/FeedbackDeviceInfo.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"12502f688dce01e24dbf777c403d8ac2d4455b135b957102791887da779abc8a"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: FeedbackDraftAttachment.id: \u0060FeedbackDraftAttachment.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Feedback/FeedbackDraftAttachment.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d26b9debf4f055c46815e8219b0457433dd46709ea71af7fda8dab33a9f1604"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: FeedbackMessage.id: \u0060FeedbackMessage.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Feedback/FeedbackModels.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9fb69c0f08206a23586c9db61ce17d08625ebc8a3cb79171b3fcddb9d625956"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: FeedbackThread.id: \u0060FeedbackThread.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Feedback/FeedbackModels.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d887d96f8f19d530331fbc317e62830e3908b5b445cb55370eeda44ca7c979a"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: NewThreadBody.threadId: \u0060NewThreadBody.threadId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Feedback/FeedbackService.swift"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfe07beb188bc25d909c60b59d118234dcf880afb181df138499b5a964717239"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: NewThreadBody.installId: \u0060NewThreadBody.installId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Feedback/FeedbackService.swift"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"a948b6719775cc9bfa098538ba491f7474442059db5d266c3b70fa8bc1d6752b"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: NewThreadBody.diagnosticReportId: \u0060NewThreadBody.diagnosticReportId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Feedback/FeedbackService.swift"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"42e7d86d1b712782fed9ac8885de89da7441a6b50d9fd08dde2119c8a2e8875f"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: BookDTO.id: \u0060BookDTO.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LanServer/LanWebServer.swift"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a649bf26513d07e4549e629fececb443263069c8fc6a1eef5672294feed5bde"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: BookDetailDTO.id: \u0060BookDetailDTO.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LanServer/LanWebServer.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"37c65c3bbb14c54469356a587c01d8453301c547fda68adff15fd3e41503aece"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: BookReaderSettings.bookID: \u0060BookReaderSettings.bookID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/BookReaderSettingsStore.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"02a5a3b2599bc0d81cbd3dce35cd8896c40e4d0d5eca20c9ce2b85458bf8826f"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: SavedCovers.id: \u0060SavedCovers.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/BookStore.swift"},"region":{"startLine":1870}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea8ab6702fac83382369d843274c956e4995434daeecca68cb5055549dba191"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ChapterRenumbering.bookId: \u0060ChapterRenumbering.bookId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/ChapterRenumbering.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e8eab4cb8ac5b8a8bd674ef5e679458ccfe0564697cad523c0885bfb58c6263"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ChapterRenumbering.id: \u0060ChapterRenumbering.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/ChapterRenumbering.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5e5ab0a336ab3040a4619065895af0bf0df3311590a3d4506027ecce46955c2"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: RemoteEntry.connectionID: \u0060RemoteEntry.connectionID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/CopyLookup.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"11a4be89fed097002f99b3b2ccb421a4ce6f72b5af96612dcc63f2070fdbe447"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: RemoteEntry.entryID: \u0060RemoteEntry.entryID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/CopyLookup.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7527eb6e5cf8d2b6138d7fe7e4c488486efa2a398a7a3f759da04d155e3fb81"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: CoverInflightStore.nextID: \u0060CoverInflightStore.nextID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/CoverImagePipeline.swift"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"41832d4c4a7df7158115e424cf402faf531fbbcc916531ed671a97042a4038ed"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Entry.id: \u0060Entry.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/CoverImagePipeline.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b23bb7c229306d9b78e55a97b46b43dea46f29284d47c2f9b4ea419c2aa1f3b"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: BookChapter.id: \u0060BookChapter.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/Models.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4bfed632e526c17379c898bc40b2b9061a22c54ca687b5053fc43108f0b5120"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Bookmark.id: \u0060Bookmark.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/Models.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"19c781df6031e2dd988d041886f70167cbb10e375ee7b7e2b4c6aca1ec400de0"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReadingBook.id: \u0060ReadingBook.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/Models.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"2078910240e0e8f80ccd0f7136dc0a47ae15ebe3885818810116984036d8e59b"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReadingBook.bookSourceId: \u0060ReadingBook.bookSourceId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/Models.swift"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f1f82de379cc77a2cf554cefd1f870f526f32030c8308918139a460dc3858be"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AozoraBookSource.catalogWorkID: \u0060AozoraBookSource.catalogWorkID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/Models.swift"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"22ed05fadee51c3f5abfbcb07c2df4e5f38c03d6469093e77941e352af6bb0b6"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ChapterPackage.bookId: \u0060ChapterPackage.bookId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/Models.swift"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d66a1e4c0761d1663ea77c5cc36580a1d060466012dba87b6244ae08d068fc0"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: TOCPackage.sourceId: \u0060TOCPackage.sourceId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/Models.swift"},"region":{"startLine":900}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f6d86b664293fcb569685ebb63cc3ef82fe620d2d25cf036a05266293bee0ef"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: BookInfoPackage.sourceId: \u0060BookInfoPackage.sourceId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/Models.swift"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"60fb4d2962f45d15a6a7202046394713297a92b7c339b730bdc22406ca081e84"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderRenderSettings.bookID: \u0060ReaderRenderSettings.bookID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/Models.swift"},"region":{"startLine":1054}}}],"partialFingerprints":{"codehealthFindingId/v1":"632bb1b2b360e5d99f4338db7f8a78c63b72cf1c5d0b3df2dc902a1faac46bef"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: CopyMissing.id: \u0060CopyMissing.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/ShelfVersionSwitch.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"50bd3659778a33333c76918b3ef93e740384ba1d2ba0c63f374b3774afbfe57d"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: OnlineCopy.sourceId: \u0060OnlineCopy.sourceId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/ShelfWorkService.swift"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"618aabec63bff734a31536947fbd223356127468b6e94fd2ca59a3a785ecb308"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: BookMetadata.id: \u0060BookMetadata.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/UniversalBookInterfaces.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0b7d79dffda340978fbb31d19b5464f9538fda8eb68d049b391fc33fcbfbef7"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: UniversalChapter.id: \u0060UniversalChapter.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/UniversalBookInterfaces.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"921e4939077f008f0d43bdfc4c01abf160502d2d8bab94a1cb5c612c7cb9685f"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Waiter.id: \u0060Waiter.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Network/FetchRetryPolicy.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"d63fb43c7ae3147caa3118f8c200cbaf4f2cc6e85dc4eb0089b500e7c62c3b0e"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: OPDSCatalog.id: \u0060OPDSCatalog.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/OPDS/OPDSCatalog.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bafe2ce382b65eb2ac454b12ef8563e3f1fbd3b53311daa96e9e0b616b3d742"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: OPDSEntry.id: \u0060OPDSEntry.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/OPDS/OPDSClient.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e88fc6395134ffd787d218e39b6268985d70995d13d7db5218dc8a1d1d57d6e"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Book.id: \u0060Book.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Offline/DownloadActivityAttributes.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e968102c6af837f66b544d09a3f7b5509580760cbd86654fc5dcd39bfcc6012"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: OfflineMangaChapterRequest.bookId: \u0060OfflineMangaChapterRequest.bookId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Offline/OfflineChapterStore.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9eccae0dd6234782e5f9d6dc8e33adcb2c340ca2ec3282792671b9537e89f38"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: OfflineTextImageRequest.bookId: \u0060OfflineTextImageRequest.bookId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Offline/OfflineChapterStore.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"efd7e78f84157e92df36c567964d1dcb7b2f0374208a22abee47dedc67441c94"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: BrowseHistoryEntry.id: \u0060BrowseHistoryEntry.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/BrowseHistoryStore.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"513713c5820111889d108558dd9cce7e003077ee58b1c7c22d67a5233beef3fa"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: BrowserBookmark.id: \u0060BrowserBookmark.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/BrowserBookmarkStore.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"94cc31719a88eb70c1a8d0f8f7089d3d74950fb215d1304deeb961569889370d"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: DiscoverQuickAction.id: \u0060DiscoverQuickAction.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/DiscoverQuickActions.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cb49ff8219d6630dba997dbc17d906fff293ff5fe792f54845175b3ff17a8ca"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: DiscoverCardItem.id: \u0060DiscoverCardItem.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/DiscoverViewModel.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1918fe8d49b20b6fe969bee701d60481604ef72b7ff7a170c09ebf6b9f64b55"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: DiscoverFilter.id: \u0060DiscoverFilter.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/DiscoverViewModel.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ac4372f5e2436dfa4eb5f867c14215e5a9e3d1b3494031a3fb51ac0523166e8"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: DiscoverCategoryGroup.id: \u0060DiscoverCategoryGroup.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/DiscoverViewModel.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"55d0e24e7f837e169dfc7f49743c19387b4868e70a9116406e67f951f087e58c"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: DiscoverBookDisplay.id: \u0060DiscoverBookDisplay.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/DiscoverViewModel.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a96ce938bd4b28dd2ceb580640ec5d6ee4d1495154dedc7c78ea6699bb20b49"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: DiscoverShowcaseSection.id: \u0060DiscoverShowcaseSection.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/DiscoverViewModel.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"7de6072f0df0ace60bd125132a19d3a077e6a84935d1932e900dec5547df9a34"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ExploreCategoryReference.id: \u0060ExploreCategoryReference.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/ExploreCategoryReference.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"194caa4bfd33432d4dc69cc4263a33c8f8a7c763f2d8a81b8e65627239915d05"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: CustomExploreComponent.id: \u0060CustomExploreComponent.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/LegacyCustomExplorePages.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa1bdf703ed30eaf62e259a055f0e1b92b0d9323410a26b99871d5db75a2f6bf"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: CustomExplorePage.id: \u0060CustomExplorePage.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/LegacyCustomExplorePages.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"a70cfe5ff899d6e9d0fc9bd189dc2288c11fe5c94c81c17eecee92dc5f87ac65"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: BookOrigin.id: \u0060BookOrigin.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/SearchAggregator.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fa8ef753bdcaf9c46f09c76a161ef359f2558675a0fab6dc53b479725b17799"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: BookOrigin.sourceId: \u0060BookOrigin.sourceId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/SearchAggregator.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"2259c581778acee0eb77f05eab955c7e4ff200835ce2e08b3c3b5f731ac1093f"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: SearchBook.id: \u0060SearchBook.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/SearchAggregator.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"b01610096109c4b0fa157c44a7bf99f553904425c6323fb4e00fc259cc6a9e49"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: VideoStillGate.nextID: \u0060VideoStillGate.nextID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/VideoEpisodeStills.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"e064f8972aea3a3c01cde81517c90b6bd43328176fed7a1ec5f2e7ae402f5f06"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AozoraPerson.id: \u0060AozoraPerson.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/PublicLibrary/AozoraCatalog.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"3942f46e70667fb023b6aff0f564865169d7c2ac5cc6ee02450195d83b3a6717"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AozoraWork.id: \u0060AozoraWork.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/PublicLibrary/AozoraCatalog.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"242a82220a2e99014708576c60a72b20384e887f0377fb4656e073e2551b5751"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AozoraIndexGroup.id: \u0060AozoraIndexGroup.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/PublicLibrary/AozoraCatalog.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1b5ba95753b0e9afa204b401345f22370154e262a209643ce4bf60d4d7c0b45"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: GutenbergShelf.id: \u0060GutenbergShelf.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/PublicLibrary/PublicLibrary.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"713eb5b82af669a98e073e16d07e8e2db291309a550df1ee15e807cfef089d0a"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: GutenbergBook.id: \u0060GutenbergBook.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/PublicLibrary/PublicLibraryBookPresentation.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eb2d66b860542b1cc52eb012bef0599135cba35055ec6bddaf9c19e03f379f2"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: PublicLibraryBookSelection.id: \u0060PublicLibraryBookSelection.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/PublicLibrary/PublicLibraryBookPresentation.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f9197faee5b6e636dbe86f3099459c4f8f1752ed7433ede29d5fb6664e2ad90"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: PublicLibraryBookSelection.selectedID: \u0060PublicLibraryBookSelection.selectedID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/PublicLibrary/PublicLibraryBookPresentation.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"95875a7fda06f6f1581b33e66e2834950cee432d200922faf4d5f9ed0107edad"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: GutenbergAuthor.id: \u0060GutenbergAuthor.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/PublicLibrary/PublicLibraryBookPresentation.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"c39497a3dfd9db3719833a40162c2aa8650381a9bf915bba40695d30039e1e10"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: PublicLibraryCollection.id: \u0060PublicLibraryCollection.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/PublicLibrary/PublicLibraryCollections.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6eb1a4910ea576cad0a1996d6c09b216c90658f48847f2c14ace1c5de3dc552"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Key.uniqueID: \u0060Key.uniqueID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSFetcher.swift"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b1f5459d06ed3bb403d5cce38f850f072b505852c6a20640b3ea9e643d75b92"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: RSSXMLParser.sourceId: \u0060RSSXMLParser.sourceId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSFetcher.swift"},"region":{"startLine":1317}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e3fe2c551ae58024b01612a89640102aed50eef717fc22c9d6faa79b587b4e7"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: InAppWebURL.id: \u0060InAppWebURL.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSLinkRoute.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"1398654ba4df57caeebde016d1d3c1baa2d285ed84ad6da741d5d2735407a283"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ParsedFeedItem.uniqueID: \u0060ParsedFeedItem.uniqueID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSModels.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e784181c4ce62681eb0052848569068c258034fc1ae036b9a29388e56c48bbf"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: RSSSource.id: \u0060RSSSource.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSModels.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"0903c8f5a4c8b45cc9d6460a12006e02ebd4224fe20b90a6fdf28df208380373"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: RSSSortEntry.id: \u0060RSSSortEntry.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSModels.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d8c74238d8276fee8f365b142be5ec89daebf11d4d376a85ac203bbad6c7091"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: RSSFolder.id: \u0060RSSFolder.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSModels.swift"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"351e02a41bd560f7ddfc32d0cc321750effc6e37e3f16dd1c8ceb38bf8841e7a"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: RSSItem.id: \u0060RSSItem.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSModels.swift"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b1da549fea8da740711f6a56788168a519157a7573310484caaa8f0f6f70860"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: RSSItem.sourceId: \u0060RSSItem.sourceId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSModels.swift"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"c61bfcdba8f0af20c1219b36161a8bd458bab32631d99822c530dfc55056e4f3"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: RSSArticleStatus.articleId: \u0060RSSArticleStatus.articleId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSModels.swift"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9f15a1f3c14b2ff5926300c8b3f83f222a26c9fa1b6557491250ad450176b77"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: RSSArticleRecord.id: \u0060RSSArticleRecord.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSModels.swift"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"377ffef81404721a634656eca6b167d9550cb53022a4e993ce5cdd68c9f5f39c"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: RSSArticleRecord.sourceId: \u0060RSSArticleRecord.sourceId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSModels.swift"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f11f2cefa29baf4fd17f4f2cf4c105d81ce320d82d7c5338d99a98765424da8"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Snapshot.bookID: \u0060Snapshot.bookID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RemoteLibrary/CalibreProgressService.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"19a6a4d3928279de67990bbe64dd9c62179e82c6221a9c473ce0797ba8d29bb1"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: CalibreBookLocator.libraryID: \u0060CalibreBookLocator.libraryID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RemoteLibrary/CalibreServerAPI.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"684fe7d10086b4225dba3c0d50b040ffa1bb5660085c1fdda5e4a98ea05655d7"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: CalibreBookLocator.bookID: \u0060CalibreBookLocator.bookID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RemoteLibrary/CalibreServerAPI.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b6dbb333535afcfb7c805b2c2332ad65c13e809955af98fb932c9f43c6bb91d"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Lease.id: \u0060Lease.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RemoteLibrary/RemoteLibraryBookOperations.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"3429250b23e9da6bf710d2acadf5c080d8f407ea83a4149296c55db1f9fdbe17"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Lease.bookID: \u0060Lease.bookID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RemoteLibrary/RemoteLibraryBookOperations.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccf1882b2f02834b36aca7cf9d085df1c877f1141308818720e8d07688f3600c"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: RemoteLibraryFormat.id: \u0060RemoteLibraryFormat.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RemoteLibrary/RemoteLibraryItem.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8deaf2d8813a96a3e74f6263973b2bbb130faad3aab6a43ddd51dbcc95cbed2"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: RemoteLibraryItem.id: \u0060RemoteLibraryItem.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RemoteLibrary/RemoteLibraryItem.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"feac5108f1bbad1fa4fa0a33cf062c6f5db858450cdd4945a3d2ac5149d19039"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: RemoteLibraryItem.connectionID: \u0060RemoteLibraryItem.connectionID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RemoteLibrary/RemoteLibraryItem.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb7b00c92fba45f25b26d0daa27652f7926e22d7f265e9f5a58f8f7d20144808"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: RemoteBookReference.connectionID: \u0060RemoteBookReference.connectionID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RemoteLibrary/RemoteLibraryItem.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"52e3de34872fb2c2003aa3bb607c8cb2b6dd8bbb824bf00369e961ed7483b087"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: RemoteBookReference.entryID: \u0060RemoteBookReference.entryID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RemoteLibrary/RemoteLibraryItem.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff0dbfd6ba75e533fcdbdbafa0579417ba10fe0d8eaa714e4687f246157680f4"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: RemoteLibraryReadFailure.bookID: \u0060RemoteLibraryReadFailure.bookID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RemoteLibrary/RemoteLibraryReadFailure.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba07435629376a691cfe7e4a24b6bb5ada87ac1e735a8e09e4079e5b3bca2581"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: RemoteLibraryWriteResult.bookID: \u0060RemoteLibraryWriteResult.bookID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RemoteLibrary/RemoteLibraryWritingService.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"7872b182faa6306f3753d96fa442633eaa5b3df86db7c3f9f4690fb0a9aaa69e"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ModuleBookReference.moduleID: \u0060ModuleBookReference.moduleID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/ModuleBooks.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f8f92940a25de23a9020e80b081134a9f59ee8b70afaeb75335b0eb7c5105b6"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ModuleListRoute.moduleID: \u0060ModuleListRoute.moduleID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/ModuleListModel.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"e24f739319486252594dfd4cc99215d557f5f2f7dc0e1527976652c5c32064da"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ModuleListRoute.entryID: \u0060ModuleListRoute.entryID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/ModuleListModel.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"48c4832f799b755b974530626ffc8f56dd1df2814209113d9f6183f5f003e190"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ModuleStoreListing.moduleID: \u0060ModuleStoreListing.moduleID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/ModuleStore.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b73fe1cc9fca22bf64b99542358d1dddfdca7e96591afc23f48c2836b5e71d9"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ModuleStoreListing.entryID: \u0060ModuleStoreListing.entryID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/ModuleStore.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"02fc7f15d77cbe3b1b874022cef74b0e1a765028d95b7a1ac8d817d686ef87d1"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ModuleStoreListing.id: \u0060ModuleStoreListing.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/ModuleStore.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"13391e90fc00690f48d4423ab27751aed7d379afe5084472d5c173dd611dd38d"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ModuleStoreRoute.moduleID: \u0060ModuleStoreRoute.moduleID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/ModuleStore.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ceacc062aa046e16c37b76333ce2bb3a5686d96e847867d7792e2793f13126"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ModuleStoreRoute.entryID: \u0060ModuleStoreRoute.entryID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/ModuleStore.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"88a946c9ed5bd1e7ac6a416adb30ec785de41a86d8e59186d690b8c605aa26e3"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: WorkRelatedSet.moduleID: \u0060WorkRelatedSet.moduleID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/ModuleWorkDetail.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7ae82a8879d2328eb97c0b7b6fdb272a5e4aea80fda54cfadbf662482a7063a"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: RuleModule.id: \u0060RuleModule.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/RuleModule.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ddb6ec05f213dc46f77f017faa723a15b3fab462ead2ffc8e7b8b5fbaddb3ce"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ParagraphRules.id: \u0060ParagraphRules.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/RuleModule.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"63dbb93e08530cbb7b7f3fbadad2ddd658d9d7f87a49ef6844d56cd2ce277020"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ParagraphCountRules.id: \u0060ParagraphCountRules.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/RuleModule.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea888666bb18b3d88b63617aa571c42cac0a953918e2b195085a7c7c59f6c59"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: HotCommentRules.id: \u0060HotCommentRules.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/RuleModule.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"b269b9c44706df25108acf354b2751e759c7ba6ccc9c8c47796489b3ffb216ca"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: CommentChapterRules.id: \u0060CommentChapterRules.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/RuleModule.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"f47bd084a97237cea510c12a0fd1ac2e18bb7c9a3281ebb8dca6366e98e5296b"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Entry.id: \u0060Entry.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/RuleModule.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"93a3d1b1f430067a8c1205eaf5928f071746cf8084675f1298427f5a52fa2c23"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ListRules.id: \u0060ListRules.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/RuleModule.swift"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9e2927f46183a9f61e8ddd17485966d2653b132498413bb189771d023e7ad21"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ModuleCommentChapter.id: \u0060ModuleCommentChapter.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/RuleModuleClient\u002BComments.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2027eeecc075ba67a8d631c0403db38f9da7ada06837dbfa7e1981a02a231e5"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ModuleParagraphReference.id: \u0060ModuleParagraphReference.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/RuleModuleClient\u002BComments.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6bcb9eb32a05a0e2eaace9f299853ac1de23607cbbade60a573b532c1a5c9b1"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Entry.id: \u0060Entry.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/RuleModuleRepository.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"af47ddf8d20993bac58d8a35eed6b0652651b27d9cacf2bc80b399f82d21de1a"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Item.id: \u0060Item.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/RuleModuleRepository.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"23c79aff45b8ae013d9cce78c5827645a685e12bafbca55fd34626e3af6664bb"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: RuleModuleScriptRuntime.moduleID: \u0060RuleModuleScriptRuntime.moduleID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/RuleModuleScript.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"871815838f6f7d3ed703fded94f23b913946825a237fb0746db3f5304236e366"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReadingSession.id: \u0060ReadingSession.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Stats/ReadingStats.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd2d567f59f8c971cb73c82c383f725608b1dbdcd3a29e7a01509f18a98df9c"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReadingSession.bookId: \u0060ReadingSession.bookId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Stats/ReadingStats.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb10f12d88ca68f41feb51e291c58af878bcbc831b7bf2001a4ee98929c1ac55"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReadingStatsSessionTracker.bookId: \u0060ReadingStatsSessionTracker.bookId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Stats/ReadingStats.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dfee082d323c05e28cc500f5ddd645ff061048ddcb5517fda1093399abc3cc2"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: PremiumBenefit.id: \u0060PremiumBenefit.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Subscription/PremiumBenefits.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"d155cff500f4ea26d30f6a0c80f316d2fc0e7648726e1afa96eab60ff4c2ee4d"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Entry.id: \u0060Entry.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/WebDAV/WebDAVBrowseClient.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"600a41ef0ff0605508680165aa957bfd398e9f9a83f549b9a7e719fe664110d3"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: SyncManifest.deviceId: \u0060SyncManifest.deviceId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/WebDAV/WebDAVManager.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6f1f550d85d232b709437d2ea8a2a1fc155da492b8afc8b83f6ff7220e621a8"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ModuleCommentTarget.paragraphID: \u0060ModuleCommentTarget.paragraphID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/ChapterComments.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf8fdd81c0b2e1bc5aacb62a3b8ea2b15181e7cf7e46b109aef9a4bcdb5ef169"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Row.id: \u0060Row.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/HomeModel.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccefa53269ed22c4d533e926a0d9c28833ebac928bf220c557331e7399320fe8"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: HomeSection.id: \u0060HomeSection.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/HomeSection.swift"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"55b9002ced115e3f00ed87873f399a9f56e5891d955eca6d2aa96255844afd76"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ModuleList.moduleID: \u0060ModuleList.moduleID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/HomeSection.swift"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"93bc86b6616fb4aa9f9c180468f88eedea3e4883df7eb3d599f2b85446decd5d"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ModuleList.entryID: \u0060ModuleList.entryID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/HomeSection.swift"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"d35d870bc3bd3a9c62a7fa26844c6005176ad6d4188c815e938042645fda286a"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Draft.id: \u0060Draft.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/HomeSectionEditor.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d564cfba5e7dbf1c342cf2ee457755858e21c8bdbc51964a71a15254dac830c"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: HomeSectionGroup.id: \u0060HomeSectionGroup.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/HomeSectionGroup.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"849094383233f8a22e278cc72d40282e07a761468854c4f7c4ac7cdace0128f6"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: LibrarySearchAnswer.connectionID: \u0060LibrarySearchAnswer.connectionID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/LibrarySearch.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"22c92e4b4c37eefb712aa06f5de6530c2ee839592b9dea340d777107b257114f"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: LibrarySearchAnswer.id: \u0060LibrarySearchAnswer.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/LibrarySearch.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"638f869b1f3dee456fbef856a16eeec49bdb826ae1ce1f87d2801ad6a8bae6ce"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: MetadataFillQuery.copyID: \u0060MetadataFillQuery.copyID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/MetadataFill.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3c53a5c5db0edfc6d6ec70a22feda964c4bcbf0295a5b0b2d8fb13d7c88fe31"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: MetadataFillCandidate.copyID: \u0060MetadataFillCandidate.copyID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/MetadataFill.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"a967bbe85e22c01842613bb0289634759c5b1be703c0a9b952d378a69ef67036"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Input.id: \u0060Input.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/MetadataFillCoordinator.swift"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f6f23a5e05eb5169ea5fcc27b6a5c1cc1fffd036c34d27442b7a30b711a757"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ImportedMetadata.copyID: \u0060ImportedMetadata.copyID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/MetadataValue.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6979058c5632618e9ffdf1199146628afd5002077ff4a1a1926f57674cddd7a"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: WebDAVIndexState.connectionID: \u0060WebDAVIndexState.connectionID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/RemoteRecordStore.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"196a01a260b15bb45331659411fbd9093e69ca5514693d9f823c4947751973f2"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: CollectionLocation.id: \u0060CollectionLocation.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/SourceProvider.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"53ffaf721cfdc999d8e159aab6e288afc6cfe877e6e1e58eab099ca7e70a4d7e"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: CollectionSummary.id: \u0060CollectionSummary.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/SourceProvider.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc019d2610fadd22a516152aa2a091df8df5dd74330a8bd62464b2fd8df6f0e4"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: WorkVolume.id: \u0060WorkVolume.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/SourceProvider.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb318a2e23869ca9c6b2f3ab168465be6c1b522c0f854eaf827ad4e8c85f467b"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: SourceInstanceKey.id: \u0060SourceInstanceKey.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/SourceRecord.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cc094d60ea1d18dfe2a104812d8b679f18907505aac12cee2534351f759e05c"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: SourceRecord.copyID: \u0060SourceRecord.copyID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/SourceRecord.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"633d04e2d6129f8db64eb4311f93c2bd6313b7cdf08acc53f610a35da85384ed"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Running.connectionID: \u0060Running.connectionID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/WebDAVIndexCoordinator.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"01dfcbc1b76de9140d548df69b7ad15f35cca633916d002b2aac9d972c4eabc3"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: WebDAVIndexer.connectionID: \u0060WebDAVIndexer.connectionID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/WebDAVIndexer.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"751c9a513eea4e67cd90a93247194eca1eda54f19e7010387991f233d8712017"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: WebDAVMetadataFiller.connectionID: \u0060WebDAVMetadataFiller.connectionID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/WebDAVMetadataFiller.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bb648a1ed07d8e1cb4617a9d1d47219b188e29ae0b67ad467c403cf8131ea77"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Edition.id: \u0060Edition.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/WorkIndex.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"1374cace893f3541f4777f6087f59037b1781d82e414ea69f93b816759d83066"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Work.id: \u0060Work.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/WorkIndex.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"52e02bd4074e835b922030c1ce3297dfc6fd40759926ab27701b418334f58ceb"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: WorkReviewSet.moduleID: \u0060WorkReviewSet.moduleID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/WorkReviews.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1b24f90febf5a540fa4157c5ac649aec664acab3ed3612b74d26ebcf0a63b99"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: WorkDetailRoute.shelfCopyID: \u0060WorkDetailRoute.shelfCopyID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/WorkVersions.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ada1cfe81dbfcbe9b203ba917905d63a66e395c9d6933cb777b885224012b00"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: SyncEnvelope.id: \u0060SyncEnvelope.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/iCloud/FirestoreSyncManager.swift"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"065b349807063b1941a08d0cf1afeb97513e9b5c7f91c7d935020d82083e7c19"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: FirestoreSyncRecord.id: \u0060FirestoreSyncRecord.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/iCloud/FirestoreSyncManager.swift"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"51d48bd3875f8b7b72ea599927514717d1ba471c8fa44c709c36f6a69702df34"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: CloudSyncRecord.id: \u0060CloudSyncRecord.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/iCloud/ICloudSyncManager.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d01fee97310b76b7a4aedd3a9065fd7c0ef5233ec87f061cf02be6287a24e89"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ICloudSyncManifest.deviceId: \u0060ICloudSyncManifest.deviceId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/iCloud/ICloudSyncManager.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ae6d707cd59cda757a7a0ad4f0026b0b35c1104ed962ce5588af36824c8ad75"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ImageSourcePickerAction.id: \u0060ImageSourcePickerAction.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/SharedUI/Components/ImageSourcePicker.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b8430dc15d16586f1314f0b81064ce0c25ecc6324e6dcc7a68670ea1dc31c57"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: PendingShareExport.id: \u0060PendingShareExport.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/SharedUI/Components/MenuShareHandoff.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"00ae86e8fa27375e6a20b859d63df3bf03e94b7164c2b75658e8e29cce316965"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: SourceWebLogin.id: \u0060SourceWebLogin.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/SharedUI/Components/SourceWebLogin.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"68fa00e14bc8d00868ee8b651f018f2ce715f00feeb28e215e9da77af712110f"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AppearanceCustomizationBundle.wornReaderBackgroundID: \u0060AppearanceCustomizationBundle.wornReaderBackgroundID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/AppearanceCustomizationBundle.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7af61b451e9ff8dfd8c300b085ad80b9e0f687904e3af4209b09d26f566f488"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: TabIcon.tabID: \u0060TabIcon.tabID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/AppearanceCustomizationBundle.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"88bb8cd8e92f4174356aeb8d1bb7ef04aee109fb20f493d3ab69708b55a82640"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: SavedReaderBackground.id: \u0060SavedReaderBackground.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/AppearanceCustomizationBundle.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c0817b03a74d511f2b2616f1b32b9a87cb0640bd6d86f497ac8f506c4789bc8"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AppearanceCustomizationSnapshot.wornReaderBackgroundID: \u0060AppearanceCustomizationSnapshot.wornReaderBackgroundID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/AppearanceCustomizationBundle.swift"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcd694e2f0824c4ca4710708478e9fcdc7e63fb4116ab759672c1186fea7a3fb"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AppearanceImportSummary.selectedThemeID: \u0060AppearanceImportSummary.selectedThemeID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/AppearanceCustomizationBundle.swift"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"05ed86c68d9354f651803cd178c9a85af0a5a8c44ac444f4a1d8cbb05c79803f"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: SourceSearchRequest.id: \u0060SourceSearchRequest.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/ContentView.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"7495960b8afeacf20b441fd50cb7d0125f21f8423ada5161ebe24fa791a0ea7f"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: GlobalSettingsSnapshot.commentBubbleSelectedCustomStyleID: \u0060GlobalSettingsSnapshot.commentBubbleSelectedCustomStyleID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/GlobalSettingsSnapshot.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"04024b92105a0b75c590e1b361b2e7487cce9644acde2634b4ae54c65667c2ce"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: RootTabIconAsset.id: \u0060RootTabIconAsset.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/RootTabCustomization.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"a20339bceda00dd55bdee24eacc02b1b01bf7e6e9b41e20c3a6febfe517a5139"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: RootTabIconAsset.tabID: \u0060RootTabIconAsset.tabID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/RootTabCustomization.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"46e64d625fedce783285015fcb04e20a7479b6634dafcf061893b594397f100f"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: SharedCustomizationDocument.id: \u0060SharedCustomizationDocument.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/SharedCustomizationImportService.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"e18a9a1c2d89477f99da286183aba321b83fc0d88d4154b0669b5fc645dc2b1a"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: UserFontInfo.id: \u0060UserFontInfo.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Targets/Yuedu/SharedApp/UserFontStorageManager.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"2261a631742ff922d57f2fc2d7df38580a09c1f829a5559f189ac65d467008b1"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: BrowserInlineVideoPlacement.nodeID: \u0060BrowserInlineVideoPlacement.nodeID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/BrowserLayout/BrowserInlineVideoCoordinator.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"0269ca2146935a2b6de6419548ad7c955a2fcd62665a1874ce01067570426ebd"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: BrowserLayoutPageEngine.startBookID: \u0060BrowserLayoutPageEngine.startBookID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageEngine.swift"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"555c7cbaa7281a7132c80ae310f096e2efec6d251c1c57a2e3de00b84b4795f7"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: DebugSpec.traceID: \u0060DebugSpec.traceID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageView.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f7a8195939b22e5ecf94ffb6e29a6b7bea57187731483bccf7ffb6b10389387"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: InFlightEntry.id: \u0060InFlightEntry.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ChapterDocument.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"da86344bb58bd724e90fe03e02ba6aaf82a658e685da2cf2d1b492889e4a70cb"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ChapterTitleRenderedLayer.id: \u0060ChapterTitleRenderedLayer.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ChapterTitleDesignRenderer.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bd51e348ee3e9eb154ce651df35565727b5a2b76bb398c887d65ef5693fea85"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: CharOffsetRecord.bookId: \u0060CharOffsetRecord.bookId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CharOffsetStore.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d2214af1d5fb771e9906148dbdf81a5178b6620f211518fe872e3a0e002a0d"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: NoteMarker.annotationID: \u0060NoteMarker.annotationID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextAnnotationRenderer.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"0956306f95a1b8a15f9bf9545dbccba1f5c3ee0f5ae1edd994ec8d96eafe5d78"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: CoreTextPageEngine.nextLayoutInvalidationOperationID: \u0060CoreTextPageEngine.nextLayoutInvalidationOperationID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageEngine.swift"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"78296b6b6abf34a83d67633ff629554d849c36494e6ae5b2313de875d051b33b"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: CoreTextPageEngine.activeLayoutInvalidationOperationID: \u0060CoreTextPageEngine.activeLayoutInvalidationOperationID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageEngine.swift"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae42bdfc2829be1362fc1fd84ba004cee67d391fd4194cee5994ffcc6402a851"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: CoreTextPageEngine.currentBookId: \u0060CoreTextPageEngine.currentBookId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextPageEngine.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf9111b97df3799cf1a908df941dc8755e3ad4d465c7beb20227a1a4add35da3"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: CoreTextTextAnnotation.id: \u0060CoreTextTextAnnotation.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CoreTextTextAnnotation.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"84e5de037361406cbe8466bafbba588b57c8289b737b5edcb449a9595ce15b6e"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ElementNode.id: \u0060ElementNode.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0e9668edbd559d7286de66071c682457822a8a43801b23c1df258ac367f88e5"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Config.bookID: \u0060Config.bookID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"4931b9c5eb874b40734e357ced7187deb1c8b12ded48103934c8fa8d6b05e14c"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: SingleImagePayload.anchorID: \u0060SingleImagePayload.anchorID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift"},"region":{"startLine":1379}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fbb0a13c4cc9b28c3b86686f55a5253e1672680b070b5cf6f7cbe6d8f368f85"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Avatar.assetID: \u0060Avatar.assetID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ReaderDialogueBubbleMarker.swift"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d1340b49fa9424c698a6259a532c3889a78624eab9145fa88f4fabaad557015"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Key.assetID: \u0060Key.assetID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/RegexHighlightDecoration.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fce4adcb7d00ba21eeb4b0e5a2d3ba98906166370537bc2af47dc386b2629ee"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: EvaluatedMatch.ruleID: \u0060EvaluatedMatch.ruleID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/RegexHighlightEngine.swift"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6fb25c94c4b62b28c4c3e5ccaaa44eaf9a03708907d9c8e6ffa545388da3af7"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Key.ruleID: \u0060Key.ruleID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/RegexHighlightEngine.swift"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"36c80a9a408e966197958d44412c11d1c3b6115370a8bf76adfee924bc4af5b3"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Worker.captureID: \u0060Worker.captureID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/SVGWebViewRasterizer.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2b24b77083e78c39978f04e5a64c5af0662bb0fd2cbffe4639774815fbe2d3e"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: SVGWorkItem.id: \u0060SVGWorkItem.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/SVGWebViewRasterizer.swift"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9fde69dd5288f7497c38ade1811e592c629eb329f2b3f40c1746e8d36397bd8"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: TXTPageEngine.currentBookId: \u0060TXTPageEngine.currentBookId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/TXTPageEngine.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"08239a7df7f7f2e20beaf2f7dad60ff2ea439fc5fc8e98d629368c5a5581d572"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AppearanceCustomTheme.id: \u0060AppearanceCustomTheme.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/AppearanceThemePreset.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"07bbee06d5f9b4d4889c5c54f3d6c767c7701b3ce949b7fc8b013a817847b47a"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AppearanceThemePreset.id: \u0060AppearanceThemePreset.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/AppearanceThemePreset.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"227f34b28d07915363ce1fa6fe8f5a42c4f48665af6f0bcc500e885605b7163f"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AppearanceThemePreset.readerBackgroundID: \u0060AppearanceThemePreset.readerBackgroundID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/AppearanceThemePreset.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"3509a369d68ba34d9f647a59cb652e458fb7e3e4f002e10c82a033f3b5eb285c"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AppearanceThemePreset.classicID: \u0060AppearanceThemePreset.classicID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/AppearanceThemePreset.swift"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d2ad6c2c0299852da9250e3ec127f7d6d81950220c5e3110441c3fa8ed6c907"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AppearanceThemeReadingSettings.readerBackgroundID: \u0060AppearanceThemeReadingSettings.readerBackgroundID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/AppearanceThemeReadingSettings.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"eda4d07b1c90e22c423eef03fd5ff823f36067e544c9fa66e39ffe13b6f589f7"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: CommentBubble.customStyleID: \u0060CommentBubble.customStyleID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/AppearanceThemeReadingSettings.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6a0372c98d758574195f31104e908d84f61763a9aaae69e6810805e6c37417d"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ChapterTitleLayer.id: \u0060ChapterTitleLayer.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ChapterTitleDesign.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"2035a95bb9de501df9018080d38d3d733a1f480ca72aaff8744c5ae5f85144eb"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ChapterTitleStylePreset.id: \u0060ChapterTitleStylePreset.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ChapterTitleStyle.swift"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"319c5580fd48652da2d6880b9cc64905cce3272f68d93ee8d349dc1a873073a7"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: TabIconImport.tabID: \u0060TabIconImport.tabID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/QiThemeImporter.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d3694ec2d9b1d04c52d6be1070866e339978ffa360d67ea6c6d16ba1b1ec2c"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderChromeIconImport.itemID: \u0060ReaderChromeIconImport.itemID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/QiThemeImporter.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"12fc312902290cd9162c1a42d9e54544ebf4a87765f346b89987e4a70570ef03"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: QiThemeManifest.id: \u0060QiThemeManifest.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/QiThemeManifest.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"5767ee670563aac1183c26433afe92d3ca1c8a6ba44d59cd6bd6cdce1e2a9fd8"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: QiPreset.id: \u0060QiPreset.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/QiThemeManifest.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"61bb6a87f84e4257d0bad648454485a381b5ea8fbe17da85a82d4d78cbc5c420"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: QiChapterTitleAsset.id: \u0060QiChapterTitleAsset.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/QiThemeManifest.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"8290cf3a1477bd45e4b150f04c5bcd39f5b44118e971eb3976e5bbad2b14e3ed"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: QiDesignerElement.id: \u0060QiDesignerElement.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/QiThemeManifest.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"581ab03ba9826d79e4654523248af11b03766431e8a5fdfca5195d68f29e64b8"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: QiDesignerElement.assetId: \u0060QiDesignerElement.assetId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/QiThemeManifest.swift"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"48cf2acfb782915c70fac153da976d6bada79063047b0c8f2c1906adbeaf6249"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: QiBubbleStyle.id: \u0060QiBubbleStyle.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/QiThemeManifest.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd0ec8d40773b7cb05d382c2a29e377e740408be96a29fde9bb4500c76f59aaf"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: QiLayoutWidget.id: \u0060QiLayoutWidget.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/QiThemeManifest.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0d030d1e95bdf2320b9bd67b73271c063903aa063f88cdaf7fd5f6003287ac9"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderBarField.id: \u0060ReaderBarField.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderBarLayout.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca166c7b9fde1ed985a06dd27033c4c2b3d5d163a34a1c7e41db140ca5cbeb11"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderCommentBubbleCustomStyle.id: \u0060ReaderCommentBubbleCustomStyle.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderCommentBubbleCustomStyle.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"4834e71f2c36c43606be6f844841ead4b7a0a0ed89bc73bdc4db8a876169a520"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderCommentBubbleSyncSelection.selectedCustomStyleID: \u0060ReaderCommentBubbleSyncSelection.selectedCustomStyleID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderCommentBubbleCustomStyle.swift"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"bebed4f909fd8da7cf9e07579f2b13ef490f9c43a72ff04cefb83dd47eeb68fa"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderCommentCardCustomStyle.id: \u0060ReaderCommentCardCustomStyle.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderCommentCardStyle.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"988c2eaa79a7d5658737121cae9501f77f2bb843d9f3e0466c782da761ac4fa0"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderCommentCardChoice.selectedStyleID: \u0060ReaderCommentCardChoice.selectedStyleID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderCommentCardStyle.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"709a3ed6db7aafa675ffba1ab7c4ec4f2c5f76a577bfd6fd9e47486bf9229be6"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderCustomBackground.id: \u0060ReaderCustomBackground.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderCustomBackground.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"743df4bdcf99ca5b3bd72a8440071749da81af2fcb27c11c2ac5edc0f45ba13b"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderDialogueBubbleAvatar.assetID: \u0060ReaderDialogueBubbleAvatar.assetID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderDialogueBubbleStyle.swift"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"dccdc3fa530022d09f80ef7badf512f469f74d3f8885db6fe41d219f1647dbf3"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderDialogueBubbleSkin.assetID: \u0060ReaderDialogueBubbleSkin.assetID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderDialogueBubbleStyle.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"d98d3a46e8f2a860e60bcd799c14f0d20888c57b3b1b8b50c04c23888afdb787"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderOverlayComponentConfiguration.svgAssetID: \u0060ReaderOverlayComponentConfiguration.svgAssetID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderOverlayLayout.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb563ed1c5a671982b2dc6a7b482f6daa76bf3433004b73b5f3c386a0979ab93"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderOverlayComponent.id: \u0060ReaderOverlayComponent.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderOverlayLayout.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea2aa2277c40386dc7661a47ce37d00b26990168c72386b65fa1e23c88123a81"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderOverlaySVGAsset.id: \u0060ReaderOverlaySVGAsset.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderOverlaySVGAssetStore.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"e588fd32cfdeb0fd0a2fa0a006750cb2de4e76093b5e10e4ad9e1c6d090793c2"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderOverlayPeerFrame.id: \u0060ReaderOverlayPeerFrame.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderOverlaySnapEngine.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dc6fbfcd526e48d51693a177227c3eeb4659b61d99abf24dbdddc1a7b62e008"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderStyleNormalizedPeerFrame.id: \u0060ReaderStyleNormalizedPeerFrame.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderOverlaySnapEngine.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"ced45fc937a8e53824ab0ee8c5e877b92dbbc3d15183eacec803fd2eeea14571"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderBackground.id: \u0060ReaderBackground.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderSettingsBundle.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"c370de73e4ca7ec50474875a1f8a89568e25d00b6cd689fc33dd8523dfa8cd2a"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderBackground.imageAttachmentID: \u0060ReaderBackground.imageAttachmentID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderSettingsBundle.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"d438fcab4b2e14aa6758fd88bff9d603a6169af7efb0e433b3ee744f60207f76"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Font.attachmentID: \u0060Font.attachmentID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderSettingsBundle.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e4b129e1a3be422ae69423365b80209b2d44a50f790fd4d8e3b26b76c12b609"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderStyleAsset.id: \u0060ReaderStyleAsset.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderStyleAsset.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"5823833376b79431c7122322f54eb90627a5d62fa1516c9d6f1b6c07b00fcfb5"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderStylePackageFile.id: \u0060ReaderStylePackageFile.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderStylePackage.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"74cca073061d42f4d09e23608a802d30f1977b101a8575632336c17791030422"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderStylePackageAttachment.id: \u0060ReaderStylePackageAttachment.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderStylePackage.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"afd881c79db064ce8a6e7b761d6b9d39473fc389c5a3a5dc08fffaa4494a1717"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderStylePackageAsset.id: \u0060ReaderStylePackageAsset.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderStylePackage.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"48df27a4334f3817c70f7a712119cb2b0adf86872804b3c8fb41553f01032c8c"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReaderStyleImagePresentation.assetID: \u0060ReaderStyleImagePresentation.assetID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderStylePrimitives.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"7540853a066b1e0a3a0f1749308e509363c38c597247f594bab95b8a39383b7b"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: HighlightArtwork.assetID: \u0060HighlightArtwork.assetID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReedenThemeImporter.swift"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2e8faa8bd468864b2a3fda8ed331ac9598d89e74880736ff5bf588618acc36a"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReedenThemeVariant.audiobookSkinId: \u0060ReedenThemeVariant.audiobookSkinId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReedenThemeManifest.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"a209d540566b3b63c84c11228947ca3d5de5811c6def3365099e12d83f8392fc"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReedenThemeVariant.coverGalleryId: \u0060ReedenThemeVariant.coverGalleryId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReedenThemeManifest.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1ae7a93f5ac1d4b17033ff3d21a8fa976060306677505d44765fa42b251d587"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReedenThemeVariant.navbarPackId: \u0060ReedenThemeVariant.navbarPackId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReedenThemeManifest.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"db70e30377d26efbe14a694e06ffecea0a5e1cfbad2d3b30ffc96b34d33717ab"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReedenThemeVariant.customSplashId: \u0060ReedenThemeVariant.customSplashId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReedenThemeManifest.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"18ab46bba4469629ceab394573931a8a8cbc711cc8aa039080dece5f24abccdd"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReedenThemeVariant.readerColorSchemaId: \u0060ReedenThemeVariant.readerColorSchemaId\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReedenThemeManifest.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"95bde2be3de58cd6c44e3b97a12333b96a0434d42ab5cfeee598206afecbfa5b"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReedenBoundHighlightRule.id: \u0060ReedenBoundHighlightRule.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReedenThemeManifest.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"87a07e7328b2cfb16a4b03262c6eef680ad15daccde7ec7de45f846fa5dcf9fe"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ReedenTitleStyle.id: \u0060ReedenTitleStyle.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReedenThemeManifest.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c19d3498b27e69fe967c5760a2f3c8da51a861f85336b3819ee0fd3ec403ff6"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: RegexHighlightRule.id: \u0060RegexHighlightRule.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/RegexHighlightRule.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9b36f33e81c72b505da30aa6ee4c91ad34f09b3a3aab405aede757f56570338"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: RuleListFields.id: \u0060RuleListFields.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/RuleListMapping.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"957e7cc1bf3f171797741a711fdfc02734a1a821cfe02803297a121f0cad0fc3"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: RuleListItem.id: \u0060RuleListItem.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/RuleListMapping.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4d18dcbb2aed1d6b384725c2c4c78e7b52e05efb103a64752f7a6261349d00c"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: BrowserPresentation.id: \u0060BrowserPresentation.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Explore/Home/ExploreHome.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"d413130cf98e2d511274890366bb2f5aef8f69653397ad30475dfde41d680b5d"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: HomeCardContent.publicLibraryBookID: \u0060HomeCardContent.publicLibraryBookID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Explore/Home/HomeBookCard.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d8e0d55f5f22fe95ce7a42157f660bcf23a816ccab8c3e3b8caf83d2924c26"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: HomeSectionEntry.id: \u0060HomeSectionEntry.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Explore/Home/HomeEditor.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"7994cecfbb20b7af68be766b1720e09471aadd520740100bf3ab22f7ee77beb5"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: HomeSectionDrag.id: \u0060HomeSectionDrag.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Explore/Home/HomeEditor.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d0cf137adfc134f8d27cb7093d5626acba375a63c621ede3e21f6bf66c5667c"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: HomeCardMenuItem.id: \u0060HomeCardMenuItem.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Explore/Home/HomeSectionCards.swift"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ce6fcd017a49e0246e5b8813bc23377f0459e9f9c82709d055057d5b06be9e8"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: PublicLibraryCoverAnchorView.id: \u0060PublicLibraryCoverAnchorView.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Explore/PublicLibrary/PublicLibraryBookSheet.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"e86bb6b20bcffe1f462b27d5cc44eea170f3c021bc01a0a0420ad540a33240d1"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: PublicLibraryReaderRoute.bookID: \u0060PublicLibraryReaderRoute.bookID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Explore/PublicLibrary/PublicLibraryBookSheet.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cbb8c822bc94ac70ca9a5682f630229813fb59dce7cec5f87322840985169b7"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: Entry.id: \u0060Entry.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Explore/PublicLibrary/PublicLibraryBookSheet.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"096ff712792c86adc1b8a458cc2b2d7d82efe182a2608f2161dd3291d4edac8b"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: FixedPageWebtoonCell.reuseID: \u0060FixedPageWebtoonCell.reuseID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/FixedPageReader/Webtoon/FixedPageWebtoonCell.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"f43364087ebaec1d8ab524ee58eb2ba0bb7cbcef5bd4035f5448bd018232c135"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: RuleModuleExport.id: \u0060RuleModuleExport.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Library/Modules/RuleModuleDetailView.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8d4a002c4af6731103f4034d8b76f7a04328ffc519266c0d02df314f8d5dbef"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AudiobookWorkDetail.id: \u0060AudiobookWorkDetail.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/TTS/AudiobookView.swift"},"region":{"startLine":994}}}],"partialFingerprints":{"codehealthFindingId/v1":"b44b42f42f3b69460bb47a501ccdb24845dda12c393a4a8c20f6eea40dcd3e9f"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: NowPlayingBarBook.id: \u0060NowPlayingBarBook.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/TTS/NowPlayingPopup.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"3405d632a0924697461b7953a3ae76115628a6df7e6557c2b533d91ca5dfcfb9"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: GroupSheet.id: \u0060GroupSheet.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/TTS/NowPlayingPopup.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c87162ad030e9ae96ca7fd46a363d898e8f579e55d730717b5814307bbe547d"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: WorkDetail.id: \u0060WorkDetail.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/TTS/NowPlayingPopup.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"8991b162122b5a17f4dc0a8aa61055f52f41ed8527745f0347adfa66e1d17b36"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: WorkDetail.bookID: \u0060WorkDetail.bookID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/TTS/NowPlayingPopup.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"c038fc3dce70f4190b27899c21589ac233abfc9fdfa0db094b80d1de1f5dda60"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: NowPlayingBarState.bookID: \u0060NowPlayingBarState.bookID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/TTS/NowPlayingPopup.swift"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"4abf0f505ae1fb9809610ccf72c0ffe82ae7997ebb563236cb8b6ae61ccffe7d"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ShelfCoverKey.bookID: \u0060ShelfCoverKey.bookID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/TTS/NowPlayingPopup.swift"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1a4f848138a3955b39651d5aaba4413409d4b98d40511c38f1ca03e34c85a5f"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: ShelfCover.bookID: \u0060ShelfCover.bookID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/TTS/NowPlayingPopup.swift"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ab456ff939259f115dddf77e5fe0accf3bf9c80aac4fb501054d8a5086f71b6"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: SubscriptionArticle.id: \u0060SubscriptionArticle.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/Providers/SubscriptionArticlesProvider.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"dee8c318b56f203c38db4f3828b48eaec406b24df5be78da63cca9d72e08cde8"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: LoginField.id: \u0060LoginField.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/Login/LoginManager.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7c988d345d27bdeda2ef617e951b8c1c074f5dc1109ef8ba4d96d0586c28b86"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: AnalyzeUrl.serverID: \u0060AnalyzeUrl.serverID\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/URL/AnalyzeUrl.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c576ce3676873b51a67de6277664d0cdb79d6af94b9628ebc1747efaa09dea5"}},{"ruleId":"DM2","level":"error","message":{"text":"Raw-primitive id despite a typed-id idiom: URL.id: \u0060URL.id\u0060 is a raw primitive id while the repo already defines typed-id wrappers \u2014 an inconsistently-adopted typed-id idiom. Give this identity its own typed id so it can\u0027t be confused with another entity\u0027s id or a plain value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/RSS/RSSFeedView.swift"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"e459a11290d80ea7baa8199ad90e94078e96632a897b2cb31c28d2cc85a6c49d"}},{"ruleId":"DM4","level":"error","message":{"text":"Anemic domain model: Entry: \u0060Entry\u0060 is a data-only reference entity whose behaviour is DELEGATED to a foreign utility (static methods that take it as their first parameter and hold its logic) \u2014 the anemic domain model. Move the behaviour onto the entity so it enforces its own invariants rather than being driven from outside."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderViewportFragmentHost.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4d03061980f9f291007f624eb5049425be92d27f7ef0ea23e690274447b5a28"}},{"ruleId":"DM4","level":"error","message":{"text":"Anemic domain model: UIColor: \u0060UIColor\u0060 is a data-only reference entity whose behaviour is DELEGATED to a foreign utility (static methods that take it as their first parameter and hold its logic) \u2014 the anemic domain model. Move the behaviour onto the entity so it enforces its own invariants rather than being driven from outside."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/BookDetail/BookIntroRichView.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e88a2585fc86c7507fc551e9895665764438bd37d872caabfb81fe6a66cd3b0"}},{"ruleId":"DM4","level":"error","message":{"text":"Anemic domain model: URL: \u0060URL\u0060 is a data-only reference entity whose behaviour is DELEGATED to a foreign utility (static methods that take it as their first parameter and hold its logic) \u2014 the anemic domain model. Move the behaviour onto the entity so it enforces its own invariants rather than being driven from outside."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/RSS/RSSFeedView.swift"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7532fc6035596f8e00223d6ffea9f84b5aa910774d92613ea96c1e7cce6fb8d"}},{"ruleId":"DM4","level":"error","message":{"text":"Anemic domain model: Data: \u0060Data\u0060 is a data-only reference entity whose behaviour is DELEGATED to a foreign utility (static methods that take it as their first parameter and hold its logic) \u2014 the anemic domain model. Move the behaviour onto the entity so it enforces its own invariants rather than being driven from outside."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSFetcher.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8fd7a73532d4af2ce0e46a4fcc0debbb25d6a7e5c152a72543bd9d6e3d3574a"}},{"ruleId":"ED4","level":"error","message":{"text":"Dual write (no outbox): ShelfWorkMerger.absorb: \u0060ShelfWorkMerger.absorb\u0060 performs two independent DURABLE writes \u2014 \u0060positionStore\u0060 (a persistence store) via \u0060save\u0060 and \u0060store\u0060 (a persistence store) via \u0060delete\u0060 \u2014 in one command path with no shared transaction or outbox. A crash between the two leaves the stores diverged (one write committed, the other lost) or emits a phantom record. Wrap both in one transaction, or record the second write in the same store and dispatch it afterwards (a transactional outbox)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/ShelfWorkService.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c6a736fa17af6ef188964d89638dfdb3b35facd8a14ff809de811d784ea1afd"}},{"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":"P12","level":"warning","message":{"text":"Test suite runs only after the merge: \u0060aozora-catalog.yml\u0060 run(s) the test suite, but no workflow that runs tests is triggered by a pull request (or a merge queue) \u2014 so the suite reports on code that is already on the default branch. A red build there blocks nothing and the only remedy is a revert. Add the pull-request trigger to the workflow that runs your suite so the gate applies before the merge, not after it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"731ad560de6aa35d3e92103d5ad0fbec4c54f771b709281e852941847e03ef03"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 3/4 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060gateway\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"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 2 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/localization.yml"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060functions/package.json\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"functions/package.json"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"97fe27afc02917388fd0f854e8e53bfdb911c2d25160f1e633621ab46a0d8b2e"}},{"ruleId":"P5","level":"warning","message":{"text":"No DR/backup evidence: A persistence guard (data volume / purge-protection) was found, but no backup, geo-recovery or RTO/RPO controls were evidenced \u2014 a volume that survives a container recreate is not a tested restore from catastrophic loss."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5daabb38c90b07af65b8738cf94ce884e90a7d8fef810d341de5c186188c8fe0"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060fetch(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/scripts/integration-auth.mjs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0864155a77ffeb853c78fc26d0325293c1af7fae0e937a0d35cc9fc3d287112"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (38 matched lines \u00D7 2 locations): gateway/src/identityToolkit.ts:68 \u00B7 gateway/src/identityToolkit.ts:259 \u2014 the two spans are one implementation copied and then locally edited \u2014 248 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/identityToolkit.ts"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"f01be69a8e9ed7f835d27bb702160e938a10099a60b57a19d86bf33b8bead883"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): Resources/Assets/bookSourceEngine/ruleEngine.js:818 \u00B7 Resources/Assets/bookSourceEngine/ruleEngine.js:974 \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":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5d76bd259b4e380fcb48a575b32ebc173354a451db2a467ef71b33a1d4102e1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): gateway/src/routes/account.ts:10 \u00B7 gateway/src/routes/auth.ts:103 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/routes/account.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfc92ae31a05c6ee72c00013982ad77f8e12ec3c82f0c9edd4ea1132766b4838"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3 locations): gateway/src/callableProxy.ts:61 \u00B7 gateway/src/identityToolkit.ts:72 \u00B7 gateway/src/identityToolkit.ts:263 \u2014 the 3 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/callableProxy.ts"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"d854b0bc6de3346e0ba4ed39d168e3a04e55f728715f26ed5b7d4635ff0fa893"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): gateway/src/routes/auth.ts:126 \u00B7 gateway/src/routes/auth.ts:153 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/routes/auth.ts"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"7488f3d563c01d7e0460a2046d9dc264e1520ac4e90804232a617405100e0266"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): gateway/src/identityToolkit.ts:128 \u00B7 gateway/src/identityToolkit.ts:142 \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":"gateway/src/identityToolkit.ts"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"a74bbab1e5bcee68e10660dc312d70f1b47d74da1719147a5a56949a98e2aee2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): gateway/src/policy.ts:180 \u00B7 gateway/src/policy.ts:198 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/policy.ts"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"0316058aa3259bfcd53c58beb786e066a82ffdcad2f7ae93c27c86c9699c0316"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 7 locations): gateway/src/routes/account.ts:51 \u00B7 gateway/src/routes/auth.ts:209 \u00B7 gateway/src/routes/avatar.ts:95 \u00B7 gateway/src/routes/feedback.ts:250 \u00B7 \u002B3 more site(s) not listed \u2014 the 7 copies are spread across 6 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/routes/account.ts"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"e994806ec77cd53e624d9d31014e27fd07ff7a31cc674961e575a8137d8d8c95"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4 locations): gateway/src/routes/auth.ts:35 \u00B7 gateway/src/routes/auth.ts:47 \u00B7 gateway/src/routes/auth.ts:59 \u00B7 gateway/src/routes/auth.ts:70 \u2014 all 4 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/routes/auth.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"feb6645b27039312171804c97a7dbd19b59b452e0cf6f988fe87d27192f70438"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4 locations): gateway/src/routes/feedback.ts:101 \u00B7 gateway/src/routes/feedback.ts:134 \u00B7 gateway/src/routes/feedback.ts:147 \u00B7 gateway/src/routes/feedback.ts:224 \u2014 all 4 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/routes/feedback.ts"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff8693b099fe9374195afed69b5c59c8133506110f19c585d27e35647cce0ecf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): Resources/Assets/Readability.js:2156 \u00B7 Resources/Assets/Readability.js:2167 \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":"Resources/Assets/Readability.js"},"region":{"startLine":2156}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1de346e858aeb520076515e43594a87467e0038eca911958e3d4a3343e44e88"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): Resources/Assets/bookSourceEngine/ruleEngine.js:1098 \u00B7 Resources/Assets/bookSourceEngine/ruleEngine.js:1218 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":1098}}}],"partialFingerprints":{"codehealthFindingId/v1":"88e436d0cd04c443bec17ec9b5bab90d62dc1c7ea2ca5798b75e0c6190dd7dde"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): gateway/src/feedbackPolicy.ts:214 \u00B7 gateway/src/feedbackPolicy.ts:370 \u2014 all 2 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/feedbackPolicy.ts"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"00188e1f738afa94500bff3d3f7dcc59857519737a8d0b14e8a3ac40e270aa6c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): gateway/src/routes/auth.ts:81 \u00B7 gateway/src/routes/auth.ts:126 \u00B7 gateway/src/routes/auth.ts:153 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/routes/auth.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"20e3a8a05d38fdbe0a0f5f1677d924e77146ca350bffc91b88b495e8b93f3601"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): gateway/src/routes/auth.ts:99 \u00B7 gateway/src/routes/auth.ts:181 \u00B7 gateway/src/routes/subscription.ts:63 \u2014 the 3 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/routes/auth.ts"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b121e5fd0050cd970b03871876cefbd3126a2c66ab448032ca1afeb38cf6641"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): gateway/src/routes/avatar.ts:72 \u00B7 gateway/src/routes/subscription.ts:53 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/routes/avatar.ts"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"75a6d05511f34972819f62e50e4536b61b49c9d21d933d4141ab09479a07047d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): gateway/src/routes/profile.ts:22 \u00B7 gateway/src/routes/subscription.ts:43 \u00B7 gateway/src/routes/subscription.ts:76 \u2014 the 3 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/routes/profile.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"f73f4259026884a410924c3cd6f0ce7493b720f23a9f398a4a5aa076d6c39d71"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): Resources/Assets/Readability.js:2249 \u00B7 Resources/Assets/Readability.js:2259 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/Readability.js"},"region":{"startLine":2249}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eba55228e2eb4f7e818bbb185c7a8f9088d2416bb043450aab6885179943a28"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): Resources/Assets/bookSourceEngine/ruleEngine.js:602 \u00B7 Resources/Assets/bookSourceEngine/ruleEngine.js:618 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d5d4164f5334d76331afe404f95569fb595630279f7da42e032542179d3ec85"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): functions/src/appStoreConnect.ts:92 \u00B7 functions/src/appStoreConnect.ts:125 \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":"functions/src/appStoreConnect.ts"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"25f0afebb8b1c97084956d74b337d717bd5daeb5c1109ec2535001ddf855b935"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): gateway/src/routes/feedback.ts:282 \u00B7 gateway/src/routes/subscription.ts:95 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/routes/feedback.ts"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"d268b6869150cde39fecc247f08e555e12061181cf9518d926b90ac86ad0139d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): gateway/src/routes/feedback.ts:313 \u00B7 gateway/src/routes/feedback.ts:325 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/routes/feedback.ts"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fede6889b2caf096b96419d8612a96a4fbbab5c3f1ff9bdc1d582e30a3b77b2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): gateway/src/routes/subscription.ts:29 \u00B7 gateway/src/routes/subscription.ts:65 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/routes/subscription.ts"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d6dec0b8d495adeb8f85542dc5106bc845180d1b5ec3fa0d066e82fcdb57a89"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): Resources/Assets/bookSourceEngine/ruleEngine.js:304 \u00B7 Resources/Assets/bookSourceEngine/ruleEngine.js:391 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"97f4490f5459fd31d9f4c8d32dc66138d63395eac77fd756f17b7b76c191bcf0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): Resources/Assets/legado-engine.js:168 \u00B7 Resources/Assets/legado-engine.js:206 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/legado-engine.js"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f13e25ef59735ad7a8da17fe331ae0ea3cf23e92f37a2b1121550842fb7c122"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): gateway/src/reauth.ts:114 \u00B7 gateway/src/routes/auth.ts:221 \u00B7 gateway/src/routes/subscription.ts:109 \u2014 the 3 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/reauth.ts"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"91ae982abbe8dc3bc7ad2f435365f6ffa35d883f26fd00151d84fa86a5a3b2ea"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): gateway/src/routes/auth.ts:221 \u00B7 gateway/src/routes/subscription.ts:109 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/routes/auth.ts"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"d135ba2f69c5cfb60b761cdc5a76c1567fd4256258dac8f334a0a02baf801268"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): functions/src/triage.ts:101 \u00B7 functions/src/triage.ts:107 \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":"functions/src/triage.ts"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c23f2492a28d858a533115be89af5fd73a4f5999ecb435f7aadc33e1077d674"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): gateway/src/feedbackPolicy.ts:312 \u00B7 gateway/src/routes/profile.ts:69 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/feedbackPolicy.ts"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"149bfb17edc2f0dbace81b767f5be658d60ba09d9a22cffb92a86b39d8ec5fa0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _grabArticle (cyclomatic 106, cognitive 250): _grabArticle has cyclomatic complexity 106 and cognitive complexity 250; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/Readability.js"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea6df95e5245f39d745144ea7fa0afacacc0e6c21412983359478141dfdbef5e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function routeExtractValue (cyclomatic 47, cognitive 56): routeExtractValue has cyclomatic complexity 47 and cognitive complexity 56; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"8104e8231a6a40d0b4d30e52620fd72ec645ed8deba53f229d62acd71d7bf284"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseSearchResultsJSON (cyclomatic 37, cognitive 38): parseSearchResultsJSON has cyclomatic complexity 37 and cognitive complexity 38; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":1101}}}],"partialFingerprints":{"codehealthFindingId/v1":"c96194afc536a6ecf28c692f6a052f0aebf60418ede9c74a9d7231a74877d3f9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mapIdentityToolkitError (cyclomatic 36, cognitive 29): mapIdentityToolkitError has cyclomatic complexity 36 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/errors.ts"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ab914574282bdc2940b7ca5b08e4716dfbc9d34b5cd5462b94836e8b454db3a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function extractValueFromObject (cyclomatic 33, cognitive 40): extractValueFromObject has cyclomatic complexity 33 and cognitive complexity 40; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4d595049a7d9bb57705e01fe56376865692d94b95f5c99860aed755064e6f51"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 32, cognitive 46): (anonymous) has cyclomatic complexity 32 and cognitive complexity 46; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/Readability.js"},"region":{"startLine":1643}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e4b69bfcb06b29f5e6800aba2a23c8eca4807bb4e4b583fbb92d3c701b57722"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function routeExtractList (cyclomatic 29, cognitive 58): routeExtractList has cyclomatic complexity 29 and cognitive complexity 58; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":911}}}],"partialFingerprints":{"codehealthFindingId/v1":"6df220e87446e2ff474b31ac0bdd719a9f3ee5e32842014e45061c3f729e1388"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyJsonToken (cyclomatic 26, cognitive 55): applyJsonToken has cyclomatic complexity 26 and cognitive complexity 55; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cef94cc9778640453baad4d4dd1cc6e59e87d761e66f1a5aaa8b0ffd5d39045"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 25, cognitive 23): (anonymous) has cyclomatic complexity 25 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"functions/src/feedbackTriage.ts"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8641d0a39226a3f332323c676174b82b78309685d44b213929041edb791c76b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function shouldRemoveNode (cyclomatic 25, cognitive 19): shouldRemoveNode has cyclomatic complexity 25 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/Readability.js"},"region":{"startLine":2561}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd988ae0ef230aca3239bae32732738c9a8f749267ba2555e4d9a2881ffdc72a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 24, cognitive 35): (anonymous) has cyclomatic complexity 24 and cognitive complexity 35; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/Readability.js"},"region":{"startLine":2341}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e25290f581981b393d56003da4fc38727b3e83d032231cf436e5d3015b7c25a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function queryElements (cyclomatic 23, cognitive 34): queryElements has cyclomatic complexity 23 and cognitive complexity 34; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/legado-engine.js"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"c118ef5acf53b4a076372ebec97e82a30db62fb3ad12cf28d3e638f2434d50e1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 22, cognitive 38): (anonymous) has cyclomatic complexity 22 and cognitive complexity 38; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/Readability.js"},"region":{"startLine":2450}}}],"partialFingerprints":{"codehealthFindingId/v1":"1109e14ed1e13c10e4ca43f98855ae035d67bc383f7987f06bd2ab5d3aef9e78"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function evaluateRuleLike (cyclomatic 22, cognitive 20): evaluateRuleLike has cyclomatic complexity 22 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"298eb93bd16a134e531d1603a583b2c968f38f985ca68763fb403bca7c3ccf89"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function evaluateTemplateExpression (cyclomatic 20, cognitive 16): evaluateTemplateExpression has cyclomatic complexity 20 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"426612c164ba051a4a33e27bdc80ecfb1d95ceabc0a951d88d24d128af53839c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getList (cyclomatic 19, cognitive 26): getList has cyclomatic complexity 19 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/legado-engine.js"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"e90ac42681c76603987aa991b45d1b23b958b9fa7d5be6a090dde74cd8538a0a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function splitTopLevel (cyclomatic 19, cognitive 23): splitTopLevel has cyclomatic complexity 19 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"5970c70630267634e62b2895c724ca95bbee3a5ca5a731d90c7d41d3717368e5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 19, cognitive 17): (anonymous) has cyclomatic complexity 19 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":1227}}}],"partialFingerprints":{"codehealthFindingId/v1":"2641556af71eccb3606b20d94354dd73a2b3681aea7bd2ae89382e0320ce75c1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sanitizePreferences (cyclomatic 18, cognitive 23): sanitizePreferences has cyclomatic complexity 18 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/policy.ts"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"076f04dc4ce86b992874a85863bf96de40da5799a213a4f5f5110e79ef8d0f08"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getAttr (cyclomatic 18, cognitive 17): getAttr has cyclomatic complexity 18 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/legado-engine.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6fa3847802a9040874be0f13bc3bb5672a11e9fb8fa09a194d408d790ea6c6f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getAttr (cyclomatic 18, cognitive 16): getAttr has cyclomatic complexity 18 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"a168623b8a256454f162d46ba0762eec046cb69da1431c4edc7c67f4f9707b59"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function safeQuerySelectorAll (cyclomatic 16, cognitive 21): safeQuerySelectorAll has cyclomatic complexity 16 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"1625ac4be0e4830c22ad700efdab05da6a449cce255c9de8acd11ddcd1afa7eb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function signInWithIdp (cyclomatic 16, cognitive 19): signInWithIdp has cyclomatic complexity 16 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/identityToolkit.ts"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"6113deed17141002b37969e3d383112222b1bb57cd7969e1a404bb00f8ffe71a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function extractValueByJsoupDefaultFromElements (cyclomatic 16, cognitive 18): extractValueByJsoupDefaultFromElements has cyclomatic complexity 16 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"573e63f63dcfc5520ef91e5477c22c658fe77e591c9c2af7e157809be849a906"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function Readability (cyclomatic 16, cognitive 16): Readability has cyclomatic complexity 16 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/Readability.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c30bb59ed9a665f36d6d53e73dd2c0cc0780baa056dfb84157ded238e8f2823"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function splitTrailingPutDirective (cyclomatic 15, cognitive 21): splitTrailingPutDirective has cyclomatic complexity 15 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"f58b5c0b7546110f7a7253e6d06c3803359ef9255acc51f1a9cc1d31e1bd7598"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _getArticleTitle (cyclomatic 15, cognitive 19): _getArticleTitle has cyclomatic complexity 15 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/Readability.js"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeade006d17395d5dca7176adac76c9641bd94357d650d72a434b123c0673003"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function verifyReauthentication (cyclomatic 15, cognitive 19): verifyReauthentication has cyclomatic complexity 15 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/reauth.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f362a06c67b9b0abe9bf86aa6fa03610fe75c8dc690902be5e9941559e25d2a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseChapterPayload (cyclomatic 15, cognitive 14): parseChapterPayload has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":1251}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be6bec06be23be4ccb958bf94f4334b01031038a1a17767df0fb4c9edbe9b76"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getElementsBySegment (cyclomatic 14, cognitive 23): getElementsBySegment has cyclomatic complexity 14 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"5281d44fc902e11018380a9954dde211fbcbc1bef069449cbfcd64bf9f24a1fb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseJsoupSegment (cyclomatic 14, cognitive 18): parseJsoupSegment has cyclomatic complexity 14 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"db706a73f670ad38e9c4af6e36a851232ebc091259bfab618336e8fa508c0c85"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseSearchResults (cyclomatic 14, cognitive 14): parseSearchResults has cyclomatic complexity 14 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":1076}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0fa732fe90322c8471f3e4b7ce2088b14d869d3b5b3758247d127ed903a1a4c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refreshSession (cyclomatic 14, cognitive 14): refreshSession has cyclomatic complexity 14 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/identityToolkit.ts"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"34a7d10f9640dd066d579cf51c804da2a83cbbc9e85f5737a18188a32c73d0f4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getString (cyclomatic 14, cognitive 12): getString has cyclomatic complexity 14 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"c97859358fd181f7465332eb6f3eb2b8064a51ac97815a83fe36e0b6b07163ec"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _markDataTables (cyclomatic 13, cognitive 20): _markDataTables has cyclomatic complexity 13 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/Readability.js"},"region":{"startLine":2277}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d3faa32cc99726d05b17d45093d813428f8db17981100236207a583dbaf341f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function extractValueByCss (cyclomatic 13, cognitive 18): extractValueByCss has cyclomatic complexity 13 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2fe11b8be30a4a744af746336c4160315fc64f308389ab3f842d73fffd39823"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyTocFormat (cyclomatic 13, cognitive 15): applyTocFormat has cyclomatic complexity 13 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"7419db5072bf84cdcb370b5a3d0f96cb942ffdb778efc7f6a693302bb2013756"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildsUnderReview (cyclomatic 13, cognitive 15): buildsUnderReview has cyclomatic complexity 13 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"functions/src/reviewBuildPolicy.ts"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f892eb96340e41093ffc72b86e0f00a42056f108467a9b5a6c31a171b998999"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 11): (anonymous) has cyclomatic complexity 13 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/routes/profile.ts"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dc35ea7cb3fae405c5caa0ed90173a1abcce374938592d319b290c0b6000764"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function shouldApplyTransaction (cyclomatic 13, cognitive 9): shouldApplyTransaction has cyclomatic complexity 13 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"functions/src/transactionUpdatePolicy.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e3cac49daddb25d6511b642524f861760a53cb9c7495ec0932d2c6c8b7d68e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 22): (anonymous) has cyclomatic complexity 12 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/Readability.js"},"region":{"startLine":1923}}}],"partialFingerprints":{"codehealthFindingId/v1":"366f00a77d3907e2ed2a697e31d373255479a23a5b3c8451c0637f1a84f185be"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 21): (anonymous) has cyclomatic complexity 12 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/Readability.js"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"84b9910256bc68d468aac9d131d4e04cfc4ddc213f4827d4862dbd00ee6d21c4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sanitizeProfilePatch (cyclomatic 12, cognitive 14): sanitizeProfilePatch has cyclomatic complexity 12 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/policy.ts"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"354862fff78a06164a0e10582eaca29e24c6d44bd0479425ad848b8344192ddd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function call (cyclomatic 12, cognitive 12): call has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/callableProxy.ts"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b82a1d83cf302f02726bb482235909e8e61a25caa7f7b9a0b6e8813057be5f0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseBookInfo (cyclomatic 12, cognitive 11): parseBookInfo has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"2109f02301bbe87aeec425b0ac3562b3e18ec81f4bedb83dca8f77ac4821aa4c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseBookInfoJSON (cyclomatic 12, cognitive 11): parseBookInfoJSON has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":1153}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c962a6a7b42d8b9ced11b605fe153c9cee6821ae3c2445d672007dc2374517e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getResultLast (cyclomatic 11, cognitive 12): getResultLast has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"958357adb6e1f33fa1b3cbe4eb53596e6b7f41881b85244b05929d1feab86924"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function feedbackPushFor (cyclomatic 11, cognitive 11): feedbackPushFor has cyclomatic complexity 11 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"functions/src/feedbackPushPolicy.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a8f0477fc9f6ea6488d31650c9fa4a572634868a49ee5ff54c176a766fa8b70"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function runAccountDeletion (cyclomatic 11, cognitive 11): runAccountDeletion has cyclomatic complexity 11 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/deletion.ts"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dc41e0da917ef719d3db32483c41895fc2aac24fbf0cf8bd5eb4397e19f39ec"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sanitizeUInt32Map (cyclomatic 11, cognitive 9): sanitizeUInt32Map has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/policy.ts"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7b83b4acc69c3e61dd610e3f6d577415aaef5cfd020a01f91460c61a4767b6d"}},{"ruleId":"R3","level":"warning","message":{"text":"Resources/Assets/Readability.js: 2500 lines of code: Resources/Assets/Readability.js has 2500 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/Readability.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4227ea393bf9ca9d1614678f9855277b96ad2076b6920e055975adae95ca2f8d"}},{"ruleId":"R3","level":"warning","message":{"text":"Resources/Assets/bookSourceEngine/ruleEngine.js: 1220 lines of code: Resources/Assets/bookSourceEngine/ruleEngine.js has 1220 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bcc50495c7ed698e26343b1d3e377b3dbcf98e0f18dd3c488b1182217c231fd"}},{"ruleId":"R3","level":"warning","message":{"text":"functions/src/index.ts: 639 lines of code: functions/src/index.ts has 639 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"functions/src/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1048657adf474413155f5993a8b50edb34624b559517966958e556879bb221e4"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/Readability.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"70247757f5d496cbe53a7e4ddd7ba555349ebf348eeb35ebca3b17dfc9804068"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"45fec6fd889638cce0ed353d71462542d7b04bccb00e2061a46dd9e8cff4ec0c"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"functions/src/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a2c48be1ce670aaf0db7a5ae42f72e648899622740f31faee413d334f8bf21f"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/legado-engine.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aef6fc6642c2f2363212345d469787fc9279da188e7750f09e74fb372fd71bb"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"functions/src/appleTriage.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c45dd4f04acb614860590671b1bcc2379b68efd8ea61aaea9bb9f5bc42f6693"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"functions/src/feedbackTriage.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5e8d098ea7259db8352923dde1d6fe8e9b705404439594f2ab35a6998100dfd"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"functions/src/triage.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb09368f1cea129a565605fad794aa8983374b9b0728447d8f437653f384994"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"functions/tools/feedback.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e0451fc1d1bd6c529f8f43d0d02e98e0273ac3e9178b03fcdda7586fb43ebcb"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/scripts/integration-auth.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaf7cb8535cdaf235a0ef1268e56ea8af9d0d83b072c5edad0e076d862bbd42d"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"functions/src/apns.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"896dead5f7d05b0dded4944faed0f9845bf08adecc6c1796e3e590f21415b939"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"functions/src/feedbackPush.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"702a99faed81dbc3771e5b41da49e2224701ddcd7195fc1c7b03870ef9282dcc"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"029ab6de97dc055ca4d51d69e6959b0af22b19e4213dad03aede5c55e0eadc2e"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"functions/src/feedbackStatusSync.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c11aadd98f982dffc4085e3cdb8153778156bb07336701f68a78fcc3784a720"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"functions/src/appStoreConnectSecrets.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"379a7d06e1ea9aeafdfb7f7c13da5f197a505c5e23436ef7a0db9ee93d0986a8"}},{"ruleId":"R6","level":"warning","message":{"text":"No lint script: test \u2713 \u00B7 lint \u2717 \u00B7 typecheck \u2713 \u2014 read from this repository\u0027s package.json scripts and corroborated against its CI workflows. A script counts when its name or command matches the step: \u0060test\u0060 for the suite, \u0060lint\u0060 or \u0060prettier\u0060 for linting, \u0060typecheck\u0060/\u0060type-check\u0060/\u0060tsc\u0060 for type checking. \u2717 therefore means no script or CI step under those names was found, NOT that the step is absent from your pipeline \u2014 a task invoked by a runner this check does not read, or named something else entirely, is not seen and is worth confirming before acting on a cross. A \u2713 means the wiring is DECLARED \u2014 a script or CI step under those names exists. It is not a statement that the step passes, or that it runs at all: nothing here installs a dependency or executes a suite."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bc8e67e81453cf5399dd04786d18b232180426b135169175fee670bdd83ccb03"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~2792 LoC): no import path from any entry point (11 application, 1 tooling, 17 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/Readability.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02b108a7de490403a2b9ab97bdacf0688d21526efaba88bfe8b37e414fe109ee"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~242 LoC): no import path from any entry point (11 application, 1 tooling, 17 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/legado-engine.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1bf5a3b320c814198e1624f14e96c7dd9fc7ae5b16e37a8b87ff0b43dd99f02"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027assertServiceAccountPathReadable\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/config.ts"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bd46e93b68c96109bbd0f6ca088a6b549c4a035ae68156eed3da38a0ba40d3c"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027USER_SUBCOLLECTIONS\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/deletion.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"52122388a7cea046235d76943fc897b02642638dbf64d747ad884eac4a513a5c"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027PROFILE_FORBIDDEN_KEYS\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"gateway/src/policy.ts"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"427809a58f6c8227b22bda0a090c465e339b13c3629c0edfb46b9405bd6897bd"}},{"ruleId":"S1","level":"note","message":{"text":"Security headers incomplete: Set: Referrer-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options. Missing: Content-Security-Policy \u2014 the four headers that carry the points of this card\u0027s security-headers term (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options), 0.5 each. (\u22120.5 on this card.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/trends/deploy/Caddyfile"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"f058d5c46677a77618c061967cd7d29d0e3a85623377cceed803aa4bb2b56974"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060before === undefined || after === undefined\u0060 appears character-identically in 2 files \u2014 functions/src/feedbackPush.ts, functions/src/feedbackStatusSync.ts. 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":"functions/src/feedbackPush.ts"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3dc5d385d5e37a8c726c78c2d26f267c1aa2071f315ff0910f97bf114cd25f5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060error === null || typeof error !== \u0022object\u0022\u0060 appears character-identically in 2 files \u2014 gateway/src/errors.ts, gateway/src/routes/feedback.ts. 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":"gateway/src/errors.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"09c5b9c09e5176c303480d376343a57e9e64eda0e6400782e78a3ac6f61ccb47"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060match === null || match[1] === undefined\u0060 appears character-identically in 2 files \u2014 gateway/src/auth.ts, gateway/src/routes/auth.ts. 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":"gateway/src/auth.ts"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"b943f032122f9546ef27f4cc0e54bc084996f85d8331ca986be18e92e3d5742b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060parsed === null || typeof parsed !== \u0022object\u0022\u0060 appears character-identically in 2 files \u2014 gateway/src/callableProxy.ts, gateway/src/identityToolkit.ts. 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":"gateway/src/callableProxy.ts"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"645c26bcc4bc515b5e26689d827899040377370c2b78492852c1c75fbf57b904"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value !== \u0022string\u0022 || value.length === 0 || value.length \u003E maxLength\u0060 appears character-identically in 2 files \u2014 functions/src/index.ts, gateway/src/policy.ts. 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":"functions/src/index.ts"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"66a6c1e091c2ccbe68183e356c5e52a1778070ceddc24cbd1453b2317a1b8472"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value !== null \u0026\u0026 typeof value === \u0022object\u0022 \u0026\u0026 !Array.isArray(value)\u0060 appears character-identically in 3 files \u2014 gateway/src/feedbackPolicy.ts, gateway/src/routes/feedback.ts, gateway/src/routes/profile.ts. 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":"gateway/src/feedbackPolicy.ts"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c98836957791de9566408748daa327763bb7b5332fe6589e2c3b12c955a7e5e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value === null || typeof value !== \u0022object\u0022 || Array.isArray(value)\u0060 appears character-identically in 3 files \u2014 gateway/src/reauth.ts, gateway/src/routes/auth.ts, gateway/src/routes/subscription.ts. 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":"gateway/src/reauth.ts"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"427bdd3393e87de7734219124f64fb4b2432b5c395f65397d659f1d63df4acc5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$0.isASCII \u0026\u0026 ($0.isLetter || $0.isNumber)\u0060 appears character-identically in 3 files \u2014 Modules/Core/AI/AIReadingEvidence.swift, Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift, Modules/Services/RuleModules/RuleModuleValidator.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":"Modules/Core/AI/AIReadingEvidence.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d741f32714f7f7c1f17a5db1af10c65b2f796fb2d9d0aecc7f5490fc7f0c0d4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$0.kind == carried.kind \u0026\u0026 $0.hasSameStableLocation(as: carried)\u0060 appears character-identically in 2 files \u2014 Modules/Services/LibraryStore/ShelfVersionSwitch.swift, Modules/Services/LibraryStore/ShelfWorkService.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":"Modules/Services/LibraryStore/ShelfVersionSwitch.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"54dc181dade070cc2685f9503c2c956f5171c1f7d0906f61e09e2cd313c6268b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$0.sourceId == currentBook.sourceId \u0026\u0026 $0.bookUrl == currentBook.bookUrl\u0060 appears character-identically in 3 files \u2014 Modules/Features/BookDetail/AudiobookDetailView.swift, Modules/Features/BookDetail/OnlineBookView.swift, Modules/Features/BookDetail/VideoDetailView.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":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5fd6c24f6968fb3bcabeccb55e2cd36c48bf0fa0fc656e6299031bf1fb7da07"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(!names.contains(\u0022id\u0022) || has(item.id)) \u0026\u0026 (!names.contains(\u0022url\u0022) || has(item.bookUrl))\u0060 appears character-identically in 3 files \u2014 Modules/Services/RuleModules/RuleModuleClient\u002BComments.swift, Modules/Services/RuleModules/RuleModuleClient\u002BDetail.swift, Modules/Services/RuleModules/RuleModuleClient\u002BReviews.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":"Modules/Services/RuleModules/RuleModuleClient\u002BComments.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbc108208cd489d708b8718f598cc453b543ac8515ed35294c22f5df4004dee5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(body.hasPrefix(\u0022\\\u0022\u0022) \u0026\u0026 body.hasSuffix(\u0022\\\u0022\u0022)) || (body.hasPrefix(\u0022\u0027\u0022) \u0026\u0026 body.hasSuffix(\u0022\u0027\u0022))\u0060 appears character-identically in 2 files \u2014 Modules/Core/ReaderCore/Customization/ChapterTitleHTMLCodec.swift, Modules/Core/ReaderCore/Customization/ReaderStyleCSSCodec.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":"Modules/Core/ReaderCore/Customization/ChapterTitleHTMLCodec.swift"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b532d948c5cc8bdcf6cadde3ea53025303bfce0c05efe9590b7342254fdea49"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(value.hasPrefix(\u0022\\\u0022\u0022) \u0026\u0026 value.hasSuffix(\u0022\\\u0022\u0022)) || (value.hasPrefix(\u0022\u0027\u0022) \u0026\u0026 value.hasSuffix(\u0022\u0027\u0022))\u0060 appears character-identically in 2 files \u2014 Modules/Core/ReaderCore/Customization/ChapterTitleHTMLCodec.swift, Modules/Core/ReaderCore/Customization/ReaderStyleCSSCodec.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":"Modules/Core/ReaderCore/Customization/ChapterTitleHTMLCodec.swift"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"a90817eef7693a1564e4f7b7936ab6f48ef7e6568d5d540b0a75a7f9432b479f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Task.isCancelled || error is CancellationError\u0060 appears character-identically in 2 files \u2014 Modules/Core/TTS/AudiobookResourcePreloader.swift, Modules/Services/Calibre/CalibreWirelessService.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":"Modules/Core/TTS/AudiobookResourcePreloader.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"93b2297eb82882cc34f9481f82338c96e923b45298183e27f712c309ca04f18d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060authors.isEmpty || entry.authorKeys.isEmpty || !authors.isDisjoint(with: entry.authorKeys)\u0060 appears character-identically in 2 files \u2014 Modules/Services/Works/NextInSeries.swift, Modules/Services/Works/SeriesWorks.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":"Modules/Services/Works/NextInSeries.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d1fa0d3c55df6ac1dc2f12828a7e1cf1d8484473151b0dae8445f9bc226c30d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060book.audioChapterIndex == 0 \u0026\u0026 book.audioTimeSeconds == 0\u0060 appears character-identically in 2 files \u2014 Modules/Services/LibraryStore/ChapterRenumbering.swift, Modules/Services/LibraryStore/ReadingChapterPlace.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":"Modules/Services/LibraryStore/ChapterRenumbering.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecc844e60e861f9f302bfc7f73b446d7fc3c2a06cdf5bc190ac8cd853a1a3145"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060book.mangaChapterIndex == 0 \u0026\u0026 book.mangaPage == 0 \u0026\u0026 book.currentPosition == 0\u0060 appears character-identically in 2 files \u2014 Modules/Services/LibraryStore/ChapterRenumbering.swift, Modules/Services/LibraryStore/ReadingChapterPlace.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":"Modules/Services/LibraryStore/ChapterRenumbering.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c635b2bfa03ab082ec9d0714ffd87f3d5a64fc7717e0f2bf244657ae4aecf19"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060book.resolvedPipelineKind == .manga || book.resolvedPipelineKind == .fixedPage\u0060 appears character-identically in 3 files \u2014 Modules/Features/Bookshelf/HomeView.swift, Modules/Features/FixedPageReader/FixedPageReaderViewController.swift, Modules/Services/LibraryStore/BookStore.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":"Modules/Features/Bookshelf/HomeView.swift"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a56de09f6052b92b122383af5bc462e8bd987c69621160389a644e8872a486e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cards.isEmpty \u0026\u0026 redactionReasons.contains(.placeholder)\u0060 appears character-identically in 2 files \u2014 Modules/Features/Explore/Home/HomeChartCards.swift, Modules/Features/Explore/Home/HomeGroupedShelves.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":"Modules/Features/Explore/Home/HomeChartCards.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"27186db9ccd36caf41d995c989a3e93315267197e275866b9226ae849a63a70e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ckError.code == .unknownItem || ckError.code == .zoneNotFound\u0060 appears character-identically in 2 files \u2014 Modules/Services/Subscription/SubscriptionICloudMirror.swift, Modules/Services/iCloud/ICloudSyncManager.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":"Modules/Services/Subscription/SubscriptionICloudMirror.swift"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"73a8f438da1cab80f2075f876e1993474465d0ddad9ca1174eecc60be267bff4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060configuration.isPressed \u0026\u0026 !reduceMotion\u0060 appears character-identically in 3 files \u2014 Modules/Features/Explore/ExploreTileButtonStyle.swift, Modules/Features/Reader/ReaderQuickThemePanelView.swift, Modules/SharedUI/Components/LoginFormGrid.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":"Modules/Features/Explore/ExploreTileButtonStyle.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"799b54d23d518b6eac311690b7588d0cd532999f09cc27aed62bd436ea384580"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060content is NSDictionary || content is NSArray\u0060 appears character-identically in 2 files \u2014 Modules/Core/RuleEngine/ModernParser/JsonExtractor.swift, Modules/Core/RuleEngine/ModernParser/ModernRuleEngine.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":"Modules/Core/RuleEngine/ModernParser/JsonExtractor.swift"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac2977561c737c6d4ab6c1e830d3c8359b8722cdf0514f4698f120011f919440"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060context.action == .question || context.customPrompt?.context == .book\u0060 appears character-identically in 2 files \u2014 Modules/Core/AI/AIAgenticAssistant\u002BQuestion.swift, Modules/Core/AI/AIReadingEvidence.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":"Modules/Core/AI/AIAgenticAssistant\u002BQuestion.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"c39a7bb668dbebd7ef1d1f65b7b6b465c19056ded7c8c5981a77b1cf9f20d3a3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060dictionary[\u0022pattern\u0022] != nil || dictionary[\u0022regex\u0022] != nil || dictionary[\u0022replaceRegex\u0022] != nil\u0060 appears character-identically in 2 files \u2014 Modules/Core/BookSource/SharedImportQueueDrainer.swift, Modules/Core/Replace/ReplaceRuleStore.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":"Modules/Core/BookSource/SharedImportQueueDrainer.swift"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"5494977cc6bdaf5c7182803783a441db1ad13bd7c59403101dc9b53e733b8b93"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060epubRenderer.engine != nil || epubRenderer.scrollEngine != nil\u0060 appears character-identically in 2 files \u2014 Modules/Features/Reader/ReaderView\u002BOnlineChapterLoading.swift, Modules/Features/Reader/ReaderView\u002BPageBuilding.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":"Modules/Features/Reader/ReaderView\u002BOnlineChapterLoading.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c0834bf13c501a6ca81fd369e7fc8df85216a6d3a13460c0d10d2aa9c32e824"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060error is CancellationError || Task.isCancelled\u0060 appears character-identically in 2 files \u2014 Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageEngine.swift, Modules/Services/Online/VideoEpisodeStills.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":"Modules/Core/ReaderCore/BrowserLayout/BrowserLayoutPageEngine.swift"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e36b41622f253df5418207484a71cc69a356cd3413424b254bcdd5c9391676"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060href.hasSuffix($0.key) || $0.key.hasSuffix(href)\u0060 appears character-identically in 2 files \u2014 Modules/Core/EPUB/PublicationSession.swift, Modules/Features/Reader/ReaderTOCChapterMapper.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":"Modules/Core/EPUB/PublicationSession.swift"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"969be561ec436413aece92792a200429338c7914a1c67a6b2314638917602a71"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isLoading \u0026\u0026 entries.isEmpty \u0026\u0026 loadError == nil\u0060 appears character-identically in 2 files \u2014 Modules/Features/Bookshelf/OPDSImportView.swift, Modules/Features/Bookshelf/RemoteImportViews.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":"Modules/Features/Bookshelf/OPDSImportView.swift"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"1125fbd17a9b7d6f17d3ccf60af4e7508f10cd048e21f43e184aaa82ab604666"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060italic \u0026\u0026 !font.fontDescriptor.symbolicTraits.contains(.traitItalic)\u0060 appears character-identically in 2 files \u2014 Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift, Modules/Core/ReaderCore/CoreText/UserReaderFontResolver.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":"Modules/Core/ReaderCore/CoreText/NodeAttributedStringRenderer.swift"},"region":{"startLine":1303}}}],"partialFingerprints":{"codehealthFindingId/v1":"120135f5c6edaafbfe769c1bde97c35727eaa37fff62a9835f3ebd57221f0cc5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060loading || (chapters.isEmpty \u0026\u0026 loadError == nil)\u0060 appears character-identically in 2 files \u2014 Modules/Features/BookDetail/AudiobookDetailView.swift, Modules/Features/BookDetail/VideoDetailView.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":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cc55c1740b43df1f7ef9698d824cdd4e032585fc906fea51b653b4151fcccbe"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lowered.hasPrefix(\u0022http://\u0022) || lowered.hasPrefix(\u0022https://\u0022)\u0060 appears character-identically in 3 files \u2014 Modules/Core/RuleEngine/ModernParser/JS/LegadoSharedJsLibrary.swift, Modules/Core/RuleEngine/ModernParser/URL/AnalyzeUrl.swift, Modules/Services/RSS/RSSFetcher.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":"Modules/Core/RuleEngine/ModernParser/JS/LegadoSharedJsLibrary.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dd178c68ac0e5994057ac77e14959ae53b8b42768c50c4b0a6673c700c3d3c0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lowered.hasPrefix(\u0022https://\u0022) || lowered.hasPrefix(\u0022http://\u0022)\u0060 appears character-identically in 2 files \u2014 Modules/Features/Library/Modules/RuleModuleImportModel.swift, Modules/Services/RuleModules/RuleModuleValidator.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":"Modules/Features/Library/Modules/RuleModuleImportModel.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"7154a1d40e7003db12669ddcba278c23a0c2018e877d805a3cc408ea83fc4288"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mappedTextFile.encoding == .utf16LittleEndian || mappedTextFile.encoding == .utf16BigEndian\u0060 appears character-identically in 2 files \u2014 Modules/Core/TXT/TXTChapterParser.swift, Modules/Core/TXT/TXTReaderPreparationService.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":"Modules/Core/TXT/TXTChapterParser.swift"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"00795f6ab57a8f5a190d95f09f4386b4cb4f4545a90c1f33d2ded203bb20b308"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mimeType.contains(\u0022html\u0022) || mimeType.contains(\u0022xml\u0022) || mimeType.contains(\u0022css\u0022) || mimeType.contains(\u0022javascript\u0022) || mimeType.hasPrefix(\u0022\u2026\u0060 appears character-identically in 2 files \u2014 Modules/Core/EPUB/PublicationSession.swift, Modules/Services/LibraryStore/UniversalBookResourceAdapter.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":"Modules/Core/EPUB/PublicationSession.swift"},"region":{"startLine":1060}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa76d36ea8cd284d74dfe6396ffe4e64eb73559d53184431115bb2c3a4b61729"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060newBook.sourceId != currentBook.sourceId || newBook.bookUrl != currentBook.bookUrl\u0060 appears character-identically in 3 files \u2014 Modules/Features/BookDetail/AudiobookDetailView.swift, Modules/Features/BookDetail/OnlineBookView.swift, Modules/Features/BookDetail/VideoDetailView.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":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"26b5e47cd00a9233a4efdca1ac8542384a15949bfa872649f0eb60b34a9d65d1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060nsError.domain == NSURLErrorDomain \u0026\u0026 nsError.code == -1022\u0060 appears character-identically in 3 files \u2014 Modules/Services/RSS/LegadoRSSScraper.swift, Modules/Services/RSS/RSSFetcher.swift, Modules/Services/RSS/RSSUtilities.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":"Modules/Services/RSS/LegadoRSSScraper.swift"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"55e415a0b9e979995e1bb16a5b34a77615c9f2e6fdd54136d63061381d989c7b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060package.state == .cached \u0026\u0026 !package.content.isEmpty\u0060 appears character-identically in 3 files \u2014 Modules/Features/Reader/ReaderView.swift, Modules/Features/Reader/ReaderViewModel.swift, Modules/Services/Online/OnlineReadingPipeline.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":"Modules/Features/Reader/ReaderView.swift"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a7a012632bdb38ba11828c5effd2c74cf7b49f43c104a4af0fdb1174aa33e92"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060phase == .background || phase == .inactive\u0060 appears character-identically in 2 files \u2014 Modules/Features/FixedPageReader/FixedPageReaderView.swift, Modules/Features/Reader/ReaderView.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":"Modules/Features/FixedPageReader/FixedPageReaderView.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a45c97faf4058b3a6f2c48e31d5a59de8733e7921b29fa71b5d3458b71f148c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060range.upperBound == text.endIndex || text.indices.contains(range.upperBound)\u0060 appears character-identically in 2 files \u2014 Modules/Core/AI/AICharacterMemory.swift, Modules/Core/AI/AISourceSnapshot.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":"Modules/Core/AI/AICharacterMemory.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"6688ad25bee658ead698516705e25c70e1f3cadffdf73deb93a8b8a7f307e963"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060rect.origin.x.isFinite \u0026\u0026 rect.origin.y.isFinite \u0026\u0026 rect.width.isFinite \u0026\u0026 rect.height.isFinite \u0026\u0026 rect.width \u003E 0 \u0026\u0026 rect.height \u003E 0 \u0026\u0026 rect\u2026\u0060 appears character-identically in 2 files \u2014 Modules/Core/ReaderCore/Customization/ReaderOverlayGeometry.swift, Modules/Core/ReaderCore/Customization/ReaderOverlaySnapEngine.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":"Modules/Core/ReaderCore/Customization/ReaderOverlayGeometry.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"25189f2b7b433e6782fb413fa94c8d11ff5c84f93047920780be40db99c21da5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060rel.hasPrefix(\u0022http://opds-spec.org/acquisition\u0022) || rel.hasPrefix(\u0022https://opds-spec.org/acquisition\u0022)\u0060 appears character-identically in 2 files \u2014 Modules/Services/OPDS/OPDS2FeedParser.swift, Modules/Services/OPDS/OPDSClient.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":"Modules/Services/OPDS/OPDS2FeedParser.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"53de3eff305d7ce7f1934cf72973cfc449f6617b65be2686247ef3bb0c4b44c0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060rendersDelivery || !voicedSpeakers.isEmpty\u0060 appears character-identically in 2 files \u2014 Modules/Core/TTS/HTTPTTSEngine.swift, Modules/Core/TTS/SystemTTSEngine.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":"Modules/Core/TTS/HTTPTTSEngine.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"79303885ac1c30c8ff5b9b50c8f40efb0d1dc7c26e9448c0e097a39632faf1ff"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060request.sourceId == currentBook.sourceId \u0026\u0026 ChangeSourceCache.urlKey(request.bookUrl) == ChangeSourceCache.urlKey(currentBook.bookUrl)\u0060 appears character-identically in 3 files \u2014 Modules/Features/BookDetail/AudiobookDetailView.swift, Modules/Features/BookDetail/OnlineBookView.swift, Modules/Features/BookDetail/VideoDetailView.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":"Modules/Features/BookDetail/AudiobookDetailView.swift"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"162622b896e9d27826342aea562d9520f534358c53e224bf265df2b0d1a099d5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060saved.binding == made.binding \u0026\u0026 saved.layout.style == made.layout.style \u0026\u0026 saved.isEnabled \u0026\u0026 saved.title.isEmpty \u0026\u0026 saved.subtitle.isEmpty\u2026\u0060 appears character-identically in 2 files \u2014 Modules/Services/Works/HomeDefaultsGenresMigration.swift, Modules/Services/Works/HomeDefaultsStoreMigration.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":"Modules/Services/Works/HomeDefaultsGenresMigration.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1c3c50dcf0b63d32643be4cd0761bfd991c7a92b830b478ec1c97e620aac523"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060scrollView.isDragging || scrollView.isDecelerating\u0060 appears character-identically in 3 files \u2014 Modules/Features/Reader/CoreTextCollectionScrollViewController.swift, Modules/Features/Reader/ReaderPageTurnTrace.swift, Modules/Features/Reader/ReaderScrollFrameDiagnostics.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":"Modules/Features/Reader/CoreTextCollectionScrollViewController.swift"},"region":{"startLine":2334}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc303978b680b53505ef189d1ee430b803e9ecefe6654f27896953036b103b3b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060status == errSecSuccess || status == errSecItemNotFound\u0060 appears character-identically in 3 files \u2014 Modules/Core/RuleEngine/ModernParser/Login/KeychainHelper.swift, Modules/Services/Account/GatewayKeychain.swift, Modules/Services/Subscription/SubscriptionEntitlementCache.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":"Modules/Core/RuleEngine/ModernParser/Login/KeychainHelper.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fd6b39fbb12e825b3186a3541fe5b0e9171576a5efe779dd49be831b5d906e8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060trimmed.hasPrefix(\u0022http://\u0022) || trimmed.hasPrefix(\u0022https://\u0022)\u0060 appears character-identically in 2 files \u2014 Modules/Features/BookSource/BookSourceAddFlow.swift, Modules/Features/BookSource/BookSourceEditView.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":"Modules/Features/BookSource/BookSourceAddFlow.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca1571fc2f782a34edcd747b789da34c4b6beaf44be66e6ccbd3a8fc4d6d665"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060trimmed.hasPrefix(\u0022{\u0022) || trimmed.hasPrefix(\u0022[\u0022)\u0060 appears character-identically in 2 files \u2014 Modules/Core/RuleEngine/ModernParser/JS/JSCoreEngine.swift, Modules/Core/RuleEngine/ModernParser/ModernRuleEngine.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":"Modules/Core/RuleEngine/ModernParser/JS/JSCoreEngine.swift"},"region":{"startLine":2267}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3230ac24ee792fd88bd9c2b114b56e0f5ce8b91cd08c84d3ddff26e8cae491e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060url.scheme == \u0022http\u0022 || url.scheme == \u0022https\u0022\u0060 appears character-identically in 2 files \u2014 Modules/Features/Settings/TXTTocRuleListView.swift, Modules/Services/RSS/RSSModels.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":"Modules/Features/Settings/TXTTocRuleListView.swift"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdecbb40d7c130fcd370b5335b01dd542bf2d68e7d970e800ff14d534ca9297d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/Readability.js"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d5698b0931f7e21d75f88537216ea7f5aaf94d25693815cd2980f36fa18c355"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/Readability.js"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c7542825b4b4702401880eb2d09ef0023b0c4a3424f5b74c9bca82d93c87657"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/legado-engine.js"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c0a5ab9f73e1a1f88d7079df35c89cf04b5d0910c26e6ff902aa4c4952d00dc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/legado-engine.js"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"96a8c49af58bfcc5d1218f82fdafee4dabc23828685105829c78860c0cdc40a8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ed74e92907a234ece11838a7136698b23341c2dcbc07075d5f3e531a3e371d2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c862d93f988e02d134aa900e221f73b7fc5bd3971142d506d233f2858ee6b0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/SwiftSoup/Sources/Attribute.swift"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fe2214e313ba1b4974530f86fdbfd8e2eabb97cc6bf93a34d243001c26be571"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/SwiftSoup/Sources/Collector.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"61b6b8480ac018fcab6dc1e08591e561b3b16edc6684429c6e7cd7c6758f729e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/SwiftSoup/Sources/CombiningEvaluator.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdf395a02aaf427a6cdb36978c9ad97dc43d90e3cd4eeaf2a9bb4f84c8d26085"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/SwiftSoup/Sources/CombiningEvaluator.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b16ab15887fab70b96ed6558851049a2cf5544b5c5342cbc4300f89bb693b30"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/SwiftSoup/Sources/Comment.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"505016ee827ed186f49429d2eef921c8611126e71d19be4aa0e43d789a56d9e7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/SwiftSoup/Sources/Comment.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"be773819021ad30338833df79616428b51c1e6320dc9f055e97601e3f4aa5d03"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/SwiftSoup/Sources/DataNode.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"81e377b6f6dd5366c7665a0d0efebd7a80b92a3b4fb0fbd14628d03302dadc4a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/SwiftSoup/Sources/DataNode.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"77392acd70f86bf2918e9eec5a71091945a7515708ab2fcd246023978b2e39ce"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/SwiftSoup/Sources/DataNode.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"36439173734fa1ea3f5cc358dd17d661bc3b7c86f41509d6cab9304ff549bbe2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/SwiftSoup/Sources/DocumentType.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dff1b60bf33ebdde2f71e1e9a8aeae3479e318c00eda8d51b42fb3cb24dd76c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/SwiftSoup/Sources/DocumentType.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"17a855a8d55b808413cd1f3b96ab306e031e3dcdb75421faad71ffd57ef38529"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/SwiftSoup/Sources/DocumentType.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e03fd4aa90b3f5dafe7b252bd915fe614b30ae7fb2d3543150bf1ae96ffc457"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/SwiftSoup/Sources/DocumentType.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"b23e0afa2dc2205f989932b2c4e8c11e9f74ca2ef8e25cd00ad1858408f68ca6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/SwiftSoup/Sources/Element.swift"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"a50fa85bebd0b95e578d365ea378bc6832327c218ecac869ff15ecb8bcdd70f3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/SwiftSoup/Sources/Element.swift"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"205849b0d38dc1f00ebd29996207d22b70b0805e040cbb2bcf8e3ca00f40d3ae"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/SwiftSoup/Sources/Node.swift"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"d52bbe60c4294a41cd14b95666351c403f15ebbcfc0eb9571139be54f8577654"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/SwiftSoup/Sources/Node.swift"},"region":{"startLine":1332}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdb3735de93b031becee3bc42cda35019f7ddb7ce1ff9a7d22fbe04d9409debb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/SwiftSoup/Sources/Node.swift"},"region":{"startLine":1344}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d14e014e37212f12d4b2ddff40d30deee397bf9c3774b2131819b0fcbe3d0d3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/SwiftSoup/Sources/String.swift"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"3562e7949477c5eb93fc907aeed64bcca61288dfb8ca4e70a11aebc193a36fad"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/SwiftSoup/Sources/StructuralEvaluator.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dee565cedc7b9ecf57e37448accf103a314e0308a09dd15944e53d30de47fb8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/SwiftSoup/Sources/StructuralEvaluator.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"37022172ef7f4548cbc5d8cfdd88c06895732986c8c7415dccebb290b8126738"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/SwiftSoup/Sources/StructuralEvaluator.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fc3bb90ae6a8da5d7df375b059f092950e772aef39dedc71a757c00c49850f9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/SwiftSoup/Sources/StructuralEvaluator.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"320981950dce77d7bba8fe92d8bf6ca3fe1b2ac4f8f1f937e24976128131d50e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/SwiftSoup/Sources/StructuralEvaluator.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"a32a1affb9ac37010ae330ebd2066287c6982fdd587c1c8be58e6b623d703382"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/SwiftSoup/Sources/StructuralEvaluator.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"711f6991f7813a0515d6683cfd34c5deab7f8845377f4fe754e89d25f13134e4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/SwiftSoup/Sources/TextNode.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"620e29159bbebdb8b932e07362ff460ac99e761bf00e1c35d7a53c83a600197a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/SwiftSoup/Sources/TextNode.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"46a97252e2358c47807cd0b1d967391f9de00a08f41abc39d412302c08983142"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/SwiftSoup/Sources/TextNode.swift"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfa579198a24b0189ff149c1268b3c5e7331fe9bd4109ed168d51a8505f263f6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/SwiftSoup/Sources/Token.swift"},"region":{"startLine":1448}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fcfa3c93c497246b4b899d9b8073ed0692e2f6ab143ce7da30244c5346dc6d5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/SwiftSoup/Sources/XmlDeclaration.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"7909f6c004992706868a944f7dedaa06acf06439b42d493e44b92aeca8bcaeb2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Works/WebDAVMetadataFiller.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e1c0dcf89b4e23ea28d3cfa3435db98a34ba04345749f064a504c8e29fce3c8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/WebDAV/WebDAVManager.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dece3018b3c1b2d7d5131b35e8f101467c82e3b2d8a74a3bb1ce7889f63bf4d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/ModuleSearch.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc0be324465a59d755352d0132c48739fda9ca9ffc3900fb5da336da59d179c4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RuleModules/ModuleWorkDetail.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc604b216db6a8a26c078e9aa107d9495e360f68e7d7838882c98b17ed54eda2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSUtilities.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9884c58d87d09ef29ae2b0454bcb8c988eebed958911ab06a963b2c03be4c8d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSUtilities.swift"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc93f08079410ea4e8a68be296e36bdb7f901e0a31c81e6c7c74643a7a382739"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/ChapterFetcher.swift"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"e81e58e4336798381398b5def0983a666cad8bf1873ba120ac2f6a3428e6c6db"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Online/SearchAggregator.swift"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8c9d6491de064f3f2764e4ecb914a70f821c1227f415df0866859322f0a65de"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Offline/OfflineChapterStore.swift"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"b39948e48320043ce825ca4ee13e7125c60f0978f8e145404547860a4452eec9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/OPDS/OPDSClient.swift"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dcde6e75dda7662d2d947042e039ee039eca189d33f4b6e1b2be500f9de704e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/Models.swift"},"region":{"startLine":1344}}}],"partialFingerprints":{"codehealthFindingId/v1":"638c4eb639b46411b888a3dd95a4b5d4d2fc4e0249b2f904b3aff98307c6f956"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Feedback/FeedbackService.swift"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cf131e6e50807b8a2169d0341ce492f61d2e0a42eb66c6bd643c779223c9507"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Account/GatewaySessionStore.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d7ce06efc5925ef76d1eb52560455437e4aebdcbbb0bd66d969273ca55e3e39"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/AI/AICharacterMemoryService.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf9896ce450df07d3d6f3c8fa954d76c3f317938eba42f7c1e137254e3109584"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Settings/AccountAvatarImage.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b5469ff2f61d6bb68cb41b5316d242ffc03038dfc621e1c395e1d5ee1c8a4e3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderBatterySVGImportView.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a9b0bb24d2ffe10b5deb59d94af1c2836ca4426331a29c464e43c9120b5f3b4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderBatterySVGImportView.swift"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"54aa7dbbd12b1a2a860f37c912cb0725db9cc1cca2a65c34b7036a6aafe9f4bf"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderBatterySVGImportView.swift"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c0e36444f2bfb89564b6bac39060f1bfe63c90a9fd7464c990795c593d2586a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderBatterySVGImportView.swift"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"98c0917f03dd46ad15ce4e6ea18e123adf4042ddddff55fc837008d226a05ceb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderBatterySVGImportView.swift"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"da4467ccaff6a9080f4fa084fcc4dd019b83e095c4c15828efcbf7060adf78c6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/ReaderBatterySVGImportView.swift"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"681cbe5e1ccb7a369fa477a1f96964b9b5b27ea8c39455a342f68b5e14be7689"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Reader/TTS/AudiobookView.swift"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"1025251f89d88ea53a18e99b5f1a2643f360a14ec2358fe1f64ddb8e87d61443"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/RSS/RSSFaviconView.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"2849366c225a6bebea8ba89a65447fb8d5a1ae420f4ff2d849f1b039002b4e2f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Feedback/FeedbackCenterView.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"067c4a14109dbf37fd1ffea1a76f4059c73cb393a147a515b56af500f480ce49"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoSourceBridge.swift"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"ece8a9e8ed92c8c1a6327b0a63cf762406d50bf0358b203849115037a8528acd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/EPUBProgress.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"2659b2e3e5aa08a5d9cfb983ee58b10f40d7ab316a560befb686fe9a01c9fed3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderOverlaySVGAssetStore.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"41d381851690f06d2efe38cd2c18a8222943cd4511f620296ba66fd10f52dc30"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/Customization/ReaderStyleAssetStore.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"b78db131db395a273b41e5c12c77a54db0570c28253cac96a3ca78fe2c77539a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/HTMLAttributedStringBuilder.swift"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fe18fcf364e14508b37cfabd724dbdf184399b5a6c0816c37a1f9496caf8767"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/SVGWebViewRasterizer.swift"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0ba19c57b73684e0d040e916b8fb77181f65d5810ed461ac821ffaff724ded1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/TXTPageEngine.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"571d973cc2812f5accf3c77901d2c16983480629ef26c6780fb94bab9569556e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceFetcher\u002BWebContent.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"a614a67d5f6c68558848043f65ace75c48113ac1524fd6870d05eafbf5101437"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceFetcher\u002BWebContent.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"d280573e97d224b8140a2f1562a391bf26853ec939e35317a8e5b875a159a3d5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/BookSource/BookSourceHealthChecker.swift"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed192707fe1562c340c9275fec3026fd95b98048fd3a61089609231f55339312"}},{"ruleId":"X5","level":"note","message":{"text":"Null assertions (\u0060!\u0060) override strict null checking: ~0.2 \u0060!\u0060 null assertions per 1k TypeScript source lines \u2014 1 assertion(s) across the 6404 source line(s) of the 43 TypeScript file(s) read, which is the only code the operator asserts anything in (a \u0060!\u0060 in a \u0060.js\u0060 file is not this operator and was not counted, and one in a file whose null checking is off silences nothing). Densest: functions/src/index.ts (1). Each one tells the compiler to trust the author about null, suppressing the very diagnostic \u0060strictNullChecks\u0060 exists to produce. Many are correct: each is a claim the checker could not verify, and it is wrong only where the value can in fact be missing, so review the densest places first."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1d83a7c69636a6290f63000d5c19b2073be1fa772f51977532af9ca6f745fc2a"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccec7f1391b3f8d2d0eda204c2c1e068ee28af86b06e95d2e87860784ae21528"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via string slicing: A JSON key or XML tag is located in the text and the value cut out around it \u2014 a reordered, re-spaced or differently-typed document (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Swift code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSModels.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ed141170a37e8cb2317ce0865250324c16656658a8b3d631a30daa75cf3adfd"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Swift code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Features/Bookshelf/AddBookView.swift"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"519ecc9505c5d674ea6b03ed87a2a2165d0fcdc89f90b3565d3d96aa24976018"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via string slicing: A JSON key or XML tag is located in the text and the value cut out around it \u2014 a reordered, re-spaced or differently-typed document (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Swift code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/TTSAudioProvider.swift"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1b9448d6aded9e66f74c32dc6265b5a26aec9055a167bcb121c98b3169cc285"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Swift code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/NextPageLinkExtractor.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a9aea0b0a46e204b9fd28a648d59b85721272347bde8a2be183da1a49c8181f"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via string slicing: A JSON key or XML tag is located in the text and the value cut out around it \u2014 a reordered, re-spaced or differently-typed document (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Swift code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"50bea3ae3c9cde74c46f4b46788320f18e595a2c70855dc04bfd1edcbd1bd206"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via string slicing: A JSON key or XML tag is located in the text and the value cut out around it \u2014 a reordered, re-spaced or differently-typed document (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Swift code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift"},"region":{"startLine":999}}}],"partialFingerprints":{"codehealthFindingId/v1":"3759d9509601c326920150b8f7afdf463d131f9c0db4c0ed381db7db766a5800"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via string slicing: A JSON key or XML tag is located in the text and the value cut out around it \u2014 a reordered, re-spaced or differently-typed document (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Swift code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/ModernParserBridge.swift"},"region":{"startLine":1137}}}],"partialFingerprints":{"codehealthFindingId/v1":"14ee56bd914857fec10218f31aefdf962841dfe2bd5d365d7ae796199d5127c1"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Swift code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/ModernRuleEngine.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f032257bed646da4f6e2aba443308c6ab318b52f016a482970f961e6841bc77"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Swift code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/URL/AnalyzeUrl.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9b47a5ef4864630004dea94d4986253cf33d55fc988dfc9ba37fa5d9d5d6a9f"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via string slicing: A JSON key or XML tag is located in the text and the value cut out around it \u2014 a reordered, re-spaced or differently-typed document (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Swift code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/Login/LoginManager.swift"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"14f24c2dda7dc544cab679dcf6c1b01876a517c6b16f642294631cd1129cab38"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via string slicing: A JSON key or XML tag is located in the text and the value cut out around it \u2014 a reordered, re-spaced or differently-typed document (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Swift code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/JSCoreEngine.swift"},"region":{"startLine":2338}}}],"partialFingerprints":{"codehealthFindingId/v1":"87635bce471d57506f3f6983cd1bb47e3c5fbdf3e5608f3e85f5bc54dffbb762"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Swift code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift"},"region":{"startLine":1314}}}],"partialFingerprints":{"codehealthFindingId/v1":"14775570300baa2f6330eecbd9444ef596138c56e372b1a89e4b74fb2468b44b"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Swift code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoJSBridge.swift"},"region":{"startLine":1315}}}],"partialFingerprints":{"codehealthFindingId/v1":"5235c2192aacb926f10d435a954cca7ed298482ca35025f0f3334f20066e7dfd"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Swift code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/ReaderHTMLUtilities.swift"},"region":{"startLine":1558}}}],"partialFingerprints":{"codehealthFindingId/v1":"62784295fdeef9d164d1c7af5d38daffb752335bde209cb4638a5024b0f08329"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Swift code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4087438eefc5a19e7f0a22263388a8afc89dc4509945e44e3cf7ccbd9f5a51c"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Swift code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"cceabaf8830a05615e1d661b765c4498bb4924fe5cd6b959bc845cce16a7fc9c"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Swift code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ReviewCardContent.swift"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"cad1ad5399140c1ac85e57ba257c9f3ee5d7bb2398ad76ad67c9ecf78ecbdc98"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Swift code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ReviewCardSVGMetrics.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"97ca3d94b18552119253a3fdf7874601bdbcf4f201d6f5ed0c70b5e2fbfa6015"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Swift code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/EPUBMediaOverlay.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"6daea55fcfc2113d51191e6d486e32c5bab8a969c44f4adcca8460c523a40223"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Swift code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/PublicationSession.swift"},"region":{"startLine":1684}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f916adc4bbfed0b577c10c6118bf1620db253551cfee5aacf926c03cdb2640"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060parse\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/AI/AIRAGPipeline.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3eb10635b497d5a94909037c73b5420cc28ee1daeb93f9a8272843999111359"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060parBlocks\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/EPUBMediaOverlay.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c02a592472b786b39e5e4036c8a095e9ff346c018570d19ab67450f9e4d85a0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060attributes\u0060 turns every thrown error into \u0060[:]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/EPUBMediaOverlay.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"a10f9626efa5a5b7e8deb6226cbda07dcfab6648cefb475a5ff85eb75711616d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060opfIdentifiers\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/PublicationSession.swift"},"region":{"startLine":1458}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d5a2cb2327418354c219b8aad9e30268c8e1882cf090b857941ce5b80b7ee8d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060parseSpineMetadata\u0060 turns every thrown error into \u0060[:]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/PublicationSession.swift"},"region":{"startLine":1495}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c80033f09d41dffccde129fd2679cd120fea7d7f33998647c516b7430591e83"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060parseSpineReferences\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/PublicationSession.swift"},"region":{"startLine":1545}}}],"partialFingerprints":{"codehealthFindingId/v1":"52f0d688fdefd778b31a8f96ef71395720844efed2f869864e2f4967ac777593"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060manifestItemsByID\u0060 turns every thrown error into \u0060[:]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/PublicationSession.swift"},"region":{"startLine":1649}}}],"partialFingerprints":{"codehealthFindingId/v1":"7da9a9245add6e67e007f05f4d088756673055840443997991619f76ee5655ff"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060metaElements\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/PublicationSession.swift"},"region":{"startLine":1685}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2a1e1374c0102f6b0c1ce14525d8cb2e2468e93a5a24ff721afb5f33c1f2d0a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060attributes\u0060 turns every thrown error into \u0060[:]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/EPUB/PublicationSession.swift"},"region":{"startLine":1712}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f980c8d7b09735411177274e300dd161dba743327137a766a4f5a104c71bf8c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060parseTOC\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/WebNovelParser.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9939aa101e6ecd5f6e9c2bf5988e450b5df40f767b111bc01816807578f9b61"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060extractNextPageURL\u0060 turns every thrown error into \u0060\u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/WebNovelParser.swift"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"b08687253f9327f42619cf17d68915cdbe0b27fddb656514d15bbf509066cdc6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060urlLikeMatches\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/TTS/TTSAudioProvider.swift"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"18605f3dbaf877611c6f0769992e18986f2c099d53c18bb965101908e747c4ec"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readEntries\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/Diagnostics/DiagnosticLog.swift"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4fd607933c6559d738da5c750e1d74dc9dc4cb4a5790bd09a976e6347e891a6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060content\u0060 turns every thrown error into \u0060\u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/LibraryStore/BookStore.swift"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"b521af5da5ec0387ff2c35f0eb3833ba314ebd25b2a871c9c8853bb2e5c983e9"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060htmlIconURLs\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/RSSUtilities.swift"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"9110bc8a034c2f3272b2c16f7249b75f690ce9f799e8a957c290a42c796947f7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060prefetchImages\u0060 turns every thrown error into \u0060[:]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/BrowserLayout/EPUBBrowserLayoutResourceAdapter.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d055e04fa978158e88df1f045ed280f9f67396301fd7831ef79c5b7a75eb70e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060parseGroupSpans\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/CommentBubbleSVGRecognizer.swift"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"64bcf80dced494e0a5cea48d51eb99c6f3f57bf80463fa78710b843045f1ea66"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060chapterDataSize\u0060 turns every thrown error into \u00600\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/EPUBAttributedStringBuilder.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c6b9e8bf3e5d44935e8206ac1b446c2f3086072eab12a8be5be2fc4dd9e67d4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060textRuns\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ReviewCardContent.swift"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"78560402983ee2cde811d24b9d20f343cb83a6be378d06e5654e180b4df2454c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060textRuns\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/ReaderCore/CoreText/ReviewCardSVGMetrics.swift"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"696d603cc8253700e66400829359bbb93d7fd83e1e18ac65ed33e44815722537"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060html\u0060 turns every thrown error into \u0060\u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoJsoupBridge.swift"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"7898a69b7ca405dcc2f6ab75396554f8389e6518310fbbe650a4f5c83e671fac"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060outerHtml\u0060 turns every thrown error into \u0060\u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoJsoupBridge.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a90fae3e18c2c465a1103179b5ef97a06c7c18ffc755930aedb7def7bc904aa"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060text\u0060 turns every thrown error into \u0060\u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoJsoupBridge.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"662151f9cd23d593724d321c852ed9278e76e718bdbca8e10c84769a8d01be19"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060attr\u0060 turns every thrown error into \u0060\u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoJsoupBridge.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"76a75d470fd33b7088f88ae30830114bee01900c4fee5e109c0bfc04c53aa048"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060absUrl\u0060 turns every thrown error into \u0060\u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoJsoupBridge.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"e33cea3bc8f66b1d405c8dadf0816068ad46be1f44fd7f802a3138a378fdb7ae"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060className\u0060 turns every thrown error into \u0060\u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoJsoupBridge.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"13f3e70e9afcf81320bd88d0400f11915e160925089f7afa38f873ded3366be5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060title\u0060 turns every thrown error into \u0060\u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoJsoupBridge.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"165c84375d2e996fe7aed93a6cff2315e505653fe9bf5f48dbd1a675d459c394"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060elementSiblingIndex\u0060 turns every thrown error into \u00600\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/JS/LegadoJsoupBridge.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"838caa073fd89772a049eb299312620ca1e6fab1ee6082b5fed69cbf7cf25535"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060htmlElementToText\u0060 turns every thrown error into \u0060\u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Core/RuleEngine/ModernParser/CssExtractor.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"757e852868be1544dd66374c0b1bd6d31475a4b7960d63348b2b73f9178c7b98"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060safeQuerySelectorAll\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c6bd4c927d066a27ec2bf887a81309be931fbee3005a6dceb91d8117289c80"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060extractByXPath\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"04f647e86d4d34a07688ab41975d1dcaa0f80fb8ac15c0efb78f170f15e15085"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060extractRegexAllInOne\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":902}}}],"partialFingerprints":{"codehealthFindingId/v1":"1817262999f12c584c35c50c5ed85055a24b8327922d738691ab92e692e605e2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060routeExtractValue\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":1014}}}],"partialFingerprints":{"codehealthFindingId/v1":"70a0101a535b7dbf74bcb4cff416d00839878eee83eab92b5b7ac3fe331a4dbb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060parseSearchResultsJSON\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":1130}}}],"partialFingerprints":{"codehealthFindingId/v1":"98871f620c7a3ca0740560abab7cb39bc13b6c52106777180f97f3cbbefa11d2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060parseTOCJSON\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/bookSourceEngine/ruleEngine.js"},"region":{"startLine":1243}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f0220c9ebdba904051e4969af298e8af19ffe6a3df006ff3ff093d8836d9e60"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060queryElements\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/legado-engine.js"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"eee86b5b134702ea88f3ce914bdb4a61ccb82dcbaa1f032b3e78116697d7edb4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getList\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Assets/legado-engine.js"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca2535407226d6a771ed6a9b7d532c569f67fc302471f98973063abce6207024"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060trimmed.hasPrefix(\u0022//\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060trimmed.hasPrefix(\u0022//\u0022)\u0060 also satisfies \u0060trimmed.hasPrefix(\u0022/\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Modules/Services/RSS/LegadoRSSScraper.swift"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"76878a5f540a919be060ce9fca86bc5a5b812249d6639eeb9e05979462f939b1"}}],"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-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-125","guid":"98717707-96bf-ca5b-9568-8d1d257574c1","name":"CWE-125","shortDescription":{"text":"CWE-125"},"helpUri":"https://cwe.mitre.org/data/definitions/125.html"},{"id":"CWE-1333","guid":"11a336ce-63de-c45c-845e-29ca1e8df13d","name":"CWE-1333","shortDescription":{"text":"CWE-1333"},"helpUri":"https://cwe.mitre.org/data/definitions/1333.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-311","guid":"51c30837-1e31-e25f-abf9-52b0cbfcbbae","name":"Missing Encryption of Sensitive Data","shortDescription":{"text":"Missing Encryption of Sensitive Data"},"helpUri":"https://cwe.mitre.org/data/definitions/311.html"},{"id":"CWE-319","guid":"7af97476-9f0d-4458-9163-3d2043918a1a","name":"Cleartext Transmission of Sensitive Information","shortDescription":{"text":"Cleartext Transmission of Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/319.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-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.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-862","guid":"2d96ecd7-f7f1-7f55-9f3a-43bb5bafdf33","name":"Missing Authorization","shortDescription":{"text":"Missing Authorization"},"helpUri":"https://cwe.mitre.org/data/definitions/862.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":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A04:2025","guid":"6a9f5bfd-1a56-6453-beec-a7eff0ba3007","name":"Cryptographic Failures","shortDescription":{"text":"Cryptographic Failures"},"helpUri":"https://top10.owasp.org/2025/A04_2025-Cryptographic_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/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-4","guid":"c859d8ea-8b24-a157-9406-94929c10397a","name":"Poisoned Pipeline Execution (PPE)","shortDescription":{"text":"Poisoned Pipeline Execution (PPE)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-04-Poisoned-Pipeline-Execution"},{"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":61,"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."]}]}