{"$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":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"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":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02:2025"}},{"id":"D40","name":"Network Egress Confinement","shortDescription":{"text":"Network Egress Confinement"},"helpUri":"https://codehealth.canine.dev/dimensions/D40"},{"id":"D41","name":"Kernel \u0026 Syscall Confinement","shortDescription":{"text":"Kernel \u0026 Syscall Confinement"},"helpUri":"https://codehealth.canine.dev/dimensions/D41"},{"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":"AC1","name":"Text alternatives","shortDescription":{"text":"Text alternatives"},"helpUri":"https://codehealth.canine.dev/dimensions/AC1"},{"id":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC4","name":"Keyboard semantics","shortDescription":{"text":"Keyboard semantics"},"helpUri":"https://codehealth.canine.dev/dimensions/AC4"},{"id":"AC5","name":"ARIA correctness","shortDescription":{"text":"ARIA correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/AC5"},{"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":"AX5","name":"Architecture \u0026 structure","shortDescription":{"text":"Architecture \u0026 structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AX5"},{"id":"AX7","name":"Slice cohesion","shortDescription":{"text":"Slice cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/AX7"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"AXS1","name":"Runtime exposed surface","shortDescription":{"text":"Runtime exposed surface"},"helpUri":"https://codehealth.canine.dev/dimensions/AXS1"},{"id":"C2","name":"Access Controls","shortDescription":{"text":"Access Controls"},"helpUri":"https://codehealth.canine.dev/dimensions/C2"},{"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":"R11","name":"Import Boundaries","shortDescription":{"text":"Import Boundaries"},"helpUri":"https://codehealth.canine.dev/dimensions/R11"},{"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":"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":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"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":"X2","name":"Cancellation propagation","shortDescription":{"text":"Cancellation propagation"},"helpUri":"https://codehealth.canine.dev/dimensions/X2"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"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":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"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":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"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":"DocumentManager.DocumentManager (cyclomatic 152): DocumentManager.DocumentManager has cyclomatic complexity 152 (threshold 15). Of this number, 54 points are the body\u0027s own statements and 98 belong to 28 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":"lightrag_webui/src/features/DocumentManager.tsx"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"a257429f753f47f8e53bc88a77961f9e5093ff99911686fa2004bcdec4dbe935"}},{"ruleId":"D1","level":"warning","message":{"text":"useLightragGraph.useLightrangeGraph (cyclomatic 102): useLightragGraph.useLightrangeGraph has cyclomatic complexity 102 (threshold 15). Most of this is not in the body itself: 1 of the 102 points is its own statement and the rest belongs to 14 function literals inside it that branch (lines 681, 477, 1103, \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":"lightrag_webui/src/hooks/useLightragGraph.tsx"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"7084656473084cd0a1d8f4ed061dc2ad54a948ad9c2650ea7710f4386b291e09"}},{"ruleId":"D1","level":"warning","message":{"text":"operate._merge_edges_then_upsert (cyclomatic 90): operate._merge_edges_then_upsert has cyclomatic complexity 90 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":2823}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f57c4d4ee06ba5a0ca3e45a68b06f61cc2def7fb7251943191a006c00a7763"}},{"ruleId":"D1","level":"warning","message":{"text":"LightRAG._purge_derived_kg_contributions (cyclomatic 84): LightRAG._purge_derived_kg_contributions has cyclomatic complexity 84 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/lightrag.py"},"region":{"startLine":6349}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba072c4637f6e3aec1ee3b4cf8bb397fd73fbeddf4231563bcb5b152e9908a67"}},{"ruleId":"D1","level":"warning","message":{"text":"GraphControl.GraphControl (cyclomatic 78): GraphControl.GraphControl has cyclomatic complexity 78 (threshold 15). Most of this is not in the body itself: 2 of the 78 points are its own statements and the rest belongs to 23 function literals inside it that branch (lines 374, 426, 459, \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":"lightrag_webui/src/components/graph/GraphControl.tsx"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d95f44662b4cb144e9095edca1b7b06a2b7cb5c77c5eb788a66cb3a6d132912"}},{"ruleId":"D1","level":"warning","message":{"text":"_PipelineMixin.process_single_document (cyclomatic 74): _PipelineMixin.process_single_document has cyclomatic complexity 74 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/pipeline.py"},"region":{"startLine":4992}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc1d05a090a1951a6579c25c704cbc7e4591d0d48c820ff8b044e1295271f22d"}},{"ruleId":"D1","level":"warning","message":{"text":"heading_flow.gate_candidates (cyclomatic 71): heading_flow.gate_candidates has cyclomatic complexity 71 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/parser/docx/smart_heading/heading_flow.py"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfc0bb13837aef8bf553e91c26342e94231fc310659a76f0db40bc005f4b12a4"}},{"ruleId":"D1","level":"warning","message":{"text":"_PipelineMixin.apipeline_enqueue_documents (cyclomatic 71): _PipelineMixin.apipeline_enqueue_documents has cyclomatic complexity 71 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/pipeline.py"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"90f18d56b3c15bdae5511f915034cff98f18bdde526abbff3c9f3cdfc534b3cd"}},{"ruleId":"D1","level":"warning","message":{"text":"_PipelineMixin.analyze_multimodal (cyclomatic 71): _PipelineMixin.analyze_multimodal has cyclomatic complexity 71 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/pipeline.py"},"region":{"startLine":6842}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7da08f8c2500f5ac06ae545521694b6fbe510b160cecb47b9bd44659899f47d"}},{"ruleId":"D1","level":"warning","message":{"text":"title_block.find_title_block_candidates (cyclomatic 66): title_block.find_title_block_candidates has cyclomatic complexity 66 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/parser/docx/smart_heading/title_block.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a6ba4afda5cd5df4746149d57cddaee730a844ce488c00cfef7f8d3b3bd7937"}},{"ruleId":"D1","level":"warning","message":{"text":"LightRAG.ainsert_custom_chunks (cyclomatic 65): LightRAG.ainsert_custom_chunks has cyclomatic complexity 65 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/lightrag.py"},"region":{"startLine":2478}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3d6e5b30315eeab47c5ff6d71a2cafd612a5c90f14bc77e92b2772583497b27"}},{"ruleId":"D1","level":"warning","message":{"text":"openai.openai_complete_if_cache (cyclomatic 65): openai.openai_complete_if_cache has cyclomatic complexity 65 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai.py"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4cb16b3d4afa58d92d46c64b77c66ba07f48cdc3fdfc189f192c3bfd027b472"}},{"ruleId":"D1","level":"warning","message":{"text":"LightRAG.adelete_by_doc_id (cyclomatic 63): LightRAG.adelete_by_doc_id has cyclomatic complexity 63 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/lightrag.py"},"region":{"startLine":6811}}}],"partialFingerprints":{"codehealthFindingId/v1":"260e413232c1f40dab8fdb679e1adbec6cf3fd8ed0f80d1314f4ad55c384ebcf"}},{"ruleId":"D1","level":"warning","message":{"text":"utils_graph._merge_entities_impl (cyclomatic 63): utils_graph._merge_entities_impl has cyclomatic complexity 63 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils_graph.py"},"region":{"startLine":2958}}}],"partialFingerprints":{"codehealthFindingId/v1":"429b8eccab5cf5e85af0566a3ec221145714f44a6d3c6a23876bd349fd15e79c"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatMessage.ChatMessage (cyclomatic 57): ChatMessage.ChatMessage has cyclomatic complexity 57 (threshold 15). Of this number, 46 points are the body\u0027s own statements and 11 belong to 5 function literals inside it that branch. 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":"lightrag_webui/src/components/retrieval/ChatMessage.tsx"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"71231429683e2b9ae3ae34f9d884c23f435276372d2325239f81287b72890e5a"}},{"ruleId":"D1","level":"warning","message":{"text":"operate._merge_nodes_then_upsert (cyclomatic 55): operate._merge_nodes_then_upsert 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":"lightrag/operate.py"},"region":{"startLine":2470}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ac798e5a23386fcf3e2023a17625214c291993a8771b200c9b8a56fef3b86a0"}},{"ruleId":"D1","level":"warning","message":{"text":"openai_responses._stream_response (cyclomatic 54): openai_responses._stream_response has cyclomatic complexity 54 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai_responses.py"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"08566adc5cf5af87ffb9af84b89e4d0e8f4fbee0f99af78c033c0330b7798fa8"}},{"ruleId":"D1","level":"warning","message":{"text":"heading_flow.run_smart_heading (cyclomatic 54): heading_flow.run_smart_heading has cyclomatic complexity 54 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/parser/docx/smart_heading/heading_flow.py"},"region":{"startLine":2942}}}],"partialFingerprints":{"codehealthFindingId/v1":"53dd19f2455d9d26de3f0b54e61364dd8dc324bf680ed139bb0c8c468085fd4c"}},{"ruleId":"D1","level":"warning","message":{"text":"lightrag_server.create_app (cyclomatic 53): lightrag_server.create_app has cyclomatic complexity 53 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/lightrag_server.py"},"region":{"startLine":1473}}}],"partialFingerprints":{"codehealthFindingId/v1":"213f78c6972c2062f8a68842df0e954f274b8b7c1d58ef95404271a89541f4ac"}},{"ruleId":"D1","level":"warning","message":{"text":"operate._rebuild_single_relationship (cyclomatic 52): operate._rebuild_single_relationship has cyclomatic complexity 52 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":2068}}}],"partialFingerprints":{"codehealthFindingId/v1":"492cf142cfcfff7b055abe23619225f57caa986fc6449a5c4d797d80abb90d98"}},{"ruleId":"D1","level":"warning","message":{"text":"heading_flow.correct_numbering_skeleton (cyclomatic 51): heading_flow.correct_numbering_skeleton 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":"lightrag/parser/docx/smart_heading/heading_flow.py"},"region":{"startLine":2325}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9548f292c82808a158bf36a813e7470634c1d431747471175b3b19ad8c0bdeb"}},{"ruleId":"D1","level":"warning","message":{"text":"PGKVStorage.get_by_ids (cyclomatic 50): PGKVStorage.get_by_ids has cyclomatic complexity 50 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/postgres_impl.py"},"region":{"startLine":3574}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e9cbf51bee42539f2376d2bfb5ee988e080ce4dc0da428302ac0b2b2b7499a7"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatMessage.CodeHighlight (cyclomatic 48): ChatMessage.CodeHighlight has cyclomatic complexity 48 (threshold 15). Most of this is not in the body itself: 10 of the 48 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 480, a function literal at line 469, a function literal at line 575, \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":"lightrag_webui/src/components/retrieval/ChatMessage.tsx"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"40d33bd86f13569ed9c5318913f0cd06ba0972900b278c5e22dcbf650a21c649"}},{"ruleId":"D1","level":"warning","message":{"text":"utils.aexport_data (cyclomatic 47): utils.aexport_data has cyclomatic complexity 47 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":4857}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3e94400dee6f10a1d7585a9eebb0d4ff49c3ac8613afe6ef791594ca469fcab"}},{"ruleId":"D1","level":"warning","message":{"text":"ui_customization.load_ui_customization_snapshot (cyclomatic 46): ui_customization.load_ui_customization_snapshot has cyclomatic complexity 46 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/ui_customization.py"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f29b9f031f4d82580ee71d985841b4d546998d904c32d7eb30593bd69b58c1f"}},{"ruleId":"D1","level":"warning","message":{"text":"paragraph_semantic._merge_small_blocks (cyclomatic 46): paragraph_semantic._merge_small_blocks has cyclomatic complexity 46 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/chunker/paragraph_semantic.py"},"region":{"startLine":1843}}}],"partialFingerprints":{"codehealthFindingId/v1":"d379d12b158171825035ffffe4fc14dac238a4e5d14dc681cb315ab327888995"}},{"ruleId":"D1","level":"warning","message":{"text":"paragraph_semantic._split_table_text (cyclomatic 45): paragraph_semantic._split_table_text has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/chunker/paragraph_semantic.py"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffddebd4b0810f6b1f865cde73d6ff39dede81d451a03d00b0fa2c96bd89d6c7"}},{"ruleId":"D1","level":"warning","message":{"text":"parse_document._assemble_blocks_smart (cyclomatic 45): parse_document._assemble_blocks_smart has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/parser/docx/parse_document.py"},"region":{"startLine":1263}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7c2b41fb05ccb45b15a2f71b595546f2eeccbb6e4a7416ccf6bf82e8c5f66b0"}},{"ruleId":"D1","level":"warning","message":{"text":"_PipelineMixin._parse_worker (cyclomatic 44): _PipelineMixin._parse_worker has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/pipeline.py"},"region":{"startLine":4410}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff270116a2ab7b82c561c38cbd5aedd4033d150d03a87a69479a2c3b7e5025cc"}},{"ruleId":"D1","level":"warning","message":{"text":"PGKVStorage.get_by_id (cyclomatic 43): PGKVStorage.get_by_id 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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":3419}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c2142675ec57f6200766eb4886d1e331ae93a20abd5f1a242d81271d28c98b3"}},{"ruleId":"D1","level":"warning","message":{"text":"paragraph_semantic.chunking_by_paragraph_semantic (cyclomatic 42): paragraph_semantic.chunking_by_paragraph_semantic 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":"lightrag/chunker/paragraph_semantic.py"},"region":{"startLine":2077}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc5ed892c1e0ffdbf8e1e2ca4b6d720536c60a504dfc98edb50dea869a7a0d6f"}},{"ruleId":"D1","level":"warning","message":{"text":"TableExtractor.extract_with_metadata (cyclomatic 42): TableExtractor.extract_with_metadata 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":"lightrag/parser/docx/table_extractor.py"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"40e275f04714a1bbe7d163ca258a8a7a7aa3842d04b5d0d19cd9b26ff8a8c3a4"}},{"ruleId":"D1","level":"warning","message":{"text":"PGVectorStorage.setup_table (cyclomatic 41): PGVectorStorage.setup_table has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/postgres_impl.py"},"region":{"startLine":4454}}}],"partialFingerprints":{"codehealthFindingId/v1":"379c935132aa70976e4ac1d6500a7bcf9e21dc930625e3e132e2685de0c2cc04"}},{"ruleId":"D1","level":"warning","message":{"text":"LightRAG.__post_init__ (cyclomatic 41): LightRAG.__post_init__ has cyclomatic complexity 41 (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":"lightrag/lightrag.py"},"region":{"startLine":1653}}}],"partialFingerprints":{"codehealthFindingId/v1":"319080694c1d68ae9629d0f49d165ce1a6876bfc5bf0b3c14ddfb69f5251b9c5"}},{"ruleId":"D1","level":"warning","message":{"text":"utils.is_gemini_retryable (cyclomatic 41): utils.is_gemini_retryable has cyclomatic complexity 41 (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":"lightrag/parser/docx/utils.py"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2a747a9474ba4d20c1a303957424ac2412ed598b01abb865ac18fda56df52f1"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageList.MessageList (cyclomatic 41): MessageList.MessageList has cyclomatic complexity 41 (threshold 15). Most of this is not in the body itself: 4 of the 41 points are its own statements and the rest belongs to 11 function literals inside it that branch (lines 212, 308, 104, \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":"lightrag_webui/src/features/retrieval/MessageList.tsx"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3032a7ea5a3f518f0d0f6abb61f695a1ce96ad65caa9a0a3302c4d4ccded31a"}},{"ruleId":"D1","level":"warning","message":{"text":"operate._perform_kg_search (cyclomatic 40): operate._perform_kg_search 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":"lightrag/operate.py"},"region":{"startLine":5442}}}],"partialFingerprints":{"codehealthFindingId/v1":"21ec3c6f43a4ea78527b2ed1e396b1ce42f6ed8eab254b2c60b12afabf852d11"}},{"ruleId":"D1","level":"warning","message":{"text":"GraphLabels.GraphLabels (cyclomatic 40): GraphLabels.GraphLabels has cyclomatic complexity 40 (threshold 15). Most of this is not in the body itself: 6 of the 40 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 156, 285, 124, \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":"lightrag_webui/src/components/graph/GraphLabels.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"75534ce469fc43b8c06102bb060d36e546103f4b7e2fe4a3a93626c5aa16c572"}},{"ruleId":"D1","level":"warning","message":{"text":"config.parse_args (cyclomatic 39): config.parse_args has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/config.py"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e886d94e141f916c341d09c2328d0fef8c1e00bec9065ba361a726d2013cdb3"}},{"ruleId":"D1","level":"warning","message":{"text":"operate.rebuild_knowledge_from_chunks (cyclomatic 39): operate.rebuild_knowledge_from_chunks has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":1138}}}],"partialFingerprints":{"codehealthFindingId/v1":"69ce1a2886ab02de2c34a3a52af89e9e9a32a60efadf005f25719f2b1165e9d0"}},{"ruleId":"D1","level":"warning","message":{"text":"heading_flow.anchor_outline_levels (cyclomatic 39): heading_flow.anchor_outline_levels has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/parser/docx/smart_heading/heading_flow.py"},"region":{"startLine":1678}}}],"partialFingerprints":{"codehealthFindingId/v1":"de3cdf61e744ef4cbb34eda981ac30050f70c3a92768377ff828f4da42fd0ce3"}},{"ruleId":"D1","level":"warning","message":{"text":"utils_graph._edit_entity_impl (cyclomatic 39): utils_graph._edit_entity_impl has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils_graph.py"},"region":{"startLine":1161}}}],"partialFingerprints":{"codehealthFindingId/v1":"08f799512776dfc0debbaf5732309e1fadbaed188336ec4a0173d6304740c8cb"}},{"ruleId":"D1","level":"warning","message":{"text":"_PipelineMixin._build_mm_chunks_from_sidecars (cyclomatic 38): _PipelineMixin._build_mm_chunks_from_sidecars has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/pipeline.py"},"region":{"startLine":8030}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9e12035e54aac74663a401a89376a0a33003634cdf9cab5672a66910a419b81"}},{"ruleId":"D1","level":"warning","message":{"text":"bedrock.bedrock_complete_if_cache (cyclomatic 37): bedrock.bedrock_complete_if_cache has cyclomatic complexity 37 (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":"lightrag/llm/bedrock.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"80b209d398603c7a2a576342297417d6776c16ee1510c2cfaca0ca9ce20ebc82"}},{"ruleId":"D1","level":"warning","message":{"text":"MinerUIRBuilder._build_ir_table (cyclomatic 37): MinerUIRBuilder._build_ir_table has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/parser/external/mineru/ir_builder.py"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"af32a730fe7b56cf86848728b2c3ccdd8dd7773b2c74a318fedb8264f4611c1a"}},{"ruleId":"D1","level":"warning","message":{"text":"EditablePropertyRow.EditablePropertyRow::handleSave (cyclomatic 37): EditablePropertyRow.EditablePropertyRow::handleSave has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/components/graph/EditablePropertyRow.tsx"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f91a09fd8d1a48b81b76612bf325556a92f752914adc41b5d39da4d2ade302d"}},{"ruleId":"D1","level":"warning","message":{"text":"MilvusVectorDBStorage._migrate_collection_schema_attempt (cyclomatic 36): MilvusVectorDBStorage._migrate_collection_schema_attempt 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":"lightrag/kg/milvus_impl.py"},"region":{"startLine":1829}}}],"partialFingerprints":{"codehealthFindingId/v1":"a026d7e836848fc89c17ddda0dc79d91949e27f6d19d9a883ee40f4c35a9ca31"}},{"ruleId":"D1","level":"warning","message":{"text":"MinerUIRBuilder._normalize_content_list (cyclomatic 36): MinerUIRBuilder._normalize_content_list 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":"lightrag/parser/external/mineru/ir_builder.py"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"28d122e306c02c81d6cacbe85afad95509526e362bb69f069e712461efa68616"}},{"ruleId":"D1","level":"warning","message":{"text":"LoginPage.LoginPage (cyclomatic 36): LoginPage.LoginPage has cyclomatic complexity 36 (threshold 15). Most of this is not in the body itself: 13 of the 36 points are its own statements and the rest belongs to 2 function items inside it that branch (a function literal at line 99, handleSubmit). 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":"lightrag_webui/src/features/LoginPage.tsx"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"55093eaf6836c0e0fcd6d03f7b62eb56429738f55555daffb700f28c0b7bbf0e"}},{"ruleId":"D1","level":"warning","message":{"text":"document_routes.run_scanning_process (cyclomatic 35): document_routes.run_scanning_process 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":"lightrag/api/routers/document_routes.py"},"region":{"startLine":3674}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ea3d5fc1fad5e3321070182b4754d762f32bcdec9fcb1ccccb6615d56df411e"}},{"ruleId":"D1","level":"warning","message":{"text":"QdrantVectorDBStorage.setup_collection (cyclomatic 35): QdrantVectorDBStorage.setup_collection 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":"lightrag/kg/qdrant_impl.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc29e22a2e0195f59544dc14cfce9b4e7dfcdc4d9ff44a890dcaf36c0b828d7e"}},{"ruleId":"D1","level":"warning","message":{"text":"writer.write_sidecar (cyclomatic 35): writer.write_sidecar 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":"lightrag/sidecar/writer.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"7beb2b119836d6a55cf1f2c7dae9743858475df20acd518a6c6f23bb1d3b4c9a"}},{"ruleId":"D1","level":"warning","message":{"text":"DocumentManager.formatMetadata (cyclomatic 35): DocumentManager.formatMetadata has cyclomatic complexity 35 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 16 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":"lightrag_webui/src/features/DocumentManager.tsx"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"6542397fdbf4fe29c375da8212d317752acdee5d6d4c6cc8adf12c70f073fbfd"}},{"ruleId":"D1","level":"warning","message":{"text":"ir_builder._build_ir_drawing (cyclomatic 34): ir_builder._build_ir_drawing 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":"lightrag/parser/external/docling/ir_builder.py"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac883c1713c065c73786f0ea7b361cdcf7d0838270fbeaa5b25db5af0b8b3300"}},{"ruleId":"D1","level":"warning","message":{"text":"AsyncSelect.AsyncSelect (cyclomatic 34): AsyncSelect.AsyncSelect has cyclomatic complexity 34 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 16 belong to 9 function literals inside it that branch. 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":"lightrag_webui/src/components/ui/AsyncSelect.tsx"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"e148d9ffd32186e8b7c399b9085da2ac13bf40649b5ea55c1d31e5ba8ed8f2f7"}},{"ruleId":"D1","level":"warning","message":{"text":"graph.useGraphStoreBase (cyclomatic 34): graph.useGraphStoreBase has cyclomatic complexity 34 (threshold 15). Most of this is not in the body itself: 1 of the 34 points is its own statement and the rest belongs to 7 function literals inside it that branch (lines 327, 441, 350, \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":"lightrag_webui/src/stores/graph.ts"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"37bea22134fab773012d2bb939013bcb23a388e1b94ab4a1a2b832d8c44385e4"}},{"ruleId":"D1","level":"warning","message":{"text":"paragraph_semantic._split_long_block (cyclomatic 33): paragraph_semantic._split_long_block 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":"lightrag/chunker/paragraph_semantic.py"},"region":{"startLine":1272}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecf5ad97e565132a8adfd5ea90ab074dbfa78301ec8aff5f0d9e1cb980c95d54"}},{"ruleId":"D1","level":"warning","message":{"text":"anthropic.anthropic_complete_if_cache (cyclomatic 33): anthropic.anthropic_complete_if_cache 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":"lightrag/llm/anthropic.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"4246df8c05a7af622ebcbf4846e766e25ca89803f82a28d883b13ff938b7d7ac"}},{"ruleId":"D1","level":"warning","message":{"text":"NumberingResolver.get_label (cyclomatic 33): NumberingResolver.get_label 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":"lightrag/parser/docx/numbering_resolver.py"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"3057f4611e4a342d9dd6844b29cba345a75b6d7e5076c69ce4165691dc7ae69f"}},{"ruleId":"D1","level":"warning","message":{"text":"parse_document._read_document_records (cyclomatic 33): parse_document._read_document_records 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":"lightrag/parser/docx/parse_document.py"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"77cfc80e9889aea3cd6e61e6d5c6a0fb6f2d06e0f1bfe35c46f2e82d414632ff"}},{"ruleId":"D1","level":"warning","message":{"text":"QueryComposer.QueryComposer (cyclomatic 33): QueryComposer.QueryComposer has cyclomatic complexity 33 (threshold 15). Most of this is not in the body itself: 8 of the 33 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 111, 90, 131, \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":"lightrag_webui/src/features/retrieval/QueryComposer.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"b508b777bba34e89e0ee90e310927947a7547b47b50a2e6ca2f8567fb6680df7"}},{"ruleId":"D1","level":"warning","message":{"text":"FaissVectorDBStorage._flush_pending_locked (cyclomatic 32): FaissVectorDBStorage._flush_pending_locked 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":"lightrag/kg/faiss_impl.py"},"region":{"startLine":907}}}],"partialFingerprints":{"codehealthFindingId/v1":"6546ed91b7a70fd6a8606faf291c9c64350fb7b5b36937c6d043f5df3a29c57e"}},{"ruleId":"D1","level":"warning","message":{"text":"OMMLParser.parse_d (cyclomatic 32): OMMLParser.parse_d 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":"lightrag/parser/docx/omml/ommlparser.py"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"0967a7ce65936ab2afaf40ef2f3453e890d73f104cfbaa5125b3807ddde3236d"}},{"ruleId":"D1","level":"warning","message":{"text":"guardrails.verify_content_preservation (cyclomatic 32): guardrails.verify_content_preservation 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":"lightrag/parser/docx/smart_heading/guardrails.py"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"f295753f3b672c0b5016dc9d9a7f001438803d3c18c332730bc160a1b9912beb"}},{"ruleId":"D1","level":"warning","message":{"text":"heading_flow.backfill_top_level (cyclomatic 32): heading_flow.backfill_top_level 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":"lightrag/parser/docx/smart_heading/heading_flow.py"},"region":{"startLine":1381}}}],"partialFingerprints":{"codehealthFindingId/v1":"32e99b6601529237c92a0c1b0de0a063cb5347369799ab63eb1c947cd2ae2756"}},{"ruleId":"D1","level":"warning","message":{"text":"rerank.generic_rerank_api (cyclomatic 32): rerank.generic_rerank_api 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":"lightrag/rerank.py"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fc9dedd49e7f4a7bc9c368e13378383d048b4dd4884a8d9388d0975941b6fca"}},{"ruleId":"D1","level":"warning","message":{"text":"PGVectorStorage._flush_pending_vector_ops (cyclomatic 31): PGVectorStorage._flush_pending_vector_ops has cyclomatic complexity 31 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/postgres_impl.py"},"region":{"startLine":5002}}}],"partialFingerprints":{"codehealthFindingId/v1":"c02d1a3c43ed23e9dd39d927b99f50a5222075218d9f8ca2e7b0ce59be88d461"}},{"ruleId":"D1","level":"warning","message":{"text":"LightRAG._rollback_one_custom_chunk_patch (cyclomatic 31): LightRAG._rollback_one_custom_chunk_patch 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":"lightrag/lightrag.py"},"region":{"startLine":3520}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d733d4cc6de2c636903f2c1e78cfb9ec50e1ac2563ca026b40811fa9e13222d"}},{"ruleId":"D1","level":"warning","message":{"text":"gemini.gemini_complete_if_cache (cyclomatic 31): gemini.gemini_complete_if_cache has cyclomatic complexity 31 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/gemini.py"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8d0e423f18a1f58c427490b769e122309be5958b675c7464d783c65a74f84a7"}},{"ruleId":"D1","level":"warning","message":{"text":"ollama._ollama_model_if_cache (cyclomatic 31): ollama._ollama_model_if_cache 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":"lightrag/llm/ollama.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a7835c5eaa467506d911420c942faf8f4c746ee57f26a66b3ed8b5e7e0f2778"}},{"ruleId":"D1","level":"warning","message":{"text":"heading_flow.assign_levels_by_size (cyclomatic 31): heading_flow.assign_levels_by_size 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":"lightrag/parser/docx/smart_heading/heading_flow.py"},"region":{"startLine":1265}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8f9a911296e8d3ed8fb87ef40282a4c5ebe5e8d3961de93aca4c39f1e609c08"}},{"ruleId":"D1","level":"warning","message":{"text":"heading_flow.demote_strong_body_headings (cyclomatic 31): heading_flow.demote_strong_body_headings 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":"lightrag/parser/docx/smart_heading/heading_flow.py"},"region":{"startLine":2083}}}],"partialFingerprints":{"codehealthFindingId/v1":"0125de7f46081703e50e50c8c0c3cea77f19ee1652339c7af1f09acae5b934d9"}},{"ruleId":"D1","level":"warning","message":{"text":"_StorageMigrationMixin._migrate_chunk_tracking_storage (cyclomatic 31): _StorageMigrationMixin._migrate_chunk_tracking_storage 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":"lightrag/storage_migrations.py"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"05493df4cf7af6608a40499e9af2b1e52945ed8f6fb38c6fd3b881e09d1098f4"}},{"ruleId":"D1","level":"warning","message":{"text":"kg_integrity_repair.audit_kg_integrity (cyclomatic 31): kg_integrity_repair.audit_kg_integrity 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":"lightrag/tools/kg_integrity_repair.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a76e6f1002e23bd585ca68afcd38837e975ad74b197c33bd85e9eea6771896c"}},{"ruleId":"D1","level":"warning","message":{"text":"UploadDocumentsDialog.UploadDocumentsDialog (cyclomatic 31): UploadDocumentsDialog.UploadDocumentsDialog has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 2 of the 31 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 100, 56, 74, \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":"lightrag_webui/src/components/documents/UploadDocumentsDialog.tsx"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee350ddbf1c483693ba1deb960fd9c68b812730c4d404f8d5d75cd47c7822b75"}},{"ruleId":"D1","level":"warning","message":{"text":"NetworkXStorage.get_knowledge_graph (cyclomatic 30): NetworkXStorage.get_knowledge_graph 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":"lightrag/kg/networkx_impl.py"},"region":{"startLine":1087}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bfed200a8d2fe3d5e04e5879f2be1caa0ef71566bd0feb6816a3a06f1fbcfcb"}},{"ruleId":"D1","level":"warning","message":{"text":"operate.kg_query (cyclomatic 30): operate.kg_query has cyclomatic complexity 30 (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":"lightrag/operate.py"},"region":{"startLine":4756}}}],"partialFingerprints":{"codehealthFindingId/v1":"599c84c21e71f8b9b675d663a106ebcecca3cc36056852564e15e54f630e0910"}},{"ruleId":"D1","level":"warning","message":{"text":"utils.normalize_extracted_info (cyclomatic 30): utils.normalize_extracted_info 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":"lightrag/utils.py"},"region":{"startLine":6043}}}],"partialFingerprints":{"codehealthFindingId/v1":"b58b52851f1eef1743b32cf727d2e8db106717eb12f91d05cd1fddae4fb65a53"}},{"ruleId":"D1","level":"warning","message":{"text":"App.App (cyclomatic 30): App.App has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 7 of the 30 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 111, 66, 68, \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":"lightrag_webui/src/App.tsx"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"620ff59fb068d76a5a073ffc4e34bc9a2f760a0508f9f8690417096235343049"}},{"ruleId":"D1","level":"warning","message":{"text":"NanoVectorDBStorage._flush_pending_locked (cyclomatic 29): NanoVectorDBStorage._flush_pending_locked 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":"lightrag/kg/nano_vector_db_impl.py"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"edbfcb72c0db8da93a0f82b2d689ed661f98b59e3f2ba3d6de8074eaaf163a0f"}},{"ruleId":"D1","level":"warning","message":{"text":"PostgreSQLDB.check_tables (cyclomatic 29): PostgreSQLDB.check_tables has cyclomatic complexity 29 (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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":2560}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc6b9c9d924fac7279f59d72c697a68ab7ff06b546adecf944e70bc6f30c48f6"}},{"ruleId":"D1","level":"warning","message":{"text":"operate._rebuild_single_entity (cyclomatic 29): operate._rebuild_single_entity 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":"lightrag/operate.py"},"region":{"startLine":1796}}}],"partialFingerprints":{"codehealthFindingId/v1":"3134d6f6768d1bea43916e5ed1671d48038c9e76691d2e01a2f2d45d6e948caf"}},{"ruleId":"D1","level":"warning","message":{"text":"_PipelineMixin.apipeline_process_enqueue_documents (cyclomatic 29): _PipelineMixin.apipeline_process_enqueue_documents 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":"lightrag/pipeline.py"},"region":{"startLine":1725}}}],"partialFingerprints":{"codehealthFindingId/v1":"4788c5a079f7ea454698d1f7edcfdcd27dae730dd6efa3aa71f6d1df3b952283"}},{"ruleId":"D1","level":"warning","message":{"text":"MigrationTool.setup_storage (cyclomatic 29): MigrationTool.setup_storage 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":"lightrag/tools/migrate_llm_cache.py"},"region":{"startLine":1006}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4d77b9b67483b46a05a5c2afc2a212c57f63d83c9ee89d490c84b0457664198"}},{"ruleId":"D1","level":"warning","message":{"text":"PipelineStatusDialog.PipelineStatusDialog (cyclomatic 29): PipelineStatusDialog.PipelineStatusDialog has cyclomatic complexity 29 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 12 belong to 6 function items inside it that branch. 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":"lightrag_webui/src/components/documents/PipelineStatusDialog.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d9cc44a0f93848db5459e5c00d5605743c367a296b5dc5f34ed99057d672fda"}},{"ruleId":"D1","level":"warning","message":{"text":"UserPromptInputWithHistory.UserPromptInputWithHistory (cyclomatic 29): UserPromptInputWithHistory.UserPromptInputWithHistory has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 10 of the 29 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 49, a function literal at line 117, a function literal at line 35, \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":"lightrag_webui/src/components/ui/UserPromptInputWithHistory.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"70d1a5d021c840fc5a81b47ef22dc3d06bf3c7b9ec942ce86fdf527056f814dc"}},{"ruleId":"D1","level":"warning","message":{"text":"document_routes.background_delete_documents (cyclomatic 28): document_routes.background_delete_documents 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":"lightrag/api/routers/document_routes.py"},"region":{"startLine":4150}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bab1eace9e1164e2e3a8896438e1d43ebbc4577d14b29794e614f57cc35a434"}},{"ruleId":"D1","level":"warning","message":{"text":"openai_responses.openai_responses_complete_if_cache (cyclomatic 28): openai_responses.openai_responses_complete_if_cache has cyclomatic complexity 28 (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":"lightrag/llm/openai_responses.py"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"57a21de5009595652a16350c184c34902e3941609928b492f9c0e271c0de832e"}},{"ruleId":"D1","level":"warning","message":{"text":"operate._find_related_text_unit_from_relations (cyclomatic 28): operate._find_related_text_unit_from_relations 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":"lightrag/operate.py"},"region":{"startLine":6772}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ffe7186d517a50b1021ced62b752c0d907c27b908c8e1d7760fff6391ac81d0"}},{"ruleId":"D1","level":"warning","message":{"text":"PostgreSQLDB.configure_age_extension (cyclomatic 27): PostgreSQLDB.configure_age_extension 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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":1129}}}],"partialFingerprints":{"codehealthFindingId/v1":"f378ece4349c1ede2ec9443bd2d8ffa91f9f4d13b0470565f9902f121806df17"}},{"ruleId":"D1","level":"warning","message":{"text":"QuerySettings.QuerySettings (cyclomatic 27): QuerySettings.QuerySettings has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 5 of the 27 points are its own statements and the rest belongs to 12 function literals inside it that branch (lines 258, 262, 298, \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":"lightrag_webui/src/components/retrieval/QuerySettings.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"db4944d327d4bfd12a90e41682c1459a4ad6f82143c7d2fc8782a3476f527f9b"}},{"ruleId":"D1","level":"warning","message":{"text":"lightrag_server.create_optimized_embedding_function (cyclomatic 26): lightrag_server.create_optimized_embedding_function 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":"lightrag/api/lightrag_server.py"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"19e603b18d70845261419c141e7f80702afe9a64ec40ee816a2efdf8b61213c1"}},{"ruleId":"D1","level":"warning","message":{"text":"LightRAG._purge_kg_contributions (cyclomatic 26): LightRAG._purge_kg_contributions 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":"lightrag/lightrag.py"},"region":{"startLine":6099}}}],"partialFingerprints":{"codehealthFindingId/v1":"967238d92e9e9ea8b3de1bf1be8189a0f29473099b697f03260c2fe1f16bd118"}},{"ruleId":"D1","level":"warning","message":{"text":"guardrails._detect_plain_numbered_toc (cyclomatic 26): guardrails._detect_plain_numbered_toc 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":"lightrag/parser/docx/smart_heading/guardrails.py"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b993a97265ca376d026535e13c888c9940d23016ce4134ee8d81851def97266"}},{"ruleId":"D1","level":"warning","message":{"text":"title_block.judge_title_block (cyclomatic 26): title_block.judge_title_block 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":"lightrag/parser/docx/smart_heading/title_block.py"},"region":{"startLine":1485}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc4bac9b6fae62718c63912e8b2508db5abbc821f60173b5d22510078364c23"}},{"ruleId":"D1","level":"warning","message":{"text":"AsyncSearch.AsyncSearch (cyclomatic 26): AsyncSearch.AsyncSearch has cyclomatic complexity 26 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 13 belong to 9 function literals inside it that branch. 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":"lightrag_webui/src/components/ui/AsyncSearch.tsx"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"b55d16c750be416e5e2a601bfe9bb79077939c2c27be504b4ccaa7e1829996d8"}},{"ruleId":"D1","level":"warning","message":{"text":"FileUploader.FileUploader (cyclomatic 26): FileUploader.FileUploader has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 4 of the 26 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 185, a function literal at line 328, a function literal at line 294, \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":"lightrag_webui/src/components/ui/FileUploader.tsx"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"73bc50cba6bceb9cdf0461fef38a915afbb145b51ec8179a8c2740112927998e"}},{"ruleId":"D1","level":"warning","message":{"text":"ui_customization._completes_svg_start_tag (cyclomatic 25): ui_customization._completes_svg_start_tag 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":"lightrag/api/ui_customization.py"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"b78b814861f743768a4da8b3c6fc982e37ed5727125d33ae11a909d108868011"}},{"ruleId":"D1","level":"warning","message":{"text":"PGKVStorage.upsert (cyclomatic 25): PGKVStorage.upsert 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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":3769}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dce0115463c047e1a9b34fe63f229d4e404b6af3bc0c0fd39c37aa40469c3eb"}},{"ruleId":"D1","level":"warning","message":{"text":"LightRAG._resolve_purge_recovery_proof (cyclomatic 25): LightRAG._resolve_purge_recovery_proof 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":"lightrag/lightrag.py"},"region":{"startLine":5758}}}],"partialFingerprints":{"codehealthFindingId/v1":"220b3b268fc7f28224d0766f1db1e32b04174abf34b797f7f6bab1e631147835"}},{"ruleId":"D1","level":"warning","message":{"text":"_PipelineMixin._validate_and_fix_document_consistency (cyclomatic 25): _PipelineMixin._validate_and_fix_document_consistency 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":"lightrag/pipeline.py"},"region":{"startLine":2914}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a5a20c86f29ad6fdd945d637fee772acbb0a491f0926d2559fd8181e8a002de"}},{"ruleId":"D1","level":"warning","message":{"text":"_PipelineMixin._resolve_source_file_for_parser (cyclomatic 25): _PipelineMixin._resolve_source_file_for_parser 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":"lightrag/pipeline.py"},"region":{"startLine":6722}}}],"partialFingerprints":{"codehealthFindingId/v1":"0749486858cb37086bbbdbf91392ec47feb8f31c5125665523e1a6cfc00cb42c"}},{"ruleId":"D1","level":"warning","message":{"text":"chunk_tracking_repair.run (cyclomatic 25): chunk_tracking_repair.run 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":"lightrag/tools/chunk_tracking_repair.py"},"region":{"startLine":1080}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d42972df59631f5ae08e02eb91a33603afde1c272fd93248a43d028c3257f46"}},{"ruleId":"D1","level":"warning","message":{"text":"CleanupTool.run (cyclomatic 25): CleanupTool.run 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":"lightrag/tools/clean_llm_query_cache.py"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"94b6898f9da54e6d3dcedf6a63d61ffdb1a9c2884cd4ea7db5411dc5c341b163"}},{"ruleId":"D1","level":"warning","message":{"text":"utils.enforce_chunk_token_limit_before_embedding (cyclomatic 25): utils.enforce_chunk_token_limit_before_embedding 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":"lightrag/utils.py"},"region":{"startLine":4390}}}],"partialFingerprints":{"codehealthFindingId/v1":"f15d9fe9707646c12122fef011df0e7ea6d12e9d0bc836db7de6d947e1c6849c"}},{"ruleId":"D1","level":"warning","message":{"text":"GraphSearch.GraphSearchInput (cyclomatic 25): GraphSearch.GraphSearchInput has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 3 of the 25 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 126, 166, 87, \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":"lightrag_webui/src/components/graph/GraphSearch.tsx"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"113d55ce93baeba49dd56c741f045a423624715ce599837c6398b6c2e8d925e1"}},{"ruleId":"D1","level":"warning","message":{"text":"useQuerySession.useQuerySession.submitQuery (cyclomatic 25): useQuerySession.useQuerySession.submitQuery 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. This shape REPEATS in the file: one other method here (useQuerySession.useQuerySession.submitQuery::updateAssistantMessage) 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":"lightrag_webui/src/features/retrieval/useQuerySession.ts"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"531f5e9139e580ae6024cb312f195a7e02d5fd1b411b683a245f1c0ff7212b33"}},{"ruleId":"D1","level":"warning","message":{"text":"legacySettingsChain.migrateLegacySettingsState (cyclomatic 25): legacySettingsChain.migrateLegacySettingsState 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":"lightrag_webui/src/migrations/legacySettingsChain.ts"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"8981dac6d3dbcb6075b6dbf587d9aea42f12e4ae63c6e7a3a2a2edc8f840e183"}},{"ruleId":"D1","level":"warning","message":{"text":"MongoGraphStorage._dedupe_legacy_edges (cyclomatic 24): MongoGraphStorage._dedupe_legacy_edges 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":"lightrag/kg/mongo_impl.py"},"region":{"startLine":1997}}}],"partialFingerprints":{"codehealthFindingId/v1":"f86eef0913b4a37feb50c20fb8803086a51aa59ea22df3de620a6a03806748b7"}},{"ruleId":"D1","level":"warning","message":{"text":"PGVectorStorage.get_vectors_by_ids (cyclomatic 24): PGVectorStorage.get_vectors_by_ids 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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":5613}}}],"partialFingerprints":{"codehealthFindingId/v1":"c06a0be4e76ded2e738da10927215bbf59fefa73f0c5fbda203c14fcae0a7722"}},{"ruleId":"D1","level":"warning","message":{"text":"openai_responses._handle_non_streaming (cyclomatic 24): openai_responses._handle_non_streaming 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":"lightrag/llm/openai_responses.py"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb0aa8f215a6edab731c21640253ae5175b17fb508d173b0982f52c957452c1"}},{"ruleId":"D1","level":"warning","message":{"text":"operate.extract_entities (cyclomatic 24): operate.extract_entities 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":"lightrag/operate.py"},"region":{"startLine":3993}}}],"partialFingerprints":{"codehealthFindingId/v1":"bccc4e87c2032af6bb725aa8d1f62d35bf23fd1099da7c06cfe32b0d780210be"}},{"ruleId":"D1","level":"warning","message":{"text":"PaginationControls.PaginationControls (cyclomatic 24): PaginationControls.PaginationControls has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 10 of the 24 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 64, 98, 104, \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":"lightrag_webui/src/components/ui/PaginationControls.tsx"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd47044baedb0c585803b0fb922d191c1186cdf19ac8f12afc8c0c43c8950301"}},{"ruleId":"D1","level":"warning","message":{"text":"state.useBackendStateStoreBase (cyclomatic 24): state.useBackendStateStoreBase 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 5 function literals inside it that branch (lines 88, 163, 167, \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":"lightrag_webui/src/stores/state.ts"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa4a307cedb39c2d1a861fab0170aeea03ad85d6451d0db63921f6005b06f431"}},{"ruleId":"D1","level":"warning","message":{"text":"utils_api.display_splash_screen (cyclomatic 23): utils_api.display_splash_screen 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":"lightrag/api/utils_api.py"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"555808de61ff84271e0ebecb35de3c08d5f82c3ef863fb91524e03e434c1b7d4"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenSearchGraphStorage._bfs_subgraph_ppl (cyclomatic 23): OpenSearchGraphStorage._bfs_subgraph_ppl 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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":5558}}}],"partialFingerprints":{"codehealthFindingId/v1":"e28364cef9a3c874df036e80d4bf1d4223ec510804a587debb2d039cf44fcee5"}},{"ruleId":"D1","level":"warning","message":{"text":"PGGraphStorage._bfs_subgraph (cyclomatic 23): PGGraphStorage._bfs_subgraph 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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":9247}}}],"partialFingerprints":{"codehealthFindingId/v1":"72211753cf151606319d0d0b40de42ba59882cede17dc2ca1552d15105d2566d"}},{"ruleId":"D1","level":"warning","message":{"text":"operate._find_related_text_unit_from_entities (cyclomatic 23): operate._find_related_text_unit_from_entities 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":"lightrag/operate.py"},"region":{"startLine":6501}}}],"partialFingerprints":{"codehealthFindingId/v1":"06830c7789b3e99eadbc24dec85ee70981430cc807a6ce78874018d30fefb68a"}},{"ruleId":"D1","level":"warning","message":{"text":"DrawingExtractionContext.export_embedded_image (cyclomatic 23): DrawingExtractionContext.export_embedded_image 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":"lightrag/parser/docx/drawing_image_extractor.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfd8844beb813177d539c5889bf3c79924b8c5b68a813b75f19e34ad576cffb1"}},{"ruleId":"D1","level":"warning","message":{"text":"heading_flow.merge_split_headings (cyclomatic 23): heading_flow.merge_split_headings 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":"lightrag/parser/docx/smart_heading/heading_flow.py"},"region":{"startLine":1872}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd0e425741d290aa5bad2ec650a9f859c2778ee42da1303f9a865aad5088e2f"}},{"ruleId":"D1","level":"warning","message":{"text":"Manifest.from_dict (cyclomatic 23): Manifest.from_dict 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":"lightrag/parser/external/_manifest.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d38751e427d563dd69eb615afbf151bb0795cffd577a1010a59dcdab09197f1"}},{"ruleId":"D1","level":"warning","message":{"text":"cache.is_bundle_valid (cyclomatic 23): cache.is_bundle_valid 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":"lightrag/parser/external/docling/cache.py"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"436f5a47ce343bab7678e424a0de177ed778943bef81ed8dfd25319d196d0566"}},{"ruleId":"D1","level":"warning","message":{"text":"ir_builder._precompute_consumed_refs (cyclomatic 23): ir_builder._precompute_consumed_refs 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":"lightrag/parser/external/docling/ir_builder.py"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"13c3af6772b5cd568dbe4c5e212db8e66624286364eade6e3d251f3025d75e4a"}},{"ruleId":"D1","level":"warning","message":{"text":"_StorageMigrationMixin._migrate_entity_relation_data (cyclomatic 23): _StorageMigrationMixin._migrate_entity_relation_data 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":"lightrag/storage_migrations.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"682ef12d9ff0a23d48cf27d1d5fc7526dffd6ff97b182b4b25937f31536f9dc7"}},{"ruleId":"D1","level":"warning","message":{"text":"rebuild_vdb.check_vdb_consistency (cyclomatic 23): rebuild_vdb.check_vdb_consistency 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":"lightrag/tools/rebuild_vdb.py"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"e627f0e89e8cb26a4aefcaea2c0bef37213cfb7a8542d0ab37fce7be744d2945"}},{"ruleId":"D1","level":"warning","message":{"text":"utils.use_llm_func_with_cache (cyclomatic 23): utils.use_llm_func_with_cache 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":"lightrag/utils.py"},"region":{"startLine":5665}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b1858f8164944cf4f9b1264b496e7527670587e32a0774fd70c354fca8ee941"}},{"ruleId":"D1","level":"warning","message":{"text":"NanoVectorDBStorage.get_vectors_by_ids (cyclomatic 22): NanoVectorDBStorage.get_vectors_by_ids 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":"lightrag/kg/nano_vector_db_impl.py"},"region":{"startLine":1383}}}],"partialFingerprints":{"codehealthFindingId/v1":"79e0383a938f247eefe6093a02fd7f6e18f4d4890e49d4a722dce33993a16118"}},{"ruleId":"D1","level":"warning","message":{"text":"heading_flow.gate_with_cb1 (cyclomatic 22): heading_flow.gate_with_cb1 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":"lightrag/parser/docx/smart_heading/heading_flow.py"},"region":{"startLine":1065}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2db83f121b5eeb033e13feb1739db54e1d37521d336de8776ff3d9788c1bb49"}},{"ruleId":"D1","level":"warning","message":{"text":"heading_flow.nest_numbered_under_parent (cyclomatic 22): heading_flow.nest_numbered_under_parent 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":"lightrag/parser/docx/smart_heading/heading_flow.py"},"region":{"startLine":2537}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9530e5335d8e8105c65b1ffdb2b10c2bd6923211c44c4229ec48a3a02677f90"}},{"ruleId":"D1","level":"warning","message":{"text":"Manifest.from_dict (cyclomatic 22): Manifest.from_dict 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":"lightrag/parser/external/mineru/manifest.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"6138bdefe9ce11f2adf393dc57747a8609203b01d2e369464cf6b9ed4bc2ec10"}},{"ruleId":"D1","level":"warning","message":{"text":"extract.extract_markdown (cyclomatic 22): extract.extract_markdown 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":"lightrag/parser/markdown/extract.py"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ec8c43c0008c05f842bef9655ca80ea57e613938414b41eac96509b04efd5b"}},{"ruleId":"D1","level":"warning","message":{"text":"RebuildTool.run (cyclomatic 22): RebuildTool.run 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":"lightrag/tools/rebuild_vdb.py"},"region":{"startLine":1103}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d147fd6978d6da06c308b43de782ad4fa2810e45fe0bbb3246058b6c9c91d8d"}},{"ruleId":"D1","level":"warning","message":{"text":"utils_graph.aedit_relation (cyclomatic 22): utils_graph.aedit_relation 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":"lightrag/utils_graph.py"},"region":{"startLine":2044}}}],"partialFingerprints":{"codehealthFindingId/v1":"b90c0c2b8bbc9666815c85c88c63ac96b2d037a0c1cf5d7be6dc800fa1beecae"}},{"ruleId":"D1","level":"warning","message":{"text":"splitSettingsStorage.runSettingsStorageSplitMigration (cyclomatic 22): splitSettingsStorage.runSettingsStorageSplitMigration 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":"lightrag_webui/src/migrations/splitSettingsStorage.ts"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"f70a00a0b336d0bcdfbb262a48a1c1666e01164caef20daa54b9021f9b3468b8"}},{"ruleId":"D1","level":"warning","message":{"text":"registry.resolve_chunker (cyclomatic 21): registry.resolve_chunker 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":"lightrag/chunker/registry.py"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"71b72082743d7ddc55855d3e40e172cb886b135c2136563e9a96d74b228ee780"}},{"ruleId":"D1","level":"warning","message":{"text":"QdrantVectorDBStorage._flush_pending_vector_ops (cyclomatic 21): QdrantVectorDBStorage._flush_pending_vector_ops 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":"lightrag/kg/qdrant_impl.py"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"4975afc42911512ddb754de447000ac541e19a55d5141c0f5dbe58ff91f5281d"}},{"ruleId":"D1","level":"warning","message":{"text":"RedisDocStatusStorage.get_docs_paginated (cyclomatic 21): RedisDocStatusStorage.get_docs_paginated 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":"lightrag/kg/redis_impl.py"},"region":{"startLine":1681}}}],"partialFingerprints":{"codehealthFindingId/v1":"70f33b955d86d892a7a30730ade8d69d564d1a0a980b32ce15f8ceb6bc86254d"}},{"ruleId":"D1","level":"warning","message":{"text":"LightRAG._prune_doc_recovery_anchors (cyclomatic 21): LightRAG._prune_doc_recovery_anchors 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":"lightrag/lightrag.py"},"region":{"startLine":3776}}}],"partialFingerprints":{"codehealthFindingId/v1":"51232b43fe681e20af673d7b8bc82e4decf17a0bcb179b857d55124f95416b1b"}},{"ruleId":"D1","level":"warning","message":{"text":"LightRAG.ainsert_custom_kg (cyclomatic 21): LightRAG.ainsert_custom_kg 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":"lightrag/lightrag.py"},"region":{"startLine":4424}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc601b2c3a6cc41f54ad00562cf39c8de1fc1861975073684d2d873b425cac4c"}},{"ruleId":"D1","level":"warning","message":{"text":"zhipu.zhipu_complete_if_cache (cyclomatic 21): zhipu.zhipu_complete_if_cache 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":"lightrag/llm/zhipu.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3ac3231a888af5b4bb70b94f2277218da5b371f425956d033f334bca1b4ec9c"}},{"ruleId":"D1","level":"warning","message":{"text":"_RoleLLMMixin._apply_llm_role_config_update (cyclomatic 21): _RoleLLMMixin._apply_llm_role_config_update 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":"lightrag/llm_roles.py"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"14bd35a819de8873c5ea9e4a6456eafb2f5afdfbfbb9b27fdf7e4452705e5a7f"}},{"ruleId":"D1","level":"warning","message":{"text":"operate._merge_all_chunks (cyclomatic 21): operate._merge_all_chunks 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":"lightrag/operate.py"},"region":{"startLine":5913}}}],"partialFingerprints":{"codehealthFindingId/v1":"719b032a729f22fd2ee3ae1a0cd8199c11f2fc3db26af1703ff0e113e5d6b950"}},{"ruleId":"D1","level":"warning","message":{"text":"operate.naive_query (cyclomatic 21): operate.naive_query 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":"lightrag/operate.py"},"region":{"startLine":7003}}}],"partialFingerprints":{"codehealthFindingId/v1":"fec1abcb18c8e09c7c1795021dbc44f28e706370dd8f1ff32635be7e0f3a29fc"}},{"ruleId":"D1","level":"warning","message":{"text":"title_block.detect_imprint_regions (cyclomatic 21): title_block.detect_imprint_regions 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":"lightrag/parser/docx/smart_heading/title_block.py"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c0dfaa7f0ac54c6fcdb4ac32fe092680ddc3f026dba19fec9d746d29784fcd4"}},{"ruleId":"D1","level":"warning","message":{"text":"cache.is_bundle_valid (cyclomatic 21): cache.is_bundle_valid 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":"lightrag/parser/external/mineru/cache.py"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"827139360c17c23633f3239c8706c9444d29628918f56c205ccdd3c936d917e8"}},{"ruleId":"D1","level":"warning","message":{"text":"check_initialization.check_lightrag_setup (cyclomatic 21): check_initialization.check_lightrag_setup 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":"lightrag/tools/check_initialization.py"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c43fb0e87238f7826f429985a18519d776cdf3642a137966a45fd8249c00e40"}},{"ruleId":"D1","level":"warning","message":{"text":"utils_graph.aedit_entity (cyclomatic 21): utils_graph.aedit_entity 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":"lightrag/utils_graph.py"},"region":{"startLine":1741}}}],"partialFingerprints":{"codehealthFindingId/v1":"320eb5e619cd0680e3ddbdae1bd4b7c76702a2036b925e38d89f950f1c1a01a7"}},{"ruleId":"D1","level":"warning","message":{"text":"GraphViewer.GraphViewer (cyclomatic 21): GraphViewer.GraphViewer has cyclomatic complexity 21 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 9 belong to 5 function literals inside it that branch. 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":"lightrag_webui/src/features/GraphViewer.tsx"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"1db01360939b30ef9a4b47f8e7764fdd2b447a41c89df846f104370f7171a79e"}},{"ruleId":"D1","level":"warning","message":{"text":"useQuerySession.useQuerySession.submitQuery::updateAssistantMessage (cyclomatic 21): useQuerySession.useQuerySession.submitQuery::updateAssistantMessage 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. This shape REPEATS in the file: one other method here (useQuerySession.useQuerySession.submitQuery) 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":"lightrag_webui/src/features/retrieval/useQuerySession.ts"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea6f28aeffe1407cf40f8cf9248dece73a5331040d376821405be99e9fd7b7a"}},{"ruleId":"D1","level":"warning","message":{"text":"Neo4JStorage._create_fulltext_index (cyclomatic 20): Neo4JStorage._create_fulltext_index 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":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d046ee9406a113916431090280ef3836f5d08bcb4af5772b99fd6e449cde932"}},{"ruleId":"D1","level":"warning","message":{"text":"PGGraphStorage._record_to_dict (cyclomatic 20): PGGraphStorage._record_to_dict 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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":7818}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a2af1ca26c52f8a1e83b41ab4d28e8f775f24a3912841c1cc087fc53b2a5aa9"}},{"ruleId":"D1","level":"warning","message":{"text":"QdrantVectorDBStorage.get_vectors_by_ids (cyclomatic 20): QdrantVectorDBStorage.get_vectors_by_ids 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":"lightrag/kg/qdrant_impl.py"},"region":{"startLine":1248}}}],"partialFingerprints":{"codehealthFindingId/v1":"43919896c4187e8c913ec563211abe11c9edd19d499993010ea9fa34a701177d"}},{"ruleId":"D1","level":"warning","message":{"text":"LightRAG._upsert_custom_chunk_status (cyclomatic 20): LightRAG._upsert_custom_chunk_status 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":"lightrag/lightrag.py"},"region":{"startLine":3223}}}],"partialFingerprints":{"codehealthFindingId/v1":"262daf79fa6030f184f9a7466d5833107b9cbaf9e2779d38e042db6e51e94172"}},{"ruleId":"D1","level":"warning","message":{"text":"operate._process_json_extraction_result (cyclomatic 20): operate._process_json_extraction_result 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":"lightrag/operate.py"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"25b4df2fd41c896f8a83cb317eb613be40f1424a0808b4ac8397970ef75d1a78"}},{"ruleId":"D1","level":"warning","message":{"text":"operate.merge_nodes_and_edges (cyclomatic 20): operate.merge_nodes_and_edges has cyclomatic complexity 20 (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":"lightrag/operate.py"},"region":{"startLine":3555}}}],"partialFingerprints":{"codehealthFindingId/v1":"75079d391090c9bdb03c18fd29df9ba36dc42bfcbaafc02ed345834916a30f6a"}},{"ruleId":"D1","level":"warning","message":{"text":"features.parse_styles_attributes (cyclomatic 20): features.parse_styles_attributes 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":"lightrag/parser/docx/smart_heading/features.py"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a2c2cc132ea3bc37c6fe87a1b09998e8e7d00dbb3000cfa1cb06933eae53ca1"}},{"ruleId":"D1","level":"warning","message":{"text":"utils.safe_vdb_operation_with_exception (cyclomatic 20): utils.safe_vdb_operation_with_exception 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":"lightrag/utils.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e250dc259f3864f4e6db9de5926150310718c58bbad903e92bee31d9715e90e"}},{"ruleId":"D1","level":"warning","message":{"text":"utils.process_chunks_unified (cyclomatic 20): utils.process_chunks_unified 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":"lightrag/utils.py"},"region":{"startLine":7327}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8ec0fb516bdec9f9497a1d1c1ef10be10dd315acf1fe11bb139ec1930dcfb91"}},{"ruleId":"D1","level":"warning","message":{"text":"document_routes.pipeline_enqueue_file (cyclomatic 19): document_routes.pipeline_enqueue_file 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":"lightrag/api/routers/document_routes.py"},"region":{"startLine":2359}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d2e3db6fa03ae8895b28c26d9db5a3a29089ff08442b5689db63c61cfb4ca1a"}},{"ruleId":"D1","level":"warning","message":{"text":"MilvusVectorDBStorage._create_collection_if_not_exist (cyclomatic 19): MilvusVectorDBStorage._create_collection_if_not_exist 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":"lightrag/kg/milvus_impl.py"},"region":{"startLine":2262}}}],"partialFingerprints":{"codehealthFindingId/v1":"546122f95be0626144b7839d36b15978e8668e3b11803f8512ebc7ab8ad1b0a1"}},{"ruleId":"D1","level":"warning","message":{"text":"MongoGraphStorage.get_knowledge_subgraph_in_out_bound_bfs (cyclomatic 19): MongoGraphStorage.get_knowledge_subgraph_in_out_bound_bfs 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":"lightrag/kg/mongo_impl.py"},"region":{"startLine":3327}}}],"partialFingerprints":{"codehealthFindingId/v1":"3978e74074530d17fa561a81a065e0f8dea74fd7a8656c6556a936e979ddb857"}},{"ruleId":"D1","level":"warning","message":{"text":"MongoVectorDBStorage._flush_pending_vector_ops (cyclomatic 19): MongoVectorDBStorage._flush_pending_vector_ops 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":"lightrag/kg/mongo_impl.py"},"region":{"startLine":4718}}}],"partialFingerprints":{"codehealthFindingId/v1":"b11f553ddc6bd668b58d6e1161cea3cb54e4c15f6981728e13da1db03333e8d4"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenSearchGraphStorage._migrate_edges_to_canonical_id_if_needed (cyclomatic 19): OpenSearchGraphStorage._migrate_edges_to_canonical_id_if_needed 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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":3897}}}],"partialFingerprints":{"codehealthFindingId/v1":"f858283ba674e99e31960ae45484e175f2de07ee973429b9babf2d71b1afb6ae"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenSearchVectorDBStorage._flush_pending_vector_ops (cyclomatic 19): OpenSearchVectorDBStorage._flush_pending_vector_ops 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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":6685}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d8599ca77dc328f49d3c48ca0703a5d24b3eaeb2690daf2c22d247bc3c2d341"}},{"ruleId":"D1","level":"warning","message":{"text":"PGVectorStorage._pg_migrate_workspace_data (cyclomatic 19): PGVectorStorage._pg_migrate_workspace_data 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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":4268}}}],"partialFingerprints":{"codehealthFindingId/v1":"400c849f4a585e6a794958d0bb88a6635a43460393d7bd7295dfc40caf304416"}},{"ruleId":"D1","level":"warning","message":{"text":"AsyncioScanJobStore.update (cyclomatic 19): AsyncioScanJobStore.update 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":"lightrag/kg/scan_job_store.py"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dea270905e131e3ee3fe83184aa342ff9a3a5e344a1b9c56154d05b916fc6f7"}},{"ruleId":"D1","level":"warning","message":{"text":"bedrock.bedrock_embed (cyclomatic 19): bedrock.bedrock_embed 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":"lightrag/llm/bedrock.py"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"95b54a15a021412095840a4aa6eb1354ec28fcebaeeb15d9198befc08bbee3a1"}},{"ruleId":"D1","level":"warning","message":{"text":"operate._handle_entity_relation_summary (cyclomatic 19): operate._handle_entity_relation_summary 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":"lightrag/operate.py"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e8517f274e7dab39374fa90d32b7c393bcf5a584b4afa172cdbab10d498a802"}},{"ruleId":"D1","level":"warning","message":{"text":"operate._apply_token_truncation (cyclomatic 19): operate._apply_token_truncation 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":"lightrag/operate.py"},"region":{"startLine":5649}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e4ff92a35d4d390ae5d3c1a5562ffcaff4a4fceee63d10f305c7609ebbaf40d"}},{"ruleId":"D1","level":"warning","message":{"text":"NumberingResolver._parse_numbering_xml (cyclomatic 19): NumberingResolver._parse_numbering_xml 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":"lightrag/parser/docx/numbering_resolver.py"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dde3c75f17fb5c80951ab4be3eff89488d19f056da5a493c0dc4030ad3a736e"}},{"ruleId":"D1","level":"warning","message":{"text":"recursive_character._split_text_with_regex_spans (cyclomatic 18): recursive_character._split_text_with_regex_spans 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":"lightrag/chunker/recursive_character.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cef9d494c920bb85b1709deaf3a1f271032ea6104dc02d986b5b70179eabb53"}},{"ruleId":"D1","level":"warning","message":{"text":"FaissVectorDBStorage.get_vectors_by_ids (cyclomatic 18): FaissVectorDBStorage.get_vectors_by_ids 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":"lightrag/kg/faiss_impl.py"},"region":{"startLine":1774}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fafabe3dfcaf2212f2ad31072e4998b44749e0cb6d3570097b46d14ac8d032d"}},{"ruleId":"D1","level":"warning","message":{"text":"Neo4JStorage.get_knowledge_graph (cyclomatic 18): Neo4JStorage.get_knowledge_graph 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":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":1299}}}],"partialFingerprints":{"codehealthFindingId/v1":"628125c861e22ab695bfb123e84020c00bfadba69502986b78a42844ad8b8694"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenSearchDocStatusStorage.get_docs_paginated (cyclomatic 18): OpenSearchDocStatusStorage.get_docs_paginated 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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":2558}}}],"partialFingerprints":{"codehealthFindingId/v1":"b46f3c066d151bc06a809ff138509e9333b9915b2625cf392575ae61cb21daff"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenSearchVectorDBStorage.get_vectors_by_ids (cyclomatic 18): OpenSearchVectorDBStorage.get_vectors_by_ids 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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":7125}}}],"partialFingerprints":{"codehealthFindingId/v1":"215b5a63b7303cc8cf154551645866a9451fa5d07e30db86a89069c8a3c14b09"}},{"ruleId":"D1","level":"warning","message":{"text":"PostgreSQLDB.initdb (cyclomatic 18): PostgreSQLDB.initdb 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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"9edf5cdbf2d13bc9c4c0f68643ace96e09653489e7b5b86fc6b2739088e86915"}},{"ruleId":"D1","level":"warning","message":{"text":"LightRAG._persist_custom_chunk_recovery_warning (cyclomatic 18): LightRAG._persist_custom_chunk_recovery_warning 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":"lightrag/lightrag.py"},"region":{"startLine":3652}}}],"partialFingerprints":{"codehealthFindingId/v1":"38038eb0da57f0041d519e197a61f8031f4d0ccff291368e0c8a4d1a0c28b9e5"}},{"ruleId":"D1","level":"warning","message":{"text":"LightRAG._discard_pending_index_ops (cyclomatic 18): LightRAG._discard_pending_index_ops 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":"lightrag/lightrag.py"},"region":{"startLine":3898}}}],"partialFingerprints":{"codehealthFindingId/v1":"f15470d14586da340d2848491160bb7e534ff2a1cdbfe0f363fae27681b1ceb7"}},{"ruleId":"D1","level":"warning","message":{"text":"_vision_utils._read_jpeg_dimensions (cyclomatic 18): _vision_utils._read_jpeg_dimensions 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":"lightrag/llm/_vision_utils.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"d30d969ac84105aa3b6a754e0b1a1df41f03cefd09e933e3ea4be3489b8250ae"}},{"ruleId":"D1","level":"warning","message":{"text":"openai.openai_embed (cyclomatic 18): openai.openai_embed 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":"lightrag/llm/openai.py"},"region":{"startLine":1087}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b004841a855364209d1cd28482424a612f35c1aff8d0e89dad1035db2ea344b"}},{"ruleId":"D1","level":"warning","message":{"text":"operate._process_extraction_result (cyclomatic 18): operate._process_extraction_result 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":"lightrag/operate.py"},"region":{"startLine":1544}}}],"partialFingerprints":{"codehealthFindingId/v1":"846b24aea34901990d998f3cc4dbfe2903ee3419121bd6456c2e8dc8cea637b3"}},{"ruleId":"D1","level":"warning","message":{"text":"OMMLParser.parse_func (cyclomatic 18): OMMLParser.parse_func 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":"lightrag/parser/docx/omml/ommlparser.py"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"f94bff6a5f60124b85f2b893feffcf643b0ef394f186941bfcdf444702f61df9"}},{"ruleId":"D1","level":"warning","message":{"text":"param_schema.parse_chunk_params (cyclomatic 18): param_schema.parse_chunk_params 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":"lightrag/parser/param_schema.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"37406cc5bce0bfa742727fd019a681a1acfbdd6f78fa11bd493caffecaedd273"}},{"ruleId":"D1","level":"warning","message":{"text":"param_schema.parse_engine_params (cyclomatic 18): param_schema.parse_engine_params 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":"lightrag/parser/param_schema.py"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b88ae0661f07abe9514c9b2d810fe6504c728f870a1a8d3d6f462d86e92f1a2"}},{"ruleId":"D1","level":"warning","message":{"text":"routing._validate_filename_hint_for_resolution (cyclomatic 18): routing._validate_filename_hint_for_resolution 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":"lightrag/parser/routing.py"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3abd47f1d306144d280e2ccc7a899d6aee7989e2100499fe6d4b9b524637853"}},{"ruleId":"D1","level":"warning","message":{"text":"MigrationTool.run (cyclomatic 18): MigrationTool.run 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":"lightrag/tools/migrate_llm_cache.py"},"region":{"startLine":1419}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f0a00c85dc6176ba8a2746dfbbe4666deae15e9c84400eee36305ca782b4119"}},{"ruleId":"D1","level":"warning","message":{"text":"utils.wait_tasks_with_drain (cyclomatic 18): utils.wait_tasks_with_drain 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":"lightrag/utils.py"},"region":{"startLine":4733}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7b5ebebe9b185062bba40f7b2745c589ea33d0dae868bd827d428ccaceaf514"}},{"ruleId":"D1","level":"warning","message":{"text":"utils.merge_truncation_metadata (cyclomatic 18): utils.merge_truncation_metadata 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":"lightrag/utils.py"},"region":{"startLine":5509}}}],"partialFingerprints":{"codehealthFindingId/v1":"41b728e81cc9944ca479e29421e60f95b8ae5bb64e7c625ab2e8e498f19a5dd8"}},{"ruleId":"D1","level":"warning","message":{"text":"lightrag._readNdjsonStream (cyclomatic 18): lightrag._readNdjsonStream has cyclomatic complexity 18 (threshold 15). Of this number, 11 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":"lightrag_webui/src/api/lightrag.ts"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f1d177d1eee2713323daabc13be2c260c1903b0c6cb5121662fc4b7e143afb3"}},{"ruleId":"D1","level":"warning","message":{"text":"Settings.LabeledNumberInput (cyclomatic 18): Settings.LabeledNumberInput has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 4 of the 18 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 105, 96, 125, \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":"lightrag_webui/src/components/graph/Settings.tsx"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"166cd18911089710fc26ebe1f8063b0b06c6fe24b71d04ac7d2c5f8785f1fed1"}},{"ruleId":"D1","level":"warning","message":{"text":"document_routes.delete_file_variants_by_file_path (cyclomatic 17): document_routes.delete_file_variants_by_file_path 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":"lightrag/api/routers/document_routes.py"},"region":{"startLine":2232}}}],"partialFingerprints":{"codehealthFindingId/v1":"5287c3446f46630591d57542764b4b0b7b98fa6366573b64b7b2129fe0386239"}},{"ruleId":"D1","level":"warning","message":{"text":"recursive_character.chunking_by_recursive_character (cyclomatic 17): recursive_character.chunking_by_recursive_character 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":"lightrag/chunker/recursive_character.py"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd75adad60494f9cbbfa17919bb0a26a6b5cf2391565898d6d4e134671634890"}},{"ruleId":"D1","level":"warning","message":{"text":"token_size.chunking_by_token_size (cyclomatic 17): token_size.chunking_by_token_size 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":"lightrag/chunker/token_size.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"61c0d55a5337ec2dcdd5d11568b14edd2e9efc22d6a8e4722a9665045fe6f557"}},{"ruleId":"D1","level":"warning","message":{"text":"Neo4JStorage._robust_fallback (cyclomatic 17): Neo4JStorage._robust_fallback 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":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":1527}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5c12385556e87b88dc804a7bbb56fe942fa37901bc2632f6cbb5c0fa1c232a6"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenSearchGraphStorage._bfs_subgraph (cyclomatic 17): OpenSearchGraphStorage._bfs_subgraph 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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":5726}}}],"partialFingerprints":{"codehealthFindingId/v1":"62a08018031537dc87b37ef1e3104961c79e414f07a5614608001cf7b47626df"}},{"ruleId":"D1","level":"warning","message":{"text":"PostgreSQLDB._create_ssl_context (cyclomatic 17): PostgreSQLDB._create_ssl_context 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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0e4af8509093d09ee7a6a2cb4365ad77495ba62ba1f543eb4fc5e189d541029"}},{"ruleId":"D1","level":"warning","message":{"text":"PGGraphStorage.get_knowledge_graph (cyclomatic 17): PGGraphStorage.get_knowledge_graph 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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":9463}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f9c614470adeb22b6f57dbd5d815253f7e802470b1f77f6f30d8ba68a439c0d"}},{"ruleId":"D1","level":"warning","message":{"text":"RedisDocStatusStorage.get_docs_by_statuses_page (cyclomatic 17): RedisDocStatusStorage.get_docs_by_statuses_page 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":"lightrag/kg/redis_impl.py"},"region":{"startLine":2105}}}],"partialFingerprints":{"codehealthFindingId/v1":"693d8d5d06f668d7bbcbfa2481a36b9d9b2ea4096107a4563147f691d4abc7f3"}},{"ruleId":"D1","level":"warning","message":{"text":"multimodal_context.enrich_sidecars_with_surrounding (cyclomatic 17): multimodal_context.enrich_sidecars_with_surrounding 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":"lightrag/multimodal_context.py"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"a33834888fa5724eaf2b40c387be3df1a52dcf7c1cfca1be29a4444881bb26be"}},{"ruleId":"D1","level":"warning","message":{"text":"zip_budget.enforce_docx_decompression_budget (cyclomatic 17): zip_budget.enforce_docx_decompression_budget 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":"lightrag/parser/docx/zip_budget.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca4813d5229fb51ab90b478bbca3af91c77c91dcb4ab0801e7e07a7e1c9f75c5"}},{"ruleId":"D1","level":"warning","message":{"text":"DoclingRawClient.__init__ (cyclomatic 17): DoclingRawClient.__init__ 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":"lightrag/parser/external/docling/client.py"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa71158d26c130a787efc5882f400892dcd16242acc582803af8f6c6e528f8a"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeMarkdownIRBuilder.normalize (cyclomatic 17): NativeMarkdownIRBuilder.normalize 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":"lightrag/parser/markdown/ir_builder.py"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a7330c38a9ebb51c44219694b9bab745980a75b23a3a6237266fb9d4a0519b7"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeParserBase.parse (cyclomatic 17): NativeParserBase.parse 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":"lightrag/parser/native_base.py"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"c341e28c0e16cb65c09b3cc019fa768718211eb48891e3ccc1296127b55e7848"}},{"ruleId":"D1","level":"warning","message":{"text":"migrate_graph_storage._unrepresentable_paths (cyclomatic 17): migrate_graph_storage._unrepresentable_paths 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":"lightrag/tools/migrate_graph_storage.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"079d84755cbc5b86af0cd1b193344ea2d9e14ca21d2ef22397ccf7daccb6d657"}},{"ruleId":"D1","level":"warning","message":{"text":"EmbeddingFunc.__call__ (cyclomatic 17): EmbeddingFunc.__call__ 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":"lightrag/utils.py"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"9de6d6595197158379a6e3702521492013348207af39ca4a6999953ad3cfd96c"}},{"ruleId":"D1","level":"warning","message":{"text":"utils_graph._merge_attributes (cyclomatic 17): utils_graph._merge_attributes 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":"lightrag/utils_graph.py"},"region":{"startLine":3831}}}],"partialFingerprints":{"codehealthFindingId/v1":"938887f379e6e48cf1a09c2454663abf16178885cea7c898c88c015d3106748a"}},{"ruleId":"D1","level":"warning","message":{"text":"lightrag._classifyStreamError (cyclomatic 17): lightrag._classifyStreamError 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":"lightrag_webui/src/api/lightrag.ts"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b5c8029d263180c46ccded0219e4dea22035b526548ff71573d640b53366d0c"}},{"ruleId":"D1","level":"warning","message":{"text":"Settings.Settings (cyclomatic 17): Settings.Settings has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 6 of the 17 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 371, 254, 355, \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":"lightrag_webui/src/components/graph/Settings.tsx"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"edbb690c6d2ddf00d9eb01906148575cd36683b24543d78564cbb7e5b8afbf2e"}},{"ruleId":"D1","level":"warning","message":{"text":"StatusCard.formatMinerU (cyclomatic 17): StatusCard.formatMinerU 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":"lightrag_webui/src/components/status/StatusCard.tsx"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"054005cbb7146369c66519bfea888e8c37290ac2b43746fbfa0c30ae3755bf10"}},{"ruleId":"D1","level":"warning","message":{"text":"ui_customization.normalize_locale (cyclomatic 16): ui_customization.normalize_locale 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":"lightrag/api/ui_customization.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"53d861923693369c3793b1511b08aa77cfa83b7ea3b8825880aeb2363c213d0a"}},{"ruleId":"D1","level":"warning","message":{"text":"paragraph_semantic._expand_block_with_table_splits (cyclomatic 16): paragraph_semantic._expand_block_with_table_splits 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":"lightrag/chunker/paragraph_semantic.py"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2d408d44be6304c67cbfdb0d2f60bdb08fa628e4c5e6332f735353ae685dc8b"}},{"ruleId":"D1","level":"warning","message":{"text":"RAGEvaluator._calculate_benchmark_stats (cyclomatic 16): RAGEvaluator._calculate_benchmark_stats 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":"lightrag/evaluation/eval_rag_quality.py"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdbb32e4447c8c3591ef8836b404e2e3ed2ce2a75d612168046316bf7897963f"}},{"ruleId":"D1","level":"warning","message":{"text":"MemgraphStorage.get_knowledge_graph (cyclomatic 16): MemgraphStorage.get_knowledge_graph 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":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ca912118d94d8a65638dafdd9d4e6e68731fea8fc017c49e16944051f799a33"}},{"ruleId":"D1","level":"warning","message":{"text":"MilvusVectorDBStorage.get_vectors_by_ids (cyclomatic 16): MilvusVectorDBStorage.get_vectors_by_ids 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":"lightrag/kg/milvus_impl.py"},"region":{"startLine":3391}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddea84e89d023ed854e02b37ea40ab57ad86d31074590fae4445921b190290c2"}},{"ruleId":"D1","level":"warning","message":{"text":"NanoVectorDBStorage.get_by_ids (cyclomatic 16): NanoVectorDBStorage.get_by_ids 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":"lightrag/kg/nano_vector_db_impl.py"},"region":{"startLine":1316}}}],"partialFingerprints":{"codehealthFindingId/v1":"eebabc0396477a7942579ea316ec1b174ab8250326b46ededab5ee33989764e3"}},{"ruleId":"D1","level":"warning","message":{"text":"PostgreSQLDB._migrate_field_lengths (cyclomatic 16): PostgreSQLDB._migrate_field_lengths 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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":2417}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5054d2a1d8ed9630ad77234c54b92d50778be506486e20cff2d0fc50448c644"}},{"ruleId":"D1","level":"warning","message":{"text":"PGGraphStorage.get_edges_batch (cyclomatic 16): PGGraphStorage.get_edges_batch 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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":9028}}}],"partialFingerprints":{"codehealthFindingId/v1":"a734cb18a3fc457f21a3279afa00520e996ddd337c1d2f4aecfd8a48d71856ea"}},{"ruleId":"D1","level":"warning","message":{"text":"QdrantVectorDBStorage.get_by_ids (cyclomatic 16): QdrantVectorDBStorage.get_by_ids 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":"lightrag/kg/qdrant_impl.py"},"region":{"startLine":1176}}}],"partialFingerprints":{"codehealthFindingId/v1":"f83f2c04adc5762d94ddf08769c99967a94f8dc1d5f2bec1d47030f986a534ed"}},{"ruleId":"D1","level":"warning","message":{"text":"RedisDocStatusStorage.get_doc_by_content_hash (cyclomatic 16): RedisDocStatusStorage.get_doc_by_content_hash 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":"lightrag/kg/redis_impl.py"},"region":{"startLine":1973}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b070dc16addbe079ddc34bb07cc1b83a9aaf0fb4464b7a273c4a0b2a773968"}},{"ruleId":"D1","level":"warning","message":{"text":"openai_responses._translate_kwargs (cyclomatic 16): openai_responses._translate_kwargs 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":"lightrag/llm/openai_responses.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"7734748cd0ac2b84685847e090fd217c659ce14fe0568f5e34bb6aa9c7897c4e"}},{"ruleId":"D1","level":"warning","message":{"text":"multimodal_context._build_leading (cyclomatic 16): multimodal_context._build_leading 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 shape REPEATS in the file: one other method here (multimodal_context._build_trailing) 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":"lightrag/multimodal_context.py"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"a86568bfbb74f1f91eb63b8ee787028c36ac47e4bee84af0b0fb3207169b5a2f"}},{"ruleId":"D1","level":"warning","message":{"text":"multimodal_context._build_trailing (cyclomatic 16): multimodal_context._build_trailing 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 shape REPEATS in the file: one other method here (multimodal_context._build_leading) 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":"lightrag/multimodal_context.py"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"f789ea4edfb973a1f578a6d4a8edc4a49d44e65813e6bd344c1dd94de7afc5fd"}},{"ruleId":"D1","level":"warning","message":{"text":"drawing_image_extractor.load_relationships (cyclomatic 16): drawing_image_extractor.load_relationships 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":"lightrag/parser/docx/drawing_image_extractor.py"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3dda71a74592b97e52d55a2e39b523b58c89da1febb8502dc7b6502e7a51ba9"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeDocxIRBuilder.normalize (cyclomatic 16): NativeDocxIRBuilder.normalize 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":"lightrag/parser/docx/ir_builder.py"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"4527133f07f1e548427b669460ecd6c7bb04b228e1a364a7d151b784cfeb5bad"}},{"ruleId":"D1","level":"warning","message":{"text":"heading_flow._try_cb1_graduated_demotion (cyclomatic 16): heading_flow._try_cb1_graduated_demotion 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":"lightrag/parser/docx/smart_heading/heading_flow.py"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"fec429d090a85604a92cc073d5dcbc3aea4b0de0b770ab1277cc4e79d4cae2c4"}},{"ruleId":"D1","level":"warning","message":{"text":"style_key._extract_unit_and_ordinal (cyclomatic 16): style_key._extract_unit_and_ordinal 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":"lightrag/parser/docx/smart_heading/style_key.py"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"115c6535de8ce36f12b066b9cd36c0ba27feaffa8ecfb4f7232bfa4876a97288"}},{"ruleId":"D1","level":"warning","message":{"text":"ir_builder._build_ir_table (cyclomatic 16): ir_builder._build_ir_table 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":"lightrag/parser/external/docling/ir_builder.py"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"43ee58c79b125657624975990aa34d5cdc5276114d30ec7bbf199801cb365c08"}},{"ruleId":"D1","level":"warning","message":{"text":"routing._filename_hint_match (cyclomatic 16): routing._filename_hint_match 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":"lightrag/parser/routing.py"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fcadd27423427ca4f5caf18c15472dc5346985190ffaed51b50a0c541a356ea"}},{"ruleId":"D1","level":"warning","message":{"text":"_PipelineMixin._refetch_for_decision (cyclomatic 16): _PipelineMixin._refetch_for_decision 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":"lightrag/pipeline.py"},"region":{"startLine":3925}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa63489fe790990ef5d369a28c50573d812994212d6e1d62d745f2d943925692"}},{"ruleId":"D1","level":"warning","message":{"text":"CleanupTool.setup_storage (cyclomatic 16): CleanupTool.setup_storage 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":"lightrag/tools/clean_llm_query_cache.py"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc6ef5d447bd32a744d901022110d417da23eb48cbd4042bf50cb934f0a58bc7"}},{"ruleId":"D1","level":"warning","message":{"text":"MigrationTool.stream_default_caches_redis (cyclomatic 16): MigrationTool.stream_default_caches_redis 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":"lightrag/tools/migrate_llm_cache.py"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f104d9e29cee3b36300ea198171f7c6ab6d197c40dddbc10558a03377ba2d3b"}},{"ruleId":"D1","level":"warning","message":{"text":"utils.apply_rerank_if_enabled (cyclomatic 16): utils.apply_rerank_if_enabled 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":"lightrag/utils.py"},"region":{"startLine":7196}}}],"partialFingerprints":{"codehealthFindingId/v1":"47ec0fc424a94834d8d26787ab6009609382c78ffa7f0e37771cfffd7c369e4e"}},{"ruleId":"D1","level":"warning","message":{"text":"ClearDocumentsDialog.ClearDocumentsDialog (cyclomatic 16): ClearDocumentsDialog.ClearDocumentsDialog has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 78, 54, 70, \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":"lightrag_webui/src/components/documents/ClearDocumentsDialog.tsx"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"5507e72e5381a3b66cb92710450c8965e1faeb28e9437b017a98040a1232889f"}},{"ruleId":"D1","level":"warning","message":{"text":"LayoutsControl.WorkerLayoutControl (cyclomatic 16): LayoutsControl.WorkerLayoutControl has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 160, 137, 119, \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":"lightrag_webui/src/components/graph/LayoutsControl.tsx"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"8352d3305c6efaf4f6d50c799fca1d87e834ffcfc9a7575505912f78694023f3"}},{"ruleId":"D1","level":"warning","message":{"text":"PropertiesView.PropertyRow (cyclomatic 16): PropertiesView.PropertyRow has cyclomatic complexity 16 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 3 belong to 2 function items inside it that branch. 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":"lightrag_webui/src/components/graph/PropertiesView.tsx"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"171611e777e3581b4dff46a61af8d053791cc3469516f44e1feaca11586dab1d"}},{"ruleId":"D1","level":"warning","message":{"text":"useLightragGraph.createSigmaGraph (cyclomatic 16): useLightragGraph.createSigmaGraph 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":"lightrag_webui/src/hooks/useLightragGraph.tsx"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"b99bfcb9b6725e93705b543fb12c4ea2505b075599464e4da800b62fc1ab1821"}},{"ruleId":"D2","level":"warning","message":{"text":"paragraph_semantic._merge_small_blocks (cognitive 177): paragraph_semantic._merge_small_blocks has cognitive complexity 177 (threshold 15). Drivers by points: if/else 26 (139 pts), loops 7 (24 pts), boolean chains 14 (nesting depth added 130). 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":"lightrag/chunker/paragraph_semantic.py"},"region":{"startLine":1843}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a9eb32436c0809b13e71dbced3680f066b43bbb8fd98cae941e27c1d7fc8545"}},{"ruleId":"D2","level":"warning","message":{"text":"operate._merge_edges_then_upsert (cognitive 173): operate._merge_edges_then_upsert has cognitive complexity 173 (threshold 15). Drivers by points: if/else 70 (144 pts), boolean chains 16, loops 7 (8 pts), ternaries 2 (3 pts), error handling 1 (2 pts) (nesting depth added 77). 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":"lightrag/operate.py"},"region":{"startLine":2823}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fe21a1f05d8a1604ba9e1d8ddb3203912b03a118de78f458d9c62d37b35782d"}},{"ruleId":"D2","level":"warning","message":{"text":"LightRAG._purge_derived_kg_contributions (cognitive 159): LightRAG._purge_derived_kg_contributions has cognitive complexity 159 (threshold 15). Drivers by points: if/else 47 (106 pts), loops 12 (25 pts), boolean chains 13, error handling 7 (11 pts), ternaries 2 (4 pts) (nesting depth added 78). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/lightrag.py"},"region":{"startLine":6349}}}],"partialFingerprints":{"codehealthFindingId/v1":"9729d397c4cb470060b5209b4d208824db788d29340d8524a57cca936150fdba"}},{"ruleId":"D2","level":"warning","message":{"text":"DocumentManager.DocumentManager (cognitive 157): DocumentManager.DocumentManager has cognitive complexity 157 (threshold 15). Drivers by points: if/else 54 (76 pts), boolean chains 45, ternaries 22 (30 pts), error handling 4 (5 pts), match/switch 1 (nesting depth added 31). Of this number, 49 points are the body\u0027s own statements and 108 belong to 28 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":"lightrag_webui/src/features/DocumentManager.tsx"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4dbcc6084198e2d1358037ce2038977f656600f983fa9c32e815e7affaaaf3f"}},{"ruleId":"D2","level":"warning","message":{"text":"useLightragGraph.useLightrangeGraph (cognitive 143): useLightragGraph.useLightrangeGraph has cognitive complexity 143 (threshold 15). Drivers by points: if/else 55 (90 pts), boolean chains 32, loops 13, error handling 4 (8 pts) (nesting depth added 39). None of this is in the body itself: all 143 points belong to 14 function literals inside it that branch (lines 681, 477, 395, \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":"lightrag_webui/src/hooks/useLightragGraph.tsx"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ee22cf709b0e5c4bf24e7d2ba4afccc1277de1a85421bab6df3c45e291a0f03"}},{"ruleId":"D2","level":"warning","message":{"text":"TableExtractor.extract_with_metadata (cognitive 132): TableExtractor.extract_with_metadata has cognitive complexity 132 (threshold 15). Drivers by points: if/else 27 (104 pts), loops 6 (19 pts), ternaries 3 (5 pts), boolean chains 4 (nesting depth added 92). 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":"lightrag/parser/docx/table_extractor.py"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"d658e0f7baa8089b7e1bf8636f1d36231e0d5b0ee7bbbda75cbb71f312e595c2"}},{"ruleId":"D2","level":"warning","message":{"text":"openai.openai_complete_if_cache (cognitive 131): openai.openai_complete_if_cache has cognitive complexity 131 (threshold 15). Drivers by points: if/else 36 (70 pts), error handling 15 (27 pts), ternaries 6 (19 pts), boolean chains 13, loops 1 (2 pts) (nesting depth added 60). 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":"lightrag/llm/openai.py"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"854d09527f24c5f25bb374a80895f31d35f9c120d3e30a38c8643dd9dbec8574"}},{"ruleId":"D2","level":"warning","message":{"text":"_PipelineMixin.analyze_multimodal (cognitive 124): _PipelineMixin.analyze_multimodal has cognitive complexity 124 (threshold 15). Drivers by points: if/else 39 (75 pts), loops 8 (16 pts), boolean chains 14, error handling 8 (13 pts), ternaries 3 (6 pts) (nesting depth added 52). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/pipeline.py"},"region":{"startLine":6842}}}],"partialFingerprints":{"codehealthFindingId/v1":"4418d5d9663fc153afaebb6edb16e3d8bd024926e3ff55474089ee33580749b6"}},{"ruleId":"D2","level":"warning","message":{"text":"title_block.find_title_block_candidates (cognitive 123): title_block.find_title_block_candidates has cognitive complexity 123 (threshold 15). Drivers by points: if/else 32 (73 pts), boolean chains 24, loops 10 (19 pts), ternaries 2 (7 pts) (nesting depth added 55). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/parser/docx/smart_heading/title_block.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fc5ef274155d1106a64df819723136020d4e180e1ec549b4d018f04d1bc4237"}},{"ruleId":"D2","level":"warning","message":{"text":"utils_graph._merge_entities_impl (cognitive 120): utils_graph._merge_entities_impl has cognitive complexity 120 (threshold 15). Drivers by points: if/else 33 (72 pts), loops 14 (25 pts), error handling 7 (10 pts), ternaries 5 (7 pts), boolean chains 6 (nesting depth added 55). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils_graph.py"},"region":{"startLine":2958}}}],"partialFingerprints":{"codehealthFindingId/v1":"47a9754c634257a5558c87db66def8d122f57bb03b45a9ec1645fb9c26c794ed"}},{"ruleId":"D2","level":"warning","message":{"text":"PGKVStorage.get_by_ids (cognitive 119): PGKVStorage.get_by_ids has cognitive complexity 119 (threshold 15). Drivers by points: if/else 20 (44 pts), error handling 9 (36 pts), ternaries 6 (18 pts), loops 7 (14 pts), boolean chains 7 (nesting depth added 70). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/postgres_impl.py"},"region":{"startLine":3574}}}],"partialFingerprints":{"codehealthFindingId/v1":"594d360477887c075fed5346284767d5cfd8d4f3a47e0b730e9d892965c05b0b"}},{"ruleId":"D2","level":"warning","message":{"text":"LightRAG.adelete_by_doc_id (cognitive 116): LightRAG.adelete_by_doc_id has cognitive complexity 116 (threshold 15). Drivers by points: if/else 33 (61 pts), error handling 16 (31 pts), boolean chains 9, ternaries 3 (8 pts), loops 2 (7 pts) (nesting depth added 53). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/lightrag.py"},"region":{"startLine":6811}}}],"partialFingerprints":{"codehealthFindingId/v1":"9139e2164614a399ba94086a540adc67378be94d9be17cc05fbaea066838ca49"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.aexport_data (cognitive 113): utils.aexport_data has cognitive complexity 113 (threshold 15). Drivers by points: if/else 35 (70 pts), loops 11 (29 pts), ternaries 5 (12 pts), boolean chains 2 (nesting depth added 60). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":4857}}}],"partialFingerprints":{"codehealthFindingId/v1":"08c495a53a361a16a5b1db7b03bfa08fcd4065453b7a9d46bdef37d8cb01219f"}},{"ruleId":"D2","level":"warning","message":{"text":"_PipelineMixin.apipeline_enqueue_documents (cognitive 110): _PipelineMixin.apipeline_enqueue_documents has cognitive complexity 110 (threshold 15). Drivers by points: if/else 44 (66 pts), boolean chains 12, ternaries 5 (12 pts), loops 7 (11 pts), error handling 5 (9 pts) (nesting depth added 37). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/pipeline.py"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a7c21ecd18179d8f3b97af5d33ea4c9834b8e6c845d2a6bd4e62848ac51974c"}},{"ruleId":"D2","level":"warning","message":{"text":"_PipelineMixin.process_single_document (cognitive 107): _PipelineMixin.process_single_document has cognitive complexity 107 (threshold 15). Drivers by points: if/else 36 (61 pts), boolean chains 32, error handling 3 (7 pts), ternaries 4 (5 pts), loops 1 (2 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":"lightrag/pipeline.py"},"region":{"startLine":4992}}}],"partialFingerprints":{"codehealthFindingId/v1":"71c0ae9ecf0bc3511ec3717dadca794a12e4a3197ca691c4d9f74a8703a9b7c2"}},{"ruleId":"D2","level":"warning","message":{"text":"heading_flow.gate_candidates (cognitive 105): heading_flow.gate_candidates has cognitive complexity 105 (threshold 15). Drivers by points: if/else 30 (79 pts), boolean chains 14, loops 9 (11 pts), ternaries 1 (nesting depth added 51). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/parser/docx/smart_heading/heading_flow.py"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"20cdfc37d0e1b67987100a17686afa66f541c9a51e95c98603f0abb9c285f36b"}},{"ruleId":"D2","level":"warning","message":{"text":"heading_flow.correct_numbering_skeleton (cognitive 102): heading_flow.correct_numbering_skeleton has cognitive complexity 102 (threshold 15). Drivers by points: if/else 26 (67 pts), loops 15 (23 pts), boolean chains 9, ternaries 1 (3 pts) (nesting depth added 51). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/parser/docx/smart_heading/heading_flow.py"},"region":{"startLine":2325}}}],"partialFingerprints":{"codehealthFindingId/v1":"db1020b082acda3dec9959673971e832e9871810b689e64f12b952e0547dceb9"}},{"ruleId":"D2","level":"warning","message":{"text":"openai_responses._stream_response (cognitive 100): openai_responses._stream_response has cognitive complexity 100 (threshold 15). Drivers by points: if/else 31 (68 pts), error handling 7 (13 pts), boolean chains 12, ternaries 2 (6 pts), loops 1 (nesting depth added 47). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai_responses.py"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c1dd638f670585aa927ebba6a445e324c9b1a8b254e1e8ba5b617d5e48d743d"}},{"ruleId":"D2","level":"warning","message":{"text":"utils_graph._edit_entity_impl (cognitive 100): utils_graph._edit_entity_impl has cognitive complexity 100 (threshold 15). Drivers by points: if/else 24 (60 pts), ternaries 4 (18 pts), error handling 4 (8 pts), loops 3 (8 pts), boolean chains 6 (nesting depth added 59). 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":"lightrag/utils_graph.py"},"region":{"startLine":1161}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e3233a6a05e4b5b6f32ebbe364119335e3c79be108b572ec206ebb28681163b"}},{"ruleId":"D2","level":"warning","message":{"text":"heading_flow.run_smart_heading (cognitive 97): heading_flow.run_smart_heading has cognitive complexity 97 (threshold 15). Drivers by points: if/else 31 (58 pts), loops 14 (24 pts), ternaries 3 (9 pts), boolean chains 6 (nesting depth added 43). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/parser/docx/smart_heading/heading_flow.py"},"region":{"startLine":2942}}}],"partialFingerprints":{"codehealthFindingId/v1":"90dbf27b5c589a8ed2edeaf589e907f1e3a1932f38aba75be6059f8088635451"}},{"ruleId":"D2","level":"warning","message":{"text":"parse_document._assemble_blocks_smart (cognitive 96): parse_document._assemble_blocks_smart has cognitive complexity 96 (threshold 15). Drivers by points: if/else 27 (76 pts), boolean chains 13, loops 2 (4 pts), ternaries 1 (3 pts) (nesting depth added 53). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/parser/docx/parse_document.py"},"region":{"startLine":1263}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a50989ed634e25431e9306518c06a7998ef3ec93971be42ba22a7fb7eb6ad66"}},{"ruleId":"D2","level":"warning","message":{"text":"GraphControl.GraphControl (cognitive 91): GraphControl.GraphControl has cognitive complexity 91 (threshold 15). Drivers by points: if/else 45 (61 pts), boolean chains 17, ternaries 7 (9 pts), error handling 4 (nesting depth added 18). Most of this is not in the body itself: 1 of the 91 points is its own statement and the rest belongs to 23 function literals inside it that branch (lines 426, 374, 459, \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":"lightrag_webui/src/components/graph/GraphControl.tsx"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"df70e80edd1e6e8df7b87d281fe7e8531d95eb70632aa574de415d30044fac4e"}},{"ruleId":"D2","level":"warning","message":{"text":"_PipelineMixin._parse_worker (cognitive 90): _PipelineMixin._parse_worker has cognitive complexity 90 (threshold 15). Drivers by points: if/else 27 (64 pts), boolean chains 9, ternaries 4 (9 pts), error handling 3 (7 pts), loops 1 (nesting depth added 46). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/pipeline.py"},"region":{"startLine":4410}}}],"partialFingerprints":{"codehealthFindingId/v1":"aec415b273d44b8b75a9b72157c8e5e932fbe4e42c1473b1e8ac92874112be05"}},{"ruleId":"D2","level":"warning","message":{"text":"parse_document._read_document_records (cognitive 89): parse_document._read_document_records has cognitive complexity 89 (threshold 15). Drivers by points: if/else 21 (71 pts), boolean chains 7, ternaries 2 (6 pts), loops 2 (5 pts) (nesting depth added 57). 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":"lightrag/parser/docx/parse_document.py"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"84f699629c9cd0f1485e65f5d0d77d074d953e7886e1a0c26ceff90f178c3535"}},{"ruleId":"D2","level":"warning","message":{"text":"LightRAG.ainsert_custom_chunks (cognitive 88): LightRAG.ainsert_custom_chunks has cognitive complexity 88 (threshold 15). Drivers by points: if/else 32 (46 pts), boolean chains 24, error handling 4 (8 pts), ternaries 4 (6 pts), loops 2 (4 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":"lightrag/lightrag.py"},"region":{"startLine":2478}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5b88c4af177b18e5a2d7f0dc9b822bec46a77cd693ce431db00b4530274d865"}},{"ruleId":"D2","level":"warning","message":{"text":"NetworkXStorage.get_knowledge_graph (cognitive 84): NetworkXStorage.get_knowledge_graph has cognitive complexity 84 (threshold 15). Drivers by points: if/else 23 (63 pts), loops 6 (16 pts), boolean chains 5 (nesting depth added 50). 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":"lightrag/kg/networkx_impl.py"},"region":{"startLine":1087}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfb145ad0a940f80a84ac9929d128724c89e60cea434f14e3855caa07c9143bd"}},{"ruleId":"D2","level":"warning","message":{"text":"operate._merge_nodes_then_upsert (cognitive 84): operate._merge_nodes_then_upsert has cognitive complexity 84 (threshold 15). Drivers by points: if/else 41 (61 pts), boolean chains 13, loops 4 (5 pts), ternaries 2 (5 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":"lightrag/operate.py"},"region":{"startLine":2470}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb1dae1a59695d1e9510966fa4c85486cd884e22ed40df6ad23e81235852282f"}},{"ruleId":"D2","level":"warning","message":{"text":"_PipelineMixin._build_mm_chunks_from_sidecars (cognitive 83): _PipelineMixin._build_mm_chunks_from_sidecars has cognitive complexity 83 (threshold 15). Drivers by points: if/else 25 (63 pts), boolean chains 8, loops 3 (7 pts), ternaries 1 (3 pts), error handling 1 (2 pts) (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":"lightrag/pipeline.py"},"region":{"startLine":8030}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff99c96e11ccbf1c1e78e58da173294b0bdf2225e4d2aef78337d902c3740471"}},{"ruleId":"D2","level":"warning","message":{"text":"heading_flow.anchor_outline_levels (cognitive 82): heading_flow.anchor_outline_levels has cognitive complexity 82 (threshold 15). Drivers by points: if/else 19 (46 pts), loops 9 (19 pts), ternaries 4 (10 pts), boolean chains 7 (nesting depth added 43). 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":"lightrag/parser/docx/smart_heading/heading_flow.py"},"region":{"startLine":1678}}}],"partialFingerprints":{"codehealthFindingId/v1":"3396e1d9410f181e37dfe16c0ace6c22aa154027a1d857c2460bbd3715c97b40"}},{"ruleId":"D2","level":"warning","message":{"text":"lightrag_server.create_app (cognitive 78): lightrag_server.create_app has cognitive complexity 78 (threshold 15). Drivers by points: if/else 34 (55 pts), boolean chains 12, error handling 4 (6 pts), ternaries 5 (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":"lightrag/api/lightrag_server.py"},"region":{"startLine":1473}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd25bc8891181b04212a6550168a17b54ee78e986cc2f7083cd955a52d539ce"}},{"ruleId":"D2","level":"warning","message":{"text":"PGKVStorage.get_by_id (cognitive 78): PGKVStorage.get_by_id has cognitive complexity 78 (threshold 15). Drivers by points: if/else 19 (31 pts), error handling 9 (27 pts), ternaries 7 (13 pts), boolean chains 7 (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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":3419}}}],"partialFingerprints":{"codehealthFindingId/v1":"d256912db6b78fc5e44f2cc4cd1e6c46f51bdb31f127e0f3369d797976ddf4df"}},{"ruleId":"D2","level":"warning","message":{"text":"ui_customization.load_ui_customization_snapshot (cognitive 77): ui_customization.load_ui_customization_snapshot has cognitive complexity 77 (threshold 15). Drivers by points: if/else 30 (51 pts), error handling 5 (9 pts), loops 6 (9 pts), boolean chains 5, ternaries 1 (3 pts) (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":"lightrag/api/ui_customization.py"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"7548e6fe9aa2de5907df384adcb89f1c34bd439df454eeda08d51a0428c9e96b"}},{"ruleId":"D2","level":"warning","message":{"text":"operate._rebuild_single_relationship (cognitive 77): operate._rebuild_single_relationship has cognitive complexity 77 (threshold 15). Drivers by points: if/else 28 (48 pts), ternaries 11 (13 pts), boolean chains 7, loops 5 (7 pts), error handling 2 (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":"lightrag/operate.py"},"region":{"startLine":2068}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef207b0efe8cfe7c3ea1ae87581e95177c88e2f1307963a7b026a312d45966a"}},{"ruleId":"D2","level":"warning","message":{"text":"PGVectorStorage.setup_table (cognitive 75): PGVectorStorage.setup_table has cognitive complexity 75 (threshold 15). Drivers by points: if/else 19 (41 pts), error handling 4 (12 pts), ternaries 5 (12 pts), boolean chains 10 (nesting depth added 37). 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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":4454}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ba23e504e058d16b01ddfa210903f5dde927d0b56962e0c7fdc9d584aef267f"}},{"ruleId":"D2","level":"warning","message":{"text":"operate._perform_kg_search (cognitive 75): operate._perform_kg_search has cognitive complexity 75 (threshold 15). Drivers by points: if/else 27 (57 pts), boolean chains 8, loops 4 (7 pts), error handling 1 (3 pts) (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":5442}}}],"partialFingerprints":{"codehealthFindingId/v1":"bda8ff33df48cb29aedb480c0b9bccf2bce64f6f7cf3662ba53884d03fde2bee"}},{"ruleId":"D2","level":"warning","message":{"text":"QdrantVectorDBStorage.setup_collection (cognitive 74): QdrantVectorDBStorage.setup_collection has cognitive complexity 74 (threshold 15). Drivers by points: if/else 22 (54 pts), boolean chains 8, loops 3 (8 pts), error handling 2 (4 pts) (nesting depth added 39). 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":"lightrag/kg/qdrant_impl.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"06dac51ac7a2ae5fb1bd43671c63c8b3cfdeb805e5bcf9ef4a49c7957e573a89"}},{"ruleId":"D2","level":"warning","message":{"text":"MinerUIRBuilder._normalize_content_list (cognitive 72): MinerUIRBuilder._normalize_content_list has cognitive complexity 72 (threshold 15). Drivers by points: if/else 25 (58 pts), boolean chains 7, ternaries 2 (6 pts), loops 1 (nesting depth added 37). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/parser/external/mineru/ir_builder.py"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"34561288f051eee82851bf561f84f0f1bf70d769aaccfdf6c5c8d17361269aae"}},{"ruleId":"D2","level":"warning","message":{"text":"guardrails._detect_plain_numbered_toc (cognitive 71): guardrails._detect_plain_numbered_toc has cognitive complexity 71 (threshold 15). Drivers by points: if/else 14 (50 pts), ternaries 2 (9 pts), loops 4 (7 pts), boolean chains 5 (nesting depth added 46). 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":"lightrag/parser/docx/smart_heading/guardrails.py"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6c3a65bbe638243a72bc8ec8bd62caddfff7588caebe0c1462dbfd7796efdab"}},{"ruleId":"D2","level":"warning","message":{"text":"guardrails.verify_content_preservation (cognitive 70): guardrails.verify_content_preservation has cognitive complexity 70 (threshold 15). Drivers by points: if/else 12 (34 pts), loops 13 (29 pts), boolean chains 7 (nesting depth added 38). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/parser/docx/smart_heading/guardrails.py"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8816de79e75cc2571fc673b3ef662038c39c6e43b5335e72fc8b22a6d151944"}},{"ruleId":"D2","level":"warning","message":{"text":"paragraph_semantic._split_table_text (cognitive 68): paragraph_semantic._split_table_text has cognitive complexity 68 (threshold 15). Drivers by points: if/else 22 (40 pts), boolean chains 15, ternaries 5 (8 pts), loops 2 (3 pts), error handling 1 (2 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":"lightrag/chunker/paragraph_semantic.py"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fa96f92eaea2c83ce184dd1ec2822c4ef39451e25e6be848affd252e20cc529"}},{"ruleId":"D2","level":"warning","message":{"text":"MigrationTool.stream_default_caches_redis (cognitive 65): MigrationTool.stream_default_caches_redis has cognitive complexity 65 (threshold 15). Drivers by points: if/else 6 (26 pts), loops 5 (16 pts), ternaries 2 (13 pts), error handling 2 (10 pts) (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":"lightrag/tools/migrate_llm_cache.py"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"37948946dfeaf01072a9a0e77bbe3ff3b5c32373cc5410754bf0bd1e8893245f"}},{"ruleId":"D2","level":"warning","message":{"text":"EditablePropertyRow.EditablePropertyRow::handleSave (cognitive 64): EditablePropertyRow.EditablePropertyRow::handleSave has cognitive complexity 64 (threshold 15). Drivers by points: if/else 20 (39 pts), ternaries 4 (10 pts), boolean chains 8, error handling 3 (7 pts) (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":"lightrag_webui/src/components/graph/EditablePropertyRow.tsx"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"898017e284dbe64971adb811fcec74e0f6cdfaf65493bc07de58eaa2019747e8"}},{"ruleId":"D2","level":"warning","message":{"text":"PGGraphStorage._record_to_dict (cognitive 63): PGGraphStorage._record_to_dict has cognitive complexity 63 (threshold 15). Drivers by points: if/else 15 (41 pts), ternaries 2 (10 pts), loops 3 (8 pts), boolean chains 4 (nesting depth added 39). 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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":7818}}}],"partialFingerprints":{"codehealthFindingId/v1":"86b4f2989cf9c85a155dd45c25e86abbcdc2e6478533320eabbd29b311723bb3"}},{"ruleId":"D2","level":"warning","message":{"text":"OMMLParser.parse_func (cognitive 62): OMMLParser.parse_func has cognitive complexity 62 (threshold 15). Drivers by points: if/else 10 (40 pts), loops 5 (21 pts), boolean chains 1 (nesting depth added 46). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/parser/docx/omml/ommlparser.py"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"93c8aa897c468e9ce5231ad34065c3cf79895d4c4587d0b4f42885d65de9d2c6"}},{"ruleId":"D2","level":"warning","message":{"text":"_StorageMigrationMixin._migrate_chunk_tracking_storage (cognitive 62): _StorageMigrationMixin._migrate_chunk_tracking_storage has cognitive complexity 62 (threshold 15). Drivers by points: if/else 14 (38 pts), loops 4 (10 pts), boolean chains 8, error handling 4 (6 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":"lightrag/storage_migrations.py"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b0772060559c0bbd27a2482a501949bdeb0110187c43fe4fc0f510703bb04ee"}},{"ruleId":"D2","level":"warning","message":{"text":"operate.rebuild_knowledge_from_chunks (cognitive 61): operate.rebuild_knowledge_from_chunks has cognitive complexity 61 (threshold 15). Drivers by points: if/else 18 (35 pts), loops 8 (13 pts), boolean chains 11, error handling 1 (2 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":"lightrag/operate.py"},"region":{"startLine":1138}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dfa1a9164a42e55f6144be031851aafa63b939f4e40104d23dde8b829435d6e"}},{"ruleId":"D2","level":"warning","message":{"text":"MilvusVectorDBStorage._migrate_collection_schema_attempt (cognitive 60): MilvusVectorDBStorage._migrate_collection_schema_attempt has cognitive complexity 60 (threshold 15). Drivers by points: if/else 20 (30 pts), error handling 11 (22 pts), boolean chains 5, loops 2 (3 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":"lightrag/kg/milvus_impl.py"},"region":{"startLine":1829}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbb7e666bf3b48974b1eda4e082e26fc204c36977140b6766c1f1e66840d27f6"}},{"ruleId":"D2","level":"warning","message":{"text":"OMMLParser.parse_d (cognitive 60): OMMLParser.parse_d has cognitive complexity 60 (threshold 15). Drivers by points: if/else 19 (44 pts), loops 5 (10 pts), boolean chains 6 (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":"lightrag/parser/docx/omml/ommlparser.py"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"a518a339402621eae0e0a5c5ee3a07638efba9edae4537529751c6e70d196a49"}},{"ruleId":"D2","level":"warning","message":{"text":"heading_flow.demote_strong_body_headings (cognitive 59): heading_flow.demote_strong_body_headings has cognitive complexity 59 (threshold 15). Drivers by points: if/else 19 (47 pts), boolean chains 6, loops 5 (6 pts) (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":"lightrag/parser/docx/smart_heading/heading_flow.py"},"region":{"startLine":2083}}}],"partialFingerprints":{"codehealthFindingId/v1":"f731b6b4898639ef282a3bcbb8d17055ad71c1951cbd5df77d75e772e8d606cb"}},{"ruleId":"D2","level":"warning","message":{"text":"paragraph_semantic.chunking_by_paragraph_semantic (cognitive 58): paragraph_semantic.chunking_by_paragraph_semantic has cognitive complexity 58 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 18, ternaries 6 (11 pts), loops 5 (7 pts), error handling 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":"lightrag/chunker/paragraph_semantic.py"},"region":{"startLine":2077}}}],"partialFingerprints":{"codehealthFindingId/v1":"c20630b767cd0ffcbdf2d193edfc50db693da8b3f00199c7a96ef768618deef1"}},{"ruleId":"D2","level":"warning","message":{"text":"_PipelineMixin.apipeline_process_enqueue_documents (cognitive 58): _PipelineMixin.apipeline_process_enqueue_documents has cognitive complexity 58 (threshold 15). Drivers by points: if/else 25 (52 pts), boolean chains 5, loops 1 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/pipeline.py"},"region":{"startLine":1725}}}],"partialFingerprints":{"codehealthFindingId/v1":"85b661cdb992a3d1ab43d1062ca15a9f662f3e0c33951627e96f264b830a1759"}},{"ruleId":"D2","level":"warning","message":{"text":"paragraph_semantic._split_long_block (cognitive 57): paragraph_semantic._split_long_block has cognitive complexity 57 (threshold 15). Drivers by points: if/else 15 (30 pts), loops 7 (10 pts), boolean chains 9, ternaries 3 (8 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":"lightrag/chunker/paragraph_semantic.py"},"region":{"startLine":1272}}}],"partialFingerprints":{"codehealthFindingId/v1":"86c7621a5f04432a4b0ea04cd93feb33667a2f17149b58c8e74b56e5c82c9be9"}},{"ruleId":"D2","level":"warning","message":{"text":"token_size.chunking_by_token_size (cognitive 56): token_size.chunking_by_token_size has cognitive complexity 56 (threshold 15). Drivers by points: if/else 11 (30 pts), loops 6 (17 pts), ternaries 2 (9 pts) (nesting depth added 37). 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":"lightrag/chunker/token_size.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc239d2773c9d2c765156e7655648caee23660e8bd5b4a0d6a5de8f4418cf6ae"}},{"ruleId":"D2","level":"warning","message":{"text":"MigrationTool.get_default_caches_redis (cognitive 56): MigrationTool.get_default_caches_redis has cognitive complexity 56 (threshold 15). Drivers by points: if/else 4 (17 pts), loops 5 (16 pts), ternaries 2 (13 pts), error handling 2 (10 pts) (nesting depth added 43). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/tools/migrate_llm_cache.py"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a3200ce8720348f51bcb6eae24f86d1c987200ac138105ab0e22144b419f77c"}},{"ruleId":"D2","level":"warning","message":{"text":"document_routes.background_delete_documents (cognitive 55): document_routes.background_delete_documents has cognitive complexity 55 (threshold 15). Drivers by points: if/else 13 (30 pts), error handling 6 (14 pts), loops 2 (5 pts), boolean chains 4, ternaries 1 (2 pts) (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":"lightrag/api/routers/document_routes.py"},"region":{"startLine":4150}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e10fd9ebe77d036c272a4a8d12943aa8c91d0aef61ae6955a316e3c1bf23b4a"}},{"ruleId":"D2","level":"warning","message":{"text":"graph.useGraphStoreBase (cognitive 55): graph.useGraphStoreBase has cognitive complexity 55 (threshold 15). Drivers by points: if/else 18 (34 pts), ternaries 5 (8 pts), boolean chains 7, error handling 4 (6 pts) (nesting depth added 21). None of this is in the body itself: all 55 points belong to 7 function literals inside it that branch (lines 327, 441, 392, \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":"lightrag_webui/src/stores/graph.ts"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"43d37ba20728aa542e84bd2b4ed0e331b2db816659fd4e2088b4f2abc709c577"}},{"ruleId":"D2","level":"warning","message":{"text":"FaissVectorDBStorage._flush_pending_locked (cognitive 54): FaissVectorDBStorage._flush_pending_locked has cognitive complexity 54 (threshold 15). Drivers by points: if/else 18 (34 pts), loops 9 (15 pts), boolean chains 3, error handling 1 (2 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":"lightrag/kg/faiss_impl.py"},"region":{"startLine":907}}}],"partialFingerprints":{"codehealthFindingId/v1":"0835abbe7a56256205d395db06a0e7c3ffd54f1f533d922095290519537e7dca"}},{"ruleId":"D2","level":"warning","message":{"text":"writer.write_sidecar (cognitive 54): writer.write_sidecar has cognitive complexity 54 (threshold 15). Drivers by points: if/else 18 (31 pts), loops 7 (13 pts), boolean chains 8, error handling 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":"lightrag/sidecar/writer.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"265726cafc0007f273b278ad5855231584f0490c4e27f94143b09b53f9a56718"}},{"ruleId":"D2","level":"warning","message":{"text":"NanoVectorDBStorage._flush_pending_locked (cognitive 53): NanoVectorDBStorage._flush_pending_locked has cognitive complexity 53 (threshold 15). Drivers by points: if/else 18 (39 pts), loops 6 (10 pts), boolean chains 2, error handling 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":"lightrag/kg/nano_vector_db_impl.py"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3d3334271e4eedd45f6e1d50f226cffe243e1185d0cb8439cca9142499b396a"}},{"ruleId":"D2","level":"warning","message":{"text":"MongoGraphStorage._dedupe_legacy_edges (cognitive 52): MongoGraphStorage._dedupe_legacy_edges has cognitive complexity 52 (threshold 15). Drivers by points: if/else 15 (36 pts), ternaries 3 (9 pts), loops 3 (5 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":"lightrag/kg/mongo_impl.py"},"region":{"startLine":1997}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc6b3b3ad0948163a6e4b9880c5c3ce9bd5cd2cd9eb9851b8c09003d762adaef"}},{"ruleId":"D2","level":"warning","message":{"text":"RedisDocStatusStorage.get_docs_paginated (cognitive 52): RedisDocStatusStorage.get_docs_paginated has cognitive complexity 52 (threshold 15). Drivers by points: if/else 13 (38 pts), loops 3 (7 pts), error handling 2 (6 pts), boolean chains 1 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":1681}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ddea51433813da732c1f1d29e8dc7549a5f022f4051ab5710b3198717295001"}},{"ruleId":"D2","level":"warning","message":{"text":"operate._rebuild_single_entity (cognitive 52): operate._rebuild_single_entity has cognitive complexity 52 (threshold 15). Drivers by points: if/else 25 (43 pts), boolean chains 5, loops 3 (4 pts) (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":"lightrag/operate.py"},"region":{"startLine":1796}}}],"partialFingerprints":{"codehealthFindingId/v1":"10d19f00f635fd089f76b8bca8216caf5a73ec25ab0dc673ceb475ace63470ad"}},{"ruleId":"D2","level":"warning","message":{"text":"operate._find_related_text_unit_from_relations (cognitive 52): operate._find_related_text_unit_from_relations has cognitive complexity 52 (threshold 15). Drivers by points: if/else 21 (39 pts), loops 6 (8 pts), error handling 1 (3 pts), boolean chains 2 (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":"lightrag/operate.py"},"region":{"startLine":6772}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0db058ea9f39dce2e714983ed4cde114483b3e3205c4d579d22029928efdd00"}},{"ruleId":"D2","level":"warning","message":{"text":"NumberingResolver.get_label (cognitive 52): NumberingResolver.get_label has cognitive complexity 52 (threshold 15). Drivers by points: if/else 26 (43 pts), boolean chains 6, loops 2, 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":"lightrag/parser/docx/numbering_resolver.py"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fd1baddd63221e3b73bffdcb2d99f54be33b1f0022716b7e14e40c274733a01"}},{"ruleId":"D2","level":"warning","message":{"text":"extract.extract_markdown (cognitive 52): extract.extract_markdown has cognitive complexity 52 (threshold 15). Drivers by points: if/else 14 (40 pts), loops 3 (8 pts), boolean chains 4 (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":"lightrag/parser/markdown/extract.py"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"acf26b1643c7be5fa7ef951124d80adc5a438afa179f7b1e131a1d05098f577f"}},{"ruleId":"D2","level":"warning","message":{"text":"document_routes.run_scanning_process (cognitive 50): document_routes.run_scanning_process has cognitive complexity 50 (threshold 15). Drivers by points: if/else 18 (29 pts), error handling 6 (11 pts), boolean chains 6, loops 2, ternaries 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":"lightrag/api/routers/document_routes.py"},"region":{"startLine":3674}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaa338ea39495317de7c20b2575c37f25fe468552eb17edac8e37a9f5ccc14e6"}},{"ruleId":"D2","level":"warning","message":{"text":"heading_flow.assign_levels_by_size (cognitive 50): heading_flow.assign_levels_by_size has cognitive complexity 50 (threshold 15). Drivers by points: if/else 15 (26 pts), loops 6 (11 pts), ternaries 3 (7 pts), boolean chains 6 (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":"lightrag/parser/docx/smart_heading/heading_flow.py"},"region":{"startLine":1265}}}],"partialFingerprints":{"codehealthFindingId/v1":"4899285235aee807b29f33b3c5a68872d8252d402c4c2a966cfa38ffaf9c7683"}},{"ruleId":"D2","level":"warning","message":{"text":"_StorageMigrationMixin._migrate_entity_relation_data (cognitive 50): _StorageMigrationMixin._migrate_entity_relation_data has cognitive complexity 50 (threshold 15). Drivers by points: if/else 10 (30 pts), loops 8 (15 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/storage_migrations.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"94cae7ecac48e4540c3582c45dfb12e334d9368d16ec20905f3859c8d8fb7548"}},{"ruleId":"D2","level":"warning","message":{"text":"config.parse_args (cognitive 49): config.parse_args has cognitive complexity 49 (threshold 15). Drivers by points: if/else 21 (35 pts), boolean chains 8, error handling 2 (4 pts), loops 1, ternaries 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":"lightrag/api/config.py"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b48a6840607a5709f5f145c4fde15a667f7c1285342215aac0f988ad246649b"}},{"ruleId":"D2","level":"warning","message":{"text":"_PipelineMixin._resolve_source_file_for_parser (cognitive 49): _PipelineMixin._resolve_source_file_for_parser has cognitive complexity 49 (threshold 15). Drivers by points: if/else 14 (32 pts), loops 5 (12 pts), boolean chains 5 (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":"lightrag/pipeline.py"},"region":{"startLine":6722}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae2a4286a9b5777cbc84120e1acb208585778e2f9bacbeaeb4b4d75e747c7d12"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.enforce_chunk_token_limit_before_embedding (cognitive 49): utils.enforce_chunk_token_limit_before_embedding has cognitive complexity 49 (threshold 15). Drivers by points: if/else 14 (36 pts), boolean chains 6, loops 3 (4 pts), error handling 1 (3 pts) (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":"lightrag/utils.py"},"region":{"startLine":4390}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbc99c0772a8bac36b5416b8dd9fa7db871d1bccf29287d2764983441a68cc24"}},{"ruleId":"D2","level":"warning","message":{"text":"title_block.judge_title_block (cognitive 48): title_block.judge_title_block has cognitive complexity 48 (threshold 15). Drivers by points: if/else 21 (35 pts), ternaries 3 (8 pts), loops 2 (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":"lightrag/parser/docx/smart_heading/title_block.py"},"region":{"startLine":1485}}}],"partialFingerprints":{"codehealthFindingId/v1":"829f4b3eb6afb1fe16b045f97b65f6c794967ad2284c53227e196ce084436e17"}},{"ruleId":"D2","level":"warning","message":{"text":"Neo4JStorage._robust_fallback (cognitive 47): Neo4JStorage._robust_fallback has cognitive complexity 47 (threshold 15). Drivers by points: if/else 14 (41 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 28). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":1527}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a26259d27177f2a98af1e528b0644e07d952aefe8a41ebd7b189ed7fac897dc"}},{"ruleId":"D2","level":"warning","message":{"text":"PostgreSQLDB.configure_age_extension (cognitive 46): PostgreSQLDB.configure_age_extension has cognitive complexity 46 (threshold 15). Drivers by points: if/else 18 (33 pts), boolean chains 5, error handling 3 (4 pts), ternaries 2 (4 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/postgres_impl.py"},"region":{"startLine":1129}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e38843f77653365d3283831335f28f6268fb454831a9a3fc8c8f589f64ac4c0"}},{"ruleId":"D2","level":"warning","message":{"text":"LightRAG.__post_init__ (cognitive 46): LightRAG.__post_init__ has cognitive complexity 46 (threshold 15). Drivers by points: if/else 33 (39 pts), boolean chains 4, loops 3 (nesting depth added 6). 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":"lightrag/lightrag.py"},"region":{"startLine":1653}}}],"partialFingerprints":{"codehealthFindingId/v1":"48a63759a54cffae59a763ec1e3520dd501be9a376c85e480d1db0417c0b31f3"}},{"ruleId":"D2","level":"warning","message":{"text":"anthropic.anthropic_complete_if_cache (cognitive 46): anthropic.anthropic_complete_if_cache has cognitive complexity 46 (threshold 15). Drivers by points: if/else 15 (20 pts), error handling 11 (17 pts), boolean chains 4, ternaries 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":"lightrag/llm/anthropic.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"403602a59324f98109b500517cd838748e096a98fe94d7bdd8e8424316d7c9c0"}},{"ruleId":"D2","level":"warning","message":{"text":"heading_flow.backfill_top_level (cognitive 46): heading_flow.backfill_top_level has cognitive complexity 46 (threshold 15). Drivers by points: if/else 20 (36 pts), boolean chains 6, loops 4 (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":"lightrag/parser/docx/smart_heading/heading_flow.py"},"region":{"startLine":1381}}}],"partialFingerprints":{"codehealthFindingId/v1":"7727f4cce5e35376ad0cfb21b1837101a61234955c346193ffde8a83ee8d062c"}},{"ruleId":"D2","level":"warning","message":{"text":"heading_flow.merge_split_headings (cognitive 46): heading_flow.merge_split_headings has cognitive complexity 46 (threshold 15). Drivers by points: if/else 12 (34 pts), boolean chains 7, loops 2 (3 pts), ternaries 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":"lightrag/parser/docx/smart_heading/heading_flow.py"},"region":{"startLine":1872}}}],"partialFingerprints":{"codehealthFindingId/v1":"844e0262be81eb0cb6c0857f2fefdb3cd63d07b8f6030c36a5213fbb03ee4766"}},{"ruleId":"D2","level":"warning","message":{"text":"rerank.generic_rerank_api (cognitive 46): rerank.generic_rerank_api has cognitive complexity 46 (threshold 15). Drivers by points: if/else 27 (41 pts), boolean chains 4, 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":"lightrag/rerank.py"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a92fd602b615e1d348bd9f10cf087f117f9eee583cfdbd2aa1589548a3db6ff"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageList.MessageList (cognitive 46): MessageList.MessageList has cognitive complexity 46 (threshold 15). Drivers by points: if/else 20 (22 pts), boolean chains 12, ternaries 7 (11 pts), error handling 1 (nesting depth added 6). Most of this is not in the body itself: 2 of the 46 points are its own statements and the rest belongs to 11 function literals inside it that branch (lines 212, 133, 308, \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":"lightrag_webui/src/features/retrieval/MessageList.tsx"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9348212c3a9264aba99baa297fa097b867a26ceb36e47c825d9ea3d58313fe6"}},{"ruleId":"D2","level":"warning","message":{"text":"NanoVectorDBStorage.get_vectors_by_ids (cognitive 45): NanoVectorDBStorage.get_vectors_by_ids has cognitive complexity 45 (threshold 15). Drivers by points: if/else 16 (36 pts), loops 4 (7 pts), boolean chains 2 (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":"lightrag/kg/nano_vector_db_impl.py"},"region":{"startLine":1383}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf52808beff1c75b9d0c4b1468cf05705c432be38188486f60e470f560c86366"}},{"ruleId":"D2","level":"warning","message":{"text":"bedrock.bedrock_complete_if_cache (cognitive 45): bedrock.bedrock_complete_if_cache has cognitive complexity 45 (threshold 15). Drivers by points: if/else 21 (26 pts), boolean chains 10, loops 4 (5 pts), ternaries 1 (3 pts), error handling 1 (nesting depth added 8). 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":"lightrag/llm/bedrock.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c7eb05288c0aeef333c6acb16098b895fd9fafbf0a418d9bee3c6f89b6a2137"}},{"ruleId":"D2","level":"warning","message":{"text":"MinerUIRBuilder._build_ir_table (cognitive 45): MinerUIRBuilder._build_ir_table has cognitive complexity 45 (threshold 15). Drivers by points: if/else 14 (24 pts), boolean chains 15, error handling 1 (3 pts), ternaries 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":"lightrag/parser/external/mineru/ir_builder.py"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eb4cdc07b2eec82078001a0908929ef001db0cd02f0fa2455eb9a561dbe5e36"}},{"ruleId":"D2","level":"warning","message":{"text":"UploadDocumentsDialog.UploadDocumentsDialog (cognitive 45): UploadDocumentsDialog.UploadDocumentsDialog has cognitive complexity 45 (threshold 15). Drivers by points: if/else 19 (32 pts), boolean chains 8, error handling 2 (3 pts), loops 1, ternaries 1 (nesting depth added 14). Most of this is not in the body itself: 1 of the 45 points is its own statement and the rest belongs to 6 function literals inside it that branch (lines 100, 247, 56, \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":"lightrag_webui/src/components/documents/UploadDocumentsDialog.tsx"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"83c66e7b4edaa60294e15ab3e55b1fd2d2d968016eb3a817d1845cb7b952ccd3"}},{"ruleId":"D2","level":"warning","message":{"text":"GraphLabels.GraphLabels (cognitive 45): GraphLabels.GraphLabels has cognitive complexity 45 (threshold 15). Drivers by points: if/else 24 (26 pts), boolean chains 9, error handling 5 (8 pts), ternaries 2 (nesting depth added 5). Most of this is not in the body itself: 6 of the 45 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 156, 124, 285, \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":"lightrag_webui/src/components/graph/GraphLabels.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e7fa621d247cb672e45fbc53a4941420b8fff70a92c6a82f0653fa704bedd86"}},{"ruleId":"D2","level":"warning","message":{"text":"PGGraphStorage.get_knowledge_graph (cognitive 44): PGGraphStorage.get_knowledge_graph has cognitive complexity 44 (threshold 15). Drivers by points: if/else 12 (34 pts), boolean chains 5, loops 1 (3 pts), ternaries 1 (2 pts) (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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":9463}}}],"partialFingerprints":{"codehealthFindingId/v1":"8413985426bf6f708aaae1b8f061dc044d6c94adc3ab2371f95103ef1ba1cac7"}},{"ruleId":"D2","level":"warning","message":{"text":"LightRAG._prune_doc_recovery_anchors (cognitive 44): LightRAG._prune_doc_recovery_anchors has cognitive complexity 44 (threshold 15). Drivers by points: if/else 8 (22 pts), boolean chains 8, ternaries 2 (8 pts), loops 2 (6 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":"lightrag/lightrag.py"},"region":{"startLine":3776}}}],"partialFingerprints":{"codehealthFindingId/v1":"e45013bf4fc80fc0ede5f057164eba4d57a6599173558ad506030e71be841423"}},{"ruleId":"D2","level":"warning","message":{"text":"title_block.detect_imprint_regions (cognitive 44): title_block.detect_imprint_regions has cognitive complexity 44 (threshold 15). Drivers by points: if/else 11 (30 pts), loops 4 (8 pts), boolean chains 6 (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":"lightrag/parser/docx/smart_heading/title_block.py"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ddb0243134d8090ccba48d80e84ea3244faff78262bde09d890d783e4b3baec"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.normalize_extracted_info (cognitive 44): utils.normalize_extracted_info has cognitive complexity 44 (threshold 15). Drivers by points: if/else 17 (32 pts), boolean chains 11, ternaries 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":"lightrag/utils.py"},"region":{"startLine":6043}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b4e81ff51dba87325042d0c37e58d08610e77c9c96e1992591b3c1f3af0c319"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatMessage.ChatMessage (cognitive 44): ChatMessage.ChatMessage has cognitive complexity 44 (threshold 15). Drivers by points: boolean chains 29, ternaries 7 (9 pts), if/else 4 (5 pts), error handling 1 (nesting depth added 3). Of this number, 37 points are the body\u0027s own statements and 7 belong to 5 function literals inside it that branch. 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":"lightrag_webui/src/components/retrieval/ChatMessage.tsx"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"f95c29d2da95329c6084faaec84d77b90c55503b0ce9eab51c5ca349cd4bd6f1"}},{"ruleId":"D2","level":"warning","message":{"text":"recursive_character._split_text_with_regex_spans (cognitive 43): recursive_character._split_text_with_regex_spans has cognitive complexity 43 (threshold 15). Drivers by points: if/else 14 (29 pts), loops 3 (8 pts), ternaries 2 (6 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":"lightrag/chunker/recursive_character.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"6da3c82bb972ec704f9028670cea6f5f722277f2a59d4424c4ded7bce96e3d9b"}},{"ruleId":"D2","level":"warning","message":{"text":"ollama._ollama_model_if_cache (cognitive 43): ollama._ollama_model_if_cache has cognitive complexity 43 (threshold 15). Drivers by points: if/else 22 (33 pts), error handling 3 (5 pts), boolean chains 4, 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":"lightrag/llm/ollama.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"766f885b02cf7c18509c18af632e260b5817d1061b06dfa410345397ebf1a628"}},{"ruleId":"D2","level":"warning","message":{"text":"ir_builder._build_ir_drawing (cognitive 43): ir_builder._build_ir_drawing has cognitive complexity 43 (threshold 15). Drivers by points: if/else 19 (26 pts), boolean chains 13, ternaries 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":"lightrag/parser/external/docling/ir_builder.py"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"87e545d07d77304750463fe1e083b313d8bb7a52f1f5bf1c2a972a2c041a3688"}},{"ruleId":"D2","level":"warning","message":{"text":"chunk_tracking_repair._accumulate_cached_attribution (cognitive 43): chunk_tracking_repair._accumulate_cached_attribution has cognitive complexity 43 (threshold 15). Drivers by points: if/else 7 (24 pts), loops 5 (14 pts), error handling 1 (4 pts), boolean chains 1 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/tools/chunk_tracking_repair.py"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"2441f2eb4f5e887219b999cd32883752c4b0bc7d2a527bdaa9f28fd8dec1d06f"}},{"ruleId":"D2","level":"warning","message":{"text":"kg_integrity_repair.audit_kg_integrity (cognitive 43): kg_integrity_repair.audit_kg_integrity has cognitive complexity 43 (threshold 15). Drivers by points: if/else 11 (20 pts), loops 10 (14 pts), boolean chains 9 (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":"lightrag/tools/kg_integrity_repair.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"9be3561c49d01ee377b6b79b87c5d9cc86505b1fa052723b5b97ba2e4c9ca77f"}},{"ruleId":"D2","level":"warning","message":{"text":"PGGraphStorage._bfs_subgraph (cognitive 42): PGGraphStorage._bfs_subgraph has cognitive complexity 42 (threshold 15). Drivers by points: if/else 12 (31 pts), boolean chains 6, loops 3 (5 pts) (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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":9247}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c7ba28811e16da7f113d3931f99351f09807789ed7010c33b0c6c16a864c19"}},{"ruleId":"D2","level":"warning","message":{"text":"RedisDocStatusStorage.get_doc_by_content_hash (cognitive 42): RedisDocStatusStorage.get_doc_by_content_hash has cognitive complexity 42 (threshold 15). Drivers by points: if/else 9 (26 pts), loops 3 (7 pts), error handling 1 (4 pts), ternaries 1 (4 pts), boolean chains 1 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":1973}}}],"partialFingerprints":{"codehealthFindingId/v1":"387f54e23abfe2dc6a6ffc8ad54f472b964a294dd9630b117c4433eb5480d8eb"}},{"ruleId":"D2","level":"warning","message":{"text":"RedisDocStatusStorage._publish_rebuilt_index (cognitive 42): RedisDocStatusStorage._publish_rebuilt_index has cognitive complexity 42 (threshold 15). Drivers by points: if/else 7 (26 pts), loops 5 (16 pts) (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":"lightrag/kg/redis_impl.py"},"region":{"startLine":2715}}}],"partialFingerprints":{"codehealthFindingId/v1":"f068b417f5f91294ee326acfc563d8e43f149f556f8c0b8aa357c95e20a68445"}},{"ruleId":"D2","level":"warning","message":{"text":"operate._handle_entity_relation_summary (cognitive 42): operate._handle_entity_relation_summary has cognitive complexity 42 (threshold 15). Drivers by points: if/else 13 (27 pts), loops 4 (7 pts), boolean chains 4, ternaries 1 (4 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":"lightrag/operate.py"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"482d83d0cba0f0a482bbb38e75af127164be48204d4848b7e0290e30db5ed140"}},{"ruleId":"D2","level":"warning","message":{"text":"DocumentManager.formatMetadata (cognitive 42): DocumentManager.formatMetadata has cognitive complexity 42 (threshold 15). Drivers by points: if/else 22 (33 pts), boolean chains 9 (nesting depth added 11). Of this number, 24 points are the body\u0027s own statements and 18 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":"lightrag_webui/src/features/DocumentManager.tsx"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdf5eb49af67de8931bf5fc16d1e58e1ca828f09edf4950290a7f029d5a93264"}},{"ruleId":"D2","level":"warning","message":{"text":"document_routes.delete_file_variants_by_file_path (cognitive 41): document_routes.delete_file_variants_by_file_path has cognitive complexity 41 (threshold 15). Drivers by points: if/else 8 (24 pts), error handling 4 (12 pts), loops 2 (3 pts), boolean chains 2 (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":"lightrag/api/routers/document_routes.py"},"region":{"startLine":2232}}}],"partialFingerprints":{"codehealthFindingId/v1":"20d805f1998a1cd96804d58671c5f5ae6d0f5c2493b7d4dc332394cc2ecdd749"}},{"ruleId":"D2","level":"warning","message":{"text":"heading_flow.nest_numbered_under_parent (cognitive 41): heading_flow.nest_numbered_under_parent has cognitive complexity 41 (threshold 15). Drivers by points: if/else 11 (29 pts), boolean chains 7, loops 3 (5 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":"lightrag/parser/docx/smart_heading/heading_flow.py"},"region":{"startLine":2537}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cf6dac6e63847d8173913a08952287aae3de62476d2cf8c6c9a71bdf65cd67e"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.is_gemini_retryable (cognitive 41): utils.is_gemini_retryable has cognitive complexity 41 (threshold 15). Drivers by points: if/else 21 (22 pts), boolean chains 19 (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":"lightrag/parser/docx/utils.py"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"b246b8b30622a06645e5bd48780c0e516790b7a91c5f314b948d44ff1d4f3c01"}},{"ruleId":"D2","level":"warning","message":{"text":"NumberingResolver._parse_numbering_xml (cognitive 40): NumberingResolver._parse_numbering_xml has cognitive complexity 40 (threshold 15). Drivers by points: if/else 8 (22 pts), ternaries 3 (9 pts), loops 4 (6 pts), boolean chains 2, error handling 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":"lightrag/parser/docx/numbering_resolver.py"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"2334c757273812e93e15d7750fbb5791afea8e86f79c35b062f52da6ebd5b3cf"}},{"ruleId":"D2","level":"warning","message":{"text":"_PipelineMixin._validate_and_fix_document_consistency (cognitive 40): _PipelineMixin._validate_and_fix_document_consistency has cognitive complexity 40 (threshold 15). Drivers by points: if/else 15 (22 pts), loops 6 (10 pts), boolean chains 3, error handling 1 (3 pts), ternaries 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":"lightrag/pipeline.py"},"region":{"startLine":2914}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f5e1240dae6731159ffa5884961d3432b411e665abf2490951a534fcf4657e0"}},{"ruleId":"D2","level":"warning","message":{"text":"chunk_tracking_repair.run (cognitive 40): chunk_tracking_repair.run has cognitive complexity 40 (threshold 15). Drivers by points: if/else 16 (25 pts), ternaries 4 (9 pts), boolean chains 4, error handling 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/tools/chunk_tracking_repair.py"},"region":{"startLine":1080}}}],"partialFingerprints":{"codehealthFindingId/v1":"3847811e89997b7e0b858584d0fce09d92c25b8e534fa757e48f12cb3106c69e"}},{"ruleId":"D2","level":"warning","message":{"text":"useQuerySession.useQuerySession.submitQuery (cognitive 40): useQuerySession.useQuerySession.submitQuery has cognitive complexity 40 (threshold 15). Drivers by points: if/else 28 (41 pts), boolean chains 10, error handling 3 (7 pts), loops 1, ternaries 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. This shape REPEATS in the file: one other method here (useQuerySession.useQuerySession.submitQuery::updateAssistantMessage) 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":"lightrag_webui/src/features/retrieval/useQuerySession.ts"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"a476a02b2a39e068514abaf5329e846ef402f11bbb9eda21e234395a68719bbe"}},{"ruleId":"D2","level":"warning","message":{"text":"rebuild_vdb.check_vdb_consistency (cognitive 39): rebuild_vdb.check_vdb_consistency has cognitive complexity 39 (threshold 15). Drivers by points: if/else 10 (24 pts), loops 7 (10 pts), boolean chains 5 (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":"lightrag/tools/rebuild_vdb.py"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d10822fbe7aaf09e4d7ea50c1c0dd725ec4bd1ae5a8e7d248a08ed3d1dce9d5"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.use_llm_func_with_cache (cognitive 39): utils.use_llm_func_with_cache has cognitive complexity 39 (threshold 15). Drivers by points: if/else 19 (33 pts), boolean chains 2, loops 1 (2 pts), error handling 1, ternaries 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":"lightrag/utils.py"},"region":{"startLine":5665}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eacc7ec82179533571e340c6f1387d72af627396e19b1773cdc024b7f3b3fd8"}},{"ruleId":"D2","level":"warning","message":{"text":"PostgreSQLDB.check_tables (cognitive 38): PostgreSQLDB.check_tables has cognitive complexity 38 (threshold 15). Drivers by points: error handling 19 (25 pts), if/else 7 (11 pts), 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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":2560}}}],"partialFingerprints":{"codehealthFindingId/v1":"b43af07f6024b6b2a65597fd40bbed0b3908997f9c1995300b8b5b2d43403e6c"}},{"ruleId":"D2","level":"warning","message":{"text":"shared_storage.finalize_share_data (cognitive 38): shared_storage.finalize_share_data has cognitive complexity 38 (threshold 15). Drivers by points: if/else 8 (21 pts), error handling 3 (8 pts), loops 2 (8 pts), boolean chains 1 (nesting depth added 24). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/shared_storage.py"},"region":{"startLine":4005}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee4df91be9385ceebe79ee08a9709bcc8c656d8b41c54bc18a8989ec59113999"}},{"ruleId":"D2","level":"warning","message":{"text":"LightRAG._rollback_one_custom_chunk_patch (cognitive 38): LightRAG._rollback_one_custom_chunk_patch has cognitive complexity 38 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 16, loops 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":"lightrag/lightrag.py"},"region":{"startLine":3520}}}],"partialFingerprints":{"codehealthFindingId/v1":"aff27405a5c3817c184c528d43bff5949dbb3dde5221dc07b7436dfd5b47e7a0"}},{"ruleId":"D2","level":"warning","message":{"text":"gemini.gemini_complete_if_cache (cognitive 38): gemini.gemini_complete_if_cache has cognitive complexity 38 (threshold 15). Drivers by points: if/else 21 (26 pts), boolean chains 10, ternaries 2 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/gemini.py"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4820cba3f4d4bc5d0f6fcf86b6831b85b56e342531ce4410e21b048cbcaf7ca"}},{"ruleId":"D2","level":"warning","message":{"text":"operate._find_related_text_unit_from_entities (cognitive 38): operate._find_related_text_unit_from_entities has cognitive complexity 38 (threshold 15). Drivers by points: if/else 16 (27 pts), loops 5 (6 pts), error handling 1 (3 pts), boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":6501}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9200223e20d80ba1c800c257752ccbdfc0fcafd5ed8e3c3fd78df3474bb0db2"}},{"ruleId":"D2","level":"warning","message":{"text":"MigrationTool.setup_storage (cognitive 38): MigrationTool.setup_storage has cognitive complexity 38 (threshold 15). Drivers by points: if/else 12 (17 pts), ternaries 7 (12 pts), loops 3 (6 pts), error handling 2, 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":"lightrag/tools/migrate_llm_cache.py"},"region":{"startLine":1006}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d0e82e73dff1d7c66ad7c8e09efcbd98d878e5a2dc8a3e989b95fd68517f2c0"}},{"ruleId":"D2","level":"warning","message":{"text":"utils_graph.aedit_entity (cognitive 38): utils_graph.aedit_entity has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (18 pts), error handling 4 (11 pts), ternaries 4 (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":"lightrag/utils_graph.py"},"region":{"startLine":1741}}}],"partialFingerprints":{"codehealthFindingId/v1":"c00e97a855030972e62ab953fa13cb059cc14299bf3615f378e15b50c5b8f830"}},{"ruleId":"D2","level":"warning","message":{"text":"state.useBackendStateStoreBase (cognitive 38): state.useBackendStateStoreBase has cognitive complexity 38 (threshold 15). Drivers by points: if/else 13 (25 pts), ternaries 3 (8 pts), boolean chains 5 (nesting depth added 17). None of this is in the body itself: all 38 points belong to 5 function literals inside it that branch (lines 88, 163, 199, \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":"lightrag_webui/src/stores/state.ts"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff546095c9d405f414d02ada5161ad3049fdd93e4addb0dd8dc574e30b409123"}},{"ruleId":"D2","level":"warning","message":{"text":"ui_customization._completes_svg_start_tag (cognitive 37): ui_customization._completes_svg_start_tag has cognitive complexity 37 (threshold 15). Drivers by points: if/else 13 (22 pts), loops 5 (9 pts), boolean chains 6 (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":"lightrag/api/ui_customization.py"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"be8fb11326ecd6edf517f0b6608ac2cbaa1522589d97348944d53d023fa9366c"}},{"ruleId":"D2","level":"warning","message":{"text":"FaissVectorDBStorage.get_vectors_by_ids (cognitive 37): FaissVectorDBStorage.get_vectors_by_ids has cognitive complexity 37 (threshold 15). Drivers by points: if/else 14 (31 pts), loops 3 (5 pts), boolean chains 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":"lightrag/kg/faiss_impl.py"},"region":{"startLine":1774}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a821e32789de4c8bf7bfb6c36fb18d892e3b75c304a0a45ff66ebb08fb1450b"}},{"ruleId":"D2","level":"warning","message":{"text":"ir_builder._precompute_consumed_refs (cognitive 37): ir_builder._precompute_consumed_refs has cognitive complexity 37 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 9 (15 pts), boolean chains 4 (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":"lightrag/parser/external/docling/ir_builder.py"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"78f88993aa2bcd9131352487e2435e914b6d267bce283de35bc066eb15dcbeec"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.safe_vdb_operation_with_exception (cognitive 37): utils.safe_vdb_operation_with_exception has cognitive complexity 37 (threshold 15). Drivers by points: if/else 9 (21 pts), boolean chains 8, error handling 2 (4 pts), ternaries 1 (3 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":"lightrag/utils.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"1634fe444bf9d57c1607e4686f9f1ae916347abbcb2e3ddaefb222a4056fc3e5"}},{"ruleId":"D2","level":"warning","message":{"text":"utils_graph.aedit_relation (cognitive 37): utils_graph.aedit_relation has cognitive complexity 37 (threshold 15). Drivers by points: if/else 13 (27 pts), boolean chains 4, error handling 3, ternaries 2 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils_graph.py"},"region":{"startLine":2044}}}],"partialFingerprints":{"codehealthFindingId/v1":"70f83c89116e488b0ee58d2929fff939c8413b6dbfa0810867ee52a4b9cd1068"}},{"ruleId":"D2","level":"warning","message":{"text":"Neo4JStorage.initialize (cognitive 36): Neo4JStorage.initialize has cognitive complexity 36 (threshold 15). Drivers by points: if/else 5 (21 pts), error handling 5 (13 pts), boolean chains 1, loops 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":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"6babfd0aecabb109a5fe1d46ec7a2a7e0cf2d5721e053f5d4a4233613c4d3173"}},{"ruleId":"D2","level":"warning","message":{"text":"Neo4JStorage.get_knowledge_graph (cognitive 36): Neo4JStorage.get_knowledge_graph has cognitive complexity 36 (threshold 15). Drivers by points: if/else 17 (30 pts), loops 2 (4 pts), boolean chains 1, error handling 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":1299}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a77a3bd9556df7242534af696fc4a908975dd879c59a19d45cad238dbf338b"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenSearchGraphStorage._bfs_subgraph_ppl (cognitive 36): OpenSearchGraphStorage._bfs_subgraph_ppl has cognitive complexity 36 (threshold 15). Drivers by points: if/else 13 (22 pts), loops 5 (8 pts), ternaries 2 (3 pts), error handling 2, 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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":5558}}}],"partialFingerprints":{"codehealthFindingId/v1":"125181d988c0742345a14e20aed9330ba1b682e84851ef31b7f42c4a3891f397"}},{"ruleId":"D2","level":"warning","message":{"text":"PGVectorStorage._flush_pending_vector_ops (cognitive 36): PGVectorStorage._flush_pending_vector_ops has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 7, loops 4 (5 pts), error handling 2 (3 pts), ternaries 2 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/postgres_impl.py"},"region":{"startLine":5002}}}],"partialFingerprints":{"codehealthFindingId/v1":"2021a464915359f7f384951a6e1691ef7058d5932133006a0f73c7edc90cb3b3"}},{"ruleId":"D2","level":"warning","message":{"text":"PGGraphStorage.get_edges_batch (cognitive 36): PGGraphStorage.get_edges_batch has cognitive complexity 36 (threshold 15). Drivers by points: if/else 6 (17 pts), error handling 2 (10 pts), loops 4 (6 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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":9028}}}],"partialFingerprints":{"codehealthFindingId/v1":"a220d474149e1ee9ff2a494b5a692fadfb464c8bcde3ebcb2f253cd95a3eecac"}},{"ruleId":"D2","level":"warning","message":{"text":"features.parse_styles_attributes (cognitive 36): features.parse_styles_attributes has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (26 pts), ternaries 2 (5 pts), error handling 2, loops 2, boolean chains 1 (nesting depth added 17). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/parser/docx/smart_heading/features.py"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"e662c56ee650ec5552f3c2ccb96df27b569624b4d92dcd46645b10cea103b22b"}},{"ruleId":"D2","level":"warning","message":{"text":"RebuildTool.run (cognitive 36): RebuildTool.run has cognitive complexity 36 (threshold 15). Drivers by points: if/else 13 (23 pts), error handling 4 (6 pts), ternaries 2 (4 pts), loops 2, 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":"lightrag/tools/rebuild_vdb.py"},"region":{"startLine":1103}}}],"partialFingerprints":{"codehealthFindingId/v1":"602485112e40a0f5f354556411487fe0db69723932f2fbb2b36fd1bb32f1a275"}},{"ruleId":"D2","level":"warning","message":{"text":"LoginPage.LoginPage (cognitive 36): LoginPage.LoginPage has cognitive complexity 36 (threshold 15). Drivers by points: boolean chains 18, if/else 12 (14 pts), error handling 2, ternaries 2 (nesting depth added 2). Most of this is not in the body itself: 10 of the 36 points are its own statements and the rest belongs to 2 function items inside it that branch (a function literal at line 99, handleSubmit). 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":"lightrag_webui/src/features/LoginPage.tsx"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"70015e7ace3666eefb5d2928d0cc31766744f8a794ce3ab3987e2b9cb523a544"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryComposer.QueryComposer (cognitive 36): QueryComposer.QueryComposer has cognitive complexity 36 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 12, ternaries 6 (10 pts) (nesting depth added 5). Most of this is not in the body itself: 11 of the 36 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 111, 90, 131, \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":"lightrag_webui/src/features/retrieval/QueryComposer.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"48da14b51732c22d4b9f0419b44eca326229921beea8ab7ef22ab080b7b88cd1"}},{"ruleId":"D2","level":"warning","message":{"text":"NanoVectorDBStorage.get_by_ids (cognitive 35): NanoVectorDBStorage.get_by_ids has cognitive complexity 35 (threshold 15). Drivers by points: if/else 13 (30 pts), loops 3 (5 pts) (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":"lightrag/kg/nano_vector_db_impl.py"},"region":{"startLine":1316}}}],"partialFingerprints":{"codehealthFindingId/v1":"345b0f2f7de8ee119304d84e49247c5a477550aadc8e9bd1046ae015d0071af8"}},{"ruleId":"D2","level":"warning","message":{"text":"PGVectorStorage.get_vectors_by_ids (cognitive 35): PGVectorStorage.get_vectors_by_ids has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (23 pts), error handling 3 (5 pts), loops 3 (4 pts), boolean chains 3 (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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":5613}}}],"partialFingerprints":{"codehealthFindingId/v1":"346947dcb02edda216caaca67f8338564a7d508c514d2f93bc952ae16ddbda22"}},{"ruleId":"D2","level":"warning","message":{"text":"LightRAG._purge_kg_contributions (cognitive 35): LightRAG._purge_kg_contributions has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 7, ternaries 3 (7 pts), error handling 2 (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":"lightrag/lightrag.py"},"region":{"startLine":6099}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab5b4a5ca857203758e9bccfbb60754a746b6e6373dce057e61bb170e3cfc9d"}},{"ruleId":"D2","level":"warning","message":{"text":"operate._process_extraction_result (cognitive 35): operate._process_extraction_result has cognitive complexity 35 (threshold 15). Drivers by points: if/else 13 (26 pts), loops 4 (7 pts), boolean chains 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":"lightrag/operate.py"},"region":{"startLine":1544}}}],"partialFingerprints":{"codehealthFindingId/v1":"56e07cf3b8a4e307f398ba1a113220b971c23d01c4b1627119a5603f6616e8d0"}},{"ruleId":"D2","level":"warning","message":{"text":"operate.kg_query (cognitive 35): operate.kg_query has cognitive complexity 35 (threshold 15). Drivers by points: if/else 17 (20 pts), boolean chains 8, ternaries 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, 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":"lightrag/operate.py"},"region":{"startLine":4756}}}],"partialFingerprints":{"codehealthFindingId/v1":"48925a97629fbac0d671d6a4c7519df1606f8ad39ecb73a3a2ec8e4fa16974bb"}},{"ruleId":"D2","level":"warning","message":{"text":"drawing_image_extractor.extract_vml_image_placeholder_from_element (cognitive 35): drawing_image_extractor.extract_vml_image_placeholder_from_element has cognitive complexity 35 (threshold 15). Drivers by points: if/else 9 (31 pts), boolean chains 2, ternaries 2 (nesting depth added 22). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/parser/docx/drawing_image_extractor.py"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ff7d72d5fc84e98816d1616bb2fcba9dce3ae8822b46f79bcb14adf10258c64"}},{"ruleId":"D2","level":"warning","message":{"text":"QdrantVectorDBStorage.get_vectors_by_ids (cognitive 34): QdrantVectorDBStorage.get_vectors_by_ids has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (24 pts), loops 3 (4 pts), boolean chains 3, error handling 2 (3 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/qdrant_impl.py"},"region":{"startLine":1248}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9bab2f2f939da98821d9ca4a52addfe625dbead98d6f6385bfbb69c49814381"}},{"ruleId":"D2","level":"warning","message":{"text":"operate.extract_entities (cognitive 34): operate.extract_entities has cognitive complexity 34 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 4, loops 3 (4 pts), ternaries 2 (4 pts), error handling 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":"lightrag/operate.py"},"region":{"startLine":3993}}}],"partialFingerprints":{"codehealthFindingId/v1":"32bfff633684eeddb8c87bc63107e4fb92abd4503df9f3db8eff198e8ba8f636"}},{"ruleId":"D2","level":"warning","message":{"text":"drawing_image_extractor.extract_drawing_placeholder_from_element (cognitive 34): drawing_image_extractor.extract_drawing_placeholder_from_element has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (30 pts), boolean chains 2, ternaries 2 (nesting depth added 22). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/parser/docx/drawing_image_extractor.py"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ffac8352ef177e9583b3632aa2772fef784b6154305315737ff89babca02ae0"}},{"ruleId":"D2","level":"warning","message":{"text":"param_schema.parse_chunk_params (cognitive 34): param_schema.parse_chunk_params has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15 (31 pts), boolean chains 2, 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":"lightrag/parser/param_schema.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"c800fe4cf83690978d34220cc87d88aa41eed9c807174d281b6af8cece4c2f8d"}},{"ruleId":"D2","level":"warning","message":{"text":"splitSettingsStorage.runSettingsStorageSplitMigration (cognitive 34): splitSettingsStorage.runSettingsStorageSplitMigration has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (23 pts), error handling 3 (5 pts), boolean chains 4, ternaries 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":"lightrag_webui/src/migrations/splitSettingsStorage.ts"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"0250ef0d525d799f1750223efa2a15d282c28d6c4e417b0ebaf390cc0babf194"}},{"ruleId":"D2","level":"warning","message":{"text":"recursive_character._merge_splits_with_spans (cognitive 33): recursive_character._merge_splits_with_spans has cognitive complexity 33 (threshold 15). Drivers by points: if/else 5 (13 pts), ternaries 4 (13 pts), loops 2 (5 pts), boolean chains 2 (nesting depth added 20). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/chunker/recursive_character.py"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b9ec3a8c77c5e17bd9bd570f10c0eaf2834a4304fa5fb684acc48e6ede90406"}},{"ruleId":"D2","level":"warning","message":{"text":"param_schema.parse_engine_params (cognitive 33): param_schema.parse_engine_params has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (29 pts), boolean chains 2, loops 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/parser/param_schema.py"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea857e6753b08c0095b25aad3a13e2d406994a0c514ce48bda6a9ede1c270558"}},{"ruleId":"D2","level":"warning","message":{"text":"utils_api.display_splash_screen (cognitive 32): utils_api.display_splash_screen has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (18 pts), ternaries 8 (10 pts), boolean chains 4 (nesting depth added 6). 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":"lightrag/api/utils_api.py"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e05ac80b256dd7137801861d28c409169e42a48949eee6ed43441c0a257e21c"}},{"ruleId":"D2","level":"warning","message":{"text":"MilvusVectorDBStorage._check_vector_dimension (cognitive 32): MilvusVectorDBStorage._check_vector_dimension has cognitive complexity 32 (threshold 15). Drivers by points: if/else 6 (17 pts), ternaries 2 (8 pts), error handling 1 (4 pts), boolean chains 2, loops 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/milvus_impl.py"},"region":{"startLine":1455}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0a50e408ebaa3bcecc367a860c898d47f4d2173fbb665d0f88e6918952436f1"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenSearchGraphStorage._bfs_subgraph (cognitive 32): OpenSearchGraphStorage._bfs_subgraph has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 5 (10 pts), boolean chains 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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":5726}}}],"partialFingerprints":{"codehealthFindingId/v1":"25142013a8ba45f516d3ab37f63c23d032c49d3353c7d512b8362233b3fe56a8"}},{"ruleId":"D2","level":"warning","message":{"text":"PGKVStorage.upsert (cognitive 32): PGKVStorage.upsert has cognitive complexity 32 (threshold 15). Drivers by points: loops 8 (16 pts), if/else 6 (9 pts), boolean chains 4, ternaries 1 (3 pts) (nesting depth added 13). 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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":3769}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ba962f08ec746aa7b032b7fcd92e9cfd2ea78bc7cfb44c9e177c918f6760f39"}},{"ruleId":"D2","level":"warning","message":{"text":"RedisDocStatusStorage._do_rebuild (cognitive 32): RedisDocStatusStorage._do_rebuild has cognitive complexity 32 (threshold 15). Drivers by points: if/else 7 (21 pts), loops 3 (7 pts), error handling 1 (4 pts) (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":"lightrag/kg/redis_impl.py"},"region":{"startLine":2615}}}],"partialFingerprints":{"codehealthFindingId/v1":"1304fc1fb8f0ec6303a741a9bf3e48e5b326085e7b7451d7be723a8437457683"}},{"ruleId":"D2","level":"warning","message":{"text":"bedrock.bedrock_embed (cognitive 32): bedrock.bedrock_embed has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (18 pts), error handling 3 (6 pts), boolean chains 3, ternaries 1 (3 pts), loops 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/bedrock.py"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dc6d247e2ca13c32d80b84de8fb9583d58f10406acc9b621b6b3dbe648cd5d5"}},{"ruleId":"D2","level":"warning","message":{"text":"check_initialization.check_lightrag_setup (cognitive 32): check_initialization.check_lightrag_setup has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (19 pts), loops 4 (9 pts), boolean chains 2, error handling 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":"lightrag/tools/check_initialization.py"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"6167891fbcbe5c46a238d1807466c80fd3aff74a62b3ecc7d6f522becc6fbb54"}},{"ruleId":"D2","level":"warning","message":{"text":"CleanupTool.delete_query_caches_opensearch (cognitive 32): CleanupTool.delete_query_caches_opensearch has cognitive complexity 32 (threshold 15). Drivers by points: if/else 5 (22 pts), loops 4 (7 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/tools/clean_llm_query_cache.py"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdd96358de0866a0eaaed8dc8be5ae0d8e9c85a434f66f2cb97ea82d71a64eef"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.process_chunks_unified (cognitive 32): utils.process_chunks_unified has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (23 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":"lightrag/utils.py"},"region":{"startLine":7327}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7ebee0bd3f86fad7ddcd483ba33074c61c96f45a992de24ee179c8b9ee06be0"}},{"ruleId":"D2","level":"warning","message":{"text":"lightrag.queryTextStream (cognitive 32): lightrag.queryTextStream has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (26 pts), error handling 2 (5 pts), boolean chains 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":"lightrag_webui/src/api/lightrag.ts"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aa312e6645d954ffa7d95f04b6cafc03de50ee946aae35e3b0ae402c0c0ca9b"}},{"ruleId":"D2","level":"warning","message":{"text":"AsyncSelect.AsyncSelect (cognitive 32): AsyncSelect.AsyncSelect has cognitive complexity 32 (threshold 15). Drivers by points: boolean chains 15, ternaries 10 (13 pts), if/else 3, error handling 1 (nesting depth added 3). Most of this is not in the body itself: 14 of the 32 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 130, 107, 124, \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":"lightrag_webui/src/components/ui/AsyncSelect.tsx"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"952f36eb0d3421c9593a66da42d6a262734768c46c352a34a6bb795f1aff6c4a"}},{"ruleId":"D2","level":"warning","message":{"text":"MongoGraphStorage.get_knowledge_subgraph_in_out_bound_bfs (cognitive 31): MongoGraphStorage.get_knowledge_subgraph_in_out_bound_bfs has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 7 (9 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":"lightrag/kg/mongo_impl.py"},"region":{"startLine":3327}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b17d46723e94599786103f19687d39f1cdf4677ea535b5ff2d90eeb5307cfb7"}},{"ruleId":"D2","level":"warning","message":{"text":"openai_responses.openai_responses_complete_if_cache (cognitive 31): openai_responses.openai_responses_complete_if_cache has cognitive complexity 31 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 6, error handling 4, 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":"lightrag/llm/openai_responses.py"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e1e023b673e5854fbf532c9ac94dff175446e068b721f98251fd9a4ae23cb6"}},{"ruleId":"D2","level":"warning","message":{"text":"openai_responses._handle_non_streaming (cognitive 31): openai_responses._handle_non_streaming has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (15 pts), ternaries 6 (11 pts), boolean chains 5 (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":"lightrag/llm/openai_responses.py"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdcebe7164edbce01976098230392c5f3d9de1826dfa11b3d950b72bfe0177bb"}},{"ruleId":"D2","level":"warning","message":{"text":"operate._process_json_extraction_result (cognitive 31): operate._process_json_extraction_result has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14 (24 pts), error handling 2 (4 pts), loops 2, 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":"lightrag/operate.py"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfdd0b628bbc8d876d6ad178c59d2bb2cbe3b8346cabf7e215c6c6251c3a53e6"}},{"ruleId":"D2","level":"warning","message":{"text":"OMMLParser.parse_group_chr (cognitive 31): OMMLParser.parse_group_chr has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (22 pts), loops 4 (8 pts), boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/parser/docx/omml/ommlparser.py"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"c92a9b84d9121766d24c66f36f62b5af46c9803e828b9b90930faf95fc14cc9d"}},{"ruleId":"D2","level":"warning","message":{"text":"parse_document._assemble_blocks_legacy (cognitive 31): parse_document._assemble_blocks_legacy has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (30 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":"lightrag/parser/docx/parse_document.py"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"47fa2b5638d71a70445b00920e2e98d793ce15eb923e6c49ae3c69778da8ca75"}},{"ruleId":"D2","level":"warning","message":{"text":"_PipelineMixin._pipeline_feeder (cognitive 31): _PipelineMixin._pipeline_feeder has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (23 pts), error handling 2 (4 pts), loops 2 (4 pts) (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":"lightrag/pipeline.py"},"region":{"startLine":2508}}}],"partialFingerprints":{"codehealthFindingId/v1":"58527035aa47778b544e7b8d9846e61b854616f46242dabc7fb186e2fe1e61c4"}},{"ruleId":"D2","level":"warning","message":{"text":"PropertiesView.refineNodeProperties (cognitive 31): PropertiesView.refineNodeProperties has cognitive complexity 31 (threshold 15). Drivers by points: if/else 6 (17 pts), ternaries 2 (9 pts), error handling 1 (2 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 20). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/components/graph/PropertiesView.tsx"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ee202271027cfd763344084072d4a83d5bfdb967732bd33be3829adffd41d9"}},{"ruleId":"D2","level":"warning","message":{"text":"recursive_character._split_text_with_spans (cognitive 30): recursive_character._split_text_with_spans has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (19 pts), ternaries 3 (6 pts), loops 3 (4 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":"lightrag/chunker/recursive_character.py"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"68315c1441e84640250a1469d2656719545a0894cf02144ff6cdde038e82da6e"}},{"ruleId":"D2","level":"warning","message":{"text":"Neo4JStorage._create_fulltext_index (cognitive 30): Neo4JStorage._create_fulltext_index has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (16 pts), error handling 4 (8 pts), boolean chains 5, 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":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d59dbd92553d3b97c7d7d8338a1ca4dd37de4cf0e7f64a4761b8b5d1322c3f8"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenSearchGraphStorage._migrate_edges_to_canonical_id_if_needed (cognitive 30): OpenSearchGraphStorage._migrate_edges_to_canonical_id_if_needed has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (16 pts), error handling 4 (6 pts), ternaries 2 (4 pts), loops 2 (3 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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":3897}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c0da374927aa0cd2ab45b58bd5a37697ef80ff41e0d78375183f59cb759435a"}},{"ruleId":"D2","level":"warning","message":{"text":"QdrantVectorDBStorage._flush_pending_vector_ops (cognitive 30): QdrantVectorDBStorage._flush_pending_vector_ops has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 5 (8 pts), error handling 2 (3 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/qdrant_impl.py"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"dac5da5e17feb7180334cb23cc590f9c86826395b65387f186b435ccb1a7b32c"}},{"ruleId":"D2","level":"warning","message":{"text":"RedisDocStatusStorage.get_docs_by_statuses (cognitive 30): RedisDocStatusStorage.get_docs_by_statuses has cognitive complexity 30 (threshold 15). Drivers by points: if/else 6 (18 pts), loops 3 (7 pts), error handling 2 (5 pts) (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":"lightrag/kg/redis_impl.py"},"region":{"startLine":1277}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce5fec103caf0f46f5b610a0db3f96ee1a1d6e2e1ff86b72885e6df79f4e1615"}},{"ruleId":"D2","level":"warning","message":{"text":"LightRAG._resolve_purge_recovery_proof (cognitive 30): LightRAG._resolve_purge_recovery_proof has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 10, ternaries 2 (4 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/lightrag.py"},"region":{"startLine":5758}}}],"partialFingerprints":{"codehealthFindingId/v1":"b472452bd8fd5689cd397a33f313b5a56f2fb335f8d728f9b47673f94fcc9dc9"}},{"ruleId":"D2","level":"warning","message":{"text":"_vision_utils._read_jpeg_dimensions (cognitive 30): _vision_utils._read_jpeg_dimensions has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (23 pts), boolean chains 3, loops 2 (3 pts), 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":"lightrag/llm/_vision_utils.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"47fb0dd62f65a96a49953d12781e2f9fec97cf568e6da94c86cec6caf7eb1f4f"}},{"ruleId":"D2","level":"warning","message":{"text":"multimodal_context._build_leading (cognitive 30): multimodal_context._build_leading has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (28 pts), boolean chains 1, 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. This shape REPEATS in the file: one other method here (multimodal_context._build_trailing) 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":"lightrag/multimodal_context.py"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f6f2a9bb811ca18381b06687c571e130e10fd82404683f5b9f7efda34df1f9c"}},{"ruleId":"D2","level":"warning","message":{"text":"multimodal_context._build_trailing (cognitive 30): multimodal_context._build_trailing has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (28 pts), boolean chains 1, 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. This shape REPEATS in the file: one other method here (multimodal_context._build_leading) 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":"lightrag/multimodal_context.py"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d8a1bd41c42bd356a9be12df9ff3aae234039b20c9cc0908b63cec70584f84"}},{"ruleId":"D2","level":"warning","message":{"text":"multimodal_context.enrich_sidecars_with_surrounding (cognitive 30): multimodal_context.enrich_sidecars_with_surrounding has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (22 pts), error handling 2 (4 pts), loops 2 (3 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":"lightrag/multimodal_context.py"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b07ee5ba4ace58ddef5000801e03dd6a380ca2ba03bc3d6d4be7af809f75850"}},{"ruleId":"D2","level":"warning","message":{"text":"OMMLParser.parse_nary (cognitive 30): OMMLParser.parse_nary has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (19 pts), error handling 1 (6 pts), loops 3 (5 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/parser/docx/omml/ommlparser.py"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"b03d35122fbc3c0dd1731b2e5e1154e0dcd0e1fe0bbede9ebba9518a6da10311"}},{"ruleId":"D2","level":"warning","message":{"text":"rerank.chunk_documents_for_rerank (cognitive 30): rerank.chunk_documents_for_rerank has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 4 (10 pts), error handling 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":"lightrag/rerank.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6428bbad585f81af6a33f84cf83ded539b035b1538c3118f29629c808474b99"}},{"ruleId":"D2","level":"warning","message":{"text":"paragraph_semantic._expand_block_with_table_splits (cognitive 29): paragraph_semantic._expand_block_with_table_splits has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (23 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/chunker/paragraph_semantic.py"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"06b7ce0cc7e5e1128da65992ef0893318873206b9f68a4e8d4f57557a8a9ecb8"}},{"ruleId":"D2","level":"warning","message":{"text":"MemgraphStorage.get_knowledge_graph (cognitive 29): MemgraphStorage.get_knowledge_graph has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (23 pts), loops 2 (4 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":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"e68adeb38dc91806d8853c20a0865d3390de619fb430915cc791f1577b5011fd"}},{"ruleId":"D2","level":"warning","message":{"text":"MilvusVectorDBStorage._create_collection_if_not_exist (cognitive 29): MilvusVectorDBStorage._create_collection_if_not_exist has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (16 pts), error handling 4 (7 pts), boolean chains 4, ternaries 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/milvus_impl.py"},"region":{"startLine":2262}}}],"partialFingerprints":{"codehealthFindingId/v1":"89605234f1a599c551a35877a6b2d92d5c5212951dafaeb73026c346f0abd7a6"}},{"ruleId":"D2","level":"warning","message":{"text":"PostgreSQLDB._create_ssl_context (cognitive 29): PostgreSQLDB._create_ssl_context has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (25 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/postgres_impl.py"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"47bb0aaa54303587c1ac58b2d4cc60da70f761b69c3c8aa31537b21acdcc69f6"}},{"ruleId":"D2","level":"warning","message":{"text":"QdrantVectorDBStorage.get_by_ids (cognitive 29): QdrantVectorDBStorage.get_by_ids has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 3 (4 pts), ternaries 1 (3 pts), error handling 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":"lightrag/kg/qdrant_impl.py"},"region":{"startLine":1176}}}],"partialFingerprints":{"codehealthFindingId/v1":"766f1bc5a331faf2caaee7a2002e20879bc33ae4543ac8e4aa2c81e092626bc4"}},{"ruleId":"D2","level":"warning","message":{"text":"operate.merge_nodes_and_edges (cognitive 29): operate.merge_nodes_and_edges has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 7 (11 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":"lightrag/operate.py"},"region":{"startLine":3555}}}],"partialFingerprints":{"codehealthFindingId/v1":"406f3e594abf62422cf21f11f7abcbcaf298a932d85129f8b34c340d7274f857"}},{"ruleId":"D2","level":"warning","message":{"text":"operate._merge_all_chunks (cognitive 29): operate._merge_all_chunks has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 9, 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":"lightrag/operate.py"},"region":{"startLine":5913}}}],"partialFingerprints":{"codehealthFindingId/v1":"72ae140ff30310cde845dd401ee08e306c43c25fca474b4c842c744a4ddca04f"}},{"ruleId":"D2","level":"warning","message":{"text":"drawing_image_extractor.load_relationships (cognitive 29): drawing_image_extractor.load_relationships has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 3 (5 pts), boolean chains 3, error handling 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":"lightrag/parser/docx/drawing_image_extractor.py"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3119808df083c7b5c741db511c5f980a3f030ac7cb8e282746472f7f38c1111"}},{"ruleId":"D2","level":"warning","message":{"text":"MigrationTool.run (cognitive 29): MigrationTool.run has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (15 pts), error handling 5 (7 pts), loops 2 (7 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":"lightrag/tools/migrate_llm_cache.py"},"region":{"startLine":1419}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1bef2582241528ebfc9e514b3167df02ba0fe8df03edb18e559471691c71cd0"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.wait_tasks_with_drain (cognitive 29): utils.wait_tasks_with_drain has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 3 (5 pts), error handling 2 (3 pts), boolean chains 1, 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":"lightrag/utils.py"},"region":{"startLine":4733}}}],"partialFingerprints":{"codehealthFindingId/v1":"b10af244ed12798dbca1e3f64b888ad800166dfdbf621cf61028ed6264710bd6"}},{"ruleId":"D2","level":"warning","message":{"text":"utils_graph._merge_attributes (cognitive 29): utils_graph._merge_attributes has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 4 (8 pts), error handling 1 (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":"lightrag/utils_graph.py"},"region":{"startLine":3831}}}],"partialFingerprints":{"codehealthFindingId/v1":"d71b2b95fc4d72d5678be65896dcb99a109211eca350d82966cc57344f1cddf1"}},{"ruleId":"D2","level":"warning","message":{"text":"App.App (cognitive 29): App.App has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 13, if/else 11 (13 pts), error handling 2, ternaries 1 (nesting depth added 2). Most of this is not in the body itself: 7 of the 29 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 111, 66, 68, \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":"lightrag_webui/src/App.tsx"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"809d27852e4696e4566ce1550e0969bd56490b2e2a4d50758ee1537b76743a26"}},{"ruleId":"D2","level":"warning","message":{"text":"PipelineStatusDialog.PipelineStatusDialog (cognitive 29): PipelineStatusDialog.PipelineStatusDialog has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 11, if/else 10 (11 pts), ternaries 5, error handling 2 (nesting depth added 1). Of this number, 15 points are the body\u0027s own statements and 14 belong to 6 function items inside it that branch. 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":"lightrag_webui/src/components/documents/PipelineStatusDialog.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c8a2cc816632d0c2304aa0bd46e7632989a5903b52c9987f285ecfb945b545f"}},{"ruleId":"D2","level":"warning","message":{"text":"FileUploader.FileUploader (cognitive 29): FileUploader.FileUploader has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 7, ternaries 4 (5 pts) (nesting depth added 4). Most of this is not in the body itself: 3 of the 29 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 185, a function literal at line 328, a function literal at line 294, \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":"lightrag_webui/src/components/ui/FileUploader.tsx"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"9da88bc970d959bf17795b07a6d41a15fce46db495430ee3a2b8fe81b668c7dc"}},{"ruleId":"D2","level":"warning","message":{"text":"UserPromptInputWithHistory.UserPromptInputWithHistory (cognitive 29): UserPromptInputWithHistory.UserPromptInputWithHistory has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 9, ternaries 4 (7 pts), match/switch 1 (nesting depth added 6). Most of this is not in the body itself: 7 of the 29 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 49, a function literal at line 117, a function literal at line 35, \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":"lightrag_webui/src/components/ui/UserPromptInputWithHistory.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"385fbea98f64935815ffb9711ac296b2f4bac0b23db2bb7396a86db86fc8ef81"}},{"ruleId":"D2","level":"warning","message":{"text":"PGGraphStorage.get_nodes_batch (cognitive 28): PGGraphStorage.get_nodes_batch has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (18 pts), error handling 1 (5 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/postgres_impl.py"},"region":{"startLine":8815}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfb5759cf7a38de8c0ca2610257e60e4d7313635891b9077cf57747475992877"}},{"ruleId":"D2","level":"warning","message":{"text":"LightRAG._discard_pending_index_ops (cognitive 28): LightRAG._discard_pending_index_ops has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (11 pts), error handling 3 (7 pts), boolean chains 5, ternaries 2 (4 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":"lightrag/lightrag.py"},"region":{"startLine":3898}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eed5525f9ac0b39c8c11ad4f1021396f26095927dc9166a634ad0229500e348"}},{"ruleId":"D2","level":"warning","message":{"text":"operate._apply_token_truncation (cognitive 28): operate._apply_token_truncation has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (20 pts), loops 6 (8 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":"lightrag/operate.py"},"region":{"startLine":5649}}}],"partialFingerprints":{"codehealthFindingId/v1":"008b9b9b4cfcb9eb987e7e9f6bedc3f70e1221c8218a6274a69b9eeeed32e761"}},{"ruleId":"D2","level":"warning","message":{"text":"DrawingExtractionContext.export_embedded_image (cognitive 28): DrawingExtractionContext.export_embedded_image has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (16 pts), error handling 7 (8 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":"lightrag/parser/docx/drawing_image_extractor.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"1af745d8885a7336825342a80db378118f5d7b6a1c318f54ded74b630e01518e"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.apply_rerank_if_enabled (cognitive 28): utils.apply_rerank_if_enabled has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 4, loops 2 (4 pts), ternaries 1 (3 pts), error handling 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":"lightrag/utils.py"},"region":{"startLine":7196}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3a21419fa5e0152d073204a7de9e585903970cdfcbb9d3e4e23482269d69058"}},{"ruleId":"D2","level":"warning","message":{"text":"legacySettingsChain.migrateLegacySettingsState (cognitive 28): legacySettingsChain.migrateLegacySettingsState has cognitive complexity 28 (threshold 15). Drivers by points: if/else 24 (28 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/migrations/legacySettingsChain.ts"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"e93bee389a1dc6931bead91148a27d3c0407850753a9b598e577c261de006cba"}},{"ruleId":"D2","level":"warning","message":{"text":"MongoVectorDBStorage._flush_pending_vector_ops (cognitive 27): MongoVectorDBStorage._flush_pending_vector_ops has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 4 (7 pts), error handling 2 (3 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/mongo_impl.py"},"region":{"startLine":4718}}}],"partialFingerprints":{"codehealthFindingId/v1":"81b19fef59688a84050e1675f3f2b27c8f881a899e743fd945080d0ca46182ff"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenSearchVectorDBStorage.get_vectors_by_ids (cognitive 27): OpenSearchVectorDBStorage.get_vectors_by_ids has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (18 pts), error handling 3 (4 pts), loops 3 (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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":7125}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0828014e80481e695b070f6409bd86159aeb79069f25eb78fb9b75a9c38d4fd"}},{"ruleId":"D2","level":"warning","message":{"text":"PGVectorStorage._pg_migrate_workspace_data (cognitive 27): PGVectorStorage._pg_migrate_workspace_data has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (18 pts), ternaries 4 (6 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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":4268}}}],"partialFingerprints":{"codehealthFindingId/v1":"baa188adfc31037bcbcebb27a6261770bf37205ff5d5dce0e093e5bca4e83452"}},{"ruleId":"D2","level":"warning","message":{"text":"AsyncioScanJobStore.update (cognitive 27): AsyncioScanJobStore.update has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 4, 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":"lightrag/kg/scan_job_store.py"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"2867f05c71a87916cb05b1c987fd133576a5b4e483102b006193242e54f8e8cc"}},{"ruleId":"D2","level":"warning","message":{"text":"LightRAG._persist_custom_chunk_recovery_warning (cognitive 27): LightRAG._persist_custom_chunk_recovery_warning has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 3, loops 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/lightrag.py"},"region":{"startLine":3652}}}],"partialFingerprints":{"codehealthFindingId/v1":"99ec424aff0a2bb30b250256257ab36d29515f25a36dda965018a82fc5b49293"}},{"ruleId":"D2","level":"warning","message":{"text":"heading_flow._try_cb1_graduated_demotion (cognitive 27): heading_flow._try_cb1_graduated_demotion has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (11 pts), ternaries 4 (8 pts), loops 4 (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":"lightrag/parser/docx/smart_heading/heading_flow.py"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"233986c354b8d4a2e559d290fe4e7ee0c0d04c216cacc2ba566f54b646d7756f"}},{"ruleId":"D2","level":"warning","message":{"text":"MilvusVectorDBStorage.get_vectors_by_ids (cognitive 26): MilvusVectorDBStorage.get_vectors_by_ids has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 3 (4 pts), error handling 2 (3 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/milvus_impl.py"},"region":{"startLine":3391}}}],"partialFingerprints":{"codehealthFindingId/v1":"f89df575196e67d03086829ed1004c4e14bdb76f10bc32ab9e3abd221c7e3416"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenSearchKVStorage.get_by_ids (cognitive 26): OpenSearchKVStorage.get_by_ids has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (15 pts), ternaries 2 (4 pts), loops 2 (3 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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":1339}}}],"partialFingerprints":{"codehealthFindingId/v1":"d725c3b5fb1fcf58805c80c9b49fde27c3e6f82e69351f3f82ee7b98b2f9a21c"}},{"ruleId":"D2","level":"warning","message":{"text":"RedisDocStatusStorage.get_status_counts (cognitive 26): RedisDocStatusStorage.get_status_counts has cognitive complexity 26 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 3 (7 pts), error handling 2 (6 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. This shape REPEATS in the file: one other method here (RedisDocStatusStorage.get_doc_by_file_path) 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":"lightrag/kg/redis_impl.py"},"region":{"startLine":1217}}}],"partialFingerprints":{"codehealthFindingId/v1":"92a05443d4f2ef6ecc406249cb5158b62cc8e558f617eb7e329859e0e82363c8"}},{"ruleId":"D2","level":"warning","message":{"text":"RedisDocStatusStorage.get_doc_by_file_path (cognitive 26): RedisDocStatusStorage.get_doc_by_file_path has cognitive complexity 26 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 3 (7 pts), error handling 2 (6 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. This shape REPEATS in the file: one other method here (RedisDocStatusStorage.get_status_counts) 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":"lightrag/kg/redis_impl.py"},"region":{"startLine":1823}}}],"partialFingerprints":{"codehealthFindingId/v1":"4103acb2018f38fcb59b335cd31c7353ae1ca4d56e761792fc2911c783b0aafd"}},{"ruleId":"D2","level":"warning","message":{"text":"LightRAG.ainsert_custom_kg (cognitive 26): LightRAG.ainsert_custom_kg has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 7, ternaries 2 (3 pts), boolean chains 2, 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":"lightrag/lightrag.py"},"region":{"startLine":4424}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f2b02faa0d9b6291a46c18d7447dcff4cb3a547dec324d0aa27baa9ea0b8a47"}},{"ruleId":"D2","level":"warning","message":{"text":"openai.create_openai_async_client (cognitive 26): openai.create_openai_async_client has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (25 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":"lightrag/llm/openai.py"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"cedf308911b8988348c3137073c7381544fa4a8975213648594744940c1b1dd7"}},{"ruleId":"D2","level":"warning","message":{"text":"OMMLParser.parse_acc (cognitive 26): OMMLParser.parse_acc has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (15 pts), error handling 1 (6 pts), loops 3 (5 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":"lightrag/parser/docx/omml/ommlparser.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"db500534cf4a364439289314d604e48e4501344d8786491454d0a0f36aa05590"}},{"ruleId":"D2","level":"warning","message":{"text":"title_block._render_table_window (cognitive 26): title_block._render_table_window has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 3 (8 pts), boolean chains 3 (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":"lightrag/parser/docx/smart_heading/title_block.py"},"region":{"startLine":1302}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a40e1075f98861e0ffc2e134c754cc720d5ea4bed1b27af80788fd4174f053a"}},{"ruleId":"D2","level":"warning","message":{"text":"cache.is_bundle_valid (cognitive 26): cache.is_bundle_valid has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 4, error handling 3 (4 pts), loops 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":"lightrag/parser/external/docling/cache.py"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"085c491352d8982d3dee67360ae8b6f39d4ed9374366de142992618aa55ce6d3"}},{"ruleId":"D2","level":"warning","message":{"text":"routing._extract_param_blocks (cognitive 26): routing._extract_param_blocks has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (23 pts), boolean chains 2, 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":"lightrag/parser/routing.py"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"051e38f34981912c9fef8aeabca5904832e18753366be6d1be36a52b72c770f5"}},{"ruleId":"D2","level":"warning","message":{"text":"CleanupTool.delete_query_caches_json (cognitive 26): CleanupTool.delete_query_caches_json has cognitive complexity 26 (threshold 15). Drivers by points: if/else 5 (17 pts), loops 4 (6 pts), error handling 1 (2 pts), boolean chains 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":"lightrag/tools/clean_llm_query_cache.py"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"fabbcbf059674b2ee560b9f35de80f503467e59042495958dd87baa38fd59562"}},{"ruleId":"D2","level":"warning","message":{"text":"rebuild_vdb.enumerate_kv_keys (cognitive 26): rebuild_vdb.enumerate_kv_keys has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 4 (9 pts), ternaries 1 (4 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":"lightrag/tools/rebuild_vdb.py"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"b040897bf4f946deee5022e274f3d84fe9632ed9ce28218862f3eb5de9fe1158"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatMessage.CodeHighlight (cognitive 26): ChatMessage.CodeHighlight has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 6 (10 pts), if/else 8 (9 pts), boolean chains 7 (nesting depth added 5). Most of this is not in the body itself: 11 of the 26 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 469, getInlineCodeStyles, a function literal at line 621, \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":"lightrag_webui/src/components/retrieval/ChatMessage.tsx"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"281aa0854ffed1b3046a9579dcbcd38edc2a241f47598fcb21ce9fe0652561f5"}},{"ruleId":"D2","level":"warning","message":{"text":"QuerySettings.QuerySettings (cognitive 26): QuerySettings.QuerySettings has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 14, if/else 7, ternaries 5. Most of this is not in the body itself: 4 of the 26 points are its own statements and the rest belongs to 12 function literals inside it that branch (lines 258, 262, 298, \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":"lightrag_webui/src/components/retrieval/QuerySettings.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a13f3ad12f19ac080727e5323123cab4ea4cf7e930f763dc004cd256837cc78"}},{"ruleId":"D2","level":"warning","message":{"text":"useLightragGraph.fetchGraph (cognitive 26): useLightragGraph.fetchGraph has cognitive complexity 26 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 4 (9 pts), boolean chains 2, error handling 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/hooks/useLightragGraph.tsx"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"d27b99b0663caa74e8ba6a6f7ecf4f0020dbf850c0dccc97c82091e5bc75be5b"}},{"ruleId":"D2","level":"warning","message":{"text":"document_routes.pipeline_enqueue_file (cognitive 25): document_routes.pipeline_enqueue_file has cognitive complexity 25 (threshold 15). Drivers by points: error handling 8 (13 pts), if/else 9, 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":"lightrag/api/routers/document_routes.py"},"region":{"startLine":2359}}}],"partialFingerprints":{"codehealthFindingId/v1":"60682e6c55760470d3034edac46b69eaa3d2cc0e9662d360bb15399ad14b71ae"}},{"ruleId":"D2","level":"warning","message":{"text":"RAGEvaluator._calculate_benchmark_stats (cognitive 25): RAGEvaluator._calculate_benchmark_stats has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (17 pts), ternaries 3 (5 pts), loops 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":"lightrag/evaluation/eval_rag_quality.py"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"8db8b08ae8dd663b0851a31bc54edbe6e21bc9cb0913e618967627c6b76eb14f"}},{"ruleId":"D2","level":"warning","message":{"text":"FaissVectorDBStorage.get_by_ids (cognitive 25): FaissVectorDBStorage.get_by_ids has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (22 pts), loops 2 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/faiss_impl.py"},"region":{"startLine":1712}}}],"partialFingerprints":{"codehealthFindingId/v1":"22d6093360026a41a5a194c5aa397b686a73b285a782bbfe6db186daa84cbfb1"}},{"ruleId":"D2","level":"warning","message":{"text":"opensearch_impl._extract_bulk_failed_ids (cognitive 25): opensearch_impl._extract_bulk_failed_ids has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (16 pts), ternaries 1 (4 pts), loops 2 (3 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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"036cd23dbf8811eebd114c82b343de09087735d66d960fa4dab7cf904283706f"}},{"ruleId":"D2","level":"warning","message":{"text":"PGVectorStorage.get_by_ids (cognitive 25): PGVectorStorage.get_by_ids has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 3 (4 pts), error handling 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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":5545}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce8161e8993bce263ca150fbc2d6088429b4205a84118db1be7ad77618c9a67a"}},{"ruleId":"D2","level":"warning","message":{"text":"RedisDocStatusStorage.list_source_conflicts_page (cognitive 25): RedisDocStatusStorage.list_source_conflicts_page has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 3 (7 pts), boolean chains 2, ternaries 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":"lightrag/kg/redis_impl.py"},"region":{"startLine":2365}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9b03b186a727bd7f64e4f8d20dbd3fa9a7d72ef89e418d5789043623ecbd21e"}},{"ruleId":"D2","level":"warning","message":{"text":"_common.response_error_detail (cognitive 25): _common.response_error_detail has cognitive complexity 25 (threshold 15). Drivers by points: error handling 4 (10 pts), if/else 8 (10 pts), ternaries 2 (4 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/parser/external/_common.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"2027e0fe86c6de9476252fa325256f758026c04b3ea0816aa64c369fa6d026b3"}},{"ruleId":"D2","level":"warning","message":{"text":"parser._pin_socket (cognitive 25): parser._pin_socket has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (19 pts), ternaries 3, loops 1 (2 pts), error handling 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":"lightrag/parser/markdown/parser.py"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"4805beea87a7f500ad2dfaa9f6e34c413df51fcecbeb25c1e56396628ea4ad34"}},{"ruleId":"D2","level":"warning","message":{"text":"routing._validate_filename_hint_for_resolution (cognitive 25): routing._validate_filename_hint_for_resolution has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15 (22 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":"lightrag/parser/routing.py"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6ca3d20ece1271b812303f21f160c703df17d7f75a08f7b7a4bbdb7d6b962c9"}},{"ruleId":"D2","level":"warning","message":{"text":"Tokenizer.split_by_token_limit (cognitive 25): Tokenizer.split_by_token_limit has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (14 pts), error handling 1 (3 pts), loops 2 (3 pts), ternaries 1 (3 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":3828}}}],"partialFingerprints":{"codehealthFindingId/v1":"90a435566fcdb0dda66182880d999f20a743b4399a8b0da9112a4d9d842e63e1"}},{"ruleId":"D2","level":"warning","message":{"text":"utils_pipeline.build_chunks_dict_from_chunking_result (cognitive 25): utils_pipeline.build_chunks_dict_from_chunking_result has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2 (4 pts), boolean chains 3, ternaries 1 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils_pipeline.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"70cd51d34d5e909c0e56ba49d2e6dbaa558a4f319d44e6854673d0780b4510ca"}},{"ruleId":"D2","level":"warning","message":{"text":"GraphSearch.GraphSearchInput (cognitive 25): GraphSearch.GraphSearchInput has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (14 pts), ternaries 4 (6 pts), boolean chains 5 (nesting depth added 4). Most of this is not in the body itself: 2 of the 25 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 126, 215, 87, \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":"lightrag_webui/src/components/graph/GraphSearch.tsx"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e9d2e752bbbae9371f9db96334ddde86ff548c3733de91837a7e84662abd43f"}},{"ruleId":"D2","level":"warning","message":{"text":"MemgraphStorage.upsert_nodes_batch (cognitive 24): MemgraphStorage.upsert_nodes_batch has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 3 (5 pts), error handling 2 (4 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"d478b35ef155c7dbb6b47c459f8b26460d06aa6fa957f96502a40944896ce064"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenSearchGraphStorage._collect_node_ids (cognitive 24): OpenSearchGraphStorage._collect_node_ids has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 2 (3 pts), boolean chains 2, ternaries 1 (2 pts), 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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":5183}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2c7ab32b8f1f9cc60cb4d06c1951f2375f68794277682bc7d43b87b78184fa6"}},{"ruleId":"D2","level":"warning","message":{"text":"RedisDocStatusStorage.get_docs_by_track_id (cognitive 24): RedisDocStatusStorage.get_docs_by_track_id has cognitive complexity 24 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 3 (7 pts), error handling 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":"lightrag/kg/redis_impl.py"},"region":{"startLine":1344}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9118ccfeecdbbb824eee1bdfa1d3648795aca2feab387c6c0bc10e99ed06f21"}},{"ruleId":"D2","level":"warning","message":{"text":"BindingOptions.add_args (cognitive 24): BindingOptions.add_args has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (15 pts), error handling 2 (8 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":"lightrag/llm/binding_options.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ccd19e5458648f8d49e737b32f6fb27423a2c899e205669895a0cc9cd421de6"}},{"ruleId":"D2","level":"warning","message":{"text":"_RoleLLMMixin._apply_llm_role_config_update (cognitive 24): _RoleLLMMixin._apply_llm_role_config_update has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 4, error handling 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":"lightrag/llm_roles.py"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a02e786adf87d9a56b9012418dfc2be9e8560d5f5e4c17d2dd02813a3fd7d8"}},{"ruleId":"D2","level":"warning","message":{"text":"NumberingResolver._parse_styles_xml (cognitive 24): NumberingResolver._parse_styles_xml has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (17 pts), ternaries 1 (5 pts), error handling 1, loops 1 (nesting depth added 14). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/parser/docx/numbering_resolver.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"efbeb6bdb16dc6eb1d677c77841c5293fbf8455c61e4f0327f2f3a95db1dfd72"}},{"ruleId":"D2","level":"warning","message":{"text":"title_block._render_window (cognitive 24): title_block._render_window has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 2, loops 1, ternaries 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":"lightrag/parser/docx/smart_heading/title_block.py"},"region":{"startLine":1186}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf6f92373cc96890fe7eefee4d69c9895e0644992174e3b59ed7c51463d7a3aa"}},{"ruleId":"D2","level":"warning","message":{"text":"extractors._extract_xlsx (cognitive 24): extractors._extract_xlsx has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 3 (6 pts), boolean chains 4 (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":"lightrag/parser/legacy/extractors.py"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"023a6463a78c25661249540b792321bc9295d4783fa295b6aaf8cc57869344a8"}},{"ruleId":"D2","level":"warning","message":{"text":"TiktokenTokenizer.split_by_token_limit (cognitive 24): TiktokenTokenizer.split_by_token_limit has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (15 pts), error handling 2 (4 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":"lightrag/utils.py"},"region":{"startLine":4042}}}],"partialFingerprints":{"codehealthFindingId/v1":"249b45f4e698e8ad0048d6eeeae4de3e16050e355cf83a3ee0eb701303a7fb1a"}},{"ruleId":"D2","level":"warning","message":{"text":"lightrag._readNdjsonStream (cognitive 24): lightrag._readNdjsonStream has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (12 pts), error handling 3 (6 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 7). Of this number, 17 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":"lightrag_webui/src/api/lightrag.ts"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ee1afd71ff5d7d7977dc4a0a0480c39428987cc25ebc0532a2c3bfdb7214436"}},{"ruleId":"D2","level":"warning","message":{"text":"registry.resolve_chunker (cognitive 23): registry.resolve_chunker has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11, error handling 4 (6 pts), boolean chains 5, loops 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/chunker/registry.py"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"56e5b620683dcb170e9a7425f4f83a85e6b4fd4612f96f9a94203c1e6c519362"}},{"ruleId":"D2","level":"warning","message":{"text":"MongoVectorDBStorage.get_vectors_by_ids (cognitive 23): MongoVectorDBStorage.get_vectors_by_ids has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 3 (4 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":"lightrag/kg/mongo_impl.py"},"region":{"startLine":5026}}}],"partialFingerprints":{"codehealthFindingId/v1":"903b09bd16c515c2d206d69b126274a4d1f86e27bdda49d3bb0b7286f9f5622c"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenSearchDocStatusStorage._search_all_docs (cognitive 23): OpenSearchDocStatusStorage._search_all_docs has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (15 pts), error handling 3 (5 pts), 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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":2467}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dc034e4531901123e1a707bd90a10c3baba1aaa308c68cc20222c602eac171a"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenSearchDocStatusStorage.get_docs_paginated (cognitive 23): OpenSearchDocStatusStorage.get_docs_paginated has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (15 pts), error handling 3 (4 pts), loops 2, 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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":2558}}}],"partialFingerprints":{"codehealthFindingId/v1":"94d8a08946760d21fc30e2ca66ce7963525e812df5e5e5900a5354c6b91ed3ee"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenSearchVectorDBStorage._flush_pending_vector_ops (cognitive 23): OpenSearchVectorDBStorage._flush_pending_vector_ops has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (14 pts), loops 3 (4 pts), error handling 2 (3 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":6685}}}],"partialFingerprints":{"codehealthFindingId/v1":"9361e61b88a44434be47970a40d9221a58aed5e67d1fd9048ffdd93a61a45373"}},{"ruleId":"D2","level":"warning","message":{"text":"PostgreSQLDB.initdb (cognitive 23): PostgreSQLDB.initdb has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (13 pts), error handling 2 (3 pts), loops 2 (3 pts), ternaries 3, 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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"b581518611287e9d68c8b5083db4c4543d1be2b00d203e22309bd247ae5a26a9"}},{"ruleId":"D2","level":"warning","message":{"text":"PGGraphStorage.get_nodes_edges_batch (cognitive 23): PGGraphStorage.get_nodes_edges_batch has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 5 (7 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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":9130}}}],"partialFingerprints":{"codehealthFindingId/v1":"087e28c0040c2e55a5a8ee16eb810ce123962fe8d67226415cce398290ae9188"}},{"ruleId":"D2","level":"warning","message":{"text":"RedisDocStatusStorage.get_docs_by_statuses_page (cognitive 23): RedisDocStatusStorage.get_docs_by_statuses_page has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 4 (5 pts), boolean chains 2, 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":"lightrag/kg/redis_impl.py"},"region":{"startLine":2105}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e122c98e7e071daf95a6781672c8ee9428d79c2b2a065bd1e491cefa0fbcd0a"}},{"ruleId":"D2","level":"warning","message":{"text":"openai.openai_embed (cognitive 23): openai.openai_embed has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 5, ternaries 3, 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":"lightrag/llm/openai.py"},"region":{"startLine":1087}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7f0fff24b0cefa150c17ddf47ed37edbd49c2f1e60c0e6dd238f06976ee8e39"}},{"ruleId":"D2","level":"warning","message":{"text":"operate.naive_query (cognitive 23): operate.naive_query has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15 (16 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":"lightrag/operate.py"},"region":{"startLine":7003}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac16992895a7dd52061bbe8663be290a3751d292804f49f59a87e43512b8a8ce"}},{"ruleId":"D2","level":"warning","message":{"text":"heading_flow.gate_with_cb1 (cognitive 23): heading_flow.gate_with_cb1 has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 6, ternaries 5 (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":"lightrag/parser/docx/smart_heading/heading_flow.py"},"region":{"startLine":1065}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1afab998a83d9480c7f75f84384f14fdc50f00278cbe8f3595048af8a748c59"}},{"ruleId":"D2","level":"warning","message":{"text":"cache.is_bundle_valid (cognitive 23): cache.is_bundle_valid has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (15 pts), error handling 3 (4 pts), boolean chains 3, 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":"lightrag/parser/external/mineru/cache.py"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"31c8f04648c64c4551178a43e14b1df4941e58dc836d743b1c2640107d8b9e8d"}},{"ruleId":"D2","level":"warning","message":{"text":"routing.validate_parser_routing_config (cognitive 23): routing.validate_parser_routing_config has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 1, loops 1, ternaries 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":"lightrag/parser/routing.py"},"region":{"startLine":1152}}}],"partialFingerprints":{"codehealthFindingId/v1":"770963226515f31cf0931d3b4055640a4064a2d66f7c29b3ed4409bf556f8f92"}},{"ruleId":"D2","level":"warning","message":{"text":"CleanupTool.run (cognitive 23): CleanupTool.run has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (13 pts), error handling 7 (8 pts), boolean chains 1, 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":"lightrag/tools/clean_llm_query_cache.py"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e835737d871e2c79526dfaa3da9109bced098accdca0c1b869b4874acd33af9"}},{"ruleId":"D2","level":"warning","message":{"text":"Tokenizer._bounded_prefix_span (cognitive 23): Tokenizer._bounded_prefix_span has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 3 (5 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":"lightrag/utils.py"},"region":{"startLine":3731}}}],"partialFingerprints":{"codehealthFindingId/v1":"b83ceb3b3ed267c82168c03f950bcd40d16debb611d90a80a6f81ac7a580cefd"}},{"ruleId":"D2","level":"warning","message":{"text":"AsyncSearch.AsyncSearch (cognitive 23): AsyncSearch.AsyncSearch has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 11, if/else 6, ternaries 3 (5 pts), error handling 1 (nesting depth added 2). Most of this is not in the body itself: 9 of the 23 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 105, 89, 135, \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":"lightrag_webui/src/components/ui/AsyncSearch.tsx"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"43e4f4a8d8d64843f531f7d49324b748964ffabe22f2f34967b9036ca41b591f"}},{"ruleId":"D2","level":"warning","message":{"text":"PaginationControls.PaginationControls (cognitive 23): PaginationControls.PaginationControls has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12, boolean chains 11. Most of this is not in the body itself: 9 of the 23 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 64, 98, 104, \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":"lightrag_webui/src/components/ui/PaginationControls.tsx"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"388fe32f6f2b869cb44fa5a37523fd0f11cb2333181792024016a6267248cd6a"}},{"ruleId":"D2","level":"warning","message":{"text":"recursive_character.chunking_by_recursive_character (cognitive 22): recursive_character.chunking_by_recursive_character has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (10 pts), loops 3 (5 pts), boolean chains 4, 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":"lightrag/chunker/recursive_character.py"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf6d161d565138975265f69c0d899e8d6867741264a0b63a2d7003dd0bdd68bd"}},{"ruleId":"D2","level":"warning","message":{"text":"MongoDocStatusStorage.create_and_migrate_indexes_if_not_exists (cognitive 22): MongoDocStatusStorage.create_and_migrate_indexes_if_not_exists has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (11 pts), error handling 3 (7 pts), loops 2, boolean chains 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":"lightrag/kg/mongo_impl.py"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e78647d8d81323270239c19a0670f23e0ff7896c15dcf4961fe6feb5aebbcab"}},{"ruleId":"D2","level":"warning","message":{"text":"opensearch_impl._merge_edge_payloads (cognitive 22): opensearch_impl._merge_edge_payloads has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (14 pts), ternaries 3 (6 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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbef51dc64c5e7a8096cb87eb27738dd61f933735f4d5510926b2dd1cee04b05"}},{"ruleId":"D2","level":"warning","message":{"text":"zhipu.zhipu_complete_if_cache (cognitive 22): zhipu.zhipu_complete_if_cache has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 5, error handling 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":"lightrag/llm/zhipu.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0fa1d24098e8a4e658fc0a44ce7b06aa33fec923c2fb0028778c6cd9068330d"}},{"ruleId":"D2","level":"warning","message":{"text":"parse_document.parse_styles_outline_levels (cognitive 22): parse_document.parse_styles_outline_levels has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (18 pts), error handling 2, 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":"lightrag/parser/docx/parse_document.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a29108b2798b84301068b04b2fc428f4407879369147c3eb81af57e09f6e045"}},{"ruleId":"D2","level":"warning","message":{"text":"heading_flow._collect_series_group (cognitive 22): heading_flow._collect_series_group has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 5, error handling 1, 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":"lightrag/parser/docx/smart_heading/heading_flow.py"},"region":{"startLine":1553}}}],"partialFingerprints":{"codehealthFindingId/v1":"221ade3df6169bc19a4db1b814aa612f624c19b3fd97661f0b2d470a9199b6eb"}},{"ruleId":"D2","level":"warning","message":{"text":"heading_flow.align_numbering_series (cognitive 22): heading_flow.align_numbering_series has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 3 (5 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/parser/docx/smart_heading/heading_flow.py"},"region":{"startLine":1610}}}],"partialFingerprints":{"codehealthFindingId/v1":"893c6bbf5870843e7ad1fd0340b85d8936c89cb86294c4cdb4b6ab9be7d44229"}},{"ruleId":"D2","level":"warning","message":{"text":"Manifest.from_dict (cognitive 22): Manifest.from_dict has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 19, 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":"lightrag/parser/external/_manifest.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"5579951bae2d47f24be9bd5ba0dd91b31c68789e2427a7c77b7735c391081ebd"}},{"ruleId":"D2","level":"warning","message":{"text":"lightrag_server.create_optimized_embedding_function (cognitive 21): lightrag_server.create_optimized_embedding_function has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 8, ternaries 2, 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":"lightrag/api/lightrag_server.py"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ae5fc093979644e6d8bdd081193682dd19902273d1e1e7a65fc86e5a927585f"}},{"ruleId":"D2","level":"warning","message":{"text":"MemgraphStorage.upsert_node (cognitive 21): MemgraphStorage.upsert_node has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (11 pts), error handling 2 (4 pts), loops 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. This shape REPEATS in the file: one other method here (MemgraphStorage.upsert_edges_batch) 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":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"729a5e33a7bfe55f87b9f3498000cf0479dddc8db2e4c3c06ca475af4ff5c783"}},{"ruleId":"D2","level":"warning","message":{"text":"MemgraphStorage.upsert_edges_batch (cognitive 21): MemgraphStorage.upsert_edges_batch has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (11 pts), error handling 2 (4 pts), loops 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. This shape REPEATS in the file: one other method here (MemgraphStorage.upsert_node) 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":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d3b4e9931fc337db0e737011c9c91a75f257cfe052cb5b7ba65682296ae8d27"}},{"ruleId":"D2","level":"warning","message":{"text":"MilvusVectorDBStorage._create_indexes_after_collection (cognitive 21): MilvusVectorDBStorage._create_indexes_after_collection has cognitive complexity 21 (threshold 15). Drivers by points: error handling 5 (13 pts), if/else 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":"lightrag/kg/milvus_impl.py"},"region":{"startLine":1192}}}],"partialFingerprints":{"codehealthFindingId/v1":"a14697d1f155224fa0131554a0472eeac9360b76510ea33e66df6f3ccf798501"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenSearchGraphStorage.get_nodes_edges_batch (cognitive 21): OpenSearchGraphStorage.get_nodes_edges_batch has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2 (3 pts), error handling 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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":4602}}}],"partialFingerprints":{"codehealthFindingId/v1":"c41f552df092306a1ff2966d7dd29a9ba1c3cae0a17a2acdc814868f732e565b"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenSearchVectorDBStorage.get_by_ids (cognitive 21): OpenSearchVectorDBStorage.get_by_ids has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (13 pts), error handling 2 (3 pts), loops 2 (3 pts), boolean chains 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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":7066}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5c28c80380a7ebac20d75786741f753819e66e7ac63911c1421c5e5cd0efc44"}},{"ruleId":"D2","level":"warning","message":{"text":"RedisKVStorage._migrate_legacy_cache_structure (cognitive 21): RedisKVStorage._migrate_legacy_cache_structure has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 3 (4 pts), boolean chains 3, 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":"lightrag/kg/redis_impl.py"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"3278cab290da2cbbae77870dca51c22803fcac1dbf001ae6ef5a7ba27361b84e"}},{"ruleId":"D2","level":"warning","message":{"text":"shared_storage._reap_gate_state (cognitive 21): shared_storage._reap_gate_state has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 2, loops 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":"lightrag/kg/shared_storage.py"},"region":{"startLine":4269}}}],"partialFingerprints":{"codehealthFindingId/v1":"45258285736a550b587dd7e8ff9013fd3093fb2bcb63663268b7a73157e96fba"}},{"ruleId":"D2","level":"warning","message":{"text":"LightRAG._upsert_custom_chunk_status (cognitive 21): LightRAG._upsert_custom_chunk_status has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 11, if/else 7 (8 pts), loops 1, 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":"lightrag/lightrag.py"},"region":{"startLine":3223}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a1a4725401788d925ee0c3c10f0b7c1d67a6a2a6e5844df31716d6c9b991537"}},{"ruleId":"D2","level":"warning","message":{"text":"BindingOptions.args_env_name_type_value (cognitive 21): BindingOptions.args_env_name_type_value has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/binding_options.py"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"787d184e897c00e55248187a3fbb69f879604c3367e27b540eb64ae7dafe8cf6"}},{"ruleId":"D2","level":"warning","message":{"text":"style_key._extract_unit_and_ordinal (cognitive 21): style_key._extract_unit_and_ordinal has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14 (19 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":"lightrag/parser/docx/smart_heading/style_key.py"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4bfa933e32b729031f2c987b2fa4571621d8bc8e4101d0208dd2c5141fc5ad5"}},{"ruleId":"D2","level":"warning","message":{"text":"Manifest.from_dict (cognitive 21): Manifest.from_dict has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 18, 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":"lightrag/parser/external/mineru/manifest.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b42884acd695b9ca7653dfb4bdb97aa095ccdd5288e8b06c33e9b6b935783f6"}},{"ruleId":"D2","level":"warning","message":{"text":"_PipelineMixin._refetch_for_decision (cognitive 21): _PipelineMixin._refetch_for_decision has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (11 pts), error handling 4 (8 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":"lightrag/pipeline.py"},"region":{"startLine":3925}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef18be11ee6992182897762987b8640a7f7fc54266e82dcf8243a57d520a1852"}},{"ruleId":"D2","level":"warning","message":{"text":"download_cache.download_spacy_models (cognitive 21): download_cache.download_spacy_models has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (11 pts), loops 2 (3 pts), ternaries 1 (3 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/tools/download_cache.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6c09005e117d1c33829a8a3d086ff6edc8dad6052d3e6719df97b927de6a255"}},{"ruleId":"D2","level":"warning","message":{"text":"migrate_graph_storage._unrepresentable_paths (cognitive 21): migrate_graph_storage._unrepresentable_paths has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 6, loops 2 (4 pts), ternaries 1 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/tools/migrate_graph_storage.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"325aa263be852e88b10bf502aa3ed2d52126a7f4193c33341e58057abbf7db51"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.merge_source_ids (cognitive 21): utils.merge_source_ids has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 3 (6 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":"lightrag/utils.py"},"region":{"startLine":7455}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c193cd4ac4a5e4488b3da6c25c57b4f287b781010f221fa7dc99397fc842796"}},{"ruleId":"D2","level":"warning","message":{"text":"utils_pipeline.extract_content_list_from_payload (cognitive 21): utils_pipeline.extract_content_list_from_payload has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 2, loops 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":"lightrag/utils_pipeline.py"},"region":{"startLine":1385}}}],"partialFingerprints":{"codehealthFindingId/v1":"902a6458e57099eb9810e65b77260ce4675229a4c8c04314bfd30be71cd8748e"}},{"ruleId":"D2","level":"warning","message":{"text":"StatusCard.formatMinerU (cognitive 21): StatusCard.formatMinerU has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (17 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":"lightrag_webui/src/components/status/StatusCard.tsx"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"893f8bd26538a5d7b9a5e5a31c02e1141e91e8d2546963e47eb503a710b12527"}},{"ruleId":"D2","level":"warning","message":{"text":"AuthHandler.__init__ (cognitive 20): AuthHandler.__init__ has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (13 pts), error handling 1 (3 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/auth.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"70f86664cec56018a4496ee76d72a07d64b4977af5476fe31cb910dd18a14598"}},{"ruleId":"D2","level":"warning","message":{"text":"MemgraphStorage.upsert_edge (cognitive 20): MemgraphStorage.upsert_edge has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (10 pts), error handling 2 (4 pts), loops 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":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"07d6bbed573f2ed1fd1817b73d663697e8d0473e3db2417991598612c2c47319"}},{"ruleId":"D2","level":"warning","message":{"text":"PostgreSQLDB._migrate_field_lengths (cognitive 20): PostgreSQLDB._migrate_field_lengths has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 3, error handling 2 (3 pts), 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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":2417}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6540d90c7bc3b7b37f1384bf6172c808a751963612f241a1c11f8632457a885"}},{"ruleId":"D2","level":"warning","message":{"text":"openai_responses._translate_kwargs (cognitive 20): openai_responses._translate_kwargs has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 3, 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":"lightrag/llm/openai_responses.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb0858cda05102d7adca8eaa0652c4def04e795a56128ad6cb64800b21f3d291"}},{"ruleId":"D2","level":"warning","message":{"text":"zip_budget.enforce_docx_decompression_budget (cognitive 20): zip_budget.enforce_docx_decompression_budget has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 6, 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":"lightrag/parser/docx/zip_budget.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"3da6939a4524b4be731f99276ed78124f60d6d39bca7e99c008acb86d6251b8b"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeParserBase.parse (cognitive 20): NativeParserBase.parse has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 6, error handling 1, 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":"lightrag/parser/native_base.py"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfa0f6e2e083e698e98fe497b45106edc44570ccfe94b3cbba02ba45a2b23fe7"}},{"ruleId":"D2","level":"warning","message":{"text":"_PipelineMixin._confirm_auto_drained (cognitive 20): _PipelineMixin._confirm_auto_drained has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (17 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":"lightrag/pipeline.py"},"region":{"startLine":3743}}}],"partialFingerprints":{"codehealthFindingId/v1":"784a9006d52e0a7c4be70b56d94b5c1a8a3ba7ab2ac5329379b4af486e21a6e8"}},{"ruleId":"D2","level":"warning","message":{"text":"CleanupTool.delete_query_caches_redis (cognitive 20): CleanupTool.delete_query_caches_redis has cognitive complexity 20 (threshold 15). Drivers by points: if/else 3 (8 pts), loops 4 (8 pts), error handling 1 (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":"lightrag/tools/clean_llm_query_cache.py"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"63790fbf4fe19f5ddf1fcb07afe3e5cf8ff386420d1e5d6a99d3a1f4d0a1846b"}},{"ruleId":"D2","level":"warning","message":{"text":"EmbeddingFunc.__call__ (cognitive 20): EmbeddingFunc.__call__ has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 5, ternaries 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":"lightrag/utils.py"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbf29d590fa545a834d41037d9727a85b9b0d4a6c054e36d3a8775bb01a05d60"}},{"ruleId":"D2","level":"warning","message":{"text":"utils._bounded_submit_impl (cognitive 20): utils._bounded_submit_impl has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 2, loops 1 (2 pts), error handling 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":"lightrag/utils.py"},"region":{"startLine":3159}}}],"partialFingerprints":{"codehealthFindingId/v1":"40bc686b894b21acaac76ce4b5b4ec8d053368f23994a8e578882c6ec52ed0e8"}},{"ruleId":"D2","level":"warning","message":{"text":"utils._scan_dollar_spans (cognitive 20): utils._scan_dollar_spans has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 3, ternaries 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":6488}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4f767fe4bd19aed05d2c1df7117d757117b0c7cf77fd1a39ed3d908378f9fa4"}},{"ruleId":"D2","level":"warning","message":{"text":"utils_graph._sanitize_graph_fields (cognitive 20): utils_graph._sanitize_graph_fields has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (16 pts), error handling 1 (3 pts), 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":"lightrag/utils_graph.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"912f02721be6a11ca63f9e8dfacbf30bb2d6393f8537917c8e2465ed808ce117"}},{"ruleId":"D2","level":"warning","message":{"text":"ui_customization._has_svg_root (cognitive 19): ui_customization._has_svg_root has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (3 pts), boolean chains 1, ternaries 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":"lightrag/api/ui_customization.py"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b399122329f707c48931704aae7d58306ad52f35abad539865651a16ad245d5"}},{"ruleId":"D2","level":"warning","message":{"text":"semantic_vector._semantic_groups_with_spans (cognitive 19): semantic_vector._semantic_groups_with_spans has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 2, 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":"lightrag/chunker/semantic_vector.py"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2b51d3e7dd5939df4db16977359b108b293089e80550af04f1bc70dd4cd787f"}},{"ruleId":"D2","level":"warning","message":{"text":"PostgreSQLDB._migrate_timestamp_columns (cognitive 19): PostgreSQLDB._migrate_timestamp_columns has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), error handling 2 (4 pts), 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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":1707}}}],"partialFingerprints":{"codehealthFindingId/v1":"3061cfb6425ffebab1d01fe69e84c09c03ab9613b867e2ee2808c4ef6eb4dbf7"}},{"ruleId":"D2","level":"warning","message":{"text":"PGGraphStorage.node_degrees_batch (cognitive 19): PGGraphStorage.node_degrees_batch has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 4 (5 pts), boolean chains 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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":8895}}}],"partialFingerprints":{"codehealthFindingId/v1":"030f0bcbf0d7fe8e551e2aabe250a6e0fae917a236ebe9abb8ab7719c7b8ced1"}},{"ruleId":"D2","level":"warning","message":{"text":"LightRAG._finalize_initialized_storages (cognitive 19): LightRAG._finalize_initialized_storages has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (13 pts), error handling 1 (4 pts), 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":"lightrag/lightrag.py"},"region":{"startLine":2266}}}],"partialFingerprints":{"codehealthFindingId/v1":"e365a6271ef83acd8c61becbf048079316019f1132ddddfe7995dc4d0915cd3c"}},{"ruleId":"D2","level":"warning","message":{"text":"LightRAG._flush_storages (cognitive 19): LightRAG._flush_storages has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 2 (4 pts), boolean chains 3, ternaries 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":"lightrag/lightrag.py"},"region":{"startLine":4159}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f845ad08d75e7dae6ef23042b0ecbd6b4c5638c4e97b55de476f2c7159c5d78"}},{"ruleId":"D2","level":"warning","message":{"text":"operate._truncate_section_context (cognitive 19): operate._truncate_section_context has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2 (5 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":"lightrag/operate.py"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e513377a4e10cf80a8685da4d7d021609833e62f9ce24b3f83c79f5fff0a836"}},{"ruleId":"D2","level":"warning","message":{"text":"NumberingResolver._format_label (cognitive 19): NumberingResolver._format_label has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 4, error handling 1, 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":"lightrag/parser/docx/numbering_resolver.py"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"13387efdbe2a7d255f99e46d3c9dced1ed37e1d0a66fc43c52d07c198e5c657c"}},{"ruleId":"D2","level":"warning","message":{"text":"parse_document.get_heading_level (cognitive 19): parse_document.get_heading_level has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (18 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":"lightrag/parser/docx/parse_document.py"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc7486d8970e14d8196418c348edda8f1dae2f424b7e4c5a1e637398cc85faf7"}},{"ruleId":"D2","level":"warning","message":{"text":"guardrails.numbering_homophone_reason (cognitive 19): guardrails.numbering_homophone_reason has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/parser/docx/smart_heading/guardrails.py"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"b79c71fb8f55a18b8eb6c95eddf4f6dfd6b9b2e6a74cc8934542d312eebd7ba9"}},{"ruleId":"D2","level":"warning","message":{"text":"heading_flow._nesting_evidence (cognitive 19): heading_flow._nesting_evidence has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 3 (4 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":"lightrag/parser/docx/smart_heading/heading_flow.py"},"region":{"startLine":2276}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed7596b78463eb62fb5c2a4877b70b77ee4941cebe32de403873a93a24c1b7e5"}},{"ruleId":"D2","level":"warning","message":{"text":"style_key.classify_numbering (cognitive 19): style_key.classify_numbering has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 3, error handling 1 (3 pts), 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":"lightrag/parser/docx/smart_heading/style_key.py"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7c8530dc61a38237a913c36347cb814bb3460deaa83d1ae767ae714592552b1"}},{"ruleId":"D2","level":"warning","message":{"text":"DoclingRawClient.__init__ (cognitive 19): DoclingRawClient.__init__ has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 5, ternaries 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":"lightrag/parser/external/docling/client.py"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"607e89d242d46c293d566c8fe7bd09f5db1e7aff7801cc0fbbcf5acd5f8b00b8"}},{"ruleId":"D2","level":"warning","message":{"text":"MinerURawClient._poll_official_batch (cognitive 19): MinerURawClient._poll_official_batch has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 3, ternaries 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/parser/external/mineru/client.py"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3f71fd4c4dac3c5cc78677072a109d319d98c9cd16da0276fbab0c5e72d9683"}},{"ruleId":"D2","level":"warning","message":{"text":"CleanupTool.setup_storage (cognitive 19): CleanupTool.setup_storage has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 2 (4 pts), ternaries 2, boolean chains 1, error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/tools/clean_llm_query_cache.py"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"d435d92f441a2963593de214f188703a60f83c68e10173c546ae82c2adbb4b18"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.merge_truncation_metadata (cognitive 19): utils.merge_truncation_metadata has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 9, if/else 7, ternaries 1 (2 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":"lightrag/utils.py"},"region":{"startLine":5509}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea12d04c51b2f8ff0674baf1fa02ee98abba29a7e38990c2585b8397ca047ab"}},{"ruleId":"D2","level":"warning","message":{"text":"Step_0.extract_unique_contexts (cognitive 19): Step_0.extract_unique_contexts has cognitive complexity 19 (threshold 15). Drivers by points: error handling 4 (9 pts), if/else 2 (6 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"reproduce/Step_0.py"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"e18e16f24114bf46a418ec74823549ea8c7dc7f55fb411254de8b192b0c1548b"}},{"ruleId":"D2","level":"warning","message":{"text":"lightrag.axiosInstance.interceptors.response.use() (cognitive 19): lightrag.axiosInstance.interceptors.response.use() has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (12 pts), error handling 1 (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":"lightrag_webui/src/api/lightrag.ts"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"4faab28aeabd649a6e2d5d753c097a2f17df88a77edb9188c705bb8fd7d06c4f"}},{"ruleId":"D2","level":"warning","message":{"text":"Settings.LabeledNumberInput (cognitive 19): Settings.LabeledNumberInput has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 7, ternaries 1 (nesting depth added 2). Most of this is not in the body itself: 3 of the 19 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 105, 96, 125, \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":"lightrag_webui/src/components/graph/Settings.tsx"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"663377cd3a809686a457cebb68af0eb2249a242377566e5c240b645f7c57ef9f"}},{"ruleId":"D2","level":"warning","message":{"text":"useQuerySession.useQuerySession.submitQuery::updateAssistantMessage (cognitive 19): useQuerySession.useQuerySession.submitQuery::updateAssistantMessage has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 7, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level. This shape REPEATS in the file: one other method here (useQuerySession.useQuerySession.submitQuery) 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":"lightrag_webui/src/features/retrieval/useQuerySession.ts"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe8070d6fff3e54b140ac73bdd5e2ae036107c5aea8d4fd60d8360bee2f05bf2"}},{"ruleId":"D2","level":"warning","message":{"text":"useLightragGraph.createSigmaGraph (cognitive 19): useLightragGraph.createSigmaGraph has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (12 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":"lightrag_webui/src/hooks/useLightragGraph.tsx"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"803e4b2d632f31ab2a70c4523cc46936075630dd85bd848210d2320931b037e6"}},{"ruleId":"D2","level":"warning","message":{"text":"ui_customization.normalize_locale (cognitive 18): ui_customization.normalize_locale has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 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":"lightrag/api/ui_customization.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"46ba10e4bef88154407fdd24bb1a993f1ddeb42b30d915656503cd5cc0ef0100"}},{"ruleId":"D2","level":"warning","message":{"text":"chunk_schema.normalize_chunk_sidecar (cognitive 18): chunk_schema.normalize_chunk_sidecar has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (10 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":"lightrag/chunk_schema.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba0603b938f5c6e7d1ef7477660dea1abb4a08c56e7df05ad27c1ccb94eedb6c"}},{"ruleId":"D2","level":"warning","message":{"text":"paragraph_semantic._split_html_rows_by_tokens (cognitive 18): paragraph_semantic._split_html_rows_by_tokens 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. This shape REPEATS in the file: one other method here (paragraph_semantic._split_rows_by_tokens) 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":"lightrag/chunker/paragraph_semantic.py"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"220a77c65671e339d81cd21ccf66bf344a004388920d333dfacfb870e0d446c3"}},{"ruleId":"D2","level":"warning","message":{"text":"paragraph_semantic._split_rows_by_tokens (cognitive 18): paragraph_semantic._split_rows_by_tokens 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. This shape REPEATS in the file: one other method here (paragraph_semantic._split_html_rows_by_tokens) 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":"lightrag/chunker/paragraph_semantic.py"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"68638f5f3346261264745730acbf5aee351be40c51b17ce6ab490632a385336f"}},{"ruleId":"D2","level":"warning","message":{"text":"FaissVectorDBStorage.delete_entity_relation (cognitive 18): FaissVectorDBStorage.delete_entity_relation has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (9 pts), loops 4 (6 pts), boolean chains 3 (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":"lightrag/kg/faiss_impl.py"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0d57bd9ff81cf582ffef35d9ba2384b50eda66d9b3625090c9cbcce6508b77c"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonKVStorage._migrate_legacy_cache_structure (cognitive 18): JsonKVStorage._migrate_legacy_cache_structure has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/json_kv_impl.py"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"215133bd90bb017ef426e47963f6600aacf429a8dd2160517576f00f631073aa"}},{"ruleId":"D2","level":"warning","message":{"text":"MilvusVectorDBStorage._is_retryable_connection_error (cognitive 18): MilvusVectorDBStorage._is_retryable_connection_error has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (11 pts), boolean chains 3, ternaries 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":"lightrag/kg/milvus_impl.py"},"region":{"startLine":843}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bdfbb20c79a071539eda30292d4c845865efd820e26f7b2807c5ac0d8e567e5"}},{"ruleId":"D2","level":"warning","message":{"text":"MilvusVectorDBStorage.__post_init__ (cognitive 18): MilvusVectorDBStorage.__post_init__ has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 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":"lightrag/kg/milvus_impl.py"},"region":{"startLine":2430}}}],"partialFingerprints":{"codehealthFindingId/v1":"db55930c535ae5fc39d3a474a9b13aff6b1334fddfd4244a66f58e08a61479dd"}},{"ruleId":"D2","level":"warning","message":{"text":"MilvusVectorDBStorage.get_by_ids (cognitive 18): MilvusVectorDBStorage.get_by_ids has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (3 pts), error handling 1 (2 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":"lightrag/kg/milvus_impl.py"},"region":{"startLine":3343}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b259a012c35f5a64e15419fac91e45fc95168fba6c514d1dfcebffafdd14560"}},{"ruleId":"D2","level":"warning","message":{"text":"NetworkXStorage.index_done_callback (cognitive 18): NetworkXStorage.index_done_callback has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (15 pts), error handling 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":"lightrag/kg/networkx_impl.py"},"region":{"startLine":1481}}}],"partialFingerprints":{"codehealthFindingId/v1":"3603a79073b8a7ea9408782d99eae84eb8985a453c1bb05f56602473b0e7d511"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenSearchDocStatusStorage.get_docs_by_statuses_page (cognitive 18): OpenSearchDocStatusStorage.get_docs_by_statuses_page has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 1, error handling 1, 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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":3000}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f6052aa1fceeae4e529a2e1c6362bf837bc075da19d033ca3db98881c2dc19f"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenSearchDocStatusStorage.list_source_conflicts_page (cognitive 18): OpenSearchDocStatusStorage.list_source_conflicts_page has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 2, error handling 1, 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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":3409}}}],"partialFingerprints":{"codehealthFindingId/v1":"12fa4415e01dfda35c2ef6244fb335b7bf2b52b744c119d8650c13bb8d86b8fd"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenSearchGraphStorage._collect_isolated_labels (cognitive 18): OpenSearchGraphStorage._collect_isolated_labels has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (3 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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":6002}}}],"partialFingerprints":{"codehealthFindingId/v1":"514d4afffefe9cc004400d7ebac3af5ae664b5ad2a742885845ab066f7f5510e"}},{"ruleId":"D2","level":"warning","message":{"text":"shared_storage._dead_pipeline_reservation_updates (cognitive 18): shared_storage._dead_pipeline_reservation_updates has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 5, 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":"lightrag/kg/shared_storage.py"},"region":{"startLine":2370}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dd82def61f835f514498024ced284f85c52e6aa8883656b9b396591b9c8aba6"}},{"ruleId":"D2","level":"warning","message":{"text":"shared_storage.aggregate_queue_stats (cognitive 18): shared_storage.aggregate_queue_stats has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 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":"lightrag/kg/shared_storage.py"},"region":{"startLine":4620}}}],"partialFingerprints":{"codehealthFindingId/v1":"d729b5f7a7333ac084e80de5ac9edfac693ccf42b4a3677ba2440bc824544d5b"}},{"ruleId":"D2","level":"warning","message":{"text":"operate._get_cached_extraction_results (cognitive 18): operate._get_cached_extraction_results has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 4, boolean chains 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":"lightrag/operate.py"},"region":{"startLine":1451}}}],"partialFingerprints":{"codehealthFindingId/v1":"a494cd0380af8a0b05b20fbbecec24a4d0a7068bfbd7d18c5ad64a180382304e"}},{"ruleId":"D2","level":"warning","message":{"text":"OMMLParser.parse_bar (cognitive 18): OMMLParser.parse_bar has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 3 (5 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":"lightrag/parser/docx/omml/ommlparser.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"9475d2f6976aca14be7557ef319a6fc74d17841d62e1d13f168d08e07b07b23f"}},{"ruleId":"D2","level":"warning","message":{"text":"heading_flow._demote_confirmed_imprint_regions (cognitive 18): heading_flow._demote_confirmed_imprint_regions has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 3 (5 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":"lightrag/parser/docx/smart_heading/heading_flow.py"},"region":{"startLine":2855}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b953f5216a1203ba2e200eaa30e0980e5ed9fed29e52572febb28604b6cd96"}},{"ruleId":"D2","level":"warning","message":{"text":"ir_builder._rows_from_table_cells (cognitive 18): ir_builder._rows_from_table_cells has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, loops 3 (6 pts), if/else 2 (3 pts) (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":"lightrag/parser/external/docling/ir_builder.py"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"26ae7ce276db54b6b96a2ad6c0f4d19a4a34ec085caece5c2b0cda0f4db7069b"}},{"ruleId":"D2","level":"warning","message":{"text":"MinerUIRBuilder._build_ir_drawing (cognitive 18): MinerUIRBuilder._build_ir_drawing 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":"lightrag/parser/external/mineru/ir_builder.py"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ddeb675ab98d793c5a87a67860b173a5a633a0e09993ca36c962b4a728086e"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeMarkdownIRBuilder.normalize (cognitive 18): NativeMarkdownIRBuilder.normalize has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 12, if/else 2 (3 pts), ternaries 1 (2 pts), loops 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":"lightrag/parser/markdown/ir_builder.py"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3d8d085b97f4447916b6a116c2caee63586144f46b7da6ec3ad8a8d7ee9f9fc"}},{"ruleId":"D2","level":"warning","message":{"text":"_PipelineMixin._analyze_worker (cognitive 18): _PipelineMixin._analyze_worker has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (10 pts), error handling 3 (7 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":"lightrag/pipeline.py"},"region":{"startLine":4806}}}],"partialFingerprints":{"codehealthFindingId/v1":"84d7f7f83b61e5d66cc5570d4d4ff1388aa7e6f8ba553784eb5d7d1a609a6823"}},{"ruleId":"D2","level":"warning","message":{"text":"backfill.backfill_chunk_sidecars (cognitive 18): backfill.backfill_chunk_sidecars has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 1, error handling 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":"lightrag/sidecar/backfill.py"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"53c76594c9274a342edc6b85be61f10068edb59171f49e11663f81f0e601c431"}},{"ruleId":"D2","level":"warning","message":{"text":"table_markup.split_html_rows (cognitive 18): table_markup.split_html_rows has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (16 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/table_markup.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"29c257d271cf968d771ee021d6fec34d78519d3086d96fdaab6cb0754dd5d7c2"}},{"ruleId":"D2","level":"warning","message":{"text":"download_cache.download_tiktoken_cache (cognitive 18): download_cache.download_tiktoken_cache has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (10 pts), error handling 3 (5 pts), loops 2 (3 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/tools/download_cache.py"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"169685d56fc2fc4f55d155bab5f2cace8edc8a90a976d3065313444b6d4ccdc0"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.pick_by_vector_similarity (cognitive 18): utils.pick_by_vector_similarity has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (11 pts), error handling 2 (4 pts), boolean chains 1, loops 1, ternaries 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":"lightrag/utils.py"},"region":{"startLine":6996}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dd46ddeb127b48d3f0c92526317dfe0a88b4cac1aad39a176dfbf85cec720b8"}},{"ruleId":"D2","level":"warning","message":{"text":"config.resolve_asymmetric_embedding_opt_in (cognitive 17): config.resolve_asymmetric_embedding_opt_in 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":"lightrag/api/config.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9e127b4299c751cfb38d0950c3cba1669bec710412de596f0a5742e4ec7f101"}},{"ruleId":"D2","level":"warning","message":{"text":"chunk_schema.normalize_chunk_heading (cognitive 17): chunk_schema.normalize_chunk_heading has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 7, if/else 5 (7 pts), loops 1 (2 pts), 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":"lightrag/chunk_schema.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"528dee1697b8d1454cca489c120b57b4dc4d7b0b0a1b5c3f39a9ba201fe11491"}},{"ruleId":"D2","level":"warning","message":{"text":"recursive_character._join_span_pieces (cognitive 17): recursive_character._join_span_pieces has cognitive complexity 17 (threshold 15). Drivers by points: loops 4 (8 pts), if/else 5 (6 pts), boolean chains 3 (nesting depth added 5). 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":"lightrag/chunker/recursive_character.py"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"35960d5cda05a5a169457cac259fc1feca956083874d5447179077e9e7b8fdfe"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonDocStatusStorage.get_docs_paginated (cognitive 17): JsonDocStatusStorage.get_docs_paginated has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 2, 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":"lightrag/kg/json_doc_status_impl.py"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6e779e753c0144ba3bc0e0965ec577a6c5fc08e45680892c7b659451b583c42"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonDocStatusStorage.list_source_conflicts_page (cognitive 17): JsonDocStatusStorage.list_source_conflicts_page has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 2, 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":"lightrag/kg/json_doc_status_impl.py"},"region":{"startLine":1090}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fd3354f91097f87b23e56cdc7f0ee4c62b6c92759a6a8b868475616f8329fd1"}},{"ruleId":"D2","level":"warning","message":{"text":"MilvusVectorDBStorage._flush_pending_vector_ops (cognitive 17): MilvusVectorDBStorage._flush_pending_vector_ops has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (12 pts), error handling 1 (2 pts), loops 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":"lightrag/kg/milvus_impl.py"},"region":{"startLine":2893}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a8b86c0acb07ea947c8b385c9cd03339b41cad61325985b4a4de9f3321e347"}},{"ruleId":"D2","level":"warning","message":{"text":"MongoGraphStorage.get_knowledge_graph_all_by_degree (cognitive 17): MongoGraphStorage.get_knowledge_graph_all_by_degree has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 4 (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":"lightrag/kg/mongo_impl.py"},"region":{"startLine":3116}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3d3d64ba5d4c4976c2a891edf9e5a311566f63be23db4c24a116736a78bc6be"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenSearchDocStatusStorage.get_full_docs_by_ids (cognitive 17): OpenSearchDocStatusStorage.get_full_docs_by_ids has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), error handling 2 (3 pts), ternaries 1 (2 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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":3239}}}],"partialFingerprints":{"codehealthFindingId/v1":"637624dbc98a3de33aa54d975947d617e18e374a70766600363920aa335d6cbb"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenSearchDocStatusStorage._primary_candidate_ids_sorted (cognitive 17): OpenSearchDocStatusStorage._primary_candidate_ids_sorted has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (3 pts), error handling 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":3357}}}],"partialFingerprints":{"codehealthFindingId/v1":"70d236d23e0f59503d5b927d15232bed0c9b9bbd797b923dde307506340b70d7"}},{"ruleId":"D2","level":"warning","message":{"text":"PGDocStatusStorage.get_docs_paginated (cognitive 17): PGDocStatusStorage.get_docs_paginated has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (11 pts), error handling 1 (3 pts), ternaries 2, loops 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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":7015}}}],"partialFingerprints":{"codehealthFindingId/v1":"47453595d8b2cd869ed60566677d0d9d07eb24b235d299b82175c8b8b0c40d79"}},{"ruleId":"D2","level":"warning","message":{"text":"RedisDocStatusStorage.get_docs_by_ids (cognitive 17): RedisDocStatusStorage.get_docs_by_ids has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 pts), error handling 1 (2 pts), 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":2246}}}],"partialFingerprints":{"codehealthFindingId/v1":"c338d68c81feab079456152653672b2df6b2809a7668daa0c097580305cf6dc0"}},{"ruleId":"D2","level":"warning","message":{"text":"LightRAG._apply_chunk_size_overlay (cognitive 17): LightRAG._apply_chunk_size_overlay has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 pts), 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":"lightrag/lightrag.py"},"region":{"startLine":1445}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fcd3a10ea60411e477c12f8eca09a132885c3878f5d250638ce4207d8527bc4"}},{"ruleId":"D2","level":"warning","message":{"text":"multimodal_context.load_content_rows_by_blockid (cognitive 17): multimodal_context.load_content_rows_by_blockid has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), error handling 1 (2 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":"lightrag/multimodal_context.py"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d5cfe9e3ffb05ef1a58b04f7a55f498737c8a4a353ef1b222f0b5d4d5d78206"}},{"ruleId":"D2","level":"warning","message":{"text":"operate._build_context_str (cognitive 17): operate._build_context_str has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 4, loops 1 (2 pts), ternaries 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":"lightrag/operate.py"},"region":{"startLine":6021}}}],"partialFingerprints":{"codehealthFindingId/v1":"d13a97cc74ab400cc7a10df48f8983dacae1ee5b8d5dcb97ad01e0406a31bf20"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeDocxIRBuilder.normalize (cognitive 17): NativeDocxIRBuilder.normalize has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 11, if/else 3 (4 pts), loops 1, 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":"lightrag/parser/docx/ir_builder.py"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"fea0448aba0a954303ff9d70058c7895ba90b52a0646499d4885322ae5b6c48f"}},{"ruleId":"D2","level":"warning","message":{"text":"NumberingResolver._get_numbering_from_style (cognitive 17): NumberingResolver._get_numbering_from_style has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 4, 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":"lightrag/parser/docx/numbering_resolver.py"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"db2145ef97811fa0cc8f49824c9b03e5edad44f0d511a06cbd6f83fe0058e3b1"}},{"ruleId":"D2","level":"warning","message":{"text":"guardrails.detect_toc_records (cognitive 17): guardrails.detect_toc_records has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (12 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":"lightrag/parser/docx/smart_heading/guardrails.py"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c9d8bb09daa921dd08382ee93189c9307adcc55becae53f9eb416aeb29be364"}},{"ruleId":"D2","level":"warning","message":{"text":"ir_builder._build_ir_table (cognitive 17): ir_builder._build_ir_table has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 5 (7 pts), boolean chains 6, if/else 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/parser/external/docling/ir_builder.py"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"b991cda0dcd0b0313227c1ae26ae4bb3ad98ccb9e3c080bde3634c90ba3888e8"}},{"ruleId":"D2","level":"warning","message":{"text":"extractors._extract_docx (cognitive 17): extractors._extract_docx has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/parser/legacy/extractors.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6a19829e36de09d47fe29a9d21c077bc6ee68d579b910c3d1a91f0d2f0a2a81"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncLLMBridge.__call__ (cognitive 17): SyncLLMBridge.__call__ has cognitive complexity 17 (threshold 15). Drivers by points: error handling 3 (8 pts), if/else 4 (7 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":"lightrag/parser/llm_bridge.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"a517e0738f7eca1ce123b3715aabeb9e6fc7aa6f4dce28dc6306594035f412dc"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeImageRawCache.flush (cognitive 17): NativeImageRawCache.flush has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), error handling 2 (5 pts), loops 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":"lightrag/parser/markdown/raw_cache.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca034ea5b9bfa6af7a7eeb8ccb039f4f8453409258b9d7d6c8761186f208d769"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.pick_by_weighted_polling (cognitive 17): utils.pick_by_weighted_polling has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 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":"lightrag/utils.py"},"region":{"startLine":6914}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fdd2abe65107bcb70db40461e89cb94da176cd6dd529b89240377142466a662"}},{"ruleId":"D2","level":"warning","message":{"text":"GraphViewer.GraphViewer (cognitive 17): GraphViewer.GraphViewer has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 8, if/else 6, error handling 1 (2 pts), ternaries 1 (nesting depth added 1). Most of this is not in the body itself: 7 of the 17 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 213, 190, 234, \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":"lightrag_webui/src/features/GraphViewer.tsx"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"87e86de52aa1448d52af82b525f82f12e29baa6df641390932390679bd6357c7"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryRequest.conversation_history_role_check (cognitive 16): QueryRequest.conversation_history_role_check has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 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":"lightrag/api/routers/query_routes.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5875d23720dc57da5e37af7c86a0b189813132824312125b41e7e998d05ad57"}},{"ruleId":"D2","level":"warning","message":{"text":"paragraph_semantic._inject_header_into_table_slice (cognitive 16): paragraph_semantic._inject_header_into_table_slice has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 3, error handling 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/chunker/paragraph_semantic.py"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"329471053464dffcc21519867d3b1aa141164518b153efce6c52bdbf99500486"}},{"ruleId":"D2","level":"warning","message":{"text":"RAGEvaluator.generate_rag_response (cognitive 16): RAGEvaluator.generate_rag_response has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), error handling 4, boolean chains 1, loops 1, ternaries 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":"lightrag/evaluation/eval_rag_quality.py"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"16f9c6a1e24bf62ac4176047a2b012f8a84da8a44ec5fe323c74a1f1d1aefa49"}},{"ruleId":"D2","level":"warning","message":{"text":"MongoGraphStorage._bidirectional_bfs_nodes (cognitive 16): MongoGraphStorage._bidirectional_bfs_nodes has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 3, 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":"lightrag/kg/mongo_impl.py"},"region":{"startLine":3214}}}],"partialFingerprints":{"codehealthFindingId/v1":"98a942abfdd9ef66f189c656588988197d9849117a0914f7a7974226c2cc1023"}},{"ruleId":"D2","level":"warning","message":{"text":"MongoVectorDBStorage.get_by_ids (cognitive 16): MongoVectorDBStorage.get_by_ids has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 2 (3 pts), error handling 1 (2 pts), boolean chains 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":"lightrag/kg/mongo_impl.py"},"region":{"startLine":4983}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4f068bf822159ea40b8a2201ed8b2315c19c071a3889ba3e5453d74f415594d"}},{"ruleId":"D2","level":"warning","message":{"text":"Neo4JStorage.get_node_edges (cognitive 16): Neo4JStorage.get_node_edges has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (6 pts), ternaries 3 (5 pts), boolean chains 2, error handling 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":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":922}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd14cf09905bebd6ce91e05e35310b898d3e7b2efd7e22ee55163f52142f4308"}},{"ruleId":"D2","level":"warning","message":{"text":"PGDocStatusStorage.get_docs_by_statuses_page (cognitive 16): PGDocStatusStorage.get_docs_by_statuses_page has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 2, 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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":6417}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7d89fa68ee882c41d66feae0df0045c83a6b4f02ebdab913ee6939679c026c4"}},{"ruleId":"D2","level":"warning","message":{"text":"QdrantVectorDBStorage.delete_entity_relation (cognitive 16): QdrantVectorDBStorage.delete_entity_relation has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 3 (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":"lightrag/kg/qdrant_impl.py"},"region":{"startLine":1036}}}],"partialFingerprints":{"codehealthFindingId/v1":"35881c43694bfaa0ba2f2b9837d7474c87b8c02bf19031b3e17dbeb63b14d50f"}},{"ruleId":"D2","level":"warning","message":{"text":"RedisDocStatusStorage.delete (cognitive 16): RedisDocStatusStorage.delete has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), error handling 1 (3 pts), loops 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":"lightrag/kg/redis_impl.py"},"region":{"startLine":1633}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1aa6a70c981ffa499839b0c2d74fdc5b6fbed0c264d5bed2ca55bd4504605e4"}},{"ruleId":"D2","level":"warning","message":{"text":"shared_storage.acquire_enqueue_reservation (cognitive 16): shared_storage.acquire_enqueue_reservation has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/shared_storage.py"},"region":{"startLine":2868}}}],"partialFingerprints":{"codehealthFindingId/v1":"1daf77aba3b93884ddf35e91d820aa92be64fad262eb6aa89f60e99271aa2884"}},{"ruleId":"D2","level":"warning","message":{"text":"gemini._get_gemini_client (cognitive 16): gemini._get_gemini_client has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), error handling 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":"lightrag/llm/gemini.py"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"9202d95bb67fcdc0c56eac3044936e67fbe64a69cba2a9c942ff28ceaf1f3258"}},{"ruleId":"D2","level":"warning","message":{"text":"openai_responses._extract_text (cognitive 16): openai_responses._extract_text has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 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":"lightrag/llm/openai_responses.py"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"d22cee0cbf71e5085d5e59974cad502bd2ebf29e91fd2df146ef2a93bbad9dbe"}},{"ruleId":"D2","level":"warning","message":{"text":"multimodal_context._split_text_segment (cognitive 16): multimodal_context._split_text_segment 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":"lightrag/multimodal_context.py"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea37f61cbd1ea338268baf5e9dd95db87e8af64386bd2f09b5dc11e91f24e6a9"}},{"ruleId":"D2","level":"warning","message":{"text":"OMMLParser.parse_f (cognitive 16): OMMLParser.parse_f 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":"lightrag/parser/docx/omml/ommlparser.py"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9b6ad621b12f5648abf41fa457ff6c678a25dbef818485d17b9d2f26f028a20"}},{"ruleId":"D2","level":"warning","message":{"text":"_MarkdownImageResolver._resolve_remote (cognitive 16): _MarkdownImageResolver._resolve_remote has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), error handling 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":"lightrag/parser/markdown/parser.py"},"region":{"startLine":1361}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f089eb9d8696cbdf36aa4d537aa3b188739747bb9bd7c2f166237f36bbac4aa"}},{"ruleId":"D2","level":"warning","message":{"text":"routing.normalize_chunker_r_separators (cognitive 16): routing.normalize_chunker_r_separators has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 3 (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":"lightrag/parser/routing.py"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9ef2039e509407db9ed6606d4103ae96dc59d1e2ffaa95bed05936a4d5ff6d3"}},{"ruleId":"D2","level":"warning","message":{"text":"routing._filename_hint_match (cognitive 16): routing._filename_hint_match has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 5 (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":"lightrag/parser/routing.py"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"52630b5aa04c4bcea51a43168ad2da3b42600ec1e7de84259c7306154dc5c2a4"}},{"ruleId":"D2","level":"warning","message":{"text":"_PipelineMixin._run_pipeline_batch (cognitive 16): _PipelineMixin._run_pipeline_batch has cognitive complexity 16 (threshold 15). Drivers by points: loops 6 (7 pts), if/else 3, boolean chains 2, error handling 1 (2 pts), 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":"lightrag/pipeline.py"},"region":{"startLine":2620}}}],"partialFingerprints":{"codehealthFindingId/v1":"e72029e5c0a6d4fa75196327ad543881a0209361c1d1a9e6f9eb33268ae08339"}},{"ruleId":"D2","level":"warning","message":{"text":"writer._materialize_assets (cognitive 16): writer._materialize_assets has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), error handling 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/sidecar/writer.py"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f9db9393d51fb61df1bf91fa8c1fbe7ac7ec2287b68755e7067d6f6b4363099"}},{"ruleId":"D2","level":"warning","message":{"text":"RebuildTool.setup_storages (cognitive 16): RebuildTool.setup_storages has cognitive complexity 16 (threshold 15). Drivers by points: loops 5 (7 pts), if/else 3 (5 pts), error handling 2 (3 pts), 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":"lightrag/tools/rebuild_vdb.py"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fcaec0a002dbe51f3273775aa85506815a87dcf0920ea047c3891edf1ee5c8d"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.generate_reference_list_from_chunks (cognitive 16): utils.generate_reference_list_from_chunks has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 5, boolean chains 3 (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":"lightrag/utils.py"},"region":{"startLine":8007}}}],"partialFingerprints":{"codehealthFindingId/v1":"7853124d2f4d0fd62bb6b9505aef7c8ed4b95e765ec98ed6ac68e41a1bceb89b"}},{"ruleId":"D2","level":"warning","message":{"text":"lightrag.axiosInstance.interceptors.response.use() (cognitive 16): lightrag.axiosInstance.interceptors.response.use() has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), ternaries 2 (5 pts), error handling 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":"lightrag_webui/src/api/lightrag.ts"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"dce030c94856b9a3896d201ed88dd8ecda38d20517aac0bf7bc21dd3bff8827c"}},{"ruleId":"D2","level":"warning","message":{"text":"FocusOnNode.FocusOnNode (cognitive 16): FocusOnNode.FocusOnNode has cognitive complexity 16 (threshold 15). Drivers by points: error handling 3 (7 pts), if/else 5 (6 pts), boolean chains 3 (nesting depth added 5). None of this is in the body itself: all 16 points belong to 2 function literals inside it that branch (lines 15, 40). 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":"lightrag_webui/src/components/graph/FocusOnNode.tsx"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"786e1fc1f67a307a24cae703e316221e3ce4cf8fe8cc3573e63e10473f5ca676"}},{"ruleId":"D2","level":"warning","message":{"text":"splitSettingsStorage.writeShrunkLegacyEnvelope (cognitive 16): splitSettingsStorage.writeShrunkLegacyEnvelope has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (7 pts), error handling 3 (5 pts), boolean chains 2, loops 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":"lightrag_webui/src/migrations/splitSettingsStorage.ts"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"f94b4272c342f3542f04224d3441291caa472dfffa49315eab053437cb60e411"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: kg/postgres_impl.py: FileTooLong \u2014 5167 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 4667 over it, 10.33\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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3466673b891696b92b154f21ab9b9798b36a40862814b3aa70f5748b3e687433"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: DocumentManager.DocumentManager: FunctionTooLong \u2014 DocumentManager runs 904 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 804 over it, 9.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":"lightrag_webui/src/features/DocumentManager.tsx"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"10155df53a488c30c49b0397ffb1ba1bc51f232410a8c12e312c916c6f5f86a6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lightrag/pipeline.py: FileTooLong \u2014 4505 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 4005 over it, 9.01\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":"lightrag/pipeline.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f47fbfdbb202e83ef857f0028153dc670b72740f09b5e94b22f23e6e5bab6766"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: kg/opensearch_impl.py: FileTooLong \u2014 4416 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 3916 over it, 8.83\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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dfc8802d96de2726b757400c13632ed44e3f947ac68a9e9470d1da868bda488"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lightrag/operate.py: FileTooLong \u2014 4376 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 3876 over it, 8.75\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":"lightrag/operate.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e64ef4ff300846bf5e42de93e210953ad2b32b9ec48c3daec674dbd3b233181"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lightrag/lightrag.py: FileTooLong \u2014 4318 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 3818 over it, 8.64\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":"lightrag/lightrag.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cc08b2c856c47f40fbed732e6f232a3dba728b68c0a8ed7349b4a233b3710b2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lightrag/utils.py: FileTooLong \u2014 4132 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 3632 over it, 8.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":"lightrag/utils.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"67d135c687f7063722b21c1db68681170edd733481a011775c819fa65ae05731"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: routers/document_routes.py: FileTooLong \u2014 3681 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 3181 over it, 7.36\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":"lightrag/api/routers/document_routes.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"28a5b400aac5687bdd91b23ca943694289c361f4ed6f412fd5c1fa6d8d6ce191"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: kg/mongo_impl.py: FileTooLong \u2014 2877 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2377 over it, 5.75\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":"lightrag/kg/mongo_impl.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2ba406e2d453853a4f20474b86a60370622616e702a62f2f28bad7af22eafe3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useLightragGraph.useLightrangeGraph: FunctionTooLong \u2014 useLightrangeGraph runs 475 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 375 over it, 4.75\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":"lightrag_webui/src/hooks/useLightragGraph.tsx"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"e75f8b2571959eaa370b05ff4df74a2a28c238996841351b77d7042517713d9d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: kg/shared_storage.py: FileTooLong \u2014 2287 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1787 over it, 4.57\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":"lightrag/kg/shared_storage.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"17eb599b1f7cd7b0fbc6e866fb85ef0db2b3db4af5ca90f72bf7772dfcc64ac8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: api/lightrag_server.py: FileTooLong \u2014 2191 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1691 over it, 4.38\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/lightrag_server.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"265fb3443e70b6a87f0fa782102afeb60a2f6cc7bdb6abf5bdd8e6b692998c2d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: smart_heading/heading_flow.py: FileTooLong \u2014 2035 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1535 over it, 4.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":"lightrag/parser/docx/smart_heading/heading_flow.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b44ff8475aac0d229152d9e8a9329f6c0efa4c958e6b61a11734f817d9da78fe"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: kg/milvus_impl.py: FileTooLong \u2014 2018 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1518 over it, 4.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":"lightrag/kg/milvus_impl.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"97ef0078fcb7ce183580dda24d5c65c006443426941b5a035b4295052aaf951b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lightrag/utils_graph.py: FileTooLong \u2014 1945 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1445 over it, 3.89\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":"lightrag/utils_graph.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c57305243668a5ea45e8d2f6bfbed504a17ad38a7770fa1243e4de5169f51fc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: kg/redis_impl.py: FileTooLong \u2014 1659 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1159 over it, 3.32\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":"lightrag/kg/redis_impl.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0e9b3b4412302b6d13cab5ff80eedc364fc40edc7195e814097fba39b818ca5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useQuerySession.useQuerySession: FunctionTooLong \u2014 useQuerySession runs 305 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 205 over it, 3.05\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":"lightrag_webui/src/features/retrieval/useQuerySession.ts"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"1275a5bb137fc04a59f3435cb690cd5b29d78bb19da73cfac7d8acd5a31f52f4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: chunker/paragraph_semantic.py: FileTooLong \u2014 1321 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 821 over it, 2.64\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":"lightrag/chunker/paragraph_semantic.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f60f3603b5dce69803910953d3b43ed08cb8c0d92ccd7285b10213127f60028"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: features/DocumentManager.tsx: FileTooLong \u2014 1175 significant lines (blank, comment-only and punctuation-only lines excluded), about 77% of them inside a single declaration: DocumentManager (381-1853). The bar is 500 significant lines; this is 675 over it, 2.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":"lightrag_webui/src/features/DocumentManager.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5344c154409e2bc1b437f384e5fe09baf86b06b81f230a923216ee90ae0e84e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DocumentManager: ClassTooLong \u2014 904 significant lines (blank, comment-only and punctuation-only lines excluded), 9 methods. The bar is 400 significant lines; this is 504 over it, 2.26\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":"lightrag_webui/src/features/DocumentManager.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"490169bd2eb731fa256c89d06f75c7d309e8e44db2af31ef6f46e130dd304c9f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: Settings.Settings: FunctionTooLong \u2014 Settings runs 213 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 113 over it, 2.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":"lightrag_webui/src/components/graph/Settings.tsx"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0d7086408264716ff5e0d94f205f805648fbdf804939e56d1b1f10a32e3f341"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: MessageList.MessageList: FunctionTooLong \u2014 MessageList runs 211 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 111 over it, 2.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":"lightrag_webui/src/features/retrieval/MessageList.tsx"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"f281303072718705e55ffa0804616b95b1aae0295544d3909c645ff18ee5a9db"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: QueryComposer.QueryComposer: FunctionTooLong \u2014 QueryComposer runs 206 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 106 over it, 2.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":"lightrag_webui/src/features/retrieval/QueryComposer.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad47a2b5e96da4986927799f4a20d878ef29693b49c758574f5b80c3effb435a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: EditablePropertyRow.EditablePropertyRow: FunctionTooLong \u2014 EditablePropertyRow runs 203 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 103 over it, 2.03\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":"lightrag_webui/src/components/graph/EditablePropertyRow.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e40c4d86fab18b3b31ca09eb3ca64f3047a26f8d8f1540daa955bd9956f4094"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: smart_heading/title_block.py: FileTooLong \u2014 995 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 495 over it, 1.99\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":"lightrag/parser/docx/smart_heading/title_block.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"872366bb3148cad67faf8edcaa3ca41a6ccbf01a574b9fb0d3689073374e414d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: PaginationControls.PaginationControls: FunctionTooLong \u2014 PaginationControls runs 191 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 91 over it, 1.91\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":"lightrag_webui/src/components/ui/PaginationControls.tsx"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"35712d8c6c9fe0c37b00dc890be753c4ccf191d43bfb329fc1d9a0ecb793bbf7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tools/chunk_tracking_repair.py: FileTooLong \u2014 946 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 446 over it, 1.89\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":"lightrag/tools/chunk_tracking_repair.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6ec4464e492aa68cf25fe13573e43f6b3f6b4d4641536b6313f08b408658b7a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: GraphLabels.GraphLabels: FunctionTooLong \u2014 GraphLabels runs 188 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 88 over it, 1.88\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":"lightrag_webui/src/components/graph/GraphLabels.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"845261843db6a3223eb2789d997b367237211af768ec409dea46d88c843a5a6d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: _PipelineMixin: 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":"lightrag/pipeline.py"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f5145fc983ba1c1cfee1c088353469593216d5db772f87d73073b53149edbd9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: markdown/parser.py: FileTooLong \u2014 920 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 420 over it, 1.84\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":"lightrag/parser/markdown/parser.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ffbda3ed3f8685050508b17a6176e75497572ca90c934694dc11ee07d49216"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: kg/qdrant_impl.py: FileTooLong \u2014 908 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 408 over it, 1.82\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":"lightrag/kg/qdrant_impl.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fed72bb753df19d3b2e86dc16131f37a4dd906f1f6edfff9ef7a26fdbfc5ce5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useQuerySession.useQuerySession.submitQuery: FunctionTooLong \u2014 useQuerySession.submitQuery runs 180 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 80 over it, 1.80\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":"lightrag_webui/src/features/retrieval/useQuerySession.ts"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e4b2e4f2ae8f0d210e00a4dbca5ff8f06ae36525a36b1aa2de555d752e2cc44"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: StatusCard.StatusCard: FunctionTooLong \u2014 StatusCard runs 175 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 75 over it, 1.75\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":"lightrag_webui/src/components/status/StatusCard.tsx"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"e40d504f1db7b004f395c70d3cfb3087f4336a7849cc3108c731e41a5898e5b1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: api/lightrag.ts: FileTooLong \u2014 849 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 349 over it, 1.70\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":"lightrag_webui/src/api/lightrag.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3ee40d2a5dd2dae33057b61329445e4e16301c5d9a6fab406f65f5128a0052f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: kg/faiss_impl.py: FileTooLong \u2014 846 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 346 over it, 1.69\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":"lightrag/kg/faiss_impl.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f793740e45cc1e67a94cb0befd3110bcc2b9bbddbe9798e2a485a8467e8e95b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: parser/routing.py: FileTooLong \u2014 842 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 342 over it, 1.68\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":"lightrag/parser/routing.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f083e3360f97e1ce8ceec256017a25907417a1a29a8545d40327f88624e78464"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: docx/parse_document.py: FileTooLong \u2014 836 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 336 over it, 1.67\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":"lightrag/parser/docx/parse_document.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2254c1908c8414013578c7938b0cd00acf7cbfba41a9a2942c171bfe2273b3c8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: graph.useGraphStoreBase: FunctionTooLong \u2014 useGraphStoreBase runs 164 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 64 over it, 1.64\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/stores/graph.ts"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dad1fc04800828e077db604efafed396a29c3076e388c4c98366141080b8e24"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tools/migrate_llm_cache.py: FileTooLong \u2014 814 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 314 over it, 1.63\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":"lightrag/tools/migrate_llm_cache.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce21976579d10707904cef46f785bc3ba29f0a6f134b7270ad73db41fdc00b72"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: routers/query_routes.py: FileTooLong \u2014 807 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 307 over it, 1.61\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/routers/query_routes.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bdcb1c2faff2e274dd02f3c5c48d94eb02a2ea0c52b9b7e60f200f7d8addf3d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: FileUploader.FileUploader: FunctionTooLong \u2014 FileUploader runs 161 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 61 over it, 1.61\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/components/ui/FileUploader.tsx"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bc554ed73a099ca3b1fe7c5917b27a330305efa06e9f8b1f874bf80fc7a5761"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: llm/openai.py: FileTooLong \u2014 804 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 304 over it, 1.61\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bcfa978216f763915e292215687f2430fd5f3234104f8dc4efe40a5dc9a01c4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tools/rebuild_vdb.py: FileTooLong \u2014 802 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 302 over it, 1.60\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":"lightrag/tools/rebuild_vdb.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7161bef593a5828d5e7718d39dc1bdff6e2798ffb83c7d2bca89292c363f639b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: UploadDocumentsDialog.UploadDocumentsDialog: FunctionTooLong \u2014 UploadDocumentsDialog runs 157 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 57 over it, 1.57\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":"lightrag_webui/src/components/documents/UploadDocumentsDialog.tsx"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bb18ef7a043ea6c784112277ff882f087a7d4954b5403514d6d92362b74b8bd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: docling/ir_builder.py: FileTooLong \u2014 761 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 261 over it, 1.52\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":"lightrag/parser/external/docling/ir_builder.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6be3103e99041e8a09f356afe210db57551965e7b87a3ed2aefcbb0cde851549"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AsyncSelect.AsyncSelect: FunctionTooLong \u2014 AsyncSelect 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":"lightrag_webui/src/components/ui/AsyncSelect.tsx"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4a90619f674c348631af33a394c974954010534e717b06f896f59a9ff46e125"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: kg/nano_vector_db_impl.py: FileTooLong \u2014 719 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 219 over it, 1.44\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":"lightrag/kg/nano_vector_db_impl.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb6e5730c5a06fea9478c20ee02040566e8950a090cca744ff06f921fbca3ad0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: App.App: FunctionTooLong \u2014 App runs 142 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 42 over it, 1.42\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/App.tsx"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"531d248ee3ebd5bf0a2a3da4051e82f4eca523f50b01d517f2861d335891b347"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: UserPromptInputWithHistory.UserPromptInputWithHistory: FunctionTooLong \u2014 UserPromptInputWithHistory runs 142 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 42 over it, 1.42\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/components/ui/UserPromptInputWithHistory.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4bc7c5c995034a260936105a2be6bf09759211d3ece0914dce25ec472e5062a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: kg/networkx_impl.py: FileTooLong \u2014 707 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 207 over it, 1.41\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":"lightrag/kg/networkx_impl.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e8c44a8001e863eaf4ac36b15deef58ae9d394adaf79817ab9d40daa1866645"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: kg/json_doc_status_impl.py: FileTooLong \u2014 698 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 198 over it, 1.40\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":"lightrag/kg/json_doc_status_impl.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7b172c3c1352a82e4012be19e138b91412d45d670d888baf940fcdf08fa872d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lightrag/multimodal_context.py: FileTooLong \u2014 692 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 192 over it, 1.38\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/multimodal_context.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfe1bdb903593462a9c855bb044c87b77e7a7ffe2c25a6987fb122dcd52a4c02"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tools/clean_llm_query_cache.py: FileTooLong \u2014 690 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 190 over it, 1.38\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/tools/clean_llm_query_cache.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8c26cd69860b68db163863ab91658d8cfd307aa7ab9d8a74f6e6465a21aaf32"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: kg/neo4j_impl.py: 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":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"00ad5cdb2c69a534789bfa74be0dc9acaff3e44cfcc01430df7a19e0b9fa460a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: api/config.py: FileTooLong \u2014 663 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 163 over it, 1.33\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":"lightrag/api/config.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"29240cd9273364296d1df799e967bd302b89a5934f219ca276b07195bcad29a5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: PropertyEditDialog.PropertyEditDialog: FunctionTooLong \u2014 PropertyEditDialog 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":"lightrag_webui/src/components/graph/PropertyEditDialog.tsx"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f81b724651fddea33ce56eef1db2645b03af48edeb36c06f6108785d234c978"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hooks/useLightragGraph.tsx: FileTooLong \u2014 655 significant lines (blank, comment-only and punctuation-only lines excluded), about 73% of them inside a single declaration: useLightrangeGraph (328-1198). The bar is 500 significant lines; this is 155 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":"lightrag_webui/src/hooks/useLightragGraph.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb871f3a80d205daccb34742a403e37381c8476774d32689d274d4f8fb91423f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ClearDocumentsDialog.ClearDocumentsDialog: FunctionTooLong \u2014 ClearDocumentsDialog runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/components/documents/ClearDocumentsDialog.tsx"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b8c43b46ce7ff5c440d872009992d9163725943c63409e4898cbd0e7ac06626"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: DeleteDocumentsDialog.DeleteDocumentsDialog: FunctionTooLong \u2014 DeleteDocumentsDialog 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":"lightrag_webui/src/components/documents/DeleteDocumentsDialog.tsx"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ba080e4bd48f56b55f5a9ce5932c90781e81e300e2888ff2a7de05033852d3d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PostgreSQLDB: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/postgres_impl.py"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"a57cfe731a2a342d9ee907f969b580d8a74f451de17b9628ae1ed4c9f6ec87cb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lightrag/utils_pipeline.py: FileTooLong \u2014 632 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 132 over it, 1.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":"lightrag/utils_pipeline.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"640342ea4de881cc7671404474138baf2e7b9a8fb33038dee25687de9ae27536"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AsyncSearch.AsyncSearch: FunctionTooLong \u2014 AsyncSearch runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.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":"lightrag_webui/src/components/ui/AsyncSearch.tsx"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"f335394b1015cc2295d25b4999cc41b8d19489cb3034c47ed9337dd07160ecc5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: routers/ollama_api.py: FileTooLong \u2014 622 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 122 over it, 1.24\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":"lightrag/api/routers/ollama_api.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa04fc3f7a4b3286829956c51ca344bffb480c11a37cd6e102f12c0bb75db931"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MigrationTool: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/tools/migrate_llm_cache.py"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"c66fb45906f598f2ebf4e637f9c2e68c6ef1390d251c07e8253ee6ff6ae8afb7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: evaluation/eval_rag_quality.py: FileTooLong \u2014 568 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 68 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":"lightrag/evaluation/eval_rag_quality.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecdd9b776a1f26f3d6b643c6ec1bb0a19b5cdcf3a1c5e98fc35ff847609ca4ec"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lightrag/prompt.py: FileTooLong \u2014 565 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 65 over it, 1.13\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":"lightrag/prompt.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"76dc417f356883ad9550bf0314013f0f8823c7917aed45a8f8308b6cd546ea00"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lightrag/base.py: FileTooLong \u2014 561 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 61 over it, 1.12\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":"lightrag/base.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"262c09365e7f7b142dc286f31ed27791e40e003464d59682eaff2d1217b307e3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: llm/openai_responses.py: FileTooLong \u2014 560 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 60 over it, 1.12\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":"lightrag/llm/openai_responses.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a73c82e803177a610f361919b1928363ae6beec005444c423bdda4bebdab7f9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: WorkspaceWelcome.WorkspaceWelcome: FunctionTooLong \u2014 WorkspaceWelcome 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":"lightrag_webui/src/features/workspace/WorkspaceWelcome.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"23bcee9f4289646a76253bd7111f0df56a51d24f9155270f2eaf6a7ed9acfcab"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: llm/binding_options.py: FileTooLong \u2014 551 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 51 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":"lightrag/llm/binding_options.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"58dcf15cd03caa43e02e417faa00115383579c9312297a004583169458ae0bb8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tools/migrate_graph_storage.py: FileTooLong \u2014 546 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 46 over it, 1.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":"lightrag/tools/migrate_graph_storage.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d22d91217f6ba69ea29f0c771472f6318975ac38af98291fb3b57b7204d385ae"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: WorkspaceApp.WorkspaceApp: FunctionTooLong \u2014 WorkspaceApp 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":"lightrag_webui/src/features/workspace/WorkspaceApp.tsx"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"02875eeba7e31a9343cce48b0f678ec498d04fc4ae4ef1150fefd8ee2d251760"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: smart_heading/guardrails.py: FileTooLong \u2014 539 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 39 over it, 1.08\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":"lightrag/parser/docx/smart_heading/guardrails.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b8d97f97e7c87056143ba419b545163967e612d25213d3893d954dc6721a231"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: markdown/extract.py: FileTooLong \u2014 539 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 39 over it, 1.08\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":"lightrag/parser/markdown/extract.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f39428f14614baa87b3697e1ecf2e1ba9bcdc8f2c72771c64ce2a609f7804fe"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: kg/pgtable_impl.py: FileTooLong \u2014 521 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 21 over it, 1.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":"lightrag/kg/pgtable_impl.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"14befdcbc13d2bf71212faf98230a28a3175f788aa07f9068abc666487b2b4e7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mineru/ir_builder.py: FileTooLong \u2014 521 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 21 over it, 1.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":"lightrag/parser/external/mineru/ir_builder.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f9967cf290841eb51ea892f0bf8e833bbcb2abcb4574aad74d16576054f099c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: LayoutsControl.LayoutsControl: FunctionTooLong \u2014 LayoutsControl runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\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":"lightrag_webui/src/components/graph/LayoutsControl.tsx"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"5763f8e5ae4225f0e64ec3883971ab5da8b5d07fc9c70f41622b25d78b372d48"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mineru/client.py: FileTooLong \u2014 513 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 13 over it, 1.03\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/parser/external/mineru/client.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f9ef5087912aa4812f2e5fab751fc5489171a09e466499adf87748ca739d55"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (136 shared lines): lightrag/operate.py:2485-2820 | lightrag/operate.py:2842-3515 \u2014 These two members are variants of one another: 136 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":"lightrag/operate.py"},"region":{"startLine":2485}}}],"partialFingerprints":{"codehealthFindingId/v1":"de588157714e767b4a693753909ade58faac9b6a458738509d15953843f7723f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (119 shared lines): lightrag/kg/memgraph_impl.py:1057-1231 | lightrag/kg/neo4j_impl.py:1305-1525 \u2014 These two members are variants of one another: 119 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":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":1057}}}],"partialFingerprints":{"codehealthFindingId/v1":"240b4619c06ce150dc7472785bcd81ab3393579605bbf4235c7241b1a2897c8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (115 shared lines): lightrag/operate.py:6511-6677 | lightrag/operate.py:6782-6974 \u2014 These two members are variants of one another: 115 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":"lightrag/operate.py"},"region":{"startLine":6511}}}],"partialFingerprints":{"codehealthFindingId/v1":"2163a4c047a389a9c2c34ac029e49e6adc2ad9f4af198aaf11b25cc53be58ce6"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (92 shared lines): lightrag/kg/postgres_impl.py:3420-3561 | lightrag/kg/postgres_impl.py:3575-3744 \u2014 These two members are variants of one another: 92 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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":3420}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1a3d45a22befc0d64392571beee57d7d15fb92a4d6363f60b0697a4334dba2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (82 shared lines): lightrag/parser/external/docling/ir_builder.py:128-497 | lightrag/parser/external/mineru/ir_builder.py:189-500 \u2014 These two members are variants of one another: 82 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":"lightrag/parser/external/docling/ir_builder.py"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"b50805d125e1241a3029e5130ad78100507536d2face81590695207d8e22cf22"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (43 shared lines): lightrag/tools/migrate_llm_cache.py:342-417 | lightrag/tools/migrate_llm_cache.py:737-808 \u2014 These two members are variants of one another: 43 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":"lightrag/tools/migrate_llm_cache.py"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a896bd494b926b0200a915653d5be99d571e439c0a9bb6f69953c809f56f987"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): lightrag/kg/postgres_impl.py:6116-6185 | lightrag/kg/postgres_impl.py:6190-6263 \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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":6116}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb2861bf97fb0e188ffed35925280a3fda7f1946c749605678023232147b5d03"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): lightrag/kg/faiss_impl.py:640-732 | lightrag/kg/nano_vector_db_impl.py:1038-1125 \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":"lightrag/kg/faiss_impl.py"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b6ff6c113260ed44cf6b42772b50f833a0af3a1ce70fcfff25798615998ea18"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): lightrag/kg/opensearch_impl.py:5455-5556 | lightrag/kg/opensearch_impl.py:6063-6119 \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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":5455}}}],"partialFingerprints":{"codehealthFindingId/v1":"8887d3814cf8adec05d30e194d7667bdd3817773b52eebd822fcc03cabf6164e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (12 members, 50\u002B identical tokens): lightrag/kg/faiss_impl.py:908-1168 | lightrag/kg/milvus_impl.py:2894-3066 | lightrag/kg/milvus_impl.py:3392-3472 | lightrag/kg/mongo_impl.py:4719-4866 | lightrag/kg/mongo_impl.py:5027-5108 | lightrag/kg/nano_vector_db_impl.py:532-725 | lightrag/kg/opensearch_impl.py:6686-6887 | lightrag/kg/opensearch_impl.py:7126-7206 | lightrag/kg/postgres_impl.py:5003-5265 | lightrag/kg/postgres_impl.py:5614-5731 | lightrag/kg/qdrant_impl.py:849-1010 | lightrag/kg/qdrant_impl.py:1249-1350 \u2014 These 12 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 12 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/faiss_impl.py"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc9c57cfd9f64718ce539ea9351b60aacb9cca8721ec6be4fd661448a198dd97"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): lightrag/kg/milvus_impl.py:2431-2609 | lightrag/kg/mongo_impl.py:421-459 | lightrag/kg/mongo_impl.py:701-733 | lightrag/kg/mongo_impl.py:1777-1821 | lightrag/kg/mongo_impl.py:4238-4307 | lightrag/kg/qdrant_impl.py:518-618 | lightrag/kg/redis_impl.py:395-449 | lightrag/kg/redis_impl.py:1011-1067 \u2014 These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/milvus_impl.py"},"region":{"startLine":2431}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c39abdacfdf544f5b4f5e047d3fad35f60898d44e84aa22facdaf376cd34702"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): lightrag/kg/redis_impl.py:1218-1251 | lightrag/kg/redis_impl.py:1280-1342 | lightrag/kg/redis_impl.py:1347-1402 | lightrag/kg/redis_impl.py:1690-1807 | lightrag/kg/redis_impl.py:1824-1867 | lightrag/kg/redis_impl.py:1976-2050 | lightrag/kg/redis_impl.py:2616-2702 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":1218}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a7f9344dfd8e7e32d3a5e3a7d672911c1329dfffdb6688c50992a123349f961"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): examples/lightrag_ollama_demo.py:19-78 | examples/lightrag_openai_compatible_demo.py:20-81 | examples/lightrag_openai_demo.py:13-72 | examples/unofficial-sample/lightrag_cloudflare_demo.py:132-193 | examples/unofficial-sample/lightrag_embedding_prefixes.py:20-81 | lightrag/api/lightrag_server.py:3428-3505 \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":"examples/lightrag_ollama_demo.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b48caeac14fba7ca585c4a026016256cd2e9a9e9582e1a26eeff2ffdeaa3bee"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): lightrag/kg/opensearch_impl.py:1340-1404 | lightrag/kg/opensearch_impl.py:1407-1460 | lightrag/kg/opensearch_impl.py:2321-2352 | lightrag/kg/opensearch_impl.py:2355-2390 | lightrag/kg/opensearch_impl.py:3186-3237 | lightrag/kg/opensearch_impl.py:3245-3305 \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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":1340}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d0ade2c30b8e3b1c9ca8be8207197be7a10350c0a47d2355e13a7a1f5d247cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): lightrag/kg/milvus_impl.py:3185-3196 | lightrag/kg/mongo_impl.py:4869-4880 | lightrag/kg/opensearch_impl.py:7209-7225 | lightrag/kg/postgres_impl.py:5324-5340 | lightrag/kg/qdrant_impl.py:1013-1024 \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":"lightrag/kg/milvus_impl.py"},"region":{"startLine":3185}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cbc5d0fccf809933d4a3d841f07233a47ddeb8ad66a0f8d4915d008f1c1a3b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lightrag/kg/json_doc_status_impl.py:770-804 | lightrag/kg/mongo_impl.py:1329-1353 | lightrag/kg/opensearch_impl.py:2970-2998 | lightrag/kg/redis_impl.py:2082-2103 \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":"lightrag/kg/json_doc_status_impl.py"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4ad6634a5e74ec6d9012a3c508d088e07ba2bfecefe32205a705413263d24f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lightrag/kg/memgraph_impl.py:915-943 | lightrag/kg/memgraph_impl.py:959-992 | lightrag/kg/neo4j_impl.py:1765-1786 | lightrag/kg/neo4j_impl.py:1828-1854 \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":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"020528d0b502a7e303699f58453d8563f6caa4b1836045e4347ef11e0c0e35a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lightrag/kg/milvus_impl.py:2816-2872 | lightrag/kg/mongo_impl.py:219-258 | lightrag/kg/postgres_impl.py:244-284 | lightrag/kg/qdrant_impl.py:660-705 \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":"lightrag/kg/milvus_impl.py"},"region":{"startLine":2816}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb6aba743f44aa03723251799cb374e9e0d399fa8203d7c763183efb24f6a48c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lightrag/kg/milvus_impl.py:3475-3523 | lightrag/kg/mongo_impl.py:4426-4452 | lightrag/kg/postgres_impl.py:4798-4850 | lightrag/kg/qdrant_impl.py:1353-1396 \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":"lightrag/kg/milvus_impl.py"},"region":{"startLine":3475}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ebb0af1f929bd732f4c900a4a83de8f828497ab989835dc7e6b3b07b45c4c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lightrag/kg/postgres_impl.py:1980-2008 | lightrag/kg/postgres_impl.py:2011-2039 | lightrag/kg/postgres_impl.py:2042-2096 | lightrag/kg/postgres_impl.py:2099-2152 \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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":1980}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4e1bcd9e4e73f7f95e345f2cf2de45741f0d877bcf63cb2381654e59b916d97"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lightrag/kg/postgres_impl.py:3393-3411 | lightrag/kg/postgres_impl.py:4739-4795 | lightrag/kg/postgres_impl.py:5911-5929 | lightrag/kg/postgres_impl.py:7703-7806 \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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":3393}}}],"partialFingerprints":{"codehealthFindingId/v1":"51c355dba0ff8bd06362a5ecc74a000c1041d34ae3040ce65d6e1ecf12d4179e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (60 corresponding lines): lightrag/tools/clean_llm_query_cache.py:872-945 | lightrag/tools/migrate_llm_cache.py:1358-1417 \u2014 These two members are one piece of code written twice and then edited apart: 60 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/tools/clean_llm_query_cache.py"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ca4bc9190e6b9a2b554d752571f174205f35fa7a84c165c8e77f27eefc79ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (177 corresponding lines): lightrag/kg/faiss_impl.py:1877-2103 | lightrag/kg/nano_vector_db_impl.py:1493-1669 \u2014 These two members are one piece of code written twice and then edited apart: 177 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/faiss_impl.py"},"region":{"startLine":1877}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c3f07df8bffaec2c18b78b5d0c671823e4330630970e53af3e0fe9da87784a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (58 corresponding lines): lightrag/tools/clean_llm_query_cache.py:453-528 | lightrag/tools/clean_llm_query_cache.py:706-763 \u2014 These two members are one piece of code written twice and then edited apart: 58 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/tools/clean_llm_query_cache.py"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"1747a90b027252038653c31c1599adaafd6a2ece091082cbf7267682800dbf5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): lightrag/parser/external/_manifest.py:84-116 | lightrag/parser/external/mineru/manifest.py:82-113 \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":"lightrag/parser/external/_manifest.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"04d5b9ca8590c1fbafe8f053ff3aa040923885ebf1dfbab31e0e4259809d55fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 77\u002B corresponding lines): lightrag/kg/memgraph_impl.py:530-614 | lightrag/kg/memgraph_impl.py:619-716 | lightrag/kg/memgraph_impl.py:719-795 | lightrag/kg/memgraph_impl.py:835-912 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 77 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":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"e94d8823a982ca457ece79825b673efec196e05ab2406e84755be618c21cbc2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (74 corresponding lines): lightrag/tools/migrate_llm_cache.py:1190-1263 | lightrag/tools/migrate_llm_cache.py:1273-1355 \u2014 These two members are one piece of code written twice and then edited apart: 74 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/tools/migrate_llm_cache.py"},"region":{"startLine":1190}}}],"partialFingerprints":{"codehealthFindingId/v1":"649ff0f71e1971565fea61850247e3abee6a91aee9f3186689c7f0b46d7cd191"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): lightrag/kg/postgres_impl.py:5964-6003 | lightrag/kg/postgres_impl.py:6062-6111 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/postgres_impl.py"},"region":{"startLine":5964}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb09997d7b2dd12b97e1664d3daf46c3997406bbe1fbe87372c398eac8d525ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (60 corresponding lines): lightrag/kg/faiss_impl.py:1713-1772 | lightrag/kg/nano_vector_db_impl.py:1317-1381 \u2014 These two members are one piece of code written twice and then edited apart: 60 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/faiss_impl.py"},"region":{"startLine":1713}}}],"partialFingerprints":{"codehealthFindingId/v1":"954e09373efcc2d5dc56dc925d62d28409b0b6ef4f4bbc820f9b1a2724568b41"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): lightrag/chunker/paragraph_semantic.py:496-537 | lightrag/chunker/paragraph_semantic.py:610-652 \u2014 These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/chunker/paragraph_semantic.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d46788af48fcfcd159484128490e4b4b74d00d8edd260fe919a2b2908bdff90"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (109 corresponding lines): lightrag/kg/json_doc_status_impl.py:258-366 | lightrag/kg/json_kv_impl.py:135-263 \u2014 These two members are one piece of code written twice and then edited apart: 109 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/json_doc_status_impl.py"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"26fcd10a3495bb88edce5ff24eb1c4b403d56dedd574647e4d9104996e63df08"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (60 corresponding lines): lightrag/operate.py:737-796 | lightrag/operate.py:805-878 \u2014 These two members are one piece of code written twice and then edited apart: 60 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"7398e842795e0eb486c60544b86bff8310d0daeae087bc0a937949b419167930"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): lightrag/kg/json_doc_status_impl.py:1148-1200 | lightrag/kg/redis_impl.py:2451-2511 \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":"lightrag/kg/json_doc_status_impl.py"},"region":{"startLine":1148}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8d626297cdc43142118a21d4072ca16fce3c2d4fc5e03e00eaadb3f10a528ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): lightrag/multimodal_context.py:300-356 | lightrag/multimodal_context.py:362-410 \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":"lightrag/multimodal_context.py"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"72600fe19e3511209b213454ea2e6bcf197073c5cea9c733604527c4b8175134"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): lightrag/kg/postgres_impl.py:8710-8758 | lightrag/kg/postgres_impl.py:8761-8813 \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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":8710}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ab1e4e2a95f5f78778e9554a4a84c0ffadd6f08c11ac9f6e7eafea180cc0c89"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (76 corresponding lines): lightrag/kg/postgres_impl.py:8818-8893 | lightrag/kg/postgres_impl.py:8898-8993 \u2014 These two members are one piece of code written twice and then edited apart: 76 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/postgres_impl.py"},"region":{"startLine":8818}}}],"partialFingerprints":{"codehealthFindingId/v1":"187aac53518e70ac6c2b5192e37fa56263b93903317dd4da0e1828a5cdfdd206"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (80 corresponding lines): lightrag/parser/external/docling/cache.py:209-312 | lightrag/parser/external/mineru/cache.py:339-418 \u2014 These two members are one piece of code written twice and then edited apart: 80 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/parser/external/docling/cache.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed7137f0e409dfcbebc93498cd6641d5322abbcbe7b59cc26b18f7a7caed6415"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): lightrag/kg/milvus_impl.py:3344-3389 | lightrag/kg/mongo_impl.py:4984-5024 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/milvus_impl.py"},"region":{"startLine":3344}}}],"partialFingerprints":{"codehealthFindingId/v1":"c89da49a768f143ee62a4306f58391ce3abbe81bb0afdb0612b8bb949e8e7ed0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (71 corresponding lines): lightrag/kg/memgraph_impl.py:396-466 | lightrag/kg/neo4j_impl.py:923-996 \u2014 These two members are one piece of code written twice and then edited apart: 71 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"922c1cc6b615cbc6baf6e95dc7480244fb955170b815a1f924d5f01e2b796c17"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (68 corresponding lines): lightrag/kg/faiss_impl.py:329-396 | lightrag/kg/nano_vector_db_impl.py:357-427 \u2014 These two members are one piece of code written twice and then edited apart: 68 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/faiss_impl.py"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f425735c2ad58fa407ab61b8e4b9d281f2f338b0fcd5faa0f5b7cc886672728"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): lightrag/multimodal_context.py:513-573 | lightrag/multimodal_context.py:637-685 \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":"lightrag/multimodal_context.py"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"233b9d5e4f14ef97d243c617e8e66b40fba4104a141b156fcf8940ea0f90c665"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 47\u002B corresponding lines): lightrag/kg/opensearch_impl.py:4382-4462 | lightrag/kg/opensearch_impl.py:4605-4671 | lightrag/kg/opensearch_impl.py:5904-5950 | lightrag/kg/opensearch_impl.py:5953-6000 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 47 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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":4382}}}],"partialFingerprints":{"codehealthFindingId/v1":"510b757cb608cf19da6714758325d562181552a124c535b06e3d32425095ceac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): lightrag/kg/pgtable_impl.py:1530-1580 | lightrag/kg/pgtable_impl.py:1585-1651 \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":"lightrag/kg/pgtable_impl.py"},"region":{"startLine":1530}}}],"partialFingerprints":{"codehealthFindingId/v1":"f86b250d5cfa93002a4cfd9fe863ef9a04fc2f6560cb305e3f87b7804e4a4161"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (58 corresponding lines): lightrag/parser/docx/parse_document.py:438-499 | lightrag/parser/docx/table_extractor.py:38-95 \u2014 These two members are one piece of code written twice and then edited apart: 58 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/parser/docx/parse_document.py"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"9914f16e9f9002682356c8fa216e883fbc52179bfae900d30b4e261e9d737d06"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): lightrag/kg/opensearch_impl.py:5095-5138 | lightrag/kg/opensearch_impl.py:5141-5181 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":5095}}}],"partialFingerprints":{"codehealthFindingId/v1":"69afdb85988f80d1c924eeec3d31d4585ed68b117c4e9d439fef0eb6b4f7bfb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (74 corresponding lines): lightrag/kg/postgres_impl.py:5343-5416 | lightrag/kg/postgres_impl.py:5419-5494 \u2014 These two members are one piece of code written twice and then edited apart: 74 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/postgres_impl.py"},"region":{"startLine":5343}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bb055523ffae7d171e626a561c6700b65ac08c61ffec26a2ce91446daddd192"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (58 corresponding lines): lightrag/kg/milvus_impl.py:3079-3182 | lightrag/kg/mongo_impl.py:4893-4950 \u2014 These two members are one piece of code written twice and then edited apart: 58 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/milvus_impl.py"},"region":{"startLine":3079}}}],"partialFingerprints":{"codehealthFindingId/v1":"a52f5770eb21a470724295f44c6f70ac9400f53976d49dd18e34906882156988"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): lightrag/parser/docx/parse_document.py:507-557 | lightrag/parser/docx/table_extractor.py:103-157 \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":"lightrag/parser/docx/parse_document.py"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"cccde2d23858c615519484e45a2cd489d915bfb28f0983f530c7301d823b6001"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): lightrag/kg/redis_impl.py:819-856 | lightrag/kg/redis_impl.py:2821-2861 \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":"lightrag/kg/redis_impl.py"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e8b3970bd41aa913b70c228637d6a94bde13764fbfd8054e6420c4b5a646a27"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 23\u002B corresponding lines): lightrag/kg/opensearch_impl.py:1872-1901 | lightrag/kg/opensearch_impl.py:3652-3674 | lightrag/kg/opensearch_impl.py:7313-7352 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 23 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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":1872}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7bed7b2def3815d23e0e94cf434b07b12e60c22abb21b7c8032536ff61b3415"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): lightrag/kg/opensearch_impl.py:1081-1128 | lightrag/kg/opensearch_impl.py:2039-2106 \u2014 These two members are one piece of code written twice and then edited apart: 48 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b3bfabbe39bc278ad7fa8361598dcc3823e5dd2a3ec1d0008d24b6346ce5ecc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): lightrag/multimodal_context.py:425-452 | lightrag/multimodal_context.py:463-486 \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":"lightrag/multimodal_context.py"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"424b18a0470bcbc93a756b8eab3a489a5dfb8320c83aaeca23a25d4d07401d67"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 40\u002B corresponding lines): lightrag/kg/memgraph_impl.py:1337-1383 | lightrag/kg/memgraph_impl.py:1386-1443 | lightrag/kg/neo4j_impl.py:1948-1987 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 40 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":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":1337}}}],"partialFingerprints":{"codehealthFindingId/v1":"e19872865be62e5f08b9ddedcb93cc957a22f7fca1b1c762dd75b51e24207f87"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): lightrag/api/routers/document_routes.py:2955-2991 | lightrag/api/routers/document_routes.py:2996-3031 \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":"lightrag/api/routers/document_routes.py"},"region":{"startLine":2955}}}],"partialFingerprints":{"codehealthFindingId/v1":"f324558b5bd5b6e94abcd6f055af62117ce451a7a4d084095a38df78a12461cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): lightrag/kg/postgres_impl.py:8519-8556 | lightrag/kg/postgres_impl.py:8640-8681 \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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":8519}}}],"partialFingerprints":{"codehealthFindingId/v1":"b28d1344e73f6dfe8999e50304a876aa523843d98c7102e3fe6e19933ac411eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (88 corresponding lines): lightrag/kg/faiss_impl.py:2106-2193 | lightrag/kg/nano_vector_db_impl.py:1672-1759 \u2014 These two members are one piece of code written twice and then edited apart: 88 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/faiss_impl.py"},"region":{"startLine":2106}}}],"partialFingerprints":{"codehealthFindingId/v1":"d82e3602a94cb2f8ce45c78375e2e9970b7433841491e0fdb50269d29119fb2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): lightrag/kg/memgraph_impl.py:1300-1334 | lightrag/kg/neo4j_impl.py:1915-1945 \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":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":1300}}}],"partialFingerprints":{"codehealthFindingId/v1":"68d7ac5f877301069ac2aee5fd31c14b90340598f39c18c2fbfcd452641b22ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): lightrag/kg/opensearch_impl.py:1131-1177 | lightrag/kg/opensearch_impl.py:6592-6634 \u2014 These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"32d859721b1339761bceb130d6d1c03740e0c12d4804f8a6c645a7c526a15aca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): lightrag/kg/opensearch_impl.py:2109-2138 | lightrag/kg/opensearch_impl.py:2141-2184 \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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":2109}}}],"partialFingerprints":{"codehealthFindingId/v1":"74885a7b85e3c7684a4f8015331c3c3f0a5ca345e5ff1508175902f6de601898"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): lightrag/multimodal_context.py:584-626 | lightrag/multimodal_context.py:696-721 \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":"lightrag/multimodal_context.py"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"e327c3faab7e145aa73c45eb28433a429d9403a15d89fbb22fd8a23fc0c6c911"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): lightrag/kg/json_doc_status_impl.py:126-153 | lightrag/kg/json_kv_impl.py:91-132 \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":"lightrag/kg/json_doc_status_impl.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bb1541deabdca5755e9a70e6620877e293fff547af7c5c6f4e09248b15afe50"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): lightrag/llm/openai.py:1264-1304 | lightrag/llm/openai.py:1354-1438 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai.py"},"region":{"startLine":1264}}}],"partialFingerprints":{"codehealthFindingId/v1":"bda6661c0629019b44fb4f194f3cf59e458aafba4eca1259568552eaf65131aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 46\u002B corresponding lines): lightrag/kg/memgraph_impl.py:223-275 | lightrag/kg/memgraph_impl.py:278-323 | lightrag/kg/neo4j_impl.py:561-611 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 46 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":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0d381166865876ae812952b56c8bda0d942fe451572d041c295db30257e76ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): lightrag/kg/opensearch_impl.py:1248-1283 | lightrag/kg/opensearch_impl.py:7015-7064 \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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":1248}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c6add221d3eba962af268f4be6adf9b24aa176d6458d045d17b655afb7ca4c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): lightrag/kg/scan_job_store.py:528-557 | lightrag/kg/scan_job_store.py:572-594 \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":"lightrag/kg/scan_job_store.py"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab7391c95fcf4abeb55e0281ebb25d044253231bae9a0f032b2da1b3a1b85366"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): lightrag/kg/redis_impl.py:2252-2289 | lightrag/kg/redis_impl.py:2297-2330 \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":"lightrag/kg/redis_impl.py"},"region":{"startLine":2252}}}],"partialFingerprints":{"codehealthFindingId/v1":"0050e5f3b112b11d1d831a4717a63aa388d51f40c2cb70ad57e359eb22e97707"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): lightrag/kg/faiss_impl.py:1673-1710 | lightrag/kg/nano_vector_db_impl.py:1278-1314 \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":"lightrag/kg/faiss_impl.py"},"region":{"startLine":1673}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8118ecdfe1757e2e900a5ff1c0097371bd35707fdb3c76840d8de1428c5bc81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): lightrag/tools/clean_llm_query_cache.py:339-372 | lightrag/tools/clean_llm_query_cache.py:375-400 \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":"lightrag/tools/clean_llm_query_cache.py"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc7bf51eeb274f9bcc2dc83895155df3363cfb785bf350f7ec710b08462d89e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 31\u002B corresponding lines): lightrag/kg/memgraph_impl.py:135-172 | lightrag/kg/memgraph_impl.py:175-220 | lightrag/kg/neo4j_impl.py:485-515 | lightrag/kg/neo4j_impl.py:519-557 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 31 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"31245788969b1a4014e9caba65c263558f1afaa8f5146b68f6c023acaef21f95"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): lightrag/kg/memgraph_impl.py:798-830 | lightrag/kg/neo4j_impl.py:1158-1186 \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":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6f5de4989bc3d9943f6237875b417feaa9b62419bed520faf5ae3f2fb89c30e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): lightrag/kg/shared_storage.py:425-451 | lightrag/kg/shared_storage.py:454-475 \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":"lightrag/kg/shared_storage.py"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a0c70ff05350bf64eda8869ab4abcb09833e102a34010e32fbbf8b73764e268"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): lightrag/parser/docx/utils.py:545-577 | lightrag/parser/docx/utils.py:697-752 \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":"lightrag/parser/docx/utils.py"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cffe687b4e2d6e6c7ed3ad176ab005b168925540c1cef81f4915754d241949f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 33\u002B corresponding lines): lightrag/kg/milvus_impl.py:2649-2687 | lightrag/kg/mongo_impl.py:4604-4636 | lightrag/kg/opensearch_impl.py:6637-6683 | lightrag/kg/qdrant_impl.py:760-796 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 33 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":"lightrag/kg/milvus_impl.py"},"region":{"startLine":2649}}}],"partialFingerprints":{"codehealthFindingId/v1":"8be740f650107cf53bc78b4946d520f30ac0c19080d8028fc3d84e6709805506"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): lightrag/multimodal_context.py:770-800 | lightrag/sidecar/backfill.py:76-106 \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":"lightrag/multimodal_context.py"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"37dd0fc8817baa554bfea72d7ddd6d8feccd2eea1340f6f66b9d08d3cfeb0fa0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): lightrag/parser/external/docling/client.py:327-342 | lightrag/parser/external/mineru/client.py:393-420 \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":"lightrag/parser/external/docling/client.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e46d64b04ae9e52bb32cd00c84710a423c864dbd8cb57abe5b5bdeebd986389"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): lightrag/kg/mongo_impl.py:3091-3114 | lightrag/kg/opensearch_impl.py:5291-5321 \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":"lightrag/kg/mongo_impl.py"},"region":{"startLine":3091}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4ab1845978a4584d30adb4b6a83390883616d2db496598421a88701a1f19cc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): lightrag/kg/memgraph_impl.py:365-393 | lightrag/kg/neo4j_impl.py:1723-1747 \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":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"eef4ae2e6e6b550686f166d594e7f21028ee18621a2a44fef8c06d83bd047dac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): lightrag/kg/mongo_impl.py:496-510 | lightrag/kg/mongo_impl.py:768-780 \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":"lightrag/kg/mongo_impl.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"88962bd5c5896c396b0dd36fb56455733b1dd032855d1da503b3f74b6e94b164"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): lightrag/kg/neo4j_impl.py:615-648 | lightrag/kg/neo4j_impl.py:877-919 \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":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbdd5e944340361c2d55f12cc000960864db756acdbf5a33d8f58d957880b7e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 29\u002B corresponding lines): lightrag/kg/neo4j_impl.py:1074-1102 | lightrag/kg/neo4j_impl.py:1120-1154 | lightrag/kg/neo4j_impl.py:1206-1236 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 29 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":1074}}}],"partialFingerprints":{"codehealthFindingId/v1":"17f45cb951dcea8c4d0ede9abd1faafc5def770d467a9b89fbc3bf1e634c0296"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): lightrag/parser/docx/drawing_image_extractor.py:496-530 | lightrag/parser/docx/drawing_image_extractor.py:538-581 \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":"lightrag/parser/docx/drawing_image_extractor.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"079237c43c5b5333cd5dabe64fc5ad479d226d766f90b531c8db82106c0e6c2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): lightrag/kg/postgres_impl.py:4888-4912 | lightrag/kg/postgres_impl.py:4917-4944 \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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":4888}}}],"partialFingerprints":{"codehealthFindingId/v1":"352b5a079ad1cee14cdcca69d7f13ec4eef790c4655a16f48e430e24d9714b08"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): lightrag/tools/migrate_llm_cache.py:422-479 | lightrag/tools/migrate_llm_cache.py:811-864 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/tools/migrate_llm_cache.py"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"851e6a5db2b05844a37ffafa6ba426f5ddf55ed8c36847da291754ba17d110f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): lightrag/kg/mongo_impl.py:816-843 | lightrag/kg/mongo_impl.py:1515-1542 \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":"lightrag/kg/mongo_impl.py"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eebf6177a60e8e0a676202faf5cab790b641c7f0f032cf9096d6b65d9ee03e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 25\u002B corresponding lines): lightrag/kg/postgres_impl.py:6674-6705 | lightrag/kg/postgres_impl.py:6950-6984 | lightrag/kg/postgres_impl.py:6989-7013 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 25 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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":6674}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1cb4ce601f3d85480343f2c22187539420b75c63f43ba38ceda418328fb8f31"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): lightrag/kg/milvus_impl.py:266-291 | lightrag/utils.py:3345-3367 \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":"lightrag/kg/milvus_impl.py"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a5d432e41827de5c58e7e8c120ec4e0e5ee2025baeb51b7e94a34fc7a8d9f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): lightrag/kg/opensearch_impl.py:265-303 | lightrag/kg/postgres_impl.py:288-325 \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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"34578a87d6223a3924c94b2809ce6b19139e3a67b6b38b7893edf60bd22f7740"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): lightrag/kg/redis_impl.py:452-481 | lightrag/kg/redis_impl.py:1070-1096 \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":"lightrag/kg/redis_impl.py"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"6581ed06e00fef0917be7555348fbbd0d929195cf5b7551b4e119b25862fa48d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): lightrag/pipeline.py:4151-4201 | lightrag/pipeline.py:4209-4244 \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":"lightrag/pipeline.py"},"region":{"startLine":4151}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6073703e81c868360370da1801563af2efeedd10bff972a03b216535c57ec9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): lightrag/kg/mongo_impl.py:3770-3792 | lightrag/kg/mongo_impl.py:3828-3877 \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":"lightrag/kg/mongo_impl.py"},"region":{"startLine":3770}}}],"partialFingerprints":{"codehealthFindingId/v1":"56e63f97bdae4c906db464652e939b894a3755814aa3c02eaedec9d6748fe3ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): lightrag/llm/openai_responses.py:276-295 | lightrag/llm/openai_responses.py:332-347 \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":"lightrag/llm/openai_responses.py"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"9203f5332edbc4dc575f34c6de59b4f24561222e242d3106cf350e557bcb2472"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 23\u002B corresponding lines): lightrag/kg/memgraph_impl.py:1234-1260 | lightrag/kg/memgraph_impl.py:1263-1297 | lightrag/kg/neo4j_impl.py:1857-1879 | lightrag/kg/neo4j_impl.py:1882-1912 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 23 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":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":1234}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba9ba269f0df1b79571e6a244ede24f73648c57acfc67ebe91b35bbeec92b8b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): lightrag/tools/migrate_llm_cache.py:484-517 | lightrag/tools/migrate_llm_cache.py:867-896 \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":"lightrag/tools/migrate_llm_cache.py"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ce219ebf8463e2fb53cc95caaea6212888d873980c256489bace61b21e95464"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): lightrag/kg/json_doc_status_impl.py:369-407 | lightrag/kg/redis_impl.py:1600-1621 \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":"lightrag/kg/json_doc_status_impl.py"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"f13b21f8a74298ff77f52ee422c308672c0d478170d4a9b8a77a5d379b38acdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): lightrag/kg/opensearch_impl.py:2268-2283 | lightrag/kg/opensearch_impl.py:4335-4350 | lightrag/kg/opensearch_impl.py:4355-4379 \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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":2268}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7dd92def39852156fc863f11d17c8ba8f52c847083ada075c54bda619eb5815"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): lightrag/kg/postgres_impl.py:9623-9662 | lightrag/kg/postgres_impl.py:9665-9709 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/postgres_impl.py"},"region":{"startLine":9623}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4f960c28e659f24f77321a1b80959325f3f710d1fc96c274d7e1697f4fc47d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): lightrag/kg/pipeline_ingress.py:279-294 | lightrag/kg/pipeline_ingress.py:770-786 \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":"lightrag/kg/pipeline_ingress.py"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"837fc91322f33b8f29108757628c7b01031d62c6133bb93711d3d058556ccb4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): examples/generate_query.py:9-22 | reproduce/Step_2.py:9-20 \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":"examples/generate_query.py"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac1e5faca3a6b701f44421eba6c8d5672854a23421022bea256b3eb18e26d598"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lightrag/kg/mongo_impl.py:652-673 | lightrag/kg/opensearch_impl.py:1981-1994 \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":"lightrag/kg/mongo_impl.py"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"259ec121b9ae862f66b339d2d662121087f6182542ddebeafc51c2e5520854d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): lightrag/parser/external/_manifest.py:124-148 | lightrag/parser/external/mineru/manifest.py:121-142 | lightrag/parser/markdown/raw_cache.py:233-259 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 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":"lightrag/parser/external/_manifest.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c98ef4d786c95473a2f628b1a8e8085bd7eb997fabb97a2207fa2f61ea03c1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): lightrag/kg/shared_storage.py:3263-3284 | lightrag/kg/shared_storage.py:3335-3366 \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":"lightrag/kg/shared_storage.py"},"region":{"startLine":3263}}}],"partialFingerprints":{"codehealthFindingId/v1":"901a50b2b4a7ec4eaf30ad54ac381f89b49d3d540182e1e6acb31da5ff40fe1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): lightrag/utils_graph.py:3926-3951 | lightrag/utils_graph.py:3961-4003 \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":"lightrag/utils_graph.py"},"region":{"startLine":3926}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d435827716e776f72bc92c8f16986f9eac87beddb6d54c2b1387b9dc0b543c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (61 corresponding lines): lightrag/kg/faiss_impl.py:1568-1628 | lightrag/kg/nano_vector_db_impl.py:1173-1233 \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":"lightrag/kg/faiss_impl.py"},"region":{"startLine":1568}}}],"partialFingerprints":{"codehealthFindingId/v1":"a02a0c25ddc50984e8921a3864d0bf26f5935d5c093c51eb45d1a37e4fe5f1a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lightrag/chunker/semantic_vector.py:380-386 | lightrag/chunker/token_size.py:33-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":"lightrag/chunker/semantic_vector.py"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"d77f60989b7c9675794a0f9c079111859be9502ed4b547a2362c0176f2704137"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): lightrag/kg/faiss_impl.py:578-616 | lightrag/kg/nano_vector_db_impl.py:920-965 \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":"lightrag/kg/faiss_impl.py"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"de43da1c23c8c19386077e49140a26e80a90053edff56c9a677997ecec336702"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lightrag/kg/mongo_impl.py:3654-3667 | lightrag/kg/networkx_impl.py:1324-1337 \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":"lightrag/kg/mongo_impl.py"},"region":{"startLine":3654}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc3a3a2cc9ab4a3891d33b4215f80f9e7e862256927abc3064a4091145dc58c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): lightrag/lightrag.py:6018-6053 | lightrag/lightrag.py:6061-6097 \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":"lightrag/lightrag.py"},"region":{"startLine":6018}}}],"partialFingerprints":{"codehealthFindingId/v1":"3548e8f677bb43cdaa79def7cb4518bdd73ecb37cb111f04452ce8ca0f632911"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): lightrag/kg/mongo_impl.py:1487-1507 | lightrag/kg/postgres_impl.py:6641-6666 \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":"lightrag/kg/mongo_impl.py"},"region":{"startLine":1487}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7c754452275fa0c13306625e2c686d9533e1c6d89b90abaaebcc3315c83b1e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): lightrag/kg/mongo_impl.py:391-400 | lightrag/kg/postgres_impl.py:3361-3373 \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":"lightrag/kg/mongo_impl.py"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"879b66568cca78157fcc113e7862512d363f461814f55b426c87c1d70b51d916"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lightrag/kg/mongo_impl.py:804-811 | lightrag/kg/mongo_impl.py:1139-1157 \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":"lightrag/kg/mongo_impl.py"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"8193e2232b67ffb45e216a7b15d0774ded328efdbb4883a3cc42df44153bff8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lightrag/kg/redis_impl.py:569-581 | lightrag/kg/redis_impl.py: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":"lightrag/kg/redis_impl.py"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4b7730144ad8423451adb301f39da56a5db28b85f4250fa4bf06fd763dd78be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lightrag/llm/_vision_utils.py:73-81 | lightrag/parser/markdown/parser.py:125-138 \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":"lightrag/llm/_vision_utils.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"99c82125e284a72dd762468b229fb8aff4e11a51c2beb9e4ee3a133fee4c4c3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): lightrag/parser/docx/omml/ommlparser.py:493-504 | lightrag/parser/docx/omml/ommlparser.py:520-529 \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":"lightrag/parser/docx/omml/ommlparser.py"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b0fc5daf75614b2c89b408a855616fa9552d17e452cc81667c26a548965c07c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): lightrag/kg/mongo_impl.py:2463-2484 | lightrag/kg/neo4j_impl.py:762-783 \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":"lightrag/kg/mongo_impl.py"},"region":{"startLine":2463}}}],"partialFingerprints":{"codehealthFindingId/v1":"844b3db7e7048f1ea41e216b880a95cbe49be936e05c1bb5dd72736b6aeb4e81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): lightrag/parser/external/docling/ir_builder.py:667-685 | lightrag/parser/external/docling/ir_builder.py:822-835 | lightrag/parser/external/docling/ir_builder.py:841-854 \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":"lightrag/parser/external/docling/ir_builder.py"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"5460ba344ed56513b0ae0dbdc4440c44bb880621a8bd04cbab6a25b4ba40dd03"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lightrag/kg/opensearch_impl.py:4255-4268 | lightrag/kg/opensearch_impl.py:4271-4288 \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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":4255}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1e60ac8f30e19811b062096275ef8552d995c9a1e6bde74772b95ed6697b087"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lightrag/multimodal_context.py:230-244 | lightrag/multimodal_context.py:248-262 \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":"lightrag/multimodal_context.py"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8661b14fd065007ccc02f7405a53e84b2254f341e15c2fb34d02ba127b9e731"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): lightrag/kg/json_doc_status_impl.py:756-765 | lightrag/kg/mongo_impl.py:1299-1310 \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":"lightrag/kg/json_doc_status_impl.py"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa1304c3da8fe1715ab723b107f8632271abd1ba075ffcf6163368a1095de16b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lightrag/kg/mongo_impl.py:736-747 | lightrag/kg/mongo_impl.py:1824-1845 \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":"lightrag/kg/mongo_impl.py"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d4a9fffd0932a02348d4dbb6f1f566a1eabc3e59f91c6e9365ca9de6203b1f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lightrag/parser/docx/smart_heading/heading_flow.py:1601-1607 | lightrag/parser/docx/smart_heading/heading_flow.py:2513-2534 \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":"lightrag/parser/docx/smart_heading/heading_flow.py"},"region":{"startLine":1601}}}],"partialFingerprints":{"codehealthFindingId/v1":"c71b4d307dd1a2630ebc86f9ff9486be0601410b885d71d365822b6cd323765d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): lightrag/kg/pipeline_ingress.py:341-360 | lightrag/kg/pipeline_ingress.py:843-852 \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":"lightrag/kg/pipeline_ingress.py"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"90af839991a112fb8f40932ee9e8ff5d90893fe5aba11b75ad762e40de92e357"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): lightrag/kg/shared_storage.py:3741-3756 | lightrag/kg/shared_storage.py:3760-3772 \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":"lightrag/kg/shared_storage.py"},"region":{"startLine":3741}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6f313f1bfd34b5ccb4922d0dc956e12a8f27e7c522261600ab13463403e9cbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): lightrag/kg/pgtable_impl.py:924-943 | lightrag/kg/pgtable_impl.py:1100-1131 \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":"lightrag/kg/pgtable_impl.py"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c39d567d4fab30c1971aa5b33a63169a13df56320e7c6cf6d6fbc0b75a42776"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lightrag/llm/openai.py:975-988 | lightrag/llm/openai_responses.py:1019-1032 \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":"lightrag/llm/openai.py"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0a007fab198463b67f56c7f3ee7046befda5a50358ca852d812d662e86f29c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): lightrag/llm/ollama.py:467-484 | lightrag/llm/lollms.py: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":"lightrag/llm/ollama.py"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a94b67d9fbe636af0c1e946ed0ff1980f0d4842757c19fe5018a4794062ffb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): lightrag/kg/opensearch_impl.py:5393-5410 | lightrag/kg/mongo_impl.py:3005-3024 \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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":5393}}}],"partialFingerprints":{"codehealthFindingId/v1":"b94579b828340d0508fea4ff5a7a8dc9e7e8a9b3c3622f3b0f72e992bbbcf45f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): lightrag/sidecar/writer.py:466-477 | lightrag/parser/docx/drawing_image_extractor.py:298-308 \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":"lightrag/sidecar/writer.py"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc5a13b76e611b2eeadaea1873ad5a786404ec0de953a324565b0b42132b74c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): lightrag/kg/mongo_impl.py:4347-4373 | lightrag/kg/opensearch_impl.py:6324-6367 \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":"lightrag/kg/mongo_impl.py"},"region":{"startLine":4347}}}],"partialFingerprints":{"codehealthFindingId/v1":"c12d84f568ac537765b5fd2ed49ab6a647c556b6a0db03cf4712cc60e1ff8c18"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): lightrag/kg/opensearch_impl.py:7228-7233 | lightrag/kg/qdrant_impl.py:1027-1034 \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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":7228}}}],"partialFingerprints":{"codehealthFindingId/v1":"46a7ce250c0a9f84a76bea2bce190fc883f6c7af73f47c67bce8d7164b2e51f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): lightrag/kg/shared_storage.py:3383-3401 | lightrag/utils.py:3090-3145 \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":"lightrag/kg/shared_storage.py"},"region":{"startLine":3383}}}],"partialFingerprints":{"codehealthFindingId/v1":"1edc90eca91597cd3b016bf138619dd2787bc1b33cdf7bc767a5184a4f6fd4ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): lightrag/kg/memgraph_impl.py:1028-1049 | lightrag/kg/neo4j_impl.py:739-756 \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":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":1028}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd2a7765d958b54294b0ad103db90f1dcbf19675f0c347bacf3f795434b77255"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lightrag/tools/rebuild_vdb.py:661-668 | lightrag/utils.py:6894-6911 \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":"lightrag/tools/rebuild_vdb.py"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"9de61586cb2b637b0843be48d945eff7a41d02d2d887965430448d7865bf6e4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): lightrag/parser/external/_common.py:49-59 | lightrag/parser/external/mineru/cache.py:72-83 \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":"lightrag/parser/external/_common.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a477f8a735210c05a1c4a605400aa1223bfd1f364405e3c1b0d570dabcc88ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): lightrag/kg/faiss_impl.py:234-257 | lightrag/kg/nano_vector_db_impl.py:198-220 \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":"lightrag/kg/faiss_impl.py"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd38464ae2a7109aa543ad09b41cfd2ff847c0e3b19e492eeef237e980d114d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): lightrag/parser/external/docling/ir_builder.py:1063-1065 | lightrag/parser/external/mineru/ir_builder.py:785-795 \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":"lightrag/parser/external/docling/ir_builder.py"},"region":{"startLine":1063}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e578c2a5a3c37411992aeb441ea31f18bad22addccf20b839f7bdb3bfd517d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lightrag/parser/external/mineru/client.py:68-78 | lightrag/utils_pipeline.py:1374-1382 \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":"lightrag/parser/external/mineru/client.py"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8a1801211ffb457f88be84b83fd62fba28426048623b72af3b3dc79f0b4df3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): lightrag/tools/chunk_tracking_repair.py:928-930 | lightrag/tools/rebuild_vdb.py:146-149 \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":"lightrag/tools/chunk_tracking_repair.py"},"region":{"startLine":928}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e0f2e187d6ddb392ded84f7d330fd438c69805e132a43ffddad87921bb0a296"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lightrag/parser/markdown/parser.py:301-304 | lightrag/parser/routing.py:509-512 \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":"lightrag/parser/markdown/parser.py"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"de334761420d249b81975c2c6c4e6d58abc6c9b1deea26dfbb1959573ce55f5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lightrag/kg/milvus_impl.py:461-468 | lightrag/kg/opensearch_impl.py:5706-5714 \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":"lightrag/kg/milvus_impl.py"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"591d8586cf8c38869cbd172c1c266223277fc50ab930dbdee1ca9402335ee907"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): lightrag/parser/external/docling/ir_builder.py:638-642 | lightrag/parser/external/mineru/ir_builder.py:698-702 \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":"lightrag/parser/external/docling/ir_builder.py"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0c408892b00eeef7dc2efd8113f167de9775b079b040989f63bab12e8056d9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lightrag/kg/json_doc_status_impl.py:609-614 | lightrag/kg/redis_impl.py:1492-1495 \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":"lightrag/kg/json_doc_status_impl.py"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"722a038b84d5499ba510f4de01fb69f36996eb0badfb5d56031e6ec2bf334f11"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lightrag/kg/mongo_impl.py:2988-3002 | lightrag/kg/opensearch_impl.py:5376-5390 \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":"lightrag/kg/mongo_impl.py"},"region":{"startLine":2988}}}],"partialFingerprints":{"codehealthFindingId/v1":"4de14ed15027eb7d3a50cd9cdf08a2607011d6bfd8cb9885b3b280271335149e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): lightrag/kg/mongo_impl.py:193-210 | lightrag/kg/qdrant_impl.py:640-652 \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":"lightrag/kg/mongo_impl.py"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"95fc73eacc2df9db0979f295718e5c0b504cd13a544609735f1eb463be76f4d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lightrag/parser/docx/parser.py:111-118 | lightrag/parser/markdown/parser.py:1738-1745 \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":"lightrag/parser/docx/parser.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"ada7ebf0f4ce9510d6c26eeedab68a3834b415b12c5ca8bf4fe32e72e2e2131d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (110\u2013132 lines \u00D7 2): lightrag/api/routers/ollama_api.py:481-590 | lightrag/api/routers/ollama_api.py:721-852 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/api/routers/ollama_api.py:481\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":"lightrag/api/routers/ollama_api.py"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"b99b19a148467afead43f15d25b0123cdf376a1f5b83f8fbab1fc6748dedf599"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (88 lines \u00D7 2): lightrag/kg/json_doc_status_impl.py:279-366 | lightrag/kg/json_kv_impl.py:176-263 \u2014 before extracting anything, compare \u0060lightrag/kg/json_doc_status_impl.py\u0060 and \u0060lightrag/kg/json_kv_impl.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 200 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 \u0060lightrag/kg/json_doc_status_impl.py:279\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":"lightrag/kg/json_doc_status_impl.py"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"62065fa2763a1cf3fa01deca3fa45ffc2fbf02cacb24bce1de95b783b5c26c09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (56\u201360 lines \u00D7 2): lightrag/utils.py:2446-2501 | lightrag/utils.py:2641-2700 \u2014 both copies are in the same file, so extract the block 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":"lightrag/utils.py"},"region":{"startLine":2446}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0a602301dc8181f83d7bd3672a568d29655ad4b05b31e18708f625cab6d2b2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (54\u201359 lines \u00D7 2): lightrag/kg/faiss_impl.py:423-481 | lightrag/kg/nano_vector_db_impl.py:456-509 \u2014 before extracting anything, compare \u0060lightrag/kg/faiss_impl.py\u0060 and \u0060lightrag/kg/nano_vector_db_impl.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 389 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":"lightrag/kg/faiss_impl.py"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"3964ccb6ea480eff46728049bb2575ce63baaadeea417ec3c2ca8a11777ebb13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (54 lines \u00D7 2): lightrag/kg/postgres_impl.py:4034-4087 | lightrag/kg/postgres_impl.py:7268-7321 \u2014 both copies are in the same file, so extract the block 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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":4034}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9dcd26c2fedd60bf4f151b9cf1020e364c41eba7fe43963899f53bcb4e4d358"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (52\u201353 lines \u00D7 2): lightrag/kg/postgres_impl.py:2042-2094 | lightrag/kg/postgres_impl.py:2099-2150 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/kg/postgres_impl.py:2042\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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":2042}}}],"partialFingerprints":{"codehealthFindingId/v1":"5004fb5c6046f8d8854621b73e4d912a4f253a7e29419b9c5eb2f1a3daa6d388"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46\u201349 lines \u00D7 2): lightrag/kg/faiss_impl.py:329-377 | lightrag/kg/nano_vector_db_impl.py:357-402 \u2014 before extracting anything, compare \u0060lightrag/kg/faiss_impl.py\u0060 and \u0060lightrag/kg/nano_vector_db_impl.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 389 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 \u0060lightrag/kg/faiss_impl.py:329\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":"lightrag/kg/faiss_impl.py"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"f27b62ea1158020bcec6026587d9a641ac8f6b10e0fc31129844a3244589f519"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39\u201346 lines \u00D7 4): lightrag/kg/memgraph_impl.py:569-614 | lightrag/kg/memgraph_impl.py:671-716 | lightrag/kg/memgraph_impl.py:757-795 | lightrag/kg/memgraph_impl.py:874-912 \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":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a2e009a57389819120c5f1f2ce92f2a9915914a4d3054d8d77131b9abaeac46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46 lines \u00D7 2): lightrag/lightrag.py:6489-6534 | lightrag/lightrag.py:6559-6604 \u2014 both copies are in the same file, so extract the block 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":"lightrag/lightrag.py"},"region":{"startLine":6489}}}],"partialFingerprints":{"codehealthFindingId/v1":"d97dbb662cf88b0f41a2f9f87f271a844bec69124bd910e81189c58f234adffc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42\u201346 lines \u00D7 2): lightrag/operate.py:4987-5032 | lightrag/operate.py:7223-7264 \u2014 both copies are in the same file, so extract the block 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, \u0060lightrag/operate.py:4986\u0060 calls \u0060progress_callback\u0060 and \u0060lightrag/operate.py:7222\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":"lightrag/operate.py"},"region":{"startLine":4987}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf1e1ee401f97261f6cb77bed29a8a85e8bb438e50af74e4bd055e87c02be93c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201345 lines \u00D7 3): lightrag/kg/milvus_impl.py:3079-3123 | lightrag/kg/mongo_impl.py:4893-4918 | lightrag/kg/opensearch_impl.py:7236-7269 \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":"lightrag/kg/milvus_impl.py"},"region":{"startLine":3079}}}],"partialFingerprints":{"codehealthFindingId/v1":"705867b8c4cfadd0796ae542f9bcc52553e457db3184fe74fc701fe4582922ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39\u201345 lines \u00D7 2): lightrag/kg/memgraph_impl.py:1099-1137 | lightrag/kg/neo4j_impl.py:1347-1391 \u2014 before extracting anything, compare \u0060lightrag/kg/memgraph_impl.py\u0060 and \u0060lightrag/kg/neo4j_impl.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 493 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 \u0060lightrag/kg/memgraph_impl.py:1099\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":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":1099}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ff8ccc11f72b7e93264b12c7ce848e5a734a6b8a45be8751e20fe54f7934c70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40\u201345 lines \u00D7 2): lightrag/kg/milvus_impl.py:3475-3519 | lightrag/kg/qdrant_impl.py:1353-1392 \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 \u0060lightrag/kg/milvus_impl.py:3475\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":"lightrag/kg/milvus_impl.py"},"region":{"startLine":3475}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0a832cdc588f092097b1429b3a59e1b1ff342cf0e15de65d48f82c33c1bb72b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201345 lines \u00D7 2): lightrag/kg/opensearch_impl.py:5465-5509 | lightrag/kg/opensearch_impl.py:6075-6102 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/kg/opensearch_impl.py:6075\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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":5465}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bc67c8d806a628bb5faf8a393085e044b61633a9a0be6e04c84b0872caed3db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201344 lines \u00D7 3): lightrag/kg/milvus_impl.py:3392-3425 | lightrag/kg/mongo_impl.py:5027-5070 | lightrag/kg/qdrant_impl.py:1249-1292 \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 \u0060lightrag/kg/milvus_impl.py:3392\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":"lightrag/kg/milvus_impl.py"},"region":{"startLine":3392}}}],"partialFingerprints":{"codehealthFindingId/v1":"fba340bade0715badbd9619092796ffaec50e4f4946d30892e7a2c9b01622f45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): lightrag/kg/memgraph_impl.py:1057-1097 | lightrag/kg/neo4j_impl.py:1305-1345 \u2014 before extracting anything, compare \u0060lightrag/kg/memgraph_impl.py\u0060 and \u0060lightrag/kg/neo4j_impl.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 493 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 \u0060lightrag/kg/memgraph_impl.py:1057\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":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":1057}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2fc584a8f28e317d46123f269e2a3ce599115a48b001a2dcc50ef2debe44b9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38\u201340 lines \u00D7 2): lightrag/kg/mongo_impl.py:2107-2146 | lightrag/kg/opensearch_impl.py:695-732 \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":"lightrag/kg/mongo_impl.py"},"region":{"startLine":2107}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea09f2b43c4173a5416185a4281d63e927ca654e47d1aae0683f54a2de444b90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): lightrag/operate.py:2667-2706 | lightrag/operate.py:3100-3139 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/operate.py:2667\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 after the matched lines, \u0060lightrag/operate.py:2707\u0060 calls \u0060get\u0060 and \u0060lightrag/operate.py:3142\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":"lightrag/operate.py"},"region":{"startLine":2667}}}],"partialFingerprints":{"codehealthFindingId/v1":"9027b4647dc7cd20694e758a28ded9c2efc74060ea3a04421e83531804339287"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35\u201340 lines \u00D7 2): lightrag/operate.py:6555-6594 | lightrag/operate.py:6853-6887 \u2014 both copies are in the same file, so extract the block 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":"lightrag/operate.py"},"region":{"startLine":6555}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e75d9303cbe5cd3ef7375a135e62de543c52eefe6371a816d52d84ebc9891eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35\u201339 lines \u00D7 2): lightrag/api/routers/ollama_api.py:609-643 | lightrag/api/routers/ollama_api.py:891-929 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/api/routers/ollama_api.py:609\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":"lightrag/api/routers/ollama_api.py"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfb811dc98c2887a204ef84ef67fff68f558efac9a873bc1202884ab5545c892"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): lightrag/kg/memgraph_impl.py:1186-1224 | lightrag/kg/neo4j_impl.py:1473-1511 \u2014 before extracting anything, compare \u0060lightrag/kg/memgraph_impl.py\u0060 and \u0060lightrag/kg/neo4j_impl.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 493 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 \u0060lightrag/kg/memgraph_impl.py:1186\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":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":1186}}}],"partialFingerprints":{"codehealthFindingId/v1":"106a4c4f8b3230995e1765a175c45016440b55b58b4e8554d8f0956564f58e4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201338 lines \u00D7 2): lightrag/lightrag.py:3184-3221 | lightrag/lightrag.py:7521-7553 \u2014 both copies are in the same file, so extract the block 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":"lightrag/lightrag.py"},"region":{"startLine":3184}}}],"partialFingerprints":{"codehealthFindingId/v1":"44d9e6afef7adc17b2fe2083982c3576d8757dbe1529ff63f0ceb7c940aaf5d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201338 lines \u00D7 2): lightrag/utils.py:7739-7772 | lightrag/utils.py:7788-7825 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/utils.py:7739\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":"lightrag/utils.py"},"region":{"startLine":7739}}}],"partialFingerprints":{"codehealthFindingId/v1":"5932c7294daa7c4a94ac6a2151a3cf720df4752544ac4c38d01ba0a5d2ff9195"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201337 lines \u00D7 3): lightrag/parser/docx/utils.py:545-576 | lightrag/parser/docx/utils.py:621-652 | lightrag/parser/docx/utils.py:712-748 \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":"lightrag/parser/docx/utils.py"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd697ab9d6a6c4c4a5c3daf13d33582cee0ca2a5f247e960e0063cf23c47c2f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201336 lines \u00D7 2): lightrag/kg/postgres_impl.py:3427-3462 | lightrag/kg/postgres_impl.py:3606-3639 \u2014 both copies are in the same file, so extract the block 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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":3427}}}],"partialFingerprints":{"codehealthFindingId/v1":"423698356c1d7e7625f20a6bddc57885c870c35b766344fce8a59620933769f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201336 lines \u00D7 2): lightrag/utils_graph.py:2105-2140 | lightrag/utils_graph.py:2780-2813 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/utils_graph.py:2105\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":"lightrag/utils_graph.py"},"region":{"startLine":2105}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd3dee79bebb873db499e62fb31836659a7e9a947a5918ab0445ead534f7884d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201335 lines \u00D7 2): lightrag/kg/faiss_impl.py:2015-2049 | lightrag/kg/nano_vector_db_impl.py:1581-1611 \u2014 before extracting anything, compare \u0060lightrag/kg/faiss_impl.py\u0060 and \u0060lightrag/kg/nano_vector_db_impl.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 389 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 \u0060lightrag/kg/faiss_impl.py:2015\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":"lightrag/kg/faiss_impl.py"},"region":{"startLine":2015}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d85065e3cff5f27ed855c097727eed3145135fcae7e0626eb8658fe1becebb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201335 lines \u00D7 2): lightrag/kg/json_doc_status_impl.py:1203-1235 | lightrag/kg/json_kv_impl.py:431-465 \u2014 before extracting anything, compare \u0060lightrag/kg/json_doc_status_impl.py\u0060 and \u0060lightrag/kg/json_kv_impl.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 200 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":"lightrag/kg/json_doc_status_impl.py"},"region":{"startLine":1203}}}],"partialFingerprints":{"codehealthFindingId/v1":"378ec92ed51d573df82b837bb28b028cc202c92b7742806cf3e272d459a977b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45\u201349 lines \u00D7 2): lightrag/parser/external/docling/ir_builder.py:164-208 | lightrag/parser/external/mineru/ir_builder.py:242-290 \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":"lightrag/parser/external/docling/ir_builder.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"124503699cd7b718168d23d1aaaed728b6f0ead7d329371d93d687ad3f1a3e35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201334 lines \u00D7 2): lightrag/kg/postgres_impl.py:3950-3983 | lightrag/kg/postgres_impl.py:7428-7459 \u2014 both copies are in the same file, so extract the block 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, \u0060lightrag/kg/postgres_impl.py:7460\u0060 calls \u0060transaction\u0060 and \u0060lightrag/kg/postgres_impl.py:3984\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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":3950}}}],"partialFingerprints":{"codehealthFindingId/v1":"469d860809787009daee5042c40a5af4f983c42dd6bcf1c2a478cb7bfd754700"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201334 lines \u00D7 2): lightrag/kg/postgres_impl.py:5964-5996 | lightrag/kg/postgres_impl.py:6071-6104 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/kg/postgres_impl.py:5964\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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":5964}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6a7c662a4a9321713040b55e3bad254420a2cd56de0ec000864f4d94c73bd90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): lightrag/kg/postgres_impl.py:6149-6182 | lightrag/kg/postgres_impl.py:6227-6260 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/kg/postgres_impl.py:6149\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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":6149}}}],"partialFingerprints":{"codehealthFindingId/v1":"c30749c42a8f81411240bd9b9992af259c1213a76bd25a5fea852857efc3e929"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): lightrag/kg/redis_impl.py:510-543 | lightrag/kg/redis_impl.py:1124-1157 \u2014 both copies are in the same file, so extract the block 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":"lightrag/kg/redis_impl.py"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b5a4cd1da2fc7b3f5a5e0de483a08f3307b0e7e04f2c7afe5b2a4ff3cb17a42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201334 lines \u00D7 2): lightrag/llm/jina.py:23-56 | lightrag/rerank.py:348-376 \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":"lightrag/llm/jina.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"eab434f3e671e9a2f3358d4b58214311fa58e619502aa7800cb27d747560dc75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201333 lines \u00D7 2): lightrag/kg/memgraph_impl.py:244-275 | lightrag/kg/neo4j_impl.py:579-611 \u2014 before extracting anything, compare \u0060lightrag/kg/memgraph_impl.py\u0060 and \u0060lightrag/kg/neo4j_impl.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 493 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lightrag/kg/memgraph_impl.py:243\u0060 calls \u0060_get_workspace_label\u0060 and \u0060lightrag/kg/neo4j_impl.py:578\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":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d22bbcb938dfbdc92c3895b78eedece30a7c8f9a2e0e899fd05e6ecc94b23de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201333 lines \u00D7 2): lightrag/kg/pgtable_impl.py:1556-1579 | lightrag/kg/pgtable_impl.py:1616-1648 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/kg/pgtable_impl.py:1556\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":"lightrag/kg/pgtable_impl.py"},"region":{"startLine":1556}}}],"partialFingerprints":{"codehealthFindingId/v1":"6331cc8f63cf12d74e3344235aa4b2d173930ef421ce69ca91323b6697897ba1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): lightrag/api/routers/document_routes.py:5657-5688 | lightrag/api/routers/document_routes.py:5821-5852 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/api/routers/document_routes.py:5657\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":"lightrag/api/routers/document_routes.py"},"region":{"startLine":5657}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0b982845a8fcc990590994950a4653afc33d2a8745e8cb81ec4011e8d1f93fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201332 lines \u00D7 2): lightrag/kg/opensearch_impl.py:1082-1113 | lightrag/kg/opensearch_impl.py:2063-2078 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/kg/opensearch_impl.py:2063\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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":1082}}}],"partialFingerprints":{"codehealthFindingId/v1":"4179a470741d97f6dcb29949a89b7e3b0e535d4e0f4fd1a4b28a6a8ca4078181"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201332 lines \u00D7 2): lightrag/parser/external/docling/ir_builder.py:132-155 | lightrag/parser/external/mineru/ir_builder.py:191-222 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lightrag/parser/external/docling/ir_builder.py:129\u0060 calls \u0060_build_ref_index\u0060, \u0060_precompute_consumed_refs\u0060 and \u0060lightrag/parser/external/mineru/ir_builder.py:189\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":"lightrag/parser/external/docling/ir_builder.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2dacaa1ac4513e703066e2804f2e99d97e7c924c12e35b3cad8f4308727e8f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): lightrag/pipeline.py:2003-2034 | lightrag/pipeline.py:2054-2085 \u2014 both copies are in the same file, so extract the block 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":"lightrag/pipeline.py"},"region":{"startLine":2003}}}],"partialFingerprints":{"codehealthFindingId/v1":"683eb2a25d86f349311b479b18feda50f768fb49419e6fa23427b511339327fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): lightrag/tools/clean_llm_query_cache.py:152-183 | lightrag/tools/migrate_llm_cache.py:161-192 \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":"lightrag/tools/clean_llm_query_cache.py"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2fd8aad731e6c600d6ec4e1610136f1374fc7648de25e80ad0bd9efe9f8b533"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): lightrag/tools/clean_llm_query_cache.py:186-217 | lightrag/tools/migrate_llm_cache.py:195-226 \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":"lightrag/tools/clean_llm_query_cache.py"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"b53150438e9c2fb82afca223313fa8f7b1247f5f6d5df32eb3e70c3ea8a479a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201332 lines \u00D7 2): lightrag/tools/clean_llm_query_cache.py:464-495 | lightrag/tools/clean_llm_query_cache.py:712-742 \u2014 both copies are in the same file, so extract the block 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":"lightrag/tools/clean_llm_query_cache.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ea0c1b039207c2ed853a476e012cfc9d65a97a51fdd9813d6138da18279067f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201332 lines \u00D7 2): lightrag/utils.py:1691-1722 | lightrag/utils.py:1933-1960 \u2014 both copies are in the same file, so extract the block 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, \u0060lightrag/utils.py:1962\u0060 calls \u0060set\u0060 and \u0060lightrag/utils.py:1724\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":"lightrag/utils.py"},"region":{"startLine":1691}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f2733fc525c7ab9967e65b3bcdd114c2320e2054914b25de6ba8e17c7579a0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201331 lines \u00D7 2): lightrag/kg/memgraph_impl.py:1304-1334 | lightrag/kg/neo4j_impl.py:1917-1945 \u2014 before extracting anything, compare \u0060lightrag/kg/memgraph_impl.py\u0060 and \u0060lightrag/kg/neo4j_impl.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 493 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 \u0060lightrag/kg/memgraph_impl.py:1304\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":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":1304}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffe1786d061bd99b95f50b0b566401832b3b41c47e069632a2de95d66f07d633"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): lightrag/kg/faiss_impl.py:703-732 | lightrag/kg/nano_vector_db_impl.py:1091-1120 \u2014 before extracting anything, compare \u0060lightrag/kg/faiss_impl.py\u0060 and \u0060lightrag/kg/nano_vector_db_impl.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 389 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":"lightrag/kg/faiss_impl.py"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"431e9ae39391be90f43a2858c66a327375e480b85f612c7a13e237bf8c5667bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): lightrag/kg/faiss_impl.py:1060-1089 | lightrag/kg/nano_vector_db_impl.py:643-672 \u2014 before extracting anything, compare \u0060lightrag/kg/faiss_impl.py\u0060 and \u0060lightrag/kg/nano_vector_db_impl.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 389 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 \u0060lightrag/kg/faiss_impl.py:1060\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":"lightrag/kg/faiss_impl.py"},"region":{"startLine":1060}}}],"partialFingerprints":{"codehealthFindingId/v1":"08ecadc5fef148e345762b3ec0a8d5ff7aee968984fd76e268fd4edde60ea76d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201330 lines \u00D7 2): lightrag/kg/json_doc_status_impl.py:126-149 | lightrag/kg/json_kv_impl.py:91-120 \u2014 before extracting anything, compare \u0060lightrag/kg/json_doc_status_impl.py\u0060 and \u0060lightrag/kg/json_kv_impl.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 200 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":"lightrag/kg/json_doc_status_impl.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"8daf7b1aae10ea7f1b78c6ea55ae98ad3bcaff83cc324b82600506026db871b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): lightrag/kg/json_doc_status_impl.py:437-466 | lightrag/kg/redis_impl.py:1690-1719 \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":"lightrag/kg/json_doc_status_impl.py"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5d68f722de3043074ebe64ae958c449cb9c0acfdc8584dafd9482c330a99eab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): lightrag/operate.py:1984-2013 | lightrag/operate.py:2176-2205 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/operate.py:1984\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, \u0060lightrag/operate.py:2174\u0060 calls \u0060get\u0060 and \u0060lightrag/operate.py:1983\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":"lightrag/operate.py"},"region":{"startLine":1984}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2963402a50dc9e50cf57c5ee719b3ce2ac8c259a7cb9f0c7b090aad5f2985ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201330 lines \u00D7 2): lightrag/operate.py:6620-6649 | lightrag/operate.py:6914-6942 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/operate.py:6620\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, \u0060lightrag/operate.py:6944\u0060 calls \u0060debug\u0060 and \u0060lightrag/operate.py:6651\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":"lightrag/operate.py"},"region":{"startLine":6620}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab39deef8afc1613c84fe7b26a56703cf3b7cd4ed66751666f69214f6bc4a0ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): lightrag/tools/clean_llm_query_cache.py:220-249 | lightrag/tools/migrate_llm_cache.py:257-286 \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":"lightrag/tools/clean_llm_query_cache.py"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"157c26714030e3109bce8b9914ed137c02ebff936248dceec23f27915920e339"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201330 lines \u00D7 2): lightrag/tools/clean_llm_query_cache.py:1022-1051 | lightrag/tools/migrate_llm_cache.py:1133-1160 \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. 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":"lightrag/tools/clean_llm_query_cache.py"},"region":{"startLine":1022}}}],"partialFingerprints":{"codehealthFindingId/v1":"69cd682f6fd0edcd86e2b8db208342378057928c8047c0c9fa8982811bf501d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): lightrag/api/routers/document_routes.py:5614-5642 | lightrag/api/routers/document_routes.py:5771-5799 \u2014 both copies are in the same file, so extract the block 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, \u0060lightrag/api/routers/document_routes.py:5806\u0060 calls \u0060_reweight_enqueue_slot\u0060 and \u0060lightrag/api/routers/document_routes.py:5645\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":"lightrag/api/routers/document_routes.py"},"region":{"startLine":5614}}}],"partialFingerprints":{"codehealthFindingId/v1":"05adbf232cdcb56f2024abadf1fe7a1a6f9beda6edb6ea4b89a971ca33421151"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201329 lines \u00D7 2): lightrag/kg/postgres_impl.py:8818-8844 | lightrag/kg/postgres_impl.py:8898-8926 \u2014 both copies are in the same file, so extract the block 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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060batch_size\u0060 to \u0060int = 1000\u0060 in one and \u0060int = 500\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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":8818}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca5db15682ebcd409dce7e6eba342111b8e163861267c1d1c978678e3711365"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): lightrag/operate.py:6649-6677 | lightrag/operate.py:6946-6974 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/operate.py:6649\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":"lightrag/operate.py"},"region":{"startLine":6649}}}],"partialFingerprints":{"codehealthFindingId/v1":"4536bf6db1307dee3ba504eedcf67a5c389e709870e9d91541ebfe22fbedf8b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): lightrag/utils_graph.py:1278-1306 | lightrag/utils_graph.py:3258-3286 \u2014 both copies are in the same file, so extract the block 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":"lightrag/utils_graph.py"},"region":{"startLine":1278}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8829ac8b6245383b527ee994a1fb69ebad7ca5c0af5f1d8aae57ccfade9fe4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201328 lines \u00D7 4): lightrag/kg/postgres_impl.py:1983-2008 | lightrag/kg/postgres_impl.py:2014-2039 | lightrag/kg/postgres_impl.py:2069-2096 | lightrag/kg/postgres_impl.py:2126-2152 \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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":1983}}}],"partialFingerprints":{"codehealthFindingId/v1":"805490bd8301d6615f5311baeca791c1e8dd9d80e7b5269d9c293ec42300dc83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): lightrag/operate.py:2573-2600 | lightrag/operate.py:2953-2980 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/operate.py:2573\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, \u0060lightrag/operate.py:2952\u0060 calls \u0060get\u0060 and \u0060lightrag/operate.py:2572\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":"lightrag/operate.py"},"region":{"startLine":2573}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c4c9d65799a28e7d7ac83293a03d468f357b9682d54bf43e3e583a371f34580"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): lightrag/operate.py:2739-2766 | lightrag/operate.py:3170-3197 \u2014 both copies are in the same file, so extract the block 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":"lightrag/operate.py"},"region":{"startLine":2739}}}],"partialFingerprints":{"codehealthFindingId/v1":"f330d371a539ea1dfc76c0919a42f049e70b814754b8d617a9925e633afb241b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201328 lines \u00D7 2): lightrag/parser/external/_base.py:163-188 | lightrag/parser/native_base.py:475-502 \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 \u0060lightrag/parser/external/_base.py:163\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":"lightrag/parser/external/_base.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"c12be60641c441841393d3f7751aaaad92d4e34c93be17191b37b6a15cac00a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): lightrag/rerank.py:524-551 | lightrag/rerank.py:564-591 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/rerank.py:524\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":"lightrag/rerank.py"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfb12e23b242aa4689ae967b66de01a1af95b731dc75ff90daff26465bc3a991"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201327 lines \u00D7 3): lightrag/kg/mongo_impl.py:3770-3792 | lightrag/kg/mongo_impl.py:3797-3823 | lightrag/kg/mongo_impl.py:3866-3877 \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 \u0060lightrag/kg/mongo_impl.py:3866\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":"lightrag/kg/mongo_impl.py"},"region":{"startLine":3770}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b78ccb91f9829ab155bd18ea06ae8cbcc80e3832d0d21df2d6572a69540032d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201327 lines \u00D7 2): lightrag/kg/memgraph_impl.py:300-323 | lightrag/kg/neo4j_impl.py:671-697 \u2014 before extracting anything, compare \u0060lightrag/kg/memgraph_impl.py\u0060 and \u0060lightrag/kg/neo4j_impl.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 493 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lightrag/kg/memgraph_impl.py:299\u0060 calls \u0060_get_workspace_label\u0060 and \u0060lightrag/kg/neo4j_impl.py:670\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":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"83a5dc34936374638c3b0f31a80c5d73c6700c4772b3aed2fb17299647cf4675"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): lightrag/kg/postgres_impl.py:5390-5416 | lightrag/kg/postgres_impl.py:5468-5494 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lightrag/kg/postgres_impl.py:5388\u0060 calls \u0060discard\u0060 and \u0060lightrag/kg/postgres_impl.py:5466\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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":5390}}}],"partialFingerprints":{"codehealthFindingId/v1":"2379ad2d2b93b569506fbf7fe67f633ca620e3c363751e73c2fb9517174535d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 3): lightrag/kg/json_doc_status_impl.py:1158-1183 | lightrag/kg/opensearch_impl.py:3536-3561 | lightrag/kg/redis_impl.py:2465-2490 \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. 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":"lightrag/kg/json_doc_status_impl.py"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"0198d7ac4c392229329f682b51985db5f61c8525b65509707b60f3fdca68a9dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): lightrag/kg/faiss_impl.py:1673-1698 | lightrag/kg/nano_vector_db_impl.py:1278-1303 \u2014 before extracting anything, compare \u0060lightrag/kg/faiss_impl.py\u0060 and \u0060lightrag/kg/nano_vector_db_impl.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 389 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":"lightrag/kg/faiss_impl.py"},"region":{"startLine":1673}}}],"partialFingerprints":{"codehealthFindingId/v1":"bba52745276d14bc8afd41c26b7931bdb587ecd791ec36b901e2b3b262c10be0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201326 lines \u00D7 2): lightrag/kg/memgraph_impl.py:414-439 | lightrag/kg/neo4j_impl.py:938-961 \u2014 before extracting anything, compare \u0060lightrag/kg/memgraph_impl.py\u0060 and \u0060lightrag/kg/neo4j_impl.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 493 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":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6962b1612a594588ee5c4ac1d8b57b6ce5d48c1d767f38fb3fd10c056e5fbf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201326 lines \u00D7 2): lightrag/kg/opensearch_impl.py:2783-2795 | lightrag/kg/opensearch_impl.py:3446-3471 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/kg/opensearch_impl.py:2783\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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":2783}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bed150656fb0140ae1aa4e429a274a0085da5888729554b6d7e6601d486fcfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201326 lines \u00D7 2): lightrag/kg/opensearch_impl.py:5219-5244 | lightrag/kg/opensearch_impl.py:6026-6047 \u2014 both copies are in the same file, so extract the block 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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":5219}}}],"partialFingerprints":{"codehealthFindingId/v1":"39947b206dbb4adcb36578b376629978b539d9f438b35aa2b105cec92d533560"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201326 lines \u00D7 2): lightrag/kg/redis_impl.py:426-449 | lightrag/kg/redis_impl.py:1042-1067 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/kg/redis_impl.py:1042\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":"lightrag/kg/redis_impl.py"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"46a30e7d139ee62ac9d428814fe1aca042b65be91a56e5fad9c265fd73aa6b4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 2): lightrag/parser/docx/parse_document.py:533-557 | lightrag/parser/docx/table_extractor.py:132-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 \u0060lightrag/parser/docx/parse_document.py:533\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":"lightrag/parser/docx/parse_document.py"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb59d956b5e1725aa4e34d36d8b7ed149ae1ba2bfa8ea134bcdc3eeffa2a6c60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 3): lightrag/utils_graph.py:978-1000 | lightrag/utils_graph.py:2113-2135 | lightrag/utils_graph.py:2788-2812 \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, \u0060lightrag/utils_graph.py:2138\u0060 calls \u0060_reject_self_loop_relation\u0060 and \u0060lightrag/utils_graph.py:1006\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":"lightrag/utils_graph.py"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"efe972e2370a6357a6337f60cad63888450daa19941e811e5846c59edb3a1a88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 2): lightrag/kg/memgraph_impl.py:369-393 | lightrag/kg/neo4j_impl.py:1725-1747 \u2014 before extracting anything, compare \u0060lightrag/kg/memgraph_impl.py\u0060 and \u0060lightrag/kg/neo4j_impl.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 493 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 \u0060lightrag/kg/memgraph_impl.py:369\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":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ba76e1445b03d1428c1f32ff802b9c976d64881557291caa2272156432d56d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): lightrag/kg/memgraph_impl.py:1273-1297 | lightrag/kg/neo4j_impl.py:1888-1912 \u2014 before extracting anything, compare \u0060lightrag/kg/memgraph_impl.py\u0060 and \u0060lightrag/kg/neo4j_impl.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 493 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":1273}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a9a353c001e199b715bf95ce3b6f69db6c1fc4dd256afb42b0128f5dead592f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 2): lightrag/kg/milvus_impl.py:2988-3011 | lightrag/kg/mongo_impl.py:4806-4830 \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 \u0060lightrag/kg/milvus_impl.py:2988\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":"lightrag/kg/milvus_impl.py"},"region":{"startLine":2988}}}],"partialFingerprints":{"codehealthFindingId/v1":"25e75ed5d2111a4b6812a2ea416c3d8045c06cb973368f4f1513ccc037a11917"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 2): lightrag/kg/mongo_impl.py:4614-4636 | lightrag/kg/qdrant_impl.py:772-796 \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":"lightrag/kg/mongo_impl.py"},"region":{"startLine":4614}}}],"partialFingerprints":{"codehealthFindingId/v1":"860cb76e50f006796aeb0d6276fea9ad796892071b92d8c8b6ff0969923055ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): lightrag/parser/external/docling/cache.py:288-312 | lightrag/parser/external/mineru/cache.py:394-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. 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":"lightrag/parser/external/docling/cache.py"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbf65950c1bfe6f7a8826ef858bef02e69360aa21a6b138cef5025f2abb33700"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201325 lines \u00D7 2): lightrag/tools/clean_llm_query_cache.py:504-528 | lightrag/tools/clean_llm_query_cache.py:744-763 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/tools/clean_llm_query_cache.py:504\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":"lightrag/tools/clean_llm_query_cache.py"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"95a5043af3209350a60c3578047c56003c473e3eb145dcf4455d4d858e5f694e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): lightrag/kg/memgraph_impl.py:38-60 | lightrag/kg/neo4j_impl.py:92-115 \u2014 before extracting anything, compare \u0060lightrag/kg/memgraph_impl.py\u0060 and \u0060lightrag/kg/neo4j_impl.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 493 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":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"51febb3e246ced1598fc5547480cf6c27219a904ce012851cc885e304b3f920e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): lightrag/kg/memgraph_impl.py:650-673 | lightrag/kg/neo4j_impl.py:1271-1294 \u2014 before extracting anything, compare \u0060lightrag/kg/memgraph_impl.py\u0060 and \u0060lightrag/kg/neo4j_impl.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 493 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":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf4e0d28d23ad1c4a1c28a4ee6befc7c4f992df140d0f5048f3e9a2c1b7f0630"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): lightrag/kg/shared_storage.py:3424-3447 | lightrag/kg/shared_storage.py:3617-3640 \u2014 both copies are in the same file, so extract the block 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":"lightrag/kg/shared_storage.py"},"region":{"startLine":3424}}}],"partialFingerprints":{"codehealthFindingId/v1":"af507e714ba11814806ebf45f71ca646d5e4e65b8eb08d5cf0a3373ff41f863b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201324 lines \u00D7 2): lightrag/operate.py:1256-1279 | lightrag/operate.py:1283-1302 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/operate.py:1256\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":"lightrag/operate.py"},"region":{"startLine":1256}}}],"partialFingerprints":{"codehealthFindingId/v1":"8149bab268b31f36c86c56f817a7c6381545a7a80a28b1b20cbeae5ac7ecc1a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): lightrag/parser/docx/parse_document.py:476-499 | lightrag/parser/docx/table_extractor.py:73-95 \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 \u0060lightrag/parser/docx/parse_document.py:476\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":"lightrag/parser/docx/parse_document.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"d12317a43bea0b1fbb702c3e606e50380e2f6c0399df2333ad4ba5e299052ceb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): lightrag/parser/docx/utils.py:587-610 | lightrag/parser/docx/utils.py:663-686 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"lightrag/parser/docx/utils.py"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f5d5dd935eec3638aae000f7469f6ae8ba50cfd5edb7651fdaec27bfcb57da2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): reproduce/Step_3.py:29-52 | reproduce/Step_3_openai_compatible.py:60-83 \u2014 before extracting anything, compare \u0060reproduce/Step_3.py\u0060 and \u0060reproduce/Step_3_openai_compatible.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 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":"reproduce/Step_3.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"d873d840d99f9632e0e16921040ad24ab8211ccddbf43464c181ba6aeb656814"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): lightrag/kg/shared_storage.py:1245-1267 | lightrag/kg/shared_storage.py:1324-1346 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/shared_storage.py"},"region":{"startLine":1245}}}],"partialFingerprints":{"codehealthFindingId/v1":"047e857ac773dcdd8f80256afd33d2d3f7f45958653e55508c88eb02deade5a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 2): lightrag/operate.py:2354-2376 | lightrag/operate.py:3430-3450 \u2014 both copies are in the same file, so extract the block 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":"lightrag/operate.py"},"region":{"startLine":2354}}}],"partialFingerprints":{"codehealthFindingId/v1":"84e119da0372de493f0b8019479c7cecd6fb73e7732185da359f8a69c610b8e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): lightrag/operate.py:6596-6618 | lightrag/operate.py:6891-6912 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/operate.py:6596\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":"lightrag/operate.py"},"region":{"startLine":6596}}}],"partialFingerprints":{"codehealthFindingId/v1":"de85c1eba5a617c9d1918b93604c5ee986c44528a7cafc15f65d6746f92af7ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 2): lightrag/parser/external/_base.py:89-111 | lightrag/parser/native_base.py:227-247 \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":"lightrag/parser/external/_base.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"20d96ba5d40e9d2199038a2c40d4e79ab1e503b3d6bbbe7ddb60db3da3f27936"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201323 lines \u00D7 2): lightrag/storage_migrations.py:255-277 | lightrag/storage_migrations.py:312-330 \u2014 both copies are in the same file, so extract the block 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":"lightrag/storage_migrations.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"e11ca1f50ddc613c95f8aca6354a87e97d834830ebb12f070dfbbc434e32933c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 4): lightrag/kg/mongo_impl.py:430-451 | lightrag/kg/mongo_impl.py:710-730 | lightrag/kg/mongo_impl.py:1792-1812 | lightrag/kg/mongo_impl.py:4249-4269 \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 \u0060lightrag/kg/mongo_impl.py:430\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":"lightrag/kg/mongo_impl.py"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"28ae8ca0f6352aff617f5b58d7b201631646aa89a5a515c81e21d538c8c6754b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201322 lines \u00D7 2): lightrag/api/config.py:561-582 | lightrag/api/config.py:594-608 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/api/config.py:561\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, \u0060lightrag/api/config.py:585\u0060 calls \u0060add_args\u0060 and \u0060lightrag/api/config.py:610\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":"lightrag/api/config.py"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"34a1d426780da1c5a695fb8928bf95df0d1dd4a0a6404e6d6f3654742276b072"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): lightrag/api/lightrag_server.py:1966-1987 | lightrag/api/lightrag_server.py:2035-2056 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/api/lightrag_server.py:1966\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":"lightrag/api/lightrag_server.py"},"region":{"startLine":1966}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdb92bd509f10352bf28ca552d8a78fa9a76a2537da1c5c5014e769bc53c1077"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): lightrag/kg/opensearch_impl.py:5095-5116 | lightrag/kg/opensearch_impl.py:5858-5878 \u2014 both copies are in the same file, so extract the block 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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":5095}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc6fa5b08b642bbfddd2f6b0cffa0b8e8f3db4aa4ea5de81522c192b1638eacc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201322 lines \u00D7 2): lightrag/kg/postgres_impl.py:3747-3766 | lightrag/kg/postgres_impl.py:5940-5961 \u2014 both copies are in the same file, so extract the block 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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":3747}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d9d1925e22b9601891d88c395c05e99f16b7579d7ce10a4a5fdfc38cd8d33ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): lightrag/kg/redis_impl.py:486-507 | lightrag/kg/redis_impl.py:1100-1121 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lightrag/kg/redis_impl.py:1095\u0060 calls \u0060close\u0060 and \u0060lightrag/kg/redis_impl.py:481\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":"lightrag/kg/redis_impl.py"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"d16a4c6e7c7687e5c4b7c15b25d2c778fa57876e8d174d33200ddcf0cf6c7921"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201322 lines \u00D7 2): lightrag/kg/redis_impl.py:1294-1312 | lightrag/kg/redis_impl.py:1348-1369 \u2014 both copies are in the same file, so extract the block 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":"lightrag/kg/redis_impl.py"},"region":{"startLine":1294}}}],"partialFingerprints":{"codehealthFindingId/v1":"beabbdd32346f1f98b29b05b18fe43d45fedeb094b9b4a7abf03c6cdd715256b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): lightrag/operate.py:2627-2648 | lightrag/operate.py:3063-3084 \u2014 both copies are in the same file, so extract the block 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":"lightrag/operate.py"},"region":{"startLine":2627}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb7981e94ddc60fc419d39177873b2bcaf16f0c8cf1bfbc00df46a2f67075080"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 4): lightrag/kg/json_doc_status_impl.py:784-804 | lightrag/kg/mongo_impl.py:1334-1353 | lightrag/kg/opensearch_impl.py:2979-2998 | lightrag/kg/redis_impl.py:2084-2103 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lightrag/kg/json_doc_status_impl.py:784\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":"lightrag/kg/json_doc_status_impl.py"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c0974e9a3fd8cd7c2794907b88d6e692facaf032ca82a35d57c12ae22d181ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201321 lines \u00D7 4): lightrag/kg/milvus_impl.py:2852-2872 | lightrag/kg/mongo_impl.py:243-258 | lightrag/kg/postgres_impl.py:269-284 | lightrag/kg/qdrant_impl.py:688-705 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lightrag/kg/milvus_impl.py:2852\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":"lightrag/kg/milvus_impl.py"},"region":{"startLine":2852}}}],"partialFingerprints":{"codehealthFindingId/v1":"3787a495141e8e358920f0e2ca950588e9f3f4605aaffa373fbd379d9d11142b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): lightrag/kg/mongo_impl.py:616-636 | lightrag/kg/mongo_impl.py:889-909 \u2014 both copies are in the same file, so extract the block 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":"lightrag/kg/mongo_impl.py"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"941e631751b982188211189a61fffb23a2fe769d3ae3f521a118cd2efad8a72b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 2): lightrag/kg/postgres_impl.py:4888-4906 | lightrag/kg/postgres_impl.py:4917-4937 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/kg/postgres_impl.py:4888\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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":4888}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e101e6e4e913e661d99a7f64bd57c472b6782f3b0615a1e2980e79f51f25156"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201321 lines \u00D7 2): lightrag/lightrag.py:7081-7098 | lightrag/lightrag.py:7259-7279 \u2014 both copies are in the same file, so extract the block 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":"lightrag/lightrag.py"},"region":{"startLine":7081}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dac9a456940af006f0fa7a662dbeca98adc11633207dd00e036d73e0ba16b37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): lightrag/llm/anthropic.py:191-211 | lightrag/llm/openai.py:569-589 \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 before the matched lines, \u0060lightrag/llm/openai.py:566\u0060 calls \u0060str\u0060, \u0060lower\u0060, \u0060warning\u0060 and \u0060lightrag/llm/anthropic.py:190\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":"lightrag/llm/anthropic.py"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"567dc081dd58f05cae149741e245989e60b0511de77c8db5d162fa1a2cc70ff2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): lightrag/llm/binding_options.py:184-204 | lightrag/llm/binding_options.py:212-232 \u2014 both copies are in the same file, so extract the block 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":"lightrag/llm/binding_options.py"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"39533efd398d5aa47a6079f074750a638fc36bc47387fbc205ba3d9d2e127510"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201321 lines \u00D7 2): lightrag/multimodal_context.py:300-320 | lightrag/multimodal_context.py:362-376 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/multimodal_context.py: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":"lightrag/multimodal_context.py"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea2f443f6d765628393beccde25b711fa3ccd2792f2bb7a6fed2465d018b775"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): lightrag/parser/external/_manifest.py:89-114 | lightrag/parser/external/mineru/manifest.py:87-112 \u2014 before extracting anything, compare \u0060lightrag/parser/external/_manifest.py\u0060 and \u0060lightrag/parser/external/mineru/manifest.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lightrag/parser/external/_manifest.py:115\u0060 calls \u0060dict\u0060, \u0060get\u0060 and \u0060lightrag/parser/external/mineru/manifest.py:113\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":"lightrag/parser/external/_manifest.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c09f87e018fea3c5c5855f5d465ec946c6d6f3d0c9f111d90f467fd81b6502c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201320 lines \u00D7 6): lightrag/kg/faiss_impl.py:1087-1103 | lightrag/kg/milvus_impl.py:2927-2943 | lightrag/kg/mongo_impl.py:4752-4768 | lightrag/kg/nano_vector_db_impl.py:670-686 | lightrag/kg/opensearch_impl.py:6745-6764 | lightrag/kg/qdrant_impl.py:883-899 \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 \u0060lightrag/kg/faiss_impl.py:1087\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":"lightrag/kg/faiss_impl.py"},"region":{"startLine":1087}}}],"partialFingerprints":{"codehealthFindingId/v1":"a527847ecd75fce26f4e12596ff04635fb559960d27a2b82d89e6c5b9e743fc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 4): lightrag/kg/opensearch_impl.py:4417-4436 | lightrag/kg/opensearch_impl.py:4625-4644 | lightrag/kg/opensearch_impl.py:5910-5928 | lightrag/kg/opensearch_impl.py:5959-5977 \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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":4417}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0878f80b35c3655be270141c2d1274b9192a8cae01de8d1ee8ae75d9b192a11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 2): lightrag/kg/faiss_impl.py:1733-1750 | lightrag/kg/nano_vector_db_impl.py:1334-1353 \u2014 before extracting anything, compare \u0060lightrag/kg/faiss_impl.py\u0060 and \u0060lightrag/kg/nano_vector_db_impl.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 389 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":"lightrag/kg/faiss_impl.py"},"region":{"startLine":1733}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c1d3f7428b8a00bd9a91e7e9102362663d5367a22f0f4b55eccbbf740e77441"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): lightrag/kg/faiss_impl.py:1818-1837 | lightrag/kg/nano_vector_db_impl.py:1426-1445 \u2014 before extracting anything, compare \u0060lightrag/kg/faiss_impl.py\u0060 and \u0060lightrag/kg/nano_vector_db_impl.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 389 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":"lightrag/kg/faiss_impl.py"},"region":{"startLine":1818}}}],"partialFingerprints":{"codehealthFindingId/v1":"40fe451d09cba2f4728c7d7fc7881a2decdce57570cf201b223a020be98a85f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): lightrag/kg/memgraph_impl.py:811-830 | lightrag/kg/neo4j_impl.py:1168-1186 \u2014 before extracting anything, compare \u0060lightrag/kg/memgraph_impl.py\u0060 and \u0060lightrag/kg/neo4j_impl.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 493 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 \u0060lightrag/kg/memgraph_impl.py:811\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":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"6113a08fd2d9125a73e430b937f292e3e8832fa82b36b8e9ef5283b2a6436774"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): lightrag/kg/memgraph_impl.py:971-990 | lightrag/kg/neo4j_impl.py:1833-1852 \u2014 before extracting anything, compare \u0060lightrag/kg/memgraph_impl.py\u0060 and \u0060lightrag/kg/neo4j_impl.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 493 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":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":971}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ad0a8086474a9c23ac3b95c0862ed005883ef00c93f591fd0713affe38dc75b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43\u201359 lines \u00D7 3): lightrag/kg/milvus_impl.py:2913-2971 | lightrag/kg/mongo_impl.py:4738-4789 | lightrag/kg/qdrant_impl.py:869-911 \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 \u0060lightrag/kg/milvus_impl.py:2913\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lightrag/kg/milvus_impl.py:2911\u0060 calls \u0060run_in_milvus_executor\u0060 and \u0060lightrag/kg/mongo_impl.py:4736\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":"lightrag/kg/milvus_impl.py"},"region":{"startLine":2913}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7f062f17fa57f5c377e6487191a97dc974f585551c70b43b8a9ff336ec1dafc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201320 lines \u00D7 2): lightrag/kg/opensearch_impl.py:4421-4440 | lightrag/kg/opensearch_impl.py:5105-5121 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/kg/opensearch_impl.py:4421\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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":4421}}}],"partialFingerprints":{"codehealthFindingId/v1":"08fd8f12a2fdd70ee09736d6431039be67853a22677254ae09977618ba885abb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): lightrag/kg/postgres_impl.py:4012-4031 | lightrag/kg/postgres_impl.py:7246-7265 \u2014 both copies are in the same file, so extract the block 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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":4012}}}],"partialFingerprints":{"codehealthFindingId/v1":"08542d795e61970c18aa69ae76cd75766b635a1cb8ce821b1c3ca9d0a030def6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): lightrag/operate.py:3811-3830 | lightrag/operate.py:3907-3926 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/operate.py:3811\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":"lightrag/operate.py"},"region":{"startLine":3811}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c17a4c545806164029a33e610c8a4de44ba7f99fc20922b9d9f98cafb814a69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): lightrag/operate.py:4376-4395 | lightrag/operate.py:4397-4415 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/operate.py:4376\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":"lightrag/operate.py"},"region":{"startLine":4376}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b1e7247b4cae24cab46ec320b83e34bb7ef9e822a74ced5d195156f3fda2ecb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): lightrag/kg/faiss_impl.py:1798-1816 | lightrag/kg/nano_vector_db_impl.py:1406-1424 \u2014 before extracting anything, compare \u0060lightrag/kg/faiss_impl.py\u0060 and \u0060lightrag/kg/nano_vector_db_impl.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 389 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":"lightrag/kg/faiss_impl.py"},"region":{"startLine":1798}}}],"partialFingerprints":{"codehealthFindingId/v1":"e939be9daea04b6663881be33f71d96262ca5ba4e56e18a2fbc9113c8c72b9cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): lightrag/kg/opensearch_impl.py:1192-1210 | lightrag/kg/opensearch_impl.py:2485-2502 \u2014 both copies are in the same file, so extract the block 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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":1192}}}],"partialFingerprints":{"codehealthFindingId/v1":"c47deaeda7bb4977b8afd34457429f2381b3c220fa5796dcb62f5ebfe34f5004"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): lightrag/kg/redis_impl.py:829-847 | lightrag/kg/redis_impl.py:2837-2855 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/kg/redis_impl.py:829\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":"lightrag/kg/redis_impl.py"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"58478f22bde53afced29a5b01f01e4f8f280895b0a0081955acc034a29fbb502"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): lightrag/llm/zhipu.py:146-164 | lightrag/llm/zhipu.py:260-278 \u2014 both copies are in the same file, so extract the block 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":"lightrag/llm/zhipu.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"35aad5814d4d440810bbeab156da9bc841cea1fb80d0e152ffe17e776c688e47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): lightrag/operate.py:2709-2726 | lightrag/operate.py:3139-3157 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/operate.py:2709\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":"lightrag/operate.py"},"region":{"startLine":2709}}}],"partialFingerprints":{"codehealthFindingId/v1":"082633d9e8288b80e51e8c390ea192ea4fb3d4bb19cfae2bf3f39d51b35b2eef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201319 lines \u00D7 2): lightrag/parser/external/_manifest.py:124-142 | lightrag/parser/external/mineru/manifest.py:121-136 \u2014 before extracting anything, compare \u0060lightrag/parser/external/_manifest.py\u0060 and \u0060lightrag/parser/external/mineru/manifest.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"lightrag/parser/external/_manifest.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b3aef3aefd2bb4c3c15d1e11f7d20ae8177f0c8198308ec04114eea7bb0c6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201319 lines \u00D7 2): lightrag/parser/external/docling/ir_builder.py:356-368 | lightrag/parser/external/mineru/ir_builder.py:321-339 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lightrag/parser/external/docling/ir_builder.py:369\u0060 calls \u0060_visit_children\u0060 and \u0060lightrag/parser/external/mineru/ir_builder.py:340\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":"lightrag/parser/external/docling/ir_builder.py"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcfe56c3f62b78ac930e7c7c213922072d23b7f3c2755f629d897abbff3146f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): lightrag/parser/param_schema.py:212-230 | lightrag/parser/param_schema.py:526-544 \u2014 both copies are in the same file, so extract the block 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":"lightrag/parser/param_schema.py"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"806fa87977a26fddeca148f924b5b43bffee43a16aee0ae8712e69bf40695122"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): lightrag/pipeline.py:4434-4452 | lightrag/pipeline.py:4818-4835 \u2014 both copies are in the same file, so extract the block 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":"lightrag/pipeline.py"},"region":{"startLine":4434}}}],"partialFingerprints":{"codehealthFindingId/v1":"67496ae9d987549b3c57653ddea4cbc68fbcf91b8e271e12964c8a842c6301e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201319 lines \u00D7 2): lightrag/tools/migrate_llm_cache.py:356-374 | lightrag/tools/migrate_llm_cache.py:748-763 \u2014 both copies are in the same file, so extract the block 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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060batch_size\u0060 to \u0060int = 1000\u0060 in one and \u0060int\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/tools/migrate_llm_cache.py"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8075ab5feda694d5b393d2871e0b16be474737a7359dc1729dc65e2e48f51fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 10): lightrag/kg/milvus_impl.py:2935-2950 | lightrag/kg/milvus_impl.py:3425-3439 | lightrag/kg/mongo_impl.py:4760-4775 | lightrag/kg/mongo_impl.py:5070-5084 | lightrag/kg/nano_vector_db_impl.py:678-694 | lightrag/kg/opensearch_impl.py:6756-6773 | lightrag/kg/opensearch_impl.py:7162-7177 | lightrag/kg/postgres_impl.py:5661-5675 | lightrag/kg/qdrant_impl.py:891-906 | lightrag/kg/qdrant_impl.py:1292-1306 \u2014 there are 10 copies across 6 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 10 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lightrag/kg/milvus_impl.py:2935\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":"lightrag/kg/milvus_impl.py"},"region":{"startLine":2935}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba511c64826858f120bf2631c8037479ec2bb1449d1ee7b7685236a5d7f79799"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 6): lightrag/kg/opensearch_impl.py:2488-2505 | lightrag/kg/opensearch_impl.py:4419-4439 | lightrag/kg/opensearch_impl.py:4627-4647 | lightrag/kg/opensearch_impl.py:5103-5121 | lightrag/kg/opensearch_impl.py:5866-5883 | lightrag/kg/opensearch_impl.py:5912-5931 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lightrag/kg/opensearch_impl.py:2488\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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":2488}}}],"partialFingerprints":{"codehealthFindingId/v1":"0017117f11dd478ab5a4f418d34bd6595b855ba720df52c1915dde4acfaeaf33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): lightrag/pipeline.py:1936-1953 | lightrag/pipeline.py:2016-2033 | lightrag/pipeline.py:2067-2084 | lightrag/pipeline.py:2141-2158 \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":"lightrag/pipeline.py"},"region":{"startLine":1936}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e982a0cadf8cee039b8e503bde2fabaf19e7a9dd93ae386b4b1ad4aa9e2c24c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 3): lightrag/kg/opensearch_impl.py:5101-5118 | lightrag/kg/opensearch_impl.py:5147-5164 | lightrag/kg/opensearch_impl.py:5864-5880 \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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":5101}}}],"partialFingerprints":{"codehealthFindingId/v1":"0539f17bf1fac7e974acb44a6474d3b1494e38c1ad1b8bf58bbbcc9d8ab33e53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 2): lightrag/chunker/paragraph_semantic.py:515-529 | lightrag/chunker/paragraph_semantic.py:625-642 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The 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":"lightrag/chunker/paragraph_semantic.py"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f35513d37ce2a7e0a431483a382930f9691d4722bc1b2620b0d108fbc6dd5e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lightrag/kg/memgraph_impl.py:449-466 | lightrag/kg/neo4j_impl.py:979-996 \u2014 before extracting anything, compare \u0060lightrag/kg/memgraph_impl.py\u0060 and \u0060lightrag/kg/neo4j_impl.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 493 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":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"b18fdbf4359c0a34fdacac669b93b0da8735108f97d51729cb49044a7d39c8d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lightrag/kg/memgraph_impl.py:1243-1260 | lightrag/kg/neo4j_impl.py:1862-1879 \u2014 before extracting anything, compare \u0060lightrag/kg/memgraph_impl.py\u0060 and \u0060lightrag/kg/neo4j_impl.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 493 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lightrag/kg/memgraph_impl.py:1240\u0060 calls \u0060RuntimeError\u0060 and \u0060lightrag/kg/neo4j_impl.py:1860\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":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":1243}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c638e2c801204b27665c000fa8fe57feb78147eceb3fdc9740f0a5a36cf802d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): lightrag/kg/memgraph_impl.py:1366-1383 | lightrag/kg/neo4j_impl.py:1972-1987 \u2014 before extracting anything, compare \u0060lightrag/kg/memgraph_impl.py\u0060 and \u0060lightrag/kg/neo4j_impl.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 493 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":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":1366}}}],"partialFingerprints":{"codehealthFindingId/v1":"d150a4858f5de63640151df46941de853c834ae6fd92dbdbbfbd897fd21b88fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lightrag/kg/opensearch_impl.py:1195-1212 | lightrag/kg/opensearch_impl.py:5149-5166 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/kg/opensearch_impl.py:1195\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060batch_size\u0060 to \u0060int = 1000\u0060 in one and \u0060int\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lightrag/kg/opensearch_impl.py:5146\u0060 calls \u0060_refresh_graph_indices_if_dirty\u0060 and \u0060lightrag/kg/opensearch_impl.py:1192\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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":1195}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9da80fa4ba77c5b18ba1b98d75b3d7d969a6dab26e694bbbde934046ccc0b72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 2): lightrag/kg/redis_impl.py:1314-1328 | lightrag/kg/redis_impl.py:1371-1388 \u2014 both copies are in the same file, so extract the block 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":"lightrag/kg/redis_impl.py"},"region":{"startLine":1314}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e986a13649692545a40fe3cd01b1cc979b9a326ee36ca261027715c7046a1c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lightrag/llm/anthropic.py:91-108 | lightrag/llm/lmdeploy.py:115-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":"lightrag/llm/anthropic.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"df3deafe1e8606c2380f866dccd97b61326d21382d91a6c18debfbd8f6cf1a47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 2): lightrag/operate.py:3255-3269 | lightrag/operate.py:3386-3403 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/operate.py:3255\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, \u0060lightrag/operate.py:3384\u0060 calls \u0060upsert_node\u0060 and \u0060lightrag/operate.py:3254\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":"lightrag/operate.py"},"region":{"startLine":3255}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f2e22a9fe0fca0625bd8d2c1eedf56cc3e55fed08827e257dcc3e87cd14b7eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lightrag/operate.py:3771-3788 | lightrag/operate.py:3854-3871 \u2014 both copies are in the same file, so extract the block 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":"lightrag/operate.py"},"region":{"startLine":3771}}}],"partialFingerprints":{"codehealthFindingId/v1":"9488dbbae678fea1de1002f8e542da76df2a009cb9d874126a7a09a00bf17959"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): lightrag/tools/clean_llm_query_cache.py:913-938 | lightrag/tools/migrate_llm_cache.py:1385-1410 \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 \u0060stats\u0060 to \u0060CleanupStats\u0060 in one and \u0060MigrationStats\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":"lightrag/tools/clean_llm_query_cache.py"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9a5e0bb60826cbe53fde943eace203e370b905323ac633b466a47c94f07efc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lightrag/tools/migrate_llm_cache.py:392-409 | lightrag/tools/migrate_llm_cache.py:783-800 \u2014 both copies are in the same file, so extract the block 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":"lightrag/tools/migrate_llm_cache.py"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c2eb81080c7e6bdb8eba48ffe68f98308cef0b13e0b2d3296ec29dde819ad16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 2): lightrag/utils.py:1489-1506 | lightrag/utils.py:1835-1849 \u2014 both copies are in the same file, so extract the block 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":"lightrag/utils.py"},"region":{"startLine":1489}}}],"partialFingerprints":{"codehealthFindingId/v1":"e00ad69a8f366c412094d62a8b7a9e26e606ac3eedda578a59dc97d7d88c0427"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 9): lightrag/kg/opensearch_impl.py:1195-1212 | lightrag/kg/opensearch_impl.py:2488-2504 | lightrag/kg/opensearch_impl.py:4419-4438 | lightrag/kg/opensearch_impl.py:4627-4646 | lightrag/kg/opensearch_impl.py:5103-5120 | lightrag/kg/opensearch_impl.py:5149-5166 | lightrag/kg/opensearch_impl.py:5866-5882 | lightrag/kg/opensearch_impl.py:5912-5930 | lightrag/kg/opensearch_impl.py:5961-5979 \u2014 all 9 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 \u0060lightrag/kg/opensearch_impl.py:1195\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060batch_size\u0060 to \u0060int = 1000\u0060 in one and \u0060int\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lightrag/kg/opensearch_impl.py:5146\u0060 calls \u0060_refresh_graph_indices_if_dirty\u0060 and \u0060lightrag/kg/opensearch_impl.py:1192\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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":1195}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd6a1d751de7f902c2f910011d4bc404785dff3b95c8d767541168b4199c4923"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201317 lines \u00D7 5): lightrag/kg/milvus_impl.py:3185-3196 | lightrag/kg/mongo_impl.py:4869-4880 | lightrag/kg/opensearch_impl.py:7209-7225 | lightrag/kg/postgres_impl.py:5324-5340 | lightrag/kg/qdrant_impl.py:1013-1024 \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 5 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060ids\u0060 to \u0060list[str]\u0060 in one and \u0060List[str]\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":"lightrag/kg/milvus_impl.py"},"region":{"startLine":3185}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea25bf56791cfa0a5e8d91d8a02d7a6f47660e0031b58ed32a90ee5033c74206"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): lightrag/kg/postgres_impl.py:3861-3877 | lightrag/kg/postgres_impl.py:3879-3895 | lightrag/kg/postgres_impl.py:3897-3913 | lightrag/kg/postgres_impl.py:3915-3931 \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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":3861}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c4a33ed21c670605f9bdab8e36e518a7e2d02414f59b8d64ccbb4815d6cccbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): lightrag/api/routers/graph_routes.py:909-923 | lightrag/api/routers/graph_routes.py:956-972 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/api/routers/graph_routes.py:909\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":"lightrag/api/routers/graph_routes.py"},"region":{"startLine":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"2885c5c555960004327b3ab0660029aade51d86c3ef73684f9252dd35e5fba7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201317 lines \u00D7 2): lightrag/api/routers/query_routes.py:625-641 | lightrag/api/routers/query_routes.py:687-700 \u2014 both copies are in the same file, so extract the block 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":"lightrag/api/routers/query_routes.py"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"82fc78e5a3a3c4ed17e066843b2735a45d1597aab5090572949a8a275fcb697e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lightrag/kg/json_doc_status_impl.py:107-123 | lightrag/kg/json_kv_impl.py:72-88 \u2014 before extracting anything, compare \u0060lightrag/kg/json_doc_status_impl.py\u0060 and \u0060lightrag/kg/json_kv_impl.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 200 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":"lightrag/kg/json_doc_status_impl.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9c9e7b9a55023064106d5c6775f3759b12525763a625c74948279ef916e2fde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): lightrag/kg/memgraph_impl.py:860-876 | lightrag/kg/neo4j_impl.py:1218-1233 \u2014 before extracting anything, compare \u0060lightrag/kg/memgraph_impl.py\u0060 and \u0060lightrag/kg/neo4j_impl.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 493 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":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"c76f06b7d0a0a4fb589662794f815ca87e1d75d799e15ebffa71c5929b9581a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lightrag/kg/opensearch_impl.py:5339-5355 | lightrag/kg/opensearch_impl.py:5959-5975 \u2014 both copies are in the same file, so extract the block 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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":5339}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9cffd339ff10aef2cfcd86bf581b76f34b13cf76347c4929c7e70ed801c2c10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): lightrag/llm/anthropic.py:169-185 | lightrag/llm/openai.py:526-540 \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, \u0060lightrag/llm/openai.py:541\u0060 calls \u0060is_permanent_rate_limit_error\u0060 and \u0060lightrag/llm/anthropic.py:186\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":"lightrag/llm/anthropic.py"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"49c0b4f4ded076da2fd764a935f3dba5457b632680f59ff09d69339fa3cf57a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): lightrag/multimodal_context.py:537-553 | lightrag/multimodal_context.py:654-668 \u2014 both copies are in the same file, so extract the block 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":"lightrag/multimodal_context.py"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"a82eaca84e70f1b2ff88dfd06781fa265301dbe381f4c6be2e19e60779bc6016"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lightrag/utils_graph.py:3588-3612 | lightrag/utils_graph.py:3614-3630 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/utils_graph.py:3588\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":"lightrag/utils_graph.py"},"region":{"startLine":3588}}}],"partialFingerprints":{"codehealthFindingId/v1":"55139f8d70cc0f683b59e00ea642042ad5cdecfbff27cc96b15f9cb0693383fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 6): lightrag/kg/mongo_impl.py:427-442 | lightrag/kg/mongo_impl.py:707-722 | lightrag/kg/mongo_impl.py:1789-1804 | lightrag/kg/mongo_impl.py:4246-4261 | lightrag/kg/redis_impl.py:401-416 | lightrag/kg/redis_impl.py:1017-1032 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lightrag/kg/mongo_impl.py:4239\u0060 calls \u0060_validate_embedding_func\u0060 and \u0060lightrag/kg/mongo_impl.py:421\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":"lightrag/kg/mongo_impl.py"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"38bcc68cd655d3c67722e215b31211ab752ec33086d38adfc27bd3a88f6d2f01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): lightrag/kg/memgraph_impl.py:1272-1291 | lightrag/kg/memgraph_impl.py:1352-1367 | lightrag/kg/neo4j_impl.py:1887-1906 \u2014 before extracting anything, compare \u0060lightrag/kg/memgraph_impl.py\u0060 and \u0060lightrag/kg/neo4j_impl.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 493 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lightrag/kg/memgraph_impl.py:1269\u0060 calls \u0060RuntimeError\u0060 and \u0060lightrag/kg/neo4j_impl.py:1885\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":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":1272}}}],"partialFingerprints":{"codehealthFindingId/v1":"b54be92083bc92f7d3fe8bf4ee84c3f6f9b6ffa6a658b7ecf8f526f5c647a9ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): lightrag/kg/postgres_impl.py:3393-3408 | lightrag/kg/postgres_impl.py:5911-5926 | lightrag/kg/postgres_impl.py:7703-7718 \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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":3393}}}],"partialFingerprints":{"codehealthFindingId/v1":"13a214225d9d9171c55e20276a2b870cefa94c2b50b646b2e08b3581da9bfd5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 2): lightrag/kg/memgraph_impl.py:365-377 | lightrag/kg/memgraph_impl.py:1300-1315 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/kg/memgraph_impl.py:365\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":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f587537876957cb5d644eab79bdba755491ef98212c98631035f1605cf1cac2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lightrag/kg/opensearch_impl.py:3212-3227 | lightrag/kg/opensearch_impl.py:3271-3286 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/kg/opensearch_impl.py:3212\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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":3212}}}],"partialFingerprints":{"codehealthFindingId/v1":"6388c92e5cf33b2f736192a15c7360752f08be96ae2291e6a0af13f2d7e8639e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lightrag/kg/opensearch_impl.py:5886-5901 | lightrag/kg/opensearch_impl.py:5935-5950 \u2014 both copies are in the same file, so extract the block 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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":5886}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4d30b659453f01f0efa6fe3437a1d8c251c7ea35a809ef318e06f3041208e71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lightrag/kg/postgres_impl.py:4090-4105 | lightrag/kg/postgres_impl.py:7484-7499 \u2014 both copies are in the same file, so extract the block 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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":4090}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dee01ba08aa743aeacd0988ffc546a5f83cb9cc101963843555887ba314a4a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lightrag/kg/redis_impl.py:2252-2267 | lightrag/kg/redis_impl.py:2297-2314 \u2014 both copies are in the same file, so extract the block 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":"lightrag/kg/redis_impl.py"},"region":{"startLine":2252}}}],"partialFingerprints":{"codehealthFindingId/v1":"b28e75586cc424a30721f9602fec1f873414ba23563d0e32f7ee1050e4783e37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): lightrag/operate.py:4969-4984 | lightrag/operate.py:7209-7222 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/operate.py:4969\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, \u0060lightrag/operate.py:4986\u0060 calls \u0060progress_callback\u0060 and \u0060lightrag/operate.py:7223\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":"lightrag/operate.py"},"region":{"startLine":4969}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdb4f9efce045de448bace9968518f2b3e67a8a1edae60ec5c65edb141d58891"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lightrag/parser/param_schema.py:243-258 | lightrag/parser/param_schema.py:562-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 \u0060lightrag/parser/param_schema.py:243\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":"lightrag/parser/param_schema.py"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea187073ae59c4886a8d05d4c8bee231a85cafb4be98e74cc9b953ae94ecf31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): lightrag/kg/milvus_impl.py:3401-3415 | lightrag/kg/mongo_impl.py:5046-5060 | lightrag/kg/opensearch_impl.py:7137-7151 | lightrag/kg/qdrant_impl.py:1268-1282 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once. 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":"lightrag/kg/milvus_impl.py"},"region":{"startLine":3401}}}],"partialFingerprints":{"codehealthFindingId/v1":"8214379c7e5f8a9b337f65ba9a3a4f556a16903560c7bb05b18de197350278db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 4): lightrag/kg/milvus_impl.py:3509-3523 | lightrag/kg/mongo_impl.py:4438-4452 | lightrag/kg/postgres_impl.py:4837-4850 | lightrag/kg/qdrant_impl.py:1382-1396 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/milvus_impl.py"},"region":{"startLine":3509}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4e5a8c6ed214f70e32faa0320275ce8bfde95ed681a49e8bffe8e7e257f7aad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): lightrag/kg/postgres_impl.py:3397-3411 | lightrag/kg/postgres_impl.py:4758-4772 | lightrag/kg/postgres_impl.py:5915-5929 | lightrag/kg/postgres_impl.py:7707-7721 \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 \u0060lightrag/kg/postgres_impl.py:3397\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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":3397}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbf6b8065a491701645eab2ccde4260cb5a19b000a4e8618bc7fbf045ebcdd21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 3): lightrag/kg/postgres_impl.py:6023-6037 | lightrag/kg/postgres_impl.py:6156-6168 | lightrag/kg/postgres_impl.py:6234-6246 \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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":6023}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8b1af4bf9d59ff4c43a62ad66fa66af317ddbe169ce6b53d9cc0511711dd664"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lightrag/api/routers/document_routes.py:6663-6677 | lightrag/api/routers/document_routes.py:6815-6829 \u2014 both copies are in the same file, so extract the block 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":"lightrag/api/routers/document_routes.py"},"region":{"startLine":6663}}}],"partialFingerprints":{"codehealthFindingId/v1":"71e171fd459aed82d969e95a43d2cd2cc92dd523bd5084382a2eaab1e2fbec5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): lightrag/chunker/paragraph_semantic.py:1890-1902 | lightrag/chunker/paragraph_semantic.py:2032-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lightrag/chunker/paragraph_semantic.py:1890\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":"lightrag/chunker/paragraph_semantic.py"},"region":{"startLine":1890}}}],"partialFingerprints":{"codehealthFindingId/v1":"42c31fd4a3c5c8aa95f0e6a8cdfbc54428d2c3576e666118fc7cc0cd778e5314"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): lightrag/kg/mongo_impl.py:2074-2088 | lightrag/kg/opensearch_impl.py:682-694 \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, \u0060lightrag/kg/mongo_impl.py:2098\u0060 calls \u0060set\u0060, \u0060_edge_source_id_list\u0060 and \u0060lightrag/kg/opensearch_impl.py:695\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":"lightrag/kg/mongo_impl.py"},"region":{"startLine":2074}}}],"partialFingerprints":{"codehealthFindingId/v1":"989a1cf793e91fbe74822eedfc927b66e63926514700b3a8c82b645dc4b0b438"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): lightrag/kg/mongo_impl.py:4238-4252 | lightrag/kg/qdrant_impl.py:518-531 \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":"lightrag/kg/mongo_impl.py"},"region":{"startLine":4238}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b7f1154b8e8ca1861dc8fcfb74f894e6eb2d9b97205f71e652da8a3da925a34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): lightrag/kg/opensearch_impl.py:1434-1448 | lightrag/kg/opensearch_impl.py:2365-2378 \u2014 both copies are in the same file, so extract the block 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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":1434}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a788cbe6cc3dc2e2fe5e8486ce954dcc9c9706572d288364c0b168b350ada89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): lightrag/kg/opensearch_impl.py:1638-1652 | lightrag/kg/opensearch_impl.py:6837-6849 \u2014 both copies are in the same file, so extract the block 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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":1638}}}],"partialFingerprints":{"codehealthFindingId/v1":"e541d5721388dbffa810072d7f40afedcf2426ab1a61368355adb1bedd5609dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lightrag/kg/opensearch_impl.py:1681-1695 | lightrag/kg/opensearch_impl.py:6873-6887 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/kg/opensearch_impl.py:1681\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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":1681}}}],"partialFingerprints":{"codehealthFindingId/v1":"48f6e661d7905c7db643be574738a19d821854ab41a987f4a1900777f96e0265"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lightrag/kg/postgres_impl.py:9096-9110 | lightrag/kg/postgres_impl.py:9112-9126 \u2014 both copies are in the same file, so extract the block 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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":9096}}}],"partialFingerprints":{"codehealthFindingId/v1":"26445d7da7f6836f4b0b24dc45d567d5b8362f92d5662f66a9400bdcd0684f9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): lightrag/kg/redis_impl.py:452-466 | lightrag/kg/redis_impl.py:1070-1083 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lightrag/kg/redis_impl.py:1088\u0060 calls \u0060_rebuild_scheduling_sidecar\u0060 and \u0060lightrag/kg/redis_impl.py:467\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":"lightrag/kg/redis_impl.py"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"80f807b4b50fe5cab1e827660bd5c49b7fcea63d9d539f34ab27e5ec1e6eef40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lightrag/kg/redis_impl.py:786-800 | lightrag/kg/redis_impl.py:1409-1423 \u2014 both copies are in the same file, so extract the block 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":"lightrag/kg/redis_impl.py"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c80adadc88b6e2950e1545d97ba37a2b74674fe90245dc783138648ce099c1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lightrag/kg/redis_impl.py:1225-1239 | lightrag/kg/redis_impl.py:1838-1852 \u2014 both copies are in the same file, so extract the block 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":"lightrag/kg/redis_impl.py"},"region":{"startLine":1225}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fa6e905c46eeb129dad689def0731195b248c8996055367207b14ac780bd6e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lightrag/llm/hf.py:266-280 | lightrag/llm/llama_index_impl.py:186-200 \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":"lightrag/llm/hf.py"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c022834c5aab50c8705aa3150c0438e15f3966242c55c459c3a52e69ebd58df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): lightrag/operate.py:2035-2048 | lightrag/operate.py:2251-2265 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/operate.py:2035\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":"lightrag/operate.py"},"region":{"startLine":2035}}}],"partialFingerprints":{"codehealthFindingId/v1":"53a5f6c8ffd559f437319b44e47f197064f24b68df971bc7f387574dbbac3bda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): reproduce/Step_1.py:10-24 | reproduce/Step_1_openai_compatible.py:41-55 \u2014 before extracting anything, compare \u0060reproduce/Step_1.py\u0060 and \u0060reproduce/Step_1_openai_compatible.py\u0060 as WHOLE FILES: 91% 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. 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":"reproduce/Step_1.py"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"698e6b1adeb49b80ed96d17ffb65f0434d1979c739d2a50c135aacf297efeaa8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 8): lightrag/kg/milvus_impl.py:2472-2485 | lightrag/kg/mongo_impl.py:424-437 | lightrag/kg/mongo_impl.py:704-717 | lightrag/kg/mongo_impl.py:1786-1799 | lightrag/kg/mongo_impl.py:4243-4256 | lightrag/kg/qdrant_impl.py:522-535 | lightrag/kg/redis_impl.py:398-411 | lightrag/kg/redis_impl.py:1014-1027 \u2014 there are 8 copies across 4 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 8 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, \u0060lightrag/kg/mongo_impl.py:418\u0060 calls \u0060__post_init__\u0060 and \u0060lightrag/kg/mongo_impl.py:1782\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":"lightrag/kg/milvus_impl.py"},"region":{"startLine":2472}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7c1edf1ef9b4276f75426e5f83c1a18a6109ba7956df25472226e1560157dae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 4): lightrag/kg/postgres_impl.py:6021-6034 | lightrag/kg/postgres_impl.py:6154-6166 | lightrag/kg/postgres_impl.py:6232-6244 | lightrag/kg/postgres_impl.py:6914-6926 \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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":6021}}}],"partialFingerprints":{"codehealthFindingId/v1":"55f371601fa275132040a38e467a1e481d980b2fd6e1e6a111652b18692997f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 3): lightrag/kg/milvus_impl.py:3031-3044 | lightrag/kg/mongo_impl.py:4853-4866 | lightrag/kg/qdrant_impl.py:999-1010 \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 \u0060lightrag/kg/milvus_impl.py:3031\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":"lightrag/kg/milvus_impl.py"},"region":{"startLine":3031}}}],"partialFingerprints":{"codehealthFindingId/v1":"15e51f737962890421b98ac79a1b64cd1184e16f8d4f9e7a307203e4615b186d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lightrag/chunker/paragraph_semantic.py:1908-1921 | lightrag/chunker/paragraph_semantic.py:2051-2064 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/chunker/paragraph_semantic.py:1908\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":"lightrag/chunker/paragraph_semantic.py"},"region":{"startLine":1908}}}],"partialFingerprints":{"codehealthFindingId/v1":"0955309e793d2388f3a9c96d394c30564162d9899a74cdf690f9121c39ac0789"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): lightrag/kg/milvus_impl.py:3349-3361 | lightrag/kg/opensearch_impl.py:7082-7095 \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":"lightrag/kg/milvus_impl.py"},"region":{"startLine":3349}}}],"partialFingerprints":{"codehealthFindingId/v1":"497c98cb4108ab4b882a68964d02ebc161ef390502e1117026a1080da1365848"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lightrag/kg/opensearch_impl.py:5168-5181 | lightrag/kg/opensearch_impl.py:5987-6000 \u2014 both copies are in the same file, so extract the block 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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":5168}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d79b7e20c42472842cbebfd131f5383047ab1327cabc24da7cff7c406bbc12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lightrag/kg/postgres_impl.py:3464-3477 | lightrag/kg/postgres_impl.py:3641-3654 \u2014 both copies are in the same file, so extract the block 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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":3464}}}],"partialFingerprints":{"codehealthFindingId/v1":"85ef2656cf2b789e01c4d24fc1e76fb1fdcecd96ef7c0f2122a28cf6d0924df3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lightrag/operate.py:5822-5835 | lightrag/operate.py:5842-5855 \u2014 both copies are in the same file, so extract the block 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":"lightrag/operate.py"},"region":{"startLine":5822}}}],"partialFingerprints":{"codehealthFindingId/v1":"da7f9f9fdfcaac504b9916fdf31484053d1ef0019058c8d30106990a7093a3da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): lightrag/utils.py:5090-5103 | lightrag/utils.py:5108-5121 | lightrag/utils.py:5123-5136 \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 \u0060lightrag/utils.py:5090\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lightrag/utils.py:5088\u0060 calls \u0060write\u0060, \u0060join\u0060, \u0060keys\u0060 and \u0060lightrag/utils.py:5123\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":"lightrag/utils.py"},"region":{"startLine":5090}}}],"partialFingerprints":{"codehealthFindingId/v1":"65a6291b9d96f9ae07cb956b00ac8982ae616e3e62e727e89f1e3eba2264f35d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 12): lightrag/kg/faiss_impl.py:1093-1105 | lightrag/kg/milvus_impl.py:2933-2945 | lightrag/kg/milvus_impl.py:3423-3435 | lightrag/kg/mongo_impl.py:4758-4770 | lightrag/kg/mongo_impl.py:5068-5080 | lightrag/kg/nano_vector_db_impl.py:676-688 | lightrag/kg/opensearch_impl.py:6754-6766 | lightrag/kg/opensearch_impl.py:7160-7172 | lightrag/kg/postgres_impl.py:5081-5093 | lightrag/kg/postgres_impl.py:5659-5671 | lightrag/kg/qdrant_impl.py:889-901 | lightrag/kg/qdrant_impl.py:1290-1302 \u2014 there are 12 copies across 7 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, \u0060lightrag/kg/postgres_impl.py:5080\u0060 calls \u0060perf_counter\u0060 and \u0060lightrag/kg/faiss_impl.py:1092\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":"lightrag/kg/faiss_impl.py"},"region":{"startLine":1093}}}],"partialFingerprints":{"codehealthFindingId/v1":"4244d002ef70e8257d96e28d3da8193f651c5b3df59ba41c2d9390c3fd6bc049"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 5): lightrag/kg/redis_impl.py:1220-1232 | lightrag/kg/redis_impl.py:1295-1305 | lightrag/kg/redis_impl.py:1349-1361 | lightrag/kg/redis_impl.py:1725-1737 | lightrag/kg/redis_impl.py:1833-1845 \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":"lightrag/kg/redis_impl.py"},"region":{"startLine":1220}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e75d3ad7cf7c60117c344190b754a2d839cb6d5670f923d5311c87f0faccfa6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): lightrag/kg/opensearch_impl.py:4445-4457 | lightrag/kg/opensearch_impl.py:5887-5898 | lightrag/kg/opensearch_impl.py:5936-5947 \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 \u0060lightrag/kg/opensearch_impl.py:4445\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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":4445}}}],"partialFingerprints":{"codehealthFindingId/v1":"60198d2d2887ac7370d377fb014830b1f89efdd18c0baa87699029f19c2e369a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 3): lightrag/kg/redis_impl.py:1300-1310 | lightrag/kg/redis_impl.py:1355-1367 | lightrag/kg/redis_impl.py:2010-2020 \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 \u0060lightrag/kg/redis_impl.py:1300\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lightrag/kg/redis_impl.py:2021\u0060 calls \u0060split\u0060 and \u0060lightrag/kg/redis_impl.py:1311\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":"lightrag/kg/redis_impl.py"},"region":{"startLine":1300}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5b16188d9ed140c02d61c3ae4f64225f6654a0be0aaaae724244f4df49236b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): lightrag/kg/faiss_impl.py:116-128 | lightrag/kg/nano_vector_db_impl.py:109-120 \u2014 before extracting anything, compare \u0060lightrag/kg/faiss_impl.py\u0060 and \u0060lightrag/kg/nano_vector_db_impl.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 389 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":"lightrag/kg/faiss_impl.py"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5b4209818d112784dad7a0a9a94d2a57b0f0fb7045d86e01def047a8950f597"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lightrag/kg/memgraph_impl.py:747-759 | lightrag/kg/neo4j_impl.py:1139-1151 \u2014 before extracting anything, compare \u0060lightrag/kg/memgraph_impl.py\u0060 and \u0060lightrag/kg/neo4j_impl.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 493 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":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":747}}}],"partialFingerprints":{"codehealthFindingId/v1":"a015eaf627626e27d14adb53ea388e69d32919bcca62f67b325cebdda03d87f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lightrag/kg/nano_vector_db_impl.py:1357-1369 | lightrag/kg/nano_vector_db_impl.py:1457-1469 \u2014 both copies are in the same file, so extract the block 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":"lightrag/kg/nano_vector_db_impl.py"},"region":{"startLine":1357}}}],"partialFingerprints":{"codehealthFindingId/v1":"25254e91a8fbadc038fc048f9018832fd3f60e9f5e6d01b059063302e5288db0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lightrag/kg/opensearch_impl.py:1665-1677 | lightrag/kg/opensearch_impl.py:6861-6873 \u2014 both copies are in the same file, so extract the block 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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":1665}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c8bd7d1f63eecb5c3b55782c514e6ad02277c23aeb431ce4445c018f3bbe39b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lightrag/kg/opensearch_impl.py:2790-2802 | lightrag/kg/opensearch_impl.py:2817-2829 \u2014 both copies are in the same file, so extract the block 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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":2790}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0d59730656385ed6d83c8e613d3633f9220f84b774636f066e5eb0cf1b09182"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lightrag/kg/opensearch_impl.py:3051-3065 | lightrag/kg/opensearch_impl.py:3373-3385 \u2014 both copies are in the same file, so extract the block 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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":3051}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fa520f848fb1b89f4c3bd32b5b23e45571cb24596603d862b9cced0daab21f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lightrag/kg/postgres_impl.py:3984-3996 | lightrag/kg/postgres_impl.py:7461-7473 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/kg/postgres_impl.py:3984\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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":3984}}}],"partialFingerprints":{"codehealthFindingId/v1":"eadd91a562dab276654eae826f1978a717213555a3761a94fbe1843313d22ac2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): lightrag/kg/postgres_impl.py:6694-6705 | lightrag/kg/postgres_impl.py:6972-6984 \u2014 both copies are in the same file, so extract the block 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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":6694}}}],"partialFingerprints":{"codehealthFindingId/v1":"b98b2ea48f60c2091fdbbed324dba25c3b8b0bffd746d819d37335beb6e7fa45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lightrag/kg/scan_job_store.py:452-464 | lightrag/kg/scan_job_store.py:539-551 \u2014 both copies are in the same file, so extract the block 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":"lightrag/kg/scan_job_store.py"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9eac4e4ed5e7190ef95866dbd8f53130c44ef4d8b40679bb6d8cc568e6a9adb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lightrag/operate.py:5607-5619 | lightrag/operate.py:5622-5634 \u2014 both copies are in the same file, so extract the block 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":"lightrag/operate.py"},"region":{"startLine":5607}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c7e43fe613edf07944a1e651254d7008f20cb5f69816c9705fbed12554f3d09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lightrag/operate.py:5762-5775 | lightrag/operate.py:5780-5792 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/operate.py:5762\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":"lightrag/operate.py"},"region":{"startLine":5762}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c766235612674c147764e6891fe036a3fe6a58cfaa21c61ca59d2dd2ed1fe9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lightrag/parser/external/_common.py:33-45 | lightrag/parser/external/mineru/cache.py:93-105 \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":"lightrag/parser/external/_common.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8df210f16093febf9d18d410e74c508ac3077d111957636e6a036f253436778"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lightrag/tools/migrate_llm_cache.py:1251-1263 | lightrag/tools/migrate_llm_cache.py:1343-1355 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/tools/migrate_llm_cache.py:1251\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":"lightrag/tools/migrate_llm_cache.py"},"region":{"startLine":1251}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bdfab91a110b75681f3a349ac3a4a4844b837aa5301aaad113f46de83cac0bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 7): lightrag/kg/faiss_impl.py:1084-1092 | lightrag/kg/milvus_impl.py:2924-2932 | lightrag/kg/mongo_impl.py:4749-4757 | lightrag/kg/nano_vector_db_impl.py:667-675 | lightrag/kg/opensearch_impl.py:6742-6753 | lightrag/kg/postgres_impl.py:5070-5079 | lightrag/kg/qdrant_impl.py:880-888 \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 7 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lightrag/kg/postgres_impl.py:5070\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, \u0060lightrag/kg/postgres_impl.py:5080\u0060 calls \u0060perf_counter\u0060 and \u0060lightrag/kg/faiss_impl.py:1093\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":"lightrag/kg/faiss_impl.py"},"region":{"startLine":1084}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddf6cb6a04da103e24a2b0448c34cec779a17f40b0839acb4cab4ce6b34606a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 4): lightrag/kg/redis_impl.py:1299-1308 | lightrag/kg/redis_impl.py:1354-1365 | lightrag/kg/redis_impl.py:1730-1741 | lightrag/kg/redis_impl.py:2009-2018 \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":"lightrag/kg/redis_impl.py"},"region":{"startLine":1299}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ed5aa7fd2835271ed798e73ac829628c57707df5e32e81aaa21e22f7df6fb2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 3): lightrag/kg/opensearch_impl.py:1372-1383 | lightrag/kg/opensearch_impl.py:3225-3233 | lightrag/kg/opensearch_impl.py:3284-3292 \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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":1372}}}],"partialFingerprints":{"codehealthFindingId/v1":"0801edd61d1167d549fb935fefe2c314b8d02124fe8ed43d5d12497ec1d5dbac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): lightrag/kg/opensearch_impl.py:1216-1227 | lightrag/kg/opensearch_impl.py:2518-2528 \u2014 both copies are in the same file, so extract the block 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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":1216}}}],"partialFingerprints":{"codehealthFindingId/v1":"673cf1e85f27dd4241ea3ebb8fdb48d7f43c5036f7efcf0093827a921093b751"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lightrag/kg/opensearch_impl.py:3199-3210 | lightrag/kg/opensearch_impl.py:3259-3270 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/kg/opensearch_impl.py:3199\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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":3199}}}],"partialFingerprints":{"codehealthFindingId/v1":"639b32b1e3e2bbda951912f46e5a9feb47391e322a8fe97eadfff00f5b912d8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lightrag/kg/postgres_impl.py:5597-5608 | lightrag/kg/qdrant_impl.py:1225-1236 \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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":5597}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9b6357c2b8835747a4a8313a54749af4ed0a0636eb6cb1fea2a5661cc111273"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lightrag/kg/scan_job_store.py:439-455 | lightrag/kg/scan_job_store.py:572-583 \u2014 both copies are in the same file, so extract the block 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":"lightrag/kg/scan_job_store.py"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ae66c27a3f1b3a3cb2f9fb9a4743b44646f771b556854e81511614ed6ed3e30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lightrag/kg/shared_storage.py:3273-3284 | lightrag/kg/shared_storage.py:3355-3366 \u2014 both copies are in the same file, so extract the block 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":"lightrag/kg/shared_storage.py"},"region":{"startLine":3273}}}],"partialFingerprints":{"codehealthFindingId/v1":"57799e80a27e8dab825f38ecf8f84ce937ea7e982567a0ea7b0560e4d691eb3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): lightrag/parser/external/docling/ir_builder.py:725-735 | lightrag/parser/external/docling/ir_builder.py:880-891 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/parser/external/docling/ir_builder.py:880\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":"lightrag/parser/external/docling/ir_builder.py"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5ce1a7199f24780e8d608d5fb4045272476947c395d059cf3b38defdb5ecdb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201312 lines \u00D7 4): lightrag/utils.py:5151-5154 | lightrag/utils.py:5163-5174 | lightrag/utils.py:5186-5197 | lightrag/utils.py:5198-5212 \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 \u0060lightrag/utils.py:5163\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, \u0060lightrag/utils.py:5175\u0060 calls \u0060max\u0060, \u0060str\u0060 and \u0060lightrag/utils.py:5154\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":"lightrag/utils.py"},"region":{"startLine":5151}}}],"partialFingerprints":{"codehealthFindingId/v1":"506fdcadb7b860518f1131acda4b7e08b6d2e1c6c7292673728fce9de627d7dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 8): lightrag/kg/postgres_impl.py:3502-3512 | lightrag/kg/postgres_impl.py:3517-3527 | lightrag/kg/postgres_impl.py:3532-3542 | lightrag/kg/postgres_impl.py:3549-3559 | lightrag/kg/postgres_impl.py:3684-3694 | lightrag/kg/postgres_impl.py:3700-3710 | lightrag/kg/postgres_impl.py:3716-3726 | lightrag/kg/postgres_impl.py:3732-3742 \u2014 all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/postgres_impl.py"},"region":{"startLine":3502}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f1528edb4a63d5add69f9f1859c19c0df9449637214858eaa730bbe9c02de34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 7): lightrag/kg/redis_impl.py:1223-1233 | lightrag/kg/redis_impl.py:1297-1306 | lightrag/kg/redis_impl.py:1352-1362 | lightrag/kg/redis_impl.py:1728-1738 | lightrag/kg/redis_impl.py:1836-1846 | lightrag/kg/redis_impl.py:2007-2016 | lightrag/kg/redis_impl.py:2658-2667 \u2014 all 7 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, \u0060lightrag/kg/redis_impl.py:2668\u0060 calls \u0060pipeline\u0060 and \u0060lightrag/kg/redis_impl.py:1308\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":"lightrag/kg/redis_impl.py"},"region":{"startLine":1223}}}],"partialFingerprints":{"codehealthFindingId/v1":"93bec9df98e541a2dd209ba834931d1aa14dfa31a03b0b5e4ab752afe144f0a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): lightrag/kg/milvus_impl.py:3344-3354 | lightrag/kg/mongo_impl.py:4984-4994 | lightrag/kg/postgres_impl.py:5546-5565 | lightrag/kg/qdrant_impl.py:1177-1187 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once. 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":"lightrag/kg/milvus_impl.py"},"region":{"startLine":3344}}}],"partialFingerprints":{"codehealthFindingId/v1":"9679cb3c2be23790dc73443e8e798548688c6ad7b55ea409aebb4b1573aa2faa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): lightrag/kg/milvus_impl.py:2994-3004 | lightrag/kg/mongo_impl.py:4813-4823 | lightrag/kg/qdrant_impl.py:949-960 \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 \u0060lightrag/kg/milvus_impl.py:2994\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":"lightrag/kg/milvus_impl.py"},"region":{"startLine":2994}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c80ed39f818582f726b3d0c78e3e89c8b2a041d696037d765a79dfa68239f2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): examples/generate_query.py:9-19 | reproduce/Step_2.py:9-19 \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":"examples/generate_query.py"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"35eb7d298d1463d77636588b969a2d39092f3ec8bd0e0037cdd7d6dfd0375c3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): lightrag/api/routers/document_routes.py:2979-2988 | lightrag/api/routers/document_routes.py:3017-3027 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/api/routers/document_routes.py:2979\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lightrag/api/routers/document_routes.py:3014\u0060 calls \u0060get\u0060, \u0060monotonic\u0060 and \u0060lightrag/api/routers/document_routes.py:2977\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":"lightrag/api/routers/document_routes.py"},"region":{"startLine":2979}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7badf2e56832f11bd4f620a2cba52c241f0ddcf0da42c04995eeab3ac9b8b49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lightrag/kg/memgraph_impl.py:548-558 | lightrag/kg/memgraph_impl.py:640-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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lightrag/kg/memgraph_impl.py:543\u0060 calls \u0060ValueError\u0060 and \u0060lightrag/kg/memgraph_impl.py:637\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":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e73f8ee3b11f19f43a25b6b56216dd61df771dd1020eef55f2ddf05d4c60f6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201311 lines \u00D7 2): lightrag/kg/opensearch_impl.py:1364-1374 | lightrag/kg/opensearch_impl.py:2324-2330 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/kg/opensearch_impl.py:1364\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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":1364}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8bce331268a31216adbab30fa88aafd64dc1078105743ef9239322eb056fcde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lightrag/multimodal_context.py:442-452 | lightrag/multimodal_context.py:476-486 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lightrag/multimodal_context.py:439\u0060 calls \u0060dumps\u0060 and \u0060lightrag/multimodal_context.py:473\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":"lightrag/multimodal_context.py"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f617e6cbb015bcfefc04d26a21bc89c5d1a161db7c6abe7095d6c945d583ce1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lightrag/parser/docx/omml/ommlparser.py:207-217 | lightrag/parser/docx/omml/ommlparser.py:547-557 \u2014 both copies are in the same file, so extract the block 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":"lightrag/parser/docx/omml/ommlparser.py"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2b4ce01cb472f6c63bced1363ef3f0df4315d47f60c13970318be37fb69b6c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): examples/lightrag_ollama_demo.py:19-28 | examples/lightrag_openai_compatible_demo.py:20-30 | examples/lightrag_openai_demo.py:13-22 | examples/unofficial-sample/lightrag_cloudflare_demo.py:132-142 | examples/unofficial-sample/lightrag_embedding_prefixes.py:20-30 | lightrag/api/lightrag_server.py:3428-3437 \u2014 before extracting anything, compare \u0060examples/lightrag_ollama_demo.py\u0060 and \u0060examples/lightrag_openai_compatible_demo.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/lightrag_openai_compatible_demo.py:20\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"examples/lightrag_ollama_demo.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0281a3d6d28a4b36342f668d64207bc1c1f9827aeefc7074c7b555a9cacaf4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): lightrag/kg/postgres_impl.py:3788-3798 | lightrag/kg/postgres_impl.py:3861-3870 | lightrag/kg/postgres_impl.py:3879-3888 | lightrag/kg/postgres_impl.py:3897-3906 | lightrag/kg/postgres_impl.py:3915-3924 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lightrag/kg/postgres_impl.py:3788\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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":3788}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e3274d17987db7539483df6d95a339c610ce0a359c3216827ed6267a68de11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u201310 lines \u00D7 3): lightrag/kg/opensearch_impl.py:1434-1443 | lightrag/kg/opensearch_impl.py:2328-2332 | lightrag/kg/opensearch_impl.py:2365-2373 \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 \u0060lightrag/kg/opensearch_impl.py:1434\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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":1434}}}],"partialFingerprints":{"codehealthFindingId/v1":"2749e8bb6e47c0c3adeae7df1c35838daaa26acf50486c7a6494fc966cd89957"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 3): lightrag/kg/opensearch_impl.py:1894-1901 | lightrag/kg/opensearch_impl.py:3665-3674 | lightrag/kg/opensearch_impl.py:7343-7352 \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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":1894}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6b81c3c27dbb9f258daa294ea9def213f4bc6d2e9e4fff86db382b7024db321"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): lightrag/kg/scan_job_store.py:449-458 | lightrag/kg/scan_job_store.py:536-545 | lightrag/kg/scan_job_store.py:577-586 \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 \u0060lightrag/kg/scan_job_store.py:449\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":"lightrag/kg/scan_job_store.py"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"94d3afded5ab56b0349d3f65ed90d9c06e3f3fcacfb9a111a9663cb5c1033c32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): lightrag/parser/docx/omml/ommlparser.py:493-502 | lightrag/parser/docx/omml/ommlparser.py:507-516 | lightrag/parser/docx/omml/ommlparser.py:559-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/parser/docx/omml/ommlparser.py"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3e0107beea098950053590c2a009ce65aee0b60fc9e4e992dc4edc5bd88841d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): lightrag/api/routers/ollama_api.py:703-711 | lightrag/api/routers/ollama_api.py:872-881 \u2014 both copies are in the same file, so extract the block 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 \u0060lightrag/api/routers/ollama_api.py:703\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":"lightrag/api/routers/ollama_api.py"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8bb6523ec24b17ded5894c192df092cddf4b4cc0b64ed1a8b7766eff6e77c53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lightrag/chunk_schema.py:307-316 | lightrag/chunk_schema.py:320-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. 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":"lightrag/chunk_schema.py"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"92e0d7001b180c24ae33ff6e3f8f12eb021fd80ef00c029862af6ff8c7264388"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): lightrag/kg/faiss_impl.py:1106-1115 | lightrag/kg/faiss_impl.py:1838-1845 \u2014 both copies are in the same file, so extract the block 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":"lightrag/kg/faiss_impl.py"},"region":{"startLine":1106}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0f764b539e4eec906d0a2770c8fa3aff13ae7b16bc6f9ea2ce359d849c6ed13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lightrag/llm/openai_responses.py:286-295 | lightrag/llm/openai_responses.py:338-347 \u2014 both copies are in the same file, so extract the block 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":"lightrag/llm/openai_responses.py"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c3e83476e13dacb87930598f0136b1a07950e88f0b79188ce0d82eb8f501060"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): lightrag/operate.py:738-748 | lightrag/operate.py:808-816 \u2014 both copies are in the same file, so extract the block 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":"lightrag/operate.py"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9b3c855ed98d0bfe7b7dc82839a49e990727bcce52046e24653622a02416d53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): lightrag/parser/external/_manifest.py:152-160 | lightrag/parser/external/mineru/manifest.py:146-155 \u2014 before extracting anything, compare \u0060lightrag/parser/external/_manifest.py\u0060 and \u0060lightrag/parser/external/mineru/manifest.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/parser/external/_manifest.py"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"d58406f1bb6c2adcb84478e13245752bd785582b19e6c2133159ceeeff6e6729"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): lightrag/tools/migrate_llm_cache.py:376-385 | lightrag/tools/migrate_llm_cache.py:766-774 \u2014 both copies are in the same file, so extract the block 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":"lightrag/tools/migrate_llm_cache.py"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"42d0498eeb1d8ed4cfafa997bca7aa6ac20a7bccb24fb2b2818ce149a96bbedc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 6): lightrag/kg/opensearch_impl.py:1368-1376 | lightrag/kg/opensearch_impl.py:1432-1438 | lightrag/kg/opensearch_impl.py:2326-2332 | lightrag/kg/opensearch_impl.py:2363-2369 | lightrag/kg/opensearch_impl.py:3223-3229 | lightrag/kg/opensearch_impl.py:3282-3288 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":1368}}}],"partialFingerprints":{"codehealthFindingId/v1":"13d9d06cb859142aa873534fe8e6a6b137095d020d49b34db8b8410b8140fe64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): lightrag/kg/milvus_impl.py:3348-3356 | lightrag/kg/mongo_impl.py:4988-4996 | lightrag/kg/opensearch_impl.py:7081-7089 | lightrag/kg/postgres_impl.py:5559-5567 | lightrag/kg/qdrant_impl.py:1181-1189 \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 5 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lightrag/kg/mongo_impl.py:4998\u0060 calls \u0060setdefault\u0060 and \u0060lightrag/kg/milvus_impl.py:3358\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":"lightrag/kg/milvus_impl.py"},"region":{"startLine":3348}}}],"partialFingerprints":{"codehealthFindingId/v1":"37efc778dc8bdfac9cd198bc667302b6daa4f19cd5af6d0c84137599927bc491"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): lightrag/kg/postgres_impl.py:6029-6038 | lightrag/kg/postgres_impl.py:6161-6169 | lightrag/kg/postgres_impl.py:6239-6247 | lightrag/kg/postgres_impl.py:7151-7160 \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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":6029}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bce5ca662edc1dc6391dbb490b4537e052e8623d61cacae3c12d7dd09355964"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): lightrag/kg/opensearch_impl.py:2790-2798 | lightrag/kg/opensearch_impl.py:2816-2825 | lightrag/kg/opensearch_impl.py:2923-2931 \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 \u0060lightrag/kg/opensearch_impl.py:2790\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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":2790}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f10f04fbb744580641c336af80459ebd56e93811de45a0951ca3974de135b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lightrag/chunker/paragraph_semantic.py:504-512 | lightrag/chunker/paragraph_semantic.py:612-622 \u2014 both copies are in the same file, so extract the block 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":"lightrag/chunker/paragraph_semantic.py"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f9ab84f3f0cdbe3aceacf06811b2871952a8df3348bc9c11823bc9cada9b38e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lightrag/kg/postgres_impl.py:5515-5523 | lightrag/kg/postgres_impl.py:5566-5574 \u2014 both copies are in the same file, so extract the block 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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":5515}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbbeae1ea737d96510974fc9b5f2b0b81189bf2d428cdfa3ef70a17fb59e90ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lightrag/kg/postgres_impl.py:9570-9578 | lightrag/kg/postgres_impl.py:9581-9589 \u2014 both copies are in the same file, so extract the block 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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":9570}}}],"partialFingerprints":{"codehealthFindingId/v1":"e87d287ec50d4a2d031a834f2558c0afa7246dfb485aa72d4b1cc9b6994bc5dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lightrag/kg/redis_impl.py:615-623 | lightrag/kg/redis_impl.py:1182-1190 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"6989d179190e7b43e4d3aac3ba71c7c366d7741ffab034ef1a303a6202260d7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lightrag/parser/docx/omml/ommlparser.py:471-479 | lightrag/parser/docx/omml/ommlparser.py:482-490 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/parser/docx/omml/ommlparser.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"32e96836d960601061b6703c2735d2bc2b06c8af31b196aa34b49603338fb0cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lightrag/parser/external/docling/ir_builder.py:586-594 | lightrag/parser/external/docling/ir_builder.py:602-610 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lightrag/parser/external/docling/ir_builder.py:601\u0060 calls \u0060_has_usable_picture_image\u0060 and \u0060lightrag/parser/external/docling/ir_builder.py:585\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":"lightrag/parser/external/docling/ir_builder.py"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"bce89afbc79a2d6cb5e3b7d581fec5e9528cc6c49c742f3a5d656eb050d15b7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): lightrag/kg/memgraph_impl.py:936-943 | lightrag/kg/memgraph_impl.py:984-992 | lightrag/kg/neo4j_impl.py:1779-1786 | lightrag/kg/neo4j_impl.py:1846-1854 \u2014 before extracting anything, compare \u0060lightrag/kg/memgraph_impl.py\u0060 and \u0060lightrag/kg/neo4j_impl.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 493 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 \u0060lightrag/kg/memgraph_impl.py:984\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":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"07b2ac61f8f8b82265e86eb2f9263b6aa6adf913ea4268aeb54f84ceeca09883"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lightrag/chunker/paragraph_semantic.py:1871-1878 | lightrag/chunker/paragraph_semantic.py:2005-2012 \u2014 both copies are in the same file, so extract the block 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":"lightrag/chunker/paragraph_semantic.py"},"region":{"startLine":1871}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1ac3de65ae784357298aa79f43a3cfaa1c7e56781c5a9cca96436d49498db82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): lightrag/llm/anthropic.py:149-155 | lightrag/llm/openai.py:484-491 \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 \u0060lightrag/llm/openai.py:484\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, \u0060lightrag/llm/openai.py:492\u0060 calls \u0060debug\u0060 and \u0060lightrag/llm/anthropic.py:156\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":"lightrag/llm/anthropic.py"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed5e6b10f9c10c31a2a5b99b6190d53c2b4234d163e8ad79d2fa77304a4df3ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lightrag/kg/neo4j_impl.py:1148-1154 | lightrag/kg/neo4j_impl.py:1230-1236 \u2014 both copies are in the same file, so extract the block 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":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":1148}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad15b4bbceeb4a30b99b4b0a7983aab7575d7ffc3ce058355c34ba2b20c5b7a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): lightrag/kg/opensearch_impl.py:4753-4759 | lightrag/kg/opensearch_impl.py:4929-4934 \u2014 both copies are in the same file, so extract the block 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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":4753}}}],"partialFingerprints":{"codehealthFindingId/v1":"815a996a7079748333138f70f833b3c4f9a321bf84fdb674dcc66787ddebbbe7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lightrag/llm/openai.py:566-572 | lightrag/llm/openai_responses.py:568-576 \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, \u0060lightrag/llm/openai.py:573\u0060 calls \u0060getattr\u0060 and \u0060lightrag/llm/openai_responses.py:577\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":"lightrag/llm/openai.py"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"56ea723bc28c1c2b2a6d7c52615d1deaa3a6ed79c24ca9ff322a646f0ed7f09a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lightrag/chunker/semantic_vector.py:380-386 | lightrag/chunker/token_size.py:34-40 \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":"lightrag/chunker/semantic_vector.py"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"f86f55666e0c0666024c3a50078f9463aa7364fe67acf5f7c26d33214e624a76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): lightrag/kg/json_doc_status_impl.py:1233-1237 | lightrag/kg/json_kv_impl.py:463-467 | lightrag/kg/milvus_impl.py:3639-3645 | lightrag/kg/qdrant_impl.py:1528-1534 | lightrag/kg/redis_impl.py:2855-2861 \u2014 before extracting anything, compare \u0060lightrag/kg/json_doc_status_impl.py\u0060 and \u0060lightrag/kg/json_kv_impl.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 200 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 \u0060lightrag/kg/json_doc_status_impl.py:1233\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":"lightrag/kg/json_doc_status_impl.py"},"region":{"startLine":1233}}}],"partialFingerprints":{"codehealthFindingId/v1":"76244e32fc2f9925c763a00a0eecfb96847a5dd22cf4600f7daba1c290e8e7e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lightrag/api/lightrag_server.py:3509-3521 | lightrag/api/run_with_gunicorn.py:17-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 both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/lightrag_server.py"},"region":{"startLine":3509}}}],"partialFingerprints":{"codehealthFindingId/v1":"b281b97bafa15d284206062b1ea64bce73b7c6e4d10bbdc34050c9b25293c52a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): lightrag/kg/faiss_impl.py:1526-1565 | lightrag/kg/nano_vector_db_impl.py:1128-1170 \u2014 before extracting anything, compare \u0060lightrag/kg/faiss_impl.py\u0060 and \u0060lightrag/kg/nano_vector_db_impl.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 389 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":"lightrag/kg/faiss_impl.py"},"region":{"startLine":1526}}}],"partialFingerprints":{"codehealthFindingId/v1":"e92b577346ad58e2059097e5921839b45bc1d29fa6ef57dcbbb7e03cac80748d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): lightrag/kg/json_doc_status_impl.py:558-580 | lightrag/kg/json_kv_impl.py:398-419 \u2014 before extracting anything, compare \u0060lightrag/kg/json_doc_status_impl.py\u0060 and \u0060lightrag/kg/json_kv_impl.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 200 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":"lightrag/kg/json_doc_status_impl.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4fd1e84d2ffc56bde54494f47d29de9680aa512cfba932773bae1e28dfd710d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): lightrag/kg/json_doc_status_impl.py:1060-1065 | lightrag/kg/mongo_impl.py:1550-1555 | lightrag/kg/opensearch_impl.py:3313-3318 | lightrag/kg/postgres_impl.py:6713-6718 | lightrag/kg/redis_impl.py:2338-2343 \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 5 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":"lightrag/kg/json_doc_status_impl.py"},"region":{"startLine":1060}}}],"partialFingerprints":{"codehealthFindingId/v1":"496c35ca38b5cb316916a763e19878cb6416fadb51a9a283a565620fb24371d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): lightrag/kg/json_doc_status_impl.py:1080-1088 | lightrag/kg/mongo_impl.py:1559-1567 | lightrag/kg/postgres_impl.py:6722-6730 \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. 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":"lightrag/kg/json_doc_status_impl.py"},"region":{"startLine":1080}}}],"partialFingerprints":{"codehealthFindingId/v1":"e841cf6256071b28bc348b60c0aa5c0b39524a5dca7484254ffe58cc830b65c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lightrag/kg/milvus_impl.py:3069-3076 | lightrag/kg/mongo_impl.py:4883-4890 \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 before the matched lines, \u0060lightrag/kg/milvus_impl.py:3066\u0060 calls \u0060result\u0060 and \u0060lightrag/kg/mongo_impl.py:4880\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":"lightrag/kg/milvus_impl.py"},"region":{"startLine":3069}}}],"partialFingerprints":{"codehealthFindingId/v1":"f895e76aa22173cc962a7fe41110317231eaf9811194a77e3abc950b0903e2a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lightrag/kg/mongo_impl.py:164-169 | lightrag/kg/opensearch_impl.py:624-629 \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":"lightrag/kg/mongo_impl.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5e7015c4bb5846ad0cd3b504eca68d8856d1573ee90d1163ef6a405465656e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lightrag/kg/mongo_impl.py:173-189 | lightrag/kg/opensearch_impl.py:633-649 \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":"lightrag/kg/mongo_impl.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b45a0ed559adc44c7bcd58a8438c4fcea143fec37cc5a504ab8e1bc995a90b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): lightrag/kg/mongo_impl.py:412-418 | lightrag/kg/mongo_impl.py:692-698 | lightrag/kg/opensearch_impl.py:1008-1014 | lightrag/kg/opensearch_impl.py:1961-1967 | lightrag/kg/opensearch_impl.py:3699-3705 \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":"lightrag/kg/mongo_impl.py"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"311d19bbeb22903024f2bce7016f7ab1fac3f7d5fdcce2e154a88399e47414c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): lightrag/kg/mongo_impl.py:4228-4235 | lightrag/kg/opensearch_impl.py:6232-6239 | lightrag/kg/qdrant_impl.py:182-189 \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":"lightrag/kg/mongo_impl.py"},"region":{"startLine":4228}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f88bae9e609c255545b687cca2cff2bba8a3d746d60ddf49e3b565926e59655"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lightrag/parser/external/_common.py:78-83 | lightrag/parser/external/mineru/cache.py:119-124 \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":"lightrag/parser/external/_common.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"20367e30e376a8f81ad4976b3883e4ba429468630391bcb040555f49e8d3d9cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lightrag/parser/external/_common.py:87-96 | lightrag/parser/external/mineru/cache.py:128-137 \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":"lightrag/parser/external/_common.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ce3e65539c1dee4e40e4363261558cdea870cbfd4d392650520e98ea32d8bff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): lightrag/tools/clean_llm_query_cache.py:131-149 | lightrag/tools/migrate_llm_cache.py:140-158 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. 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":"lightrag/tools/clean_llm_query_cache.py"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab44a77762ce7b46139efcc8595447cb24f2746dc971165b999469c6a60c062"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): lightrag/tools/clean_llm_query_cache.py:252-283 | lightrag/tools/migrate_llm_cache.py:289-320 \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":"lightrag/tools/clean_llm_query_cache.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8bafce774de11fca734d63ee9e3bee5bf407c9eaeae9db39f076602474f756a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): reproduce/Step_1_openai_compatible.py:17-25 | reproduce/Step_3_openai_compatible.py:15-23 \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":"reproduce/Step_1_openai_compatible.py"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"27b0cea51591adaeaa8d0196d2d842f038dcac8ef880cc8f05875ec369e3a07d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): reproduce/Step_3.py:8-15 | reproduce/Step_3_openai_compatible.py:39-46 \u2014 before extracting anything, compare \u0060reproduce/Step_3.py\u0060 and \u0060reproduce/Step_3_openai_compatible.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"reproduce/Step_3.py"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd82879cda897b0cb1a3a7de32bb745c0e30a7db11c29c25732553937343a24c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): reproduce/Step_3.py:19-23 | reproduce/Step_3_openai_compatible.py:50-54 \u2014 before extracting anything, compare \u0060reproduce/Step_3.py\u0060 and \u0060reproduce/Step_3_openai_compatible.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 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":"reproduce/Step_3.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"f764e0c27baefa0a173015c5924d49f4d71ca55db34872ec736f737138c7f8dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): lightrag/llm/hf.py:80-88 | lightrag/utils.py:3419-3427 | lightrag/utils.py:3484-3492 | lightrag/utils.py:4156-4164 \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. 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":"lightrag/llm/hf.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e90ceb2059470aaa78d7016717f439e31a14f9bd01fbb11a4bd135786a696bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): examples/lightrag_ollama_demo.py:121-212 | examples/lightrag_openai_compatible_demo.py:132-222 | examples/lightrag_openai_demo.py:93-180 | examples/unofficial-sample/lightrag_cloudflare_demo.py:233-347 | examples/unofficial-sample/lightrag_embedding_prefixes.py:137-228 \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":"examples/lightrag_ollama_demo.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a2588450be060338e398d4ea255a5dd77e1d27f28e4005a10dcc0bb9ed98c32"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): examples/unofficial-sample/lightrag_llamaindex_direct_demo.py:102-135 | examples/unofficial-sample/lightrag_llamaindex_litellm_demo.py:104-137 | examples/unofficial-sample/lightrag_llamaindex_litellm_opik_demo.py:115-148 | examples/unofficial-sample/lightrag_lmdeploy_demo.py:70-103 \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":"examples/unofficial-sample/lightrag_llamaindex_direct_demo.py"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"df1f8217a3b466d0934e6882eef455360216886947de3ccafe637ae9370bf9aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): examples/lightrag_gemini_postgres_demo.py:133-174 | examples/lightrag_openai_opensearch_graph_demo.py:133-174 \u2014 These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/lightrag_gemini_postgres_demo.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"36a7b50122cf7e9cb401632492168c8c0fae2cd77d18910982bd6c50d5ebc776"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): examples/lightrag_ollama_demo.py:86-112 | examples/lightrag_openai_compatible_demo.py:109-128 | examples/unofficial-sample/lightrag_embedding_prefixes.py:109-133 \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":"examples/lightrag_ollama_demo.py"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"8679dea417e5edb8543740c81ce56ffaeb5ed275147c4c3229097fb36c5f10d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 21\u002B corresponding lines): examples/unofficial-sample/lightrag_llamaindex_direct_demo.py:38-58 | examples/unofficial-sample/lightrag_llamaindex_litellm_demo.py:39-59 | examples/unofficial-sample/lightrag_llamaindex_litellm_opik_demo.py:39-70 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 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":"examples/unofficial-sample/lightrag_llamaindex_direct_demo.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"1afe898413923c7cdb4518d781a8bc18d4b77c89a3f53079d8cb89d63d3e2d6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): examples/unofficial-sample/lightrag_hf_demo.py:20-40 | examples/unofficial-sample/lightrag_lmdeploy_demo.py:45-65 \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":"examples/unofficial-sample/lightrag_hf_demo.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6ed111e19ada271e5740f8a2a98a5e8d601b5760c3547aeb25d6f90e85d0df1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): examples/rerank_example.py:81-102 | examples/unofficial-sample/lightrag_nvidia_demo.py:100-118 \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":"examples/rerank_example.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5ea7d20822ee8f4cd7f99ed7492032a5969120e7299d13f14b14d71b5f35374"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38\u201340 lines \u00D7 5): examples/lightrag_ollama_demo.py:121-158 | examples/lightrag_openai_compatible_demo.py:132-169 | examples/lightrag_openai_demo.py:101-138 | examples/unofficial-sample/lightrag_cloudflare_demo.py:233-272 | examples/unofficial-sample/lightrag_embedding_prefixes.py:138-175 \u2014 before extracting anything, compare \u0060examples/lightrag_ollama_demo.py\u0060 and \u0060examples/lightrag_openai_compatible_demo.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/lightrag_ollama_demo.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"daaa37b63524016f693210d1ef36327b20c4b48f468ddc886ea0d54287e26216"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 3): examples/lightrag_openai_mongodb_graph_demo.py:73-104 | examples/unofficial-sample/lightrag_hf_demo.py:44-75 | examples/unofficial-sample/lightrag_openai_neo4j_milvus_redis_demo.py:74-105 \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":"examples/lightrag_openai_mongodb_graph_demo.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd19e7ec2d692da17b9131049695ff604bda60186e9826bb2a134a4606f100d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 4): examples/unofficial-sample/lightrag_llamaindex_direct_demo.py:102-132 | examples/unofficial-sample/lightrag_llamaindex_litellm_demo.py:104-134 | examples/unofficial-sample/lightrag_llamaindex_litellm_opik_demo.py:115-145 | examples/unofficial-sample/lightrag_lmdeploy_demo.py:70-100 \u2014 before extracting anything, compare \u0060examples/unofficial-sample/lightrag_llamaindex_direct_demo.py\u0060 and \u0060examples/unofficial-sample/lightrag_llamaindex_litellm_demo.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/unofficial-sample/lightrag_llamaindex_direct_demo.py: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/unofficial-sample/lightrag_llamaindex_direct_demo.py"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"03c3c889968e0eaefd0d4e4c4b5cbe745c19e0f58903c65a63616d5d15037656"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): examples/lightrag_gemini_postgres_demo.py:133-161 | examples/lightrag_openai_opensearch_graph_demo.py:133-161 \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":"examples/lightrag_gemini_postgres_demo.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"db03d9d0ea72f510576e5a285f06ba01effc3e074b7c3f84d594aabd19d28b96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 5): examples/lightrag_ollama_demo.py:23-39 | examples/lightrag_openai_compatible_demo.py:24-42 | examples/lightrag_openai_demo.py:17-33 | examples/unofficial-sample/lightrag_cloudflare_demo.py:136-154 | examples/unofficial-sample/lightrag_embedding_prefixes.py:24-42 \u2014 before extracting anything, compare \u0060examples/lightrag_ollama_demo.py\u0060 and \u0060examples/lightrag_openai_compatible_demo.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/lightrag_ollama_demo.py:23\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/lightrag_ollama_demo.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2f4bb9b19ea53dd857532d65409ab13bc5a35ca23007bc3775eced765ebca51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): examples/lightrag_ollama_demo.py:192-210 | examples/lightrag_openai_compatible_demo.py:203-221 | examples/unofficial-sample/lightrag_embedding_prefixes.py:209-227 \u2014 before extracting anything, compare \u0060examples/lightrag_ollama_demo.py\u0060 and \u0060examples/lightrag_openai_compatible_demo.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/lightrag_ollama_demo.py:211\u0060 calls \u0060index_done_callback\u0060 and \u0060examples/lightrag_openai_compatible_demo.py:222\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":"examples/lightrag_ollama_demo.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"740399f2ea5e57cbcde7468bc2697733cb253acd3979b5945a704901c88ac692"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): examples/lightrag_ollama_demo.py:100-112 | examples/lightrag_openai_compatible_demo.py:116-128 \u2014 before extracting anything, compare \u0060examples/lightrag_ollama_demo.py\u0060 and \u0060examples/lightrag_openai_compatible_demo.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/lightrag_ollama_demo.py:100\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, \u0060examples/lightrag_ollama_demo.py:115\u0060 calls \u0060print_stream\u0060 and \u0060examples/lightrag_openai_compatible_demo.py:131\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":"examples/lightrag_ollama_demo.py"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac2712e456f3feb62c9f5acce4c2606a788aca65fa78a2d2c094141f2dcf3db0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): examples/lightrag_openai_compatible_demo.py:91-99 | examples/unofficial-sample/lightrag_embedding_prefixes.py:91-99 \u2014 before extracting anything, compare \u0060examples/lightrag_openai_compatible_demo.py\u0060 and \u0060examples/unofficial-sample/lightrag_embedding_prefixes.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 98 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The 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":"examples/lightrag_openai_compatible_demo.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fa12a6f16d7c27e539b92507d77d068c845b827ea05212e973c9f1b790ae7ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): examples/unofficial-sample/lightrag_llamaindex_direct_demo.py:76-80 | examples/unofficial-sample/lightrag_llamaindex_litellm_demo.py:78-82 | examples/unofficial-sample/lightrag_llamaindex_litellm_opik_demo.py:89-93 \u2014 before extracting anything, compare \u0060examples/unofficial-sample/lightrag_llamaindex_direct_demo.py\u0060 and \u0060examples/unofficial-sample/lightrag_llamaindex_litellm_demo.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"examples/unofficial-sample/lightrag_llamaindex_direct_demo.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd578cfeec933170e027e5fda7818ffff82f1024be9aff09e3516c44dab91d40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): examples/unofficial-sample/lightrag_llamaindex_direct_demo.py:84-97 | examples/unofficial-sample/lightrag_llamaindex_litellm_demo.py:86-99 | examples/unofficial-sample/lightrag_llamaindex_litellm_opik_demo.py:97-110 \u2014 before extracting anything, compare \u0060examples/unofficial-sample/lightrag_llamaindex_direct_demo.py\u0060 and \u0060examples/unofficial-sample/lightrag_llamaindex_litellm_demo.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/unofficial-sample/lightrag_llamaindex_direct_demo.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"280a751e71dd3c2d21a5cd91d61f244880f6e960a3f74378438f94f8319d8a0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): examples/unofficial-sample/lightrag_llamaindex_litellm_demo.py:64-73 | examples/unofficial-sample/lightrag_llamaindex_litellm_opik_demo.py:75-84 \u2014 before extracting anything, compare \u0060examples/unofficial-sample/lightrag_llamaindex_litellm_demo.py\u0060 and \u0060examples/unofficial-sample/lightrag_llamaindex_litellm_opik_demo.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"examples/unofficial-sample/lightrag_llamaindex_litellm_demo.py"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"3334abaf498066941038aee8a0795307525e755fb77411dce1b8fd74e628aea1"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _RoleLLMMixin (LCOM4 5): _RoleLLMMixin\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":"lightrag/llm_roles.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bc8f92231c393db0dec30c57203c90a550cb61515804130d63c8f1d5396321b"}},{"ruleId":"D8","level":"warning","message":{"text":"Coverage not measured \u2014 JavaScript/TypeScript suite: Coverage NOT MEASURED: the JavaScript/TypeScript half could not be measured \u2014 the bun:test suite in lightrag_webui/ ran and not one test passed (src/features/documentRefreshErrors.test.ts:), so the coverage report describes the failed run, not the code. 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":"D13","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":"293a7f70470d46b493ae948ac992bb7feae4ee22d2c91fa664d83165b358bd0c"},"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":"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":"1ee4e9c458d563a07982155298ce5be9406a0b3c49ce3b0517c0901bed9b9d62"},"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":"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":"81f0d31629b5d35ba77375e34745e22c63600a23b8f7a9f3ac69ebe10a5908e3"},"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: lightrag/lightrag.py: lightrag/lightrag.py changed 77 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 84 in LightRAG._purge_derived_kg_contributions at line 6349. 49 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/lightrag.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":"lightrag/lightrag.py"},"region":{"startLine":6349}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2735a8eb49de8439a999448eb3068b7a356bc1ecb036f67386eafe992716c2d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag/operate.py: lightrag/operate.py changed 55 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 90 in operate._merge_edges_then_upsert at line 2823. 34 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/operate.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":"lightrag/operate.py"},"region":{"startLine":2823}}}],"partialFingerprints":{"codehealthFindingId/v1":"af4309532ea6d0779f648c7dc05d33d76e75757c8ac13d95a06cc0c225303bc2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag/utils_graph.py: lightrag/utils_graph.py changed 64 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 63 in utils_graph._merge_entities_impl at line 2958. 51 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/utils_graph.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":"lightrag/utils_graph.py"},"region":{"startLine":2958}}}],"partialFingerprints":{"codehealthFindingId/v1":"9546676b91517352836d45b4499ea9842642e93476903121f078edd4ce0a302f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag/utils.py: lightrag/utils.py changed 70 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 47 in utils.aexport_data at line 4857. 52 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/utils.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":"lightrag/utils.py"},"region":{"startLine":4857}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a145804fec479e9eb15f5686dfacf93c1e4c3e9050d06c559e2f959b4bbf27b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag_webui/src/features/DocumentManager.tsx: lightrag_webui/src/features/DocumentManager.tsx changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 152 in DocumentManager.DocumentManager at line 381. 17 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag_webui/src/features/DocumentManager.tsx\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":"lightrag_webui/src/features/DocumentManager.tsx"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"8879f2741ad89acf21cddb8037ba71b96b829b670f253f68fbd0ad89079fc537"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag/pipeline.py: lightrag/pipeline.py changed 28 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 74 in _PipelineMixin.process_single_document at line 4992. 22 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/pipeline.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":"lightrag/pipeline.py"},"region":{"startLine":4992}}}],"partialFingerprints":{"codehealthFindingId/v1":"55db4b8772eaf94fcb3fbbb571d4436a8bb52996eaefe13991fba76905c73d42"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag/api/lightrag_server.py: lightrag/api/lightrag_server.py changed 28 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 53 in lightrag_server.create_app at line 1473. 15 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/api/lightrag_server.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":"lightrag/api/lightrag_server.py"},"region":{"startLine":1473}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1dbfc1e86593aeec47c07b8ea02aeeda225a49b2a1a1da30482072bafb7e63d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag/kg/faiss_impl.py: lightrag/kg/faiss_impl.py changed 42 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in FaissVectorDBStorage._flush_pending_locked at line 907. 32 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/kg/faiss_impl.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":"lightrag/kg/faiss_impl.py"},"region":{"startLine":907}}}],"partialFingerprints":{"codehealthFindingId/v1":"fef3e34b95a257fb5579cd518dfd7003833148c53c2a3e334587afb2e5bd0489"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag/kg/postgres_impl.py: lightrag/kg/postgres_impl.py changed 27 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in PGVectorStorage.setup_table at line 4454. 20 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/kg/postgres_impl.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":"lightrag/kg/postgres_impl.py"},"region":{"startLine":4454}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d4416b35efdc1e037a5fa1098669897dcd3149cc3b81510d8fd0acdd1b38df4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag/kg/nano_vector_db_impl.py: lightrag/kg/nano_vector_db_impl.py changed 35 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in NanoVectorDBStorage._flush_pending_locked at line 531. 28 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/kg/nano_vector_db_impl.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":"lightrag/kg/nano_vector_db_impl.py"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd8ac33a8d069d5c61a1e47bc11cbdf8721dda1fa8f9ff35ed19de2fedf3b9db"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag/llm/openai.py: lightrag/llm/openai.py changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 65 in openai.openai_complete_if_cache at line 317. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/llm/openai.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":"lightrag/llm/openai.py"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"f580e4beb6a73f20f8350f95a7b19f9c6eaf4f671ac6b9c9b45683b8572f7ed5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag/api/ui_customization.py: lightrag/api/ui_customization.py changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 46 in ui_customization.load_ui_customization_snapshot at line 647. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/api/ui_customization.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":"lightrag/api/ui_customization.py"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"12d20bd90445b98d7819edd36426fe793a8ac3b9b660c69d984a3ec4b4800433"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag/kg/opensearch_impl.py: lightrag/kg/opensearch_impl.py changed 30 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in OpenSearchGraphStorage._bfs_subgraph_ppl at line 5558. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/kg/opensearch_impl.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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":5558}}}],"partialFingerprints":{"codehealthFindingId/v1":"16965871bb91e7fe1e4cf19b452dc9a0b3674b8df4d1db17680ebffc7c2a8aa0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag_webui/src/features/LoginPage.tsx: lightrag_webui/src/features/LoginPage.tsx changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in LoginPage.LoginPage at line 45. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag_webui/src/features/LoginPage.tsx\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":"lightrag_webui/src/features/LoginPage.tsx"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d606f8d46cd3d4285792269cd89fc408f9cc222bf6d3e4b6a6c1151294f466e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag/parser/markdown/extract.py: lightrag/parser/markdown/extract.py changed 23 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in extract.extract_markdown at line 543. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/parser/markdown/extract.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":"lightrag/parser/markdown/extract.py"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"38431bca9ad94e2b67a452e586c5f204f5cd09d6461ebeade43cdd1ad535a059"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag_webui/src/features/retrieval/useQuerySession.ts: lightrag_webui/src/features/retrieval/useQuerySession.ts changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 46 in useQuerySession.useQuerySession.submitQuery at line 249. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag_webui/src/features/retrieval/useQuerySession.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":"lightrag_webui/src/features/retrieval/useQuerySession.ts"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed1eb66e1e21a3c52927e557dc66eb93226ede396a4b497292b2ac650c7eb432"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag/kg/mongo_impl.py: lightrag/kg/mongo_impl.py changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in MongoGraphStorage._dedupe_legacy_edges at line 1997. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/kg/mongo_impl.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":"lightrag/kg/mongo_impl.py"},"region":{"startLine":1997}}}],"partialFingerprints":{"codehealthFindingId/v1":"307ccaef00f0327cc9bcea9e6af4eab7bffdf69908d871a521f601589564c6ba"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag_webui/src/components/retrieval/ChatMessage.tsx: lightrag_webui/src/components/retrieval/ChatMessage.tsx changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 57 in ChatMessage.ChatMessage at line 57. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag_webui/src/components/retrieval/ChatMessage.tsx\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":"lightrag_webui/src/components/retrieval/ChatMessage.tsx"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"26b254f956c2a05174c6ca8757d8e055e8a5b43d4af733d4c71d9fe095bc2d32"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag/api/config.py: lightrag/api/config.py changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in config.parse_args at line 348. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/api/config.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":"lightrag/api/config.py"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a80b2c5eb83a2929b420c784ae59b3d37f51fe021877c47538f4123f31c0699"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag/kg/milvus_impl.py: lightrag/kg/milvus_impl.py changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in MilvusVectorDBStorage._create_collection_if_not_exist at line 2262. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/kg/milvus_impl.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":"lightrag/kg/milvus_impl.py"},"region":{"startLine":2262}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eb6cd48ce2e469559002ee1338563195ed94304086163149300b9ec0ccc9f0a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag/llm/openai_responses.py: lightrag/llm/openai_responses.py changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 54 in openai_responses._stream_response at line 596. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/llm/openai_responses.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":"lightrag/llm/openai_responses.py"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d525220137197ec349188f5dce76e2994f32e88944a6e9cd478e04b1ddf41d0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag_webui/src/migrations/splitSettingsStorage.ts: lightrag_webui/src/migrations/splitSettingsStorage.ts changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in splitSettingsStorage.runSettingsStorageSplitMigration at line 554. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag_webui/src/migrations/splitSettingsStorage.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":"lightrag_webui/src/migrations/splitSettingsStorage.ts"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed75ba1db036e872602da72b5a4f4a0827b490dc03106dc27ebc054f90c6b6d1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag_webui/src/App.tsx: lightrag_webui/src/App.tsx changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in App.App at line 31. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag_webui/src/App.tsx\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":"lightrag_webui/src/App.tsx"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"932f3365e5bef569be40ccf91953a1bb8eee2db91699d0430299a251e882d8f3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag_webui/src/stores/state.ts: lightrag_webui/src/stores/state.ts changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in state.useBackendStateStoreBase at line 75. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag_webui/src/stores/state.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":"lightrag_webui/src/stores/state.ts"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6a7bbc62c6506b7d0cd8705ea5c91f706f91470040b3626f9bd9e25bb5c015c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag/parser/docx/numbering_resolver.py: lightrag/parser/docx/numbering_resolver.py changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in NumberingResolver.get_label at line 402. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/parser/docx/numbering_resolver.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":"lightrag/parser/docx/numbering_resolver.py"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"2de077e41378db0b85a6e40e40e36d243f1ad53462dec26672b499d59a73b9a6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag/parser/external/mineru/ir_builder.py: lightrag/parser/external/mineru/ir_builder.py changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in MinerUIRBuilder._normalize_content_list at line 182. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/parser/external/mineru/ir_builder.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":"lightrag/parser/external/mineru/ir_builder.py"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebd4758d5da408e65caf41ceb2a903a6f5175fb2051bcdf42f72e6da5c802c76"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag/tools/chunk_tracking_repair.py: lightrag/tools/chunk_tracking_repair.py changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in chunk_tracking_repair.run at line 1080. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/tools/chunk_tracking_repair.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":"lightrag/tools/chunk_tracking_repair.py"},"region":{"startLine":1080}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc4edcd3b338083b0a859d4157f0490dee1b6eee0048a37c3e3b4c87fa548692"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag/parser/docx/omml/ommlparser.py: lightrag/parser/docx/omml/ommlparser.py changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in OMMLParser.parse_d at line 303. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/parser/docx/omml/ommlparser.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":"lightrag/parser/docx/omml/ommlparser.py"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cb63cb2c1e1afab6da7aa5ec60483ac50feba8820634117e1909c4fd9d942a5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag/llm/ollama.py: lightrag/llm/ollama.py changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in ollama._ollama_model_if_cache 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/llm/ollama.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":"lightrag/llm/ollama.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bc643e273345888c386a025c25181cd5fb7753b79ba4148e2963454a97529fb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag/parser/external/docling/cache.py: lightrag/parser/external/docling/cache.py changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in cache.is_bundle_valid 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/parser/external/docling/cache.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":"lightrag/parser/external/docling/cache.py"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"402a9be0f40ecd357f5ae7e8f06dfefa222d3a3ef1e8d4ded6f9500cef66aa69"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag_webui/src/components/retrieval/QuerySettings.tsx: lightrag_webui/src/components/retrieval/QuerySettings.tsx changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in QuerySettings.QuerySettings at line 43. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag_webui/src/components/retrieval/QuerySettings.tsx\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":"lightrag_webui/src/components/retrieval/QuerySettings.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d247f710397513f1422b9ccdf9d5a1f8a41e3bb3a4f961324e827a6d81a3128"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag_webui/src/features/retrieval/QueryComposer.tsx: lightrag_webui/src/features/retrieval/QueryComposer.tsx changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in QueryComposer.QueryComposer at line 24. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag_webui/src/features/retrieval/QueryComposer.tsx\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":"lightrag_webui/src/features/retrieval/QueryComposer.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"680346b6f10f7c86e3f597148b41220d6113ee8fb84029e178a308d2cbf55d06"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag/parser/docx/smart_heading/style_key.py: lightrag/parser/docx/smart_heading/style_key.py changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in style_key._extract_unit_and_ordinal at line 308. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/parser/docx/smart_heading/style_key.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":"lightrag/parser/docx/smart_heading/style_key.py"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"55be349ca5290cadc28e896d6b1dfe5e7f020eb43e3a053c9710392159cc0bf9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag_webui/src/features/retrieval/MessageList.tsx: lightrag_webui/src/features/retrieval/MessageList.tsx changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in MessageList.MessageList at line 39. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag_webui/src/features/retrieval/MessageList.tsx\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":"lightrag_webui/src/features/retrieval/MessageList.tsx"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c704439b4f69f0077bcf2a8a0c070ef2dab1548a49473770adcb7bd511aa73c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag/llm/zhipu.py: lightrag/llm/zhipu.py changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in zhipu.zhipu_complete_if_cache at line 87. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/llm/zhipu.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":"lightrag/llm/zhipu.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"d421d0139971b690f9985871dfd52d85d712eee436e7ac4ba2d2ccfc239513ba"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag/llm/anthropic.py: lightrag/llm/anthropic.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in anthropic.anthropic_complete_if_cache at line 53. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/llm/anthropic.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":"lightrag/llm/anthropic.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"23a6f6c876173703e91f6658466c7ca0637be52773c54514d7c770d025a421e5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag/llm/bedrock.py: lightrag/llm/bedrock.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in bedrock.bedrock_complete_if_cache 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/llm/bedrock.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":"lightrag/llm/bedrock.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"7316234a13028b823c356f4d264e784d9907d40234a8ee69e32ef151ce1dfaf4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag/chunker/registry.py: lightrag/chunker/registry.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in registry.resolve_chunker at line 242. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/chunker/registry.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":"lightrag/chunker/registry.py"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"16513fcd18a18c286eec0f28bd4a12839bfb7e8fc22c58da45064568f0d0faf2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag/parser/external/docling/client.py: lightrag/parser/external/docling/client.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in DoclingRawClient.__init__ at line 153. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/parser/external/docling/client.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":"lightrag/parser/external/docling/client.py"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b9731a0f169d883f368274e46ce879ac490492e558c4097b2c0e833c4e5feca"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag/chunker/token_size.py: lightrag/chunker/token_size.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in token_size.chunking_by_token_size at line 133. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/chunker/token_size.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":"lightrag/chunker/token_size.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"013ad3a7f9cd74e7813633405efba02b3acac21e6b22a66b8154465d8b83cdd5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag_webui/src/components/documents/ClearDocumentsDialog.tsx: lightrag_webui/src/components/documents/ClearDocumentsDialog.tsx changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in ClearDocumentsDialog.ClearDocumentsDialog 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag_webui/src/components/documents/ClearDocumentsDialog.tsx\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":"lightrag_webui/src/components/documents/ClearDocumentsDialog.tsx"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3db35d1b7330bf7d59d87e30809852fa6530f386813139b4a8f1e0bda574dc5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag_webui/vite.config.ts: lightrag_webui/vite.config.ts changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in generateBundle at line 100. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag_webui/vite.config.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":"lightrag_webui/vite.config.ts"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c804c52fb7f350bf7e8de4f647939f5d262384c24a2c9a356782ab35faeff5a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lightrag/llm/_vision_utils.py: lightrag/llm/_vision_utils.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in _vision_utils._read_jpeg_dimensions at line 209. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/llm/_vision_utils.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":"lightrag/llm/_vision_utils.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf573a1857fac58704b31328575cd5094ef30d83022786ad024e97490b00d52d"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lightrag/base.py: lightrag/base.py changed 22 times in last 90 days and 14 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 DocStatusStorage._row_points_at_as_duplicate at line 1749), 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(storage): tell a lost reference from a durable one when a chunk commit raises\u201D; \u201Cfix(kg): list a self-loop once on the AGE backend too\u201D; \u201Cfix(kg): make the self-loop rule a data invariant, and batch the degree lookups\u201D; \u201Cfix: withhold the cache at shutdown over retained chunk operations\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/base.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":"lightrag/base.py"},"region":{"startLine":1749}}}],"partialFingerprints":{"codehealthFindingId/v1":"a26dc5e9d7f67c572711d5bfae5c3322f246a01a401539b89a7641ce5573a646"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lightrag/llm/hf.py: lightrag/llm/hf.py changed 13 times in last 90 days and 13 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 hf.hf_embed at line 299), 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(hf): keep decoding inside the serialized inference job\u201D; \u201Cfix(hf): serialize model loading with generate to cap GPU residency at one model\u201D; \u201Cfix(hf): recreate the inference executor after a fork via os.register_at_fork\u201D; \u201Cfix(hf): serialise local inference safely\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/llm/hf.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":"lightrag/llm/hf.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"441727504365cb6d409deb06a285c6af51e17d769380cc5f09ca980556cf15be"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lightrag_webui/src/features/workspace/WorkspaceApp.tsx: lightrag_webui/src/features/workspace/WorkspaceApp.tsx changed 15 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 14 (its worst body is WorkspaceApp.WorkspaceApp at line 37), 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(webui): expose descriptions on touch devices\u201D; \u201Cfix(webui): make workspace tooltip keyboard accessible\u201D; \u201Cfix(webui): show workspace description in tooltip\u201D; \u201C\uD83D\uDC1B fix(webui): start the API-key dialog baseline at the mount\u0027s own counter\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag_webui/src/features/workspace/WorkspaceApp.tsx\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":"lightrag_webui/src/features/workspace/WorkspaceApp.tsx"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5ba1cbeb44bad489fafb75f154368b3d3a49ae0c1a42be5e2fded4c68577c6e"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lightrag/kg/file_fingerprint.py: lightrag/kg/file_fingerprint.py changed 17 times in last 90 days and 10 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 file_fingerprint.divergence_detected at line 247), 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(networkx): resolve an unrecorded fingerprint before serving the graph\u201D; \u201Cfix(networkx): refuse to reload on an unreadable sample\u201D; \u201C\uD83D\uDC1B fix(networkx): count peer commit before failed-save reload\u201D; \u201Cfix(kg): keep the dedupe marker unless a concrete state was adopted\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/kg/file_fingerprint.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":"lightrag/kg/file_fingerprint.py"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"9995e6c96a948a7e5375f4d4f6fa958ac64fa82c1aad036572dd01a17b4769f9"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lightrag/exceptions.py: lightrag/exceptions.py changed 13 times in last 90 days and 9 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 VectorSpaceMismatchError.__init__ at line 769), 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(chunker): fail the document on a corrupt blocks.jsonl instead of degrading\u201D; \u201Cfix(pipeline): let the enqueue-stall fence spare the holders it was raised about\u201D; \u201Cfix(pipeline): force_reset must drop the reservations the enqueue fence waited on\u201D; \u201Cfix(pipeline): cover /upload, bound the drain wait, pin the fix with tests\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/exceptions.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":"lightrag/exceptions.py"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"05b64eeb10d7fe6b6bc4a81f797cbf72f22cd75d2536b14e859e33a8f08f221d"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lightrag/kg/json_kv_impl.py: lightrag/kg/json_kv_impl.py changed 11 times in last 90 days and 9 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 JsonKVStorage._migrate_legacy_cache_structure at line 469), 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: correct four misspelled strings in exceptions and logs\u201D; \u201Cfix(docs): repair nine more rewrite artifacts, and scope the pointer check per contract\u201D; \u201Cfix(storage): preserve KV create_time with server-side conditional writes\u201D; \u201Cfix(storage): preserve create_time on KV replacement upserts\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/kg/json_kv_impl.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":"lightrag/kg/json_kv_impl.py"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da07876cfefc1b884d051392bd8d7417613fc5851d4805cf367e9b6d046c364"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lightrag/parser/legacy/extractors.py: lightrag/parser/legacy/extractors.py changed 10 times in last 90 days and 9 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 extractors._extract_xlsx at line 280), 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(parser): keep the grid columns of a DOCX cell in a placeholder control\u201D; \u201Cfix(parser): read DOCX paragraph text in document order, one alternate branch\u201D; \u201Cfix(parser): read wrapped table rows and keep TOC and placeholder controls out\u201D; \u201Cfix(parser): align DOCX rows that skip grid columns in legacy extraction\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/parser/legacy/extractors.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":"lightrag/parser/legacy/extractors.py"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e140ba2d65b2b319aea617bc600eb42ae0c8e97f2f99d1e6b74cb3401ba6e43"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lightrag/query_validation.py: lightrag/query_validation.py changed 10 times in last 90 days and 9 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 query_validation.meets_min_rag_query_weight at line 101), 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(query): keep the width table to Chinese, Japanese and Korean\u201D; \u201Cfix(query): end every width range on a block boundary\u201D; \u201Cfix(query): weigh the supplementary Chinese iteration marks\u201D; \u201Cfix(query): weigh Bopomofo, iteration marks and CJK numerals\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/query_validation.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":"lightrag/query_validation.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"a67e9ab41456e5f4d5b3425afe99ca3d46db151d7d75365fad69404f6d45b440"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lightrag_webui/src/utils/queryValidation.ts: lightrag_webui/src/utils/queryValidation.ts changed 10 times in last 90 days and 9 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 queryValidation.meetsMinRagQueryWeight at line 55), 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(query): keep the width table to Chinese, Japanese and Korean\u201D; \u201Cfix(query): end every width range on a block boundary\u201D; \u201Cfix(query): weigh the supplementary Chinese iteration marks\u201D; \u201Cfix(query): weigh Bopomofo, iteration marks and CJK numerals\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag_webui/src/utils/queryValidation.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":"lightrag_webui/src/utils/queryValidation.ts"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"af05965f22ac8608e6053c27bb8ab6aced325080b65dcbea6dbcf670df16e32b"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lightrag/kg/shared_storage.py: lightrag/kg/shared_storage.py changed 14 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 15 (its worst body is shared_storage.finalize_share_data at line 4005), 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(locks): drop duplicate keys instead of waiting on a held mutex\u201D; \u201Cfix(pipeline): let the enqueue-stall fence spare the holders it was raised about\u201D; \u201Cfix(pipeline): re-check the stalled enqueue set inside the lock that fences on it\u201D; \u201Cfix(pipeline): never drop a source-conflict repair guard on force_reset\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/kg/shared_storage.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":"lightrag/kg/shared_storage.py"},"region":{"startLine":4005}}}],"partialFingerprints":{"codehealthFindingId/v1":"82244969954dbcd6cb85654e07297f1b9ee98484eab76dbb0b0121827d5fca51"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lightrag_webui/src/lib/loginIdentity.ts: lightrag_webui/src/lib/loginIdentity.ts changed 8 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 6 (its worst body is loginIdentity.loginIdentityFromToken at line 45), 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(webui): decide the login identity from the granted token, not the typed name\u201D; \u201C\uD83D\uDC1B fix(webui): read JWT payloads as UTF-8, without wiping the histories it fixes\u201D; \u201C\uD83D\uDC1B fix(webui): restore streaming auto-scroll and decode JWT payloads as base64url\u201D; \u201C\uD83D\uDC1B fix(webui): apply the identity-change rule in the cross-tab handler 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag_webui/src/lib/loginIdentity.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":"lightrag_webui/src/lib/loginIdentity.ts"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f8fd99c03981bf095e250be5fbd2fcb923c9f7c055628efba4f77cd01c8c9f2"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lightrag/kg/json_doc_status_impl.py: lightrag/kg/json_doc_status_impl.py changed 9 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 JsonDocStatusStorage.get_docs_paginated at line 428), 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: correct four misspelled strings in exceptions and logs\u201D; \u201Cfix(docs): retarget the section pointers the docstring move left behind, and guard them\u201D; \u201Cfix(kg): do not absorb a failed sanitize reload as a deferred publication\u201D; \u201Cfix(storage): guard the published-commit diagnostics against a broken sink\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/kg/json_doc_status_impl.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":"lightrag/kg/json_doc_status_impl.py"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2133e2e1ff67ea760648355b013249d3a321eb24ed6853d0f1769a5db10bccc"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lightrag_webui/src/components/customization/useCustomizedContent.ts: lightrag_webui/src/components/customization/useCustomizedContent.ts changed 10 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 useCustomizedContent.useCustomizedContent at line 88), 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(webui): preserve description access and bounds\u201D; \u201Cfix(webui): preserve deployment title on fallback\u201D; \u201Cfix(webui): keep the consent gate honest across a language switch\u201D; \u201Cfix(api,webui): browser-language fallback, bounded customization retry, credential re-probe, SVG root check\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag_webui/src/components/customization/useCustomizedContent.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":"lightrag_webui/src/components/customization/useCustomizedContent.ts"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"2810cf0e533c6a3c2c8bac53166e6f1b67c72d66e4add6b9617800713415f723"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lightrag_webui/src/features/workspace/WorkspaceWelcome.tsx: lightrag_webui/src/features/workspace/WorkspaceWelcome.tsx changed 9 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 15 (its worst body is WorkspaceWelcome.WorkspaceWelcome at line 28), 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(webui): hide description on workspace welcome\u201D; \u201Cfix(webui): decide the login identity from the granted token, not the typed name\u201D; \u201Cfix(webui): identity-change cleanup on guest activation; never downgrade future settings envelopes\u201D; \u201Cfix(webui): five workspace interaction-contract fixes\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag_webui/src/features/workspace/WorkspaceWelcome.tsx\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":"lightrag_webui/src/features/workspace/WorkspaceWelcome.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ab896f22ae9b7571204cc0bc11385b55bec265429b9495bc5bc141938d48bab"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lightrag_webui/src/stores/settings.ts: lightrag_webui/src/stores/settings.ts 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 5 (its worst body is migrate at line 238), 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(webui): never persist over an unmigrated envelope; destroy histories version-agnostically on identity change\u201D; \u201Cfix(webui): preserve legacy explicit language choices; extend future-envelope guard to all split keys\u201D; \u201Cfix(webui): API-key capture on the workspace entry; per-write guard for future settings envelopes\u201D; \u201Cfix(webui): identity-change cleanup on guest activation; never downgrade future settings envelopes\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag_webui/src/stores/settings.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":"lightrag_webui/src/stores/settings.ts"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"42db38d412a7388c232d39691f57ce2e29ab21f36c13c687da9813f2e9583979"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lightrag/api/routers/query_routes.py: lightrag/api/routers/query_routes.py 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 QueryRequest.conversation_history_role_check at line 189), 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(query): restore QueryParam positional order, budget the real template\u201D; \u201Cfix(query): refuse empty prompts and stop walking whole queries\u201D; \u201Cfix(query): enforce meaningful RAG query length\u201D; \u201C\uD83D\uDC1B fix(relation): repair evidence floor and chunk tracking\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/api/routers/query_routes.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":"lightrag/api/routers/query_routes.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"9706a83fb0e445546f42eb2b08a78e740dd37762bf91c6226825f68c18c2773c"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lightrag_webui/src/stores/customization.ts: lightrag_webui/src/stores/customization.ts 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 14 (its worst body is customization.useCustomizationStore at line 149), 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(webui): keep the consent gate honest across a language switch\u201D; \u201Cfix(api,webui): browser-language fallback, bounded customization retry, credential re-probe, SVG root check\u201D; \u201Cfix(webui): retry customization when the target locale is not the loaded one\u201D; \u201Cfix(webui): five workspace interaction-contract fixes\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag_webui/src/stores/customization.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":"lightrag_webui/src/stores/customization.ts"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfd72ab1708958bd60db7cf4a4ca5c816b6e0ca7a17f71316268779fed42b5f4"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lightrag/api/routers/ollama_api.py: lightrag/api/routers/ollama_api.py 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 8 (its worst body is ollama_api.parse_request_body at line 211), 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(api): require a word boundary after unsuffixed context mode keys\u201D; \u201Cfix(query): forward Ollama prompts verbatim, weigh letters only\u201D; \u201Cfix(query): refuse empty prompts and stop walking whole queries\u201D; \u201Cfix(query): enforce meaningful RAG query length\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/api/routers/ollama_api.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":"lightrag/api/routers/ollama_api.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fb61fd8af336241c10cdb07988f426ce28ce6e0184bdc421b815590413fd97f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lightrag_webui/src/lib/constants.ts: lightrag_webui/src/lib/constants.ts 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 1 (its worst body is constants.workerBudgetMs 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: \u201C\uD83D\uDC1B fix(webui): surface a mermaid renderer that fails to load, drop the dead webuiPrefix export\u201D; \u201Cfix(webui): admit one half-open probe and stop 4xx from tripping the breaker\u201D; \u201Cfix(webui): keep the document list refreshing when the backend stalls\u201D; \u201CFix lintings\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag_webui/src/lib/constants.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":"lightrag_webui/src/lib/constants.ts"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc0e87d118ccf50a6a495dec63a4df1ad08a8bffd35c02453564d0e04bc41b7e"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lightrag/llm/llama_index_impl.py: lightrag/llm/llama_index_impl.py 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 8 (its worst body is llama_index_impl.llama_index_complete at line 149), 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(llm): run the llama_index install guard before the import it protects\u201D; \u201Cfix(llama_index): fold max_tokens into chat_kwargs instead of discarding it\u201D; \u201Cfix(llama_index): drop hashing_kv, max_tokens, stream before calling llama_index_complete_if_cache\u201D; \u201Cfix(llama_index): fix llm_instance forwarding and blocking embed call\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/llm/llama_index_impl.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":"lightrag/llm/llama_index_impl.py"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"1750a29fe7111e7743eed065b8129cc1633931dcc8b9e910fc69094100d61ba3"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lightrag_webui/src/WorkspaceAppRouter.tsx: lightrag_webui/src/WorkspaceAppRouter.tsx 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 4 (its worst body is WorkspaceAppRouter.WorkspaceAppContent at line 31), 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: \u201C\uD83D\uDC1B fix(webui): require explicit acceptance of a quota-destroyed settings envelope\u201D; \u201Cfix(webui): never let a quota-destroyed settings envelope migrate silently\u201D; \u201Cfix(api,webui): quota-bounded chat history; whitelist-proof verifier; dev proxy for new routes\u201D; \u201Cfix(webui): reset live sessions on cross-tab identity change; gate workspace auto-guest; reopen API-key dialog on repeated failure\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag_webui/src/WorkspaceAppRouter.tsx\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":"lightrag_webui/src/WorkspaceAppRouter.tsx"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8134fa306b0326e1b37d9d6b261314ab0b4a8ad3f9ac1556ff182c7f98141bd"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lightrag/api/routers/graph_routes.py: lightrag/api/routers/graph_routes.py 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 3 (its worst body is EntityUpdateRequest.validate_rename_target_name at line 95), 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(graph): resolve manual entity names on every graph entry point\u201D; \u201Cfix(api): surface the admin-write hold ceiling\u0027s outcome to REST clients\u201D; \u201Cfix(graph): enforce relation evidence weight floor\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/api/routers/graph_routes.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":"lightrag/api/routers/graph_routes.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"9212179f34d4f1fb0b9bc39b0f05f2a164ca751de02802c4e617035b6045e950"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lightrag/utils_pipeline.py: lightrag/utils_pipeline.py 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 14 (its worst body is utils_pipeline.build_chunks_dict_from_chunking_result at line 144), 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(chunker): correct drift diagnostics and selection ergonomics\u201D; \u201Cfix(docs): repair parentheticals the issue-reference removal gutted, and guard them\u201D; \u201Cfix(pipeline): keep generated failure summary within varchar(255)\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/utils_pipeline.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":"lightrag/utils_pipeline.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2e8896f7603760adcea76ad558bc87bda192dd51838a2610e5d78b4ad5df3cf"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lightrag_webui/src/i18n.ts: lightrag_webui/src/i18n.ts 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 3 (its worst body is i18n.resolveInitialLanguage at line 28), 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(api,webui): browser-language fallback, bounded customization retry, credential re-probe, SVG root check\u201D; \u201Cfix(webui): never persist over an unmigrated envelope; destroy histories version-agnostically on identity change\u201D; \u201Cfix(webui): five workspace interaction-contract fixes\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag_webui/src/i18n.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":"lightrag_webui/src/i18n.ts"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6d67a9efcff2de240d97a72e91ffa99a481612b7724bccb3f75747fec8c2579"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lightrag_webui/src/features/RetrievalView.tsx: lightrag_webui/src/features/RetrievalView.tsx 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 2 (its worst body is RetrievalView.RetrievalView at line 19), 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(webui): reduce retrieval bottom spacing\u201D; \u201Cfix(webui): align query validation feedback\u201D; \u201Cfix(query): enforce meaningful RAG query length\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag_webui/src/features/RetrievalView.tsx\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":"lightrag_webui/src/features/RetrievalView.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"639ba880311771a0a3ff69efb51467d121bdb0f6c98ce6dc300691d162ef647e"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lightrag_webui/src/AppRouter.tsx: lightrag_webui/src/AppRouter.tsx 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 12 (its worst body is AppRouter.AppContent at line 18), 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: \u201C\uD83D\uDC1B fix(webui): require explicit acceptance of a quota-destroyed settings envelope\u201D; \u201Cfix(webui): never let a quota-destroyed settings envelope migrate silently\u201D; \u201Cfix(api,webui): quota-bounded chat history; whitelist-proof verifier; dev proxy for new routes\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag_webui/src/AppRouter.tsx\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":"lightrag_webui/src/AppRouter.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b0663bba59cad90b3ee3b52be31872f597f6ca9e479cc7d66864bcaeaf5837a"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lightrag/llm/lmdeploy.py: lightrag/llm/lmdeploy.py 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 11 (its worst body is lmdeploy.lmdeploy_model_if_cache at line 58), 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: correct four misspelled strings in exceptions and logs\u201D; \u201Cfix(lmdeploy): handle truncated responses\u201D; \u201Cfix(lmdeploy): honor native max_new_tokens\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/llm/lmdeploy.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":"lightrag/llm/lmdeploy.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"a99a7e1499cf62ed84fcb42b90c4fac1651e754be202a6d0bdd5e906c2cd6175"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lightrag/file_atomic.py: lightrag/file_atomic.py 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 6 (its worst body is file_atomic.reap_orphan_tmp_files at line 86), 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(storage): bound the Windows replace retry to the single storage-io worker\u201D; \u201Cfix(windows): format atomic write and add regression tests for retry branch\u201D; \u201Cfix(storage): retry os.replace in atomic_write on Windows NTFS lock contention\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag/file_atomic.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":"lightrag/file_atomic.py"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b53cd54b52f5ced79cefee71a7b24f7322bcc450c2cddb028fe28bb6f123485"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lightrag_webui/src/features/documentRefreshCircuitBreaker.ts: lightrag_webui/src/features/documentRefreshCircuitBreaker.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 6 (its worst body is documentRefreshCircuitBreaker.admitCircuitBreakerRequest at line 153), 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(webui): settle the breaker on every outcome, reset on a 4xx\u201D; \u201Cfix(webui): admit automatic refreshes where the request is issued\u201D; \u201Cfix(webui): admit one half-open probe and stop 4xx from tripping the breaker\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag_webui/src/features/documentRefreshCircuitBreaker.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":"lightrag_webui/src/features/documentRefreshCircuitBreaker.ts"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"a87fed013bddc7cb7b05bc5850f9fc702703041de40ea2aaeb726f8be0b83fa1"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lightrag_webui/src/stores/retrievalHistory.ts: lightrag_webui/src/stores/retrievalHistory.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 5 (its worst body is retrievalHistory.createBoundedHistoryStorage.setItem at line 64), 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(api,webui): quota-bounded chat history; whitelist-proof verifier; dev proxy for new routes\u201D; \u201Cfix(webui): never persist over an unmigrated envelope; destroy histories version-agnostically on identity change\u201D; \u201Cfix(webui): preserve legacy explicit language choices; extend future-envelope guard to all split keys\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:05:23 \u002B08:00\u0027 --until=\u00272026-11-14 10:05:23 \u002B08:00\u0027 --full-history --no-merges -- lightrag_webui/src/stores/retrievalHistory.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":"lightrag_webui/src/stores/retrievalHistory.ts"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"99c1b6d330599073d7b8b02524ac5d9c307cf69098b13b90f60ab06e013abc7d"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 50 significant file(s) lose their only recent owner: lightrag/parser/docx/smart_heading/title_block.py, lightrag/parser/markdown/parser.py, lightrag/tools/migrate_llm_cache.py, lightrag/tools/chunk_tracking_repair.py, lightrag/parser/docx/smart_heading/guardrails.py, lightrag/tools/clean_llm_query_cache.py, lightrag/tools/source_conflict_repair.py, lightrag/chunker/semantic_vector.py (\u002B42 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"21ebc09405f0d041c7c95e6b1c770b3d1d5364d9a76bbdc33a9d5d15495d170f"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 2 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (66 single-owned of 237 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 237 of the 342 production source files in this repository met that bar). They are anonymized user #2 (1 file(s)), anonymized user #3 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: lightrag/tools/migrate_graph_storage.py, lightrag/evaluation/offline_retrieval_check.py."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Deprecated, use setup_logger in utils.py instead \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":"lightrag/lightrag.py"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"c06218d109805be002c62eb05c0d43844cf2fe938e3249ace9e95be3a796c1a2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Deprecated (LightRAG will never initialize storage automatically on creation\uFF0Cand finalize should be call before destroying) \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":"lightrag/lightrag.py"},"region":{"startLine":1291}}}],"partialFingerprints":{"codehealthFindingId/v1":"c74892522c0b4e38ec2051805c0427ae8ff5db1e267029275cc045d5fbc4e11f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: deprecated, use insert instead \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":"lightrag/lightrag.py"},"region":{"startLine":2463}}}],"partialFingerprints":{"codehealthFindingId/v1":"82dbbb8556d97f6b9ac68ac6b4a4cb3fe4bd02a08a31037898afe9efd370ce5b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: deprecated, use ainsert instead \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":"lightrag/lightrag.py"},"region":{"startLine":2477}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb8d2bd11075617389f3218f69e9694a3172cbcabd949e4d4fa394d8e8361070"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Add support for m:rPr and m:scr to support different character styles \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":"lightrag/parser/docx/omml/ommlparser.py"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"22eae5c548bee99a6f50d6e3fc9a26d140d05aae64bd134628da489f37c1a488"}},{"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 \u0060pyproject.toml\u0060 makes this repository a deployable product (line 210)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pyproject.toml"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f93f7a2c78f190233679ac8202a9f8e691d2305d697b777ee579589e9c4bff1"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Set health check function in the store\u0022 repeats the code it sits on: 4 of its 5 words (set, health, check, function) are already in \u0060useBackendState.getState().setHealthCheckFunction(performHealthCheck);\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":"lightrag_webui/src/App.tsx"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"119b675dd35b09aec260b93bb1bd1525ff06aa533240a85758f87b4c6e9a4475"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Silent refresh for guest token\u0022 repeats the code it sits on: 4 of its 4 words (silent, refresh, guest, token) are already in \u0060const silentRefreshGuestToken = async (): Promise\u003Cstring\u003E =\u003E\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":"lightrag_webui/src/api/lightrag.ts"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7653331d4ee50997eda44cdd7188144e66ca28b63a7349dd6a55383ea1d7602"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Clear graph state\u0022 repeats the code it sits on: 3 of its 3 words (clear, graph, state) are already in \u0060graphState.clearSelection()\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":"lightrag_webui/src/components/graph/EditablePropertyRow.tsx"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"53274e086e31a0cb16472a712c8cbbc0c3f9a37e0c8810bf8334f7f4e2db8742"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Create new search engine\u0022 repeats the code it sits on: 4 of its 4 words (create, new, search, engine) are already in \u0060const newSearchEngine = new MiniSearch({\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":"lightrag_webui/src/components/graph/GraphSearch.tsx"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"52e4177375c9ecda447f41bb67d3319cea1f8e07d1748d3a21748e15912e6725"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022KaTeX configuration options interface\u0022 repeats the code it sits on: 4 of its 5 words (ka, te, options, interface) are already in \u0060interface KaTeXOptions\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":"lightrag_webui/src/components/retrieval/ChatMessage.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"29aa5735170897e450a9bf020c70c44d9bff2299878ed1928ed19eace4a877ff"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Container for Mermaid diagram\u0022 repeats the code it sits on: 3 of its 3 words (container, mermaid, diagram) are already in \u0060return \u003Cdiv className=\u0022mermaid-diagram-container my-4 overflow-x-auto\u0022 ref={mermaidRef}\u003E\u003C/div\u003E;\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":"lightrag_webui/src/components/retrieval/ChatMessage.tsx"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"6baee742553f0e6e1cea5a2ac6e4a59775aaf2a682370fdb72b5ad4e82067353"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Check file size\u0022 repeats the code it sits on: 3 of its 3 words (check, file, size) are already in \u0060const isSizeValid = file.size \u003C= maxSize;\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":"lightrag_webui/src/components/ui/FileUploader.tsx"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"7854ded348d528d5d0afffed58c2ccd792c582fb7b492e892e286b439a4c7f8f"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Check file size\u0022 repeats the code it sits on: 3 of its 3 words (check, file, size) are already in \u0060if (file.size \u003E maxSize)\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":"lightrag_webui/src/components/ui/FileUploader.tsx"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"a35404710682a2cfb43020c9ee839a44bdc7b3ab1f7c6943bc03356d38206c09"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Handle page input change with debouncing\u0022 repeats the code it sits on: 4 of its 5 words (handle, page, input, change) are already in \u0060const handlePageInputChange = useCallback((value: string) =\u003E\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":"lightrag_webui/src/components/ui/PaginationControls.tsx"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c2a5707a142b85534159b7a2afaf7a2aaee503b042feeeece8a3169403ac4df"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Handle page input submit\u0022 repeats the code it sits on: 4 of its 4 words (handle, page, input, submit) are already in \u0060const handlePageInputSubmit = useCallback(() =\u003E\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":"lightrag_webui/src/components/ui/PaginationControls.tsx"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a6111d1301431d96e28c7374fd19fe94e0471b0a3e611578106acd92459e9b"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Handle page input key press\u0022 repeats the code it sits on: 5 of its 5 words (handle, page, input, key, press) are already in \u0060const handlePageInputKeyPress = useCallback((e: React.KeyboardEvent) =\u003E\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":"lightrag_webui/src/components/ui/PaginationControls.tsx"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eb17f8835d2d4f7cb927765fafbf15b1fee305225849aebc4db150b8398adfc"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Handle page size change\u0022 repeats the code it sits on: 4 of its 4 words (handle, page, size, change) are already in \u0060const handlePageSizeChange = useCallback((value: string) =\u003E\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":"lightrag_webui/src/components/ui/PaginationControls.tsx"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c7cd8bb2eb2b09d4a006193195fc2343729e2dce146b34ccd1160e2014b3df9"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Get current tab from settings store\u0022 repeats the code it sits on: 4 of its 5 words (current, tab, settings, store) are already in \u0060const currentTab = useSettingsStore.use.currentTab();\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":"lightrag_webui/src/contexts/TabVisibilityProvider.tsx"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"d69a9d7e2d2379ba7fcc1378e84530171a3b9e242ab126dd1742b33273b9828a"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022State to store page number for each status filter\u0022 repeats the code it sits on: 5 of its 6 words (state, page, number, status, filter) are already in \u0060const [pageByStatus, setPageByStatus] = useState\u003CRecord\u003CStatusFilter, number\u003E\u003E({\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":"lightrag_webui/src/features/DocumentManager.tsx"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c4f73410453ba31e681def25a1ad335f9bbb7a8cc6521e3d52b45887807ed60"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Handle select current page\u0022 repeats the code it sits on: 4 of its 4 words (handle, select, current, page) are already in \u0060const handleSelectCurrentPage = useCallback(() =\u003E\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":"lightrag_webui/src/features/DocumentManager.tsx"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"247d8afbb8cbac30a37974d58ee86aa58b6c35be54fa2f641dd3fa8a236b39b7"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Handle documents deleted callback\u0022 repeats the code it sits on: 4 of its 4 words (handle, documents, deleted, callback) are already in \u0060const handleDocumentsDeleted = useCallback(async () =\u003E\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":"lightrag_webui/src/features/DocumentManager.tsx"},"region":{"startLine":1381}}}],"partialFingerprints":{"codehealthFindingId/v1":"370b12316c00ae2d2ec7f7c937de72972f4404ff0c05bcede3ee54b83b5b6d4d"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: 8 comments in this file only repeat the code they sit on (lines 343, 493, 558, 686, 807, 820, 830, 1053), for example \u0022Use ref to track if empty data has been handled\u0022. 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":"lightrag_webui/src/hooks/useLightragGraph.tsx"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb845f184d60952e901e729cf2ceb5a2e6b719b2dbe71f1b8677639067c79907"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022User prompt history\u0022 repeats the code it sits on: 3 of its 3 words (user, prompt, history) are already in \u0060userPromptHistory: string[]\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":"lightrag_webui/src/stores/settings.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b8e98c74d915124d8c4bcc672e378c9d0afbc54142b2d28238358f9d2d9a605"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Get timezone offset\u0022 repeats the code it sits on: 3 of its 3 words (get, timezone, offset) are already in \u0060const offsetMinutes = -date.getTimezoneOffset();\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":"lightrag_webui/src/stores/state.ts"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"d851051ee7cd51601f6a23c300a7364b4f41e436ddfb0e27031f8ac2f3fd4183"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Find existing item\u0022 repeats the code it sits on: 3 of its 3 words (find, existing, item) are already in \u0060const existingIndex = history.findIndex(item =\u003E item.label === trimmedLabel)\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":"lightrag_webui/src/utils/SearchHistoryManager.ts"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"b22a5abcc34f60aa197e42accfa2039f12ac6cbe5ac1c52a56e6602e85177b81"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 2 of 2 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is \u0060(repository root)\u0060 (154881 LoC, 591 module-visible types across 25 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D27","level":"note","message":{"text":"Scattered collaborators: 97 % of calls cross a namespace and only 33 % of collaborators are co-located \u2014 group each feature\u0027s code into a vertical slice so a call\u0027s collaborators sit together."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5aad4a4530bac3928d3a065a664be89d023ecfc865f9bf79ac05754b3bffe322"}},{"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":"7ca6089a6a862823d6ac811b43d5d2743a43044c55df8e10092621cb47f59b54"},"properties":{"commitSha":"c2abc0720623c53975ead7305e6d10d6c851b8e0"}},{"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":"6f033855d708e8e05cbe2d13c320633c6d55c0c586565dc1950ecdca4aca4113"},"properties":{"commitSha":"c2abc0720623c53975ead7305e6d10d6c851b8e0"}},{"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":"8e24f4acd1099552199e54c16931e9432db7ecbc427a61b8d3b45ec5ae9767e5"},"properties":{"commitSha":"c2abc0720623c53975ead7305e6d10d6c851b8e0"}},{"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":"05bc5066176b032ad58a3ebe41ffe2c1902cf11bf70c28af4c673cd326e190d5"},"properties":{"commitSha":"c2ebb819fdb0ef87a56454ddbc6a4466558223cb"}},{"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":"1034652a42c353d27711b0186115965477d9f782117d80e8fa01b68465ed146b"},"properties":{"commitSha":"25df09a8ac15f3123bd99b1f06250f09279dbe9d"}},{"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":"88c92d7ee2914e05695dfbf20fc82ca31b2d2f10afc88a004d9706eb47db7999"},"properties":{"commitSha":"25df09a8ac15f3123bd99b1f06250f09279dbe9d"}},{"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":"239085b83d42e008853bcb573d5a4effede92eb87d4a15e6dcbd4677ad010ba9"},"properties":{"commitSha":"8e4a3aea9d3493d8e55ba52f93257e2e27b8d1fe"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"ab9721123241df703c18e9a8035419fba1be478e577a01bf6438fa7bf0cce93f"},"properties":{"commitSha":"f77b5a26a735380fd8537f47fd80f60fbefeee46"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"153127026f263d26e0717ee414cc14970bd995da80e667e935122e5b37ee1606"},"properties":{"commitSha":"a4e74c397d37aabbf955ac386a4af30b24927d5b"}},{"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":"38935f580fddaa1cf39ea7b578a7182b0ed8158d0db64b5359d59d9a41c06e3a"},"properties":{"commitSha":"89849c3ed0e0380345a6b5bade027cfb9a5bf32c"}},{"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":"d5b8f11381d61a58459ffc7c595fd52d09c03c711894a63a9578043d2338412b"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e27fdebd872266fac1e3da99f1bb709878b68b632941674880d71c6f3f1ec668"},"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":"0973e79d6b3cb5a9fca617f486f92001dfb9fe1b98ac92da1b460f68d4b4c6a8"},"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":"2e96c9e8cb2cf13de80e73fbdee28ed6bf0174e077f4793ed4253798ca9c41a7"},"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":"595eca2fcd6615cd5d93f1ffbda979b31c00b1c64a6f349ab0abd6dc1d3db89e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","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":"70985a226cd3ead559b49801218e79e93d689d33986c6cdb5bf3a02324a751e1"},"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":"bcbf0a27aea0f885a4f7c2656ca55e3174912a7058d65427c50ebdf595c0e5e6"},"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":"4e07904bda12caecf1cd4118820035e7082ad9ea3ef945d3f4d33ede7e3e8fab"},"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":"7f46c2c707237979c0f47d0acdc34ba786b6ec299ed72cb4ac22f2983735838e"},"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":"f8df7dca22075e43beef5e6ff18ad50ea1cd9e1cba77ea252f874f81660f1dfc"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6541ba9bf388b09213c4604ff1fc0804767451f78c152fd3f4ef905cb4c25b97"},"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":"72f8eceda7f8b84db2a21469dcd4e3c62fb0694873e94afae897eeebf29a8e0f"},"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":"5ce32b24af6b12d74a293ba0706bac7d5d1551944dd8cb02d0145b242df67f69"},"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":"6d83eaab404e2aec02cfa03d5bddc3e6f9c8829c73b52bfbba6c95af7b47a350"},"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":"10af4ab4bc496ab9ee0ebc687114feca45680c5abac26c70b366dde704de12f6"},"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":"b525c49ca3b0b3cc8964b4bedcb21e8be3acd428d0b41260b185172a65dbac4f"},"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":"3280b19c6c7d80eedcb3e48e56e11985dfb96cf9a9a761b10e6c43271e959d55"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e7d67b71892be179ddf067d57e732506815d16d00b23072bce9a2b540be43768"},"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":"bc95cd219473c259981d874476bbb4b94009aa7e271f8ce7b57ba5f9d146cecf"},"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":"6b7172c8063b13f0aa47b9acb6b8a47202f05bf216aec41fa126446716b50b19"},"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":"bdbcff40179d1bde8b59b0d669b23149c4b33ddc8760f66f8698d9b8ecd07ec5"},"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":"5b096d2568a0acbf2c1b40ddf829ef956e888f9590b2ba8039ed195938cf55e5"},"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":"34214ac18d9b4be3a2bd8f2e680e3b9be4a761147db3b9e45a4daec05b3b2412"},"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":"a7f47de4f74fcd506feb43313b67fefc8b97e4084721918231d99e1d0767a1a6"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5f335a81b2f1ccaa235963b98cca691e3d9c875b3c4630ab455811f41e15244b"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1ee3a79dd2c0b0de666c42f5bd1ab22ab026c3427d8435f915ecfd710f880c11"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d8c7bf51429ce5d274246398819c5e5155ade751174280f50cd99984926d49e0"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a5aa347203e9264846fa1d57326a3b6e4db8b24c5cc5c40538a2c98c34909069"},"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":"607edacc2948e636528b66d42999c6ec0282c8bace8a6cdfc30b45fab8045360"},"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":"7f585ec32847437126ac73e43039d68a90b89e52d57c8676fb0de7896e8074e4"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f52c410fb9065c87f5662e4538bc29d95e7feaf7733fdc9331dc69eb22079b7d"},"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":"096a22a7a9d56eb94f82ec76e8f215bd3efb1b3a75f9149ac30656b7d1f32bea"},"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":"a30dfaf17b08b9b0d24b0a7933b99a202b73257b37a1cb2b8161a3ceca3bdafd"},"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":"d298180873db1371ca28e598735fe07ebc6a8ecf74d4f39da3e813aeecd4b7e7"},"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":"c0efa02ed70f6c9b40e3e864094dae09e46af38467ceee6765fa4bb152dcc52e"},"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":"01de4d921507011fd7ad8f0447e482b0889933807aba7d293edcc17d96dc7ed6"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","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":"96f8457e2e3e8c752666d15ea90930cfb6c81495af440f1deb3db66004cf9096"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","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":"ef8e4de5d667d59fca97f38b403217f46cc510156f4de5a1fbdc34d462598afb"},"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":"50ce8c6954233bc32163f35578ca739133f92f2117e64f7e5dfb717fb6b283ed"},"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":"5997abdd5235abfdfe2d7e7dba3de1e3dac4dbcee788a617869046b9d35724a8"},"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":"fa70e0e0011b08750c831a66814e490a0f20ba1a6f678810d2aea47d3cbce7c0"},"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":"ba6968e8206cf2d6a961de90352f95f68721c90a0ecbab6a834aa1856ced3f88"},"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":"57e78f147a95b8dabc40d853c7800e5e4af32abb2bb220c457d62c61f4ed643d"},"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":"4af4ba307accc86d86d75bec232faf3b355abd83b46e07cc44980c9f838a66f7"},"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":"cac75628a194938eddcdc8a5b1d3360f59c9f3988cc3d270d83df21c72ccf7fd"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"78f377c731aa32c102894d31f2ba13661eec34794ebce6ee37db6feff836bcd3"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"37357205fda757dc8fc483c86aee716cca3c873a7dbd11e9c9751873349e72aa"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","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":"bdc62be9e4b3613ac4e76dfc9a40482365784d8f279be920fc0006893e7b2f86"},"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":"4657417803ac704e3373a2ea6a52078d16979cb30aac784c7d414717bda17f3f"},"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":"1ab72666de8a1c8fde2a7a73c9798ffd24f5fd6c63553039409c55e0954ec75b"},"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":"f031037119d70cbf685601bd9ee9261bfb63dcbf96432b89c7bbe66ae12997f8"},"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":"794699d45f47ae6e0dce3c118d0652501dfb0e0b8ee15dbc777cffe8c72db7a3"},"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":"07d98fa9e6a70a5d799f3785a9599f9723e51bfc2161cc92b9e952cfb5683763"},"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":"aaade4e2fc99a306e52c90ea02ec2073bc215ad1c8f021056a867957fc612d5d"},"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":"b63c93c76e40dda3d12442ae65377889e912bc68f6b1de302d22e4f7ba477bfc"},"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":"1b9f020cb05bbe8178a82271e13a28dffef379f2b653c43192e141e2b130ee5f"},"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":"ac3e2ced4ce80bd72ccde70273506044a22549f6015a87f757cff09c951943bc"},"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":"30437bf4ec951a56485af00fc53f232eaca9823354f3702d3ea10136e8dc1c94"},"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":"fc9cc85e2355315ebf83a384701b1debe8db7229854d0c4d3eec8e381eb4e7c5"},"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":"465a3f95a52056bc3d50c2b3490348a4d0cfc6b65c58413f2ce1daf9dad0943d"},"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":"37f7dc1cc333125d958fc079e6102e2a8ea8e496111530d71c2f360b966efb93"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a6e7813c81a64e9a1ddd6dc4d2a8218240f2023a46cd941b0ab20a81b32c685e"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"797b4c86fb354a6604ec0ddc32477758afbf4f4ac484c94d7dc447c033d57947"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"31fcff2fdab7ef633b6615ba7d0e84c18a9d8ba1bdeac51cc7be128e45072d52"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"502a4ba08663339d1882c2b5ad41605002eb06370233e227df7be6fe8cd1f95b"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"f5d5ddf6f554e9e341f4b13b37cb37c4e1e026e7245e413faad5c06c0f4533d0"},"taxa":[{"id":"CWE-611","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":"d61452fd84b65d7198e4a236bceff48c6e095d1b94b13782f0821946cddbb81f"},"taxa":[{"id":"CWE-611","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":"c832a577c271c7ad0b4131e166e5df0677a27b1492722cfe95567bc57d679e72"},"taxa":[{"id":"CWE-327","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":"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":"122643c36070d2df17bcf5892b2c4d10be0c34b3d4774589c2bcf0a376fec00b"},"taxa":[{"id":"CWE-327","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":"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":"03ff95daca4df13fc2f89a67aa630c3cc6952a3cb19eb86262daa1877d969ea4"},"taxa":[{"id":"CWE-327","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":"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":"2749f28c9abfad30111f1fc2471ab55673ac3046e74c0999e1f7c984884cb8a3"},"taxa":[{"id":"CWE-327","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":"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":"377d36dd845850f86d1356498ee5991634bda7fbfd8c232c5f111dac0ad17ff1"},"taxa":[{"id":"CWE-611","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":"df7458e79fa313e3cb8a9151eaab2c0c77bb408fe5dd19717b7f12663aad4c84"},"taxa":[{"id":"CWE-611","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":"0011d64d00e052c4c3e5663e23f93e6baefccfb28226186597288e13eded94ea"},"taxa":[{"id":"CWE-611","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":"d1398d58c7ca39ee951366f99353d67c39ee7106ec40b38a9d7af84035920f39"},"taxa":[{"id":"CWE-611","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":"6c853755a61a92aefa003b9e4dc69fa5cad5489f8ee0cc45f55809f62c10caaa"},"taxa":[{"id":"CWE-611","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":"fa6677f08bd1e9a5532969fe09e0e1ce142232746366209dae9014d3ecaa9c95"},"taxa":[{"id":"CWE-611","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":"4be209ab55b278fb0f74d9549f3b03b60693a126b6376089ead2e649ce75f8da"},"taxa":[{"id":"CWE-611","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":"e54ba85f5cf89d274a1334c2e7b4be3325083d406b4611946cc0c21e19cef08a"},"taxa":[{"id":"CWE-611","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":"33386cc128cb963257879ee30e9f2e17c55cee4cc66e592af27c8d8eff585cb0"},"taxa":[{"id":"CWE-327","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":"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":"5cd9cc7237d8a1b220c716f70429e3cb975534d9c7cc43e1d2cf75c97a955ddc"},"taxa":[{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"ddc8d43d5faf97aba37bc8a01639659d3901f785f522dad851d55ccb2fdf35b8"},"taxa":[{"id":"CWE-327","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":"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":"090034e718190b4cdbe504aabf259a669635dd0991332a7cf186c16eb15ae760"},"taxa":[{"id":"CWE-327","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":"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":"526f7a530d501418b44995e234763ebe9a37a0be2593c294bd954eb7c530260f"},"taxa":[{"id":"CWE-327","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":"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":"2d6fca886e038f2b0049c72d54bb29d9bae3c54db87d200db3a1964a10d1fb56"},"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":"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":"bbed78590181bae6968ffac14083ddd00b3d5f3cfb5455ce782e6efdbb932aaf"},"properties":{"dependency":{"package":"dompurify","version":"3.4.11","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"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":"3d49eb05e6539a924c4d16423528db47785694155a4f62872a38f13451dd520a"},"properties":{"dependency":{"package":"nltk","version":"3.9.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-2078","PYSEC-2026-3581","PYSEC-2026-3582","PYSEC-2026-3583","PYSEC-2026-3584","PYSEC-2026-3722","PYSEC-2026-3723","PYSEC-2026-3728","PYSEC-2026-3729","PYSEC-2026-3730","PYSEC-2026-3731","PYSEC-2026-3733","PYSEC-2026-3734","PYSEC-2026-3735","PYSEC-2026-3736","PYSEC-2026-3737","PYSEC-2026-3738","PYSEC-2026-3739","PYSEC-2026-3740","PYSEC-2026-3741","PYSEC-2026-3748","PYSEC-2026-3749","PYSEC-2026-3750","PYSEC-2026-3751","PYSEC-2026-3752","PYSEC-2026-3790","PYSEC-2026-3868","PYSEC-2026-3869","PYSEC-2026-3870","PYSEC-2026-3871","PYSEC-2026-3954","PYSEC-2026-3955","PYSEC-2026-4318","PYSEC-2026-597"],"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":"09eef8b6625b25738f8700358b71be29a093fcfe59905926f2178ad3d178132f"},"properties":{"dependency":{"package":"pillow","version":"12.2.0","advisory":"[GHSA redacted]","aliases":["BIT-pillow-2026-112390","BIT-pillow-2026-112391","BIT-pillow-2026-112392","BIT-pillow-2026-112393","BIT-pillow-2026-112394","BIT-pillow-2026-112395","BIT-pillow-2026-112396","BIT-pillow-2026-112397","BIT-pillow-2026-112398","BIT-pillow-2026-112399","BIT-pillow-2026-112400","BIT-pillow-2026-112401","BIT-pillow-2026-112402","BIT-pillow-2026-112403","BIT-pillow-2026-112404","BIT-pillow-2026-112405","BIT-pillow-2026-112406","BIT-pillow-2026-112891","BIT-pillow-2026-112892","BIT-pillow-2026-112893","BIT-pillow-2026-112894","BIT-pillow-2026-112895","BIT-pillow-2026-112896","BIT-pillow-2026-112897","BIT-pillow-2026-112898","BIT-pillow-2026-112900","BIT-pillow-2026-112901","BIT-pillow-2026-114501","BIT-pillow-2026-54058","BIT-pillow-2026-54059","BIT-pillow-2026-54060","BIT-pillow-2026-55379","BIT-pillow-2026-55380","BIT-pillow-2026-55798","BIT-pillow-2026-59197","BIT-pillow-2026-59198","BIT-pillow-2026-59199","BIT-pillow-2026-59200","BIT-pillow-2026-59203","BIT-pillow-2026-59204","BIT-pillow-2026-59205","BIT-pillow-2026-96636","BIT-pillow-2026-96637","BIT-pillow-2026-96638","BIT-pillow-2026-96639","BIT-pillow-2026-96640","BIT-pillow-2026-96641","BIT-pillow-2026-96642","BIT-pillow-2026-96643","BIT-pillow-2026-96644","BIT-pillow-2026-96778","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-2253","PYSEC-2026-2254","PYSEC-2026-2255","PYSEC-2026-2256","PYSEC-2026-2257","PYSEC-2026-3451","PYSEC-2026-3452","PYSEC-2026-3453","PYSEC-2026-3454","PYSEC-2026-3493","PYSEC-2026-3494","PYSEC-2026-3495","PYSEC-2026-3496","PYSEC-2026-4326","PYSEC-2026-4327","PYSEC-2026-4328","PYSEC-2026-4329","PYSEC-2026-4330","PYSEC-2026-4331","PYSEC-2026-4332","PYSEC-2026-4333","PYSEC-2026-4334","PYSEC-2026-4335","PYSEC-2026-4336","PYSEC-2026-4337","PYSEC-2026-4338","PYSEC-2026-4339","PYSEC-2026-4340","PYSEC-2026-4341","PYSEC-2026-4342","PYSEC-2026-4343","PYSEC-2026-4363"],"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":"a907641aafbc55094837a190cf0a31323beb5dfd10984933dde9e04f21768acb"},"properties":{"dependency":{"package":"dompurify","version":"3.4.11","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"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":"e0e80bc4132dae86e306922cda39e1c082861ad43ffc253de82cba98d94c8e7b"},"properties":{"dependency":{"package":"minimatch","version":"3.1.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"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":"7a4be4968f00ad28f63c9fd56e116b34291cb69b81c766998d7d14d34bd274a4"},"properties":{"dependency":{"package":"brace-expansion","version":"1.1.12","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"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":"3dd879871dc91e1739a98c94a79f891df5f7f93888ef900af8723e04457b0b0d"},"properties":{"dependency":{"package":"brace-expansion","version":"5.0.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"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":"38f258ddde757874cb4acc8047899dc281faf7e2684b17040b5194b7116e25be"},"properties":{"dependency":{"package":"brace-expansion","version":"5.0.9","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"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":"47bb3c7c79eca187163f718748836ef2a921afcfed43697881f85457ffe69ea9"},"properties":{"dependency":{"package":"browserslist","version":"4.28.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"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":"a58219f99cc29604a3d9d22aa55c9e89ee898f653ecb2a8dd9e3513d238230e9"},"properties":{"dependency":{"package":"picomatch","version":"4.0.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"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":"1bf93667d9eb3b48c7509a6a9db21a127baf1cba0ded569d9f086248561c64d9"},"properties":{"dependency":{"package":"zod","version":"4.1.13","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"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":"da29fe0ee118031aa2ec9a3fead225c2abebc2c1245bbd9c7d9bf3be2e17d13b"},"properties":{"dependency":{"package":"lodash","version":"4.17.21","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"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":"fc199662d12a5eae811604c159d07f6014db98f26d076046d72b2d65e0e97584"},"properties":{"dependency":{"package":"lodash-es","version":"4.17.23","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"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":"b7b8cbd050c0738283c4114710e652d77c1ced3e2b1d2ad5c084d094d7ed92a1"},"properties":{"dependency":{"package":"banks","version":"2.4.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-3810","PYSEC-2026-4201","PYSEC-2026-4202"],"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":"4d55eb5e10fbe2eebac3cecc6f1c6c6c29fa6ca98a738924e23ab582305d2b6f"},"properties":{"dependency":{"package":"dnspython","version":"2.8.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"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":"1cd5edb55bbbb627ab2f3a485a1a65f2b7d9e94a298b940d9d0c04d4a4bc987f"},"properties":{"dependency":{"package":"filelock","version":"3.29.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"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":"10e04b22e35243729294f2c63d26777ab5e2f09392f1c7f89a239026644367c0"},"properties":{"dependency":{"package":"fsspec","version":"2026.2.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-4217"],"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":"22149c76611d07c1616455264b68ec214a61644c1af2e97586469a7ea05d1bdc"},"properties":{"dependency":{"package":"langgraph-sdk","version":"0.3.14","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2026-2194","PYSEC-2026-2575","PYSEC-2026-4240"],"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":"f268873f65bdaa9fa0eb6931555627e85a8ff8143ca35ae482b4a7d5ea5ae3e9"},"properties":{"dependency":{"package":"urllib3","version":"2.7.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-4175","PYSEC-2026-4176","PYSEC-2026-4177"],"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":"cebe9ad6cd46790024b517d6c5049099ee23b44f50c9cae011efb57f253284fa"},"properties":{"dependency":{"package":"virtualenv","version":"21.3.2","advisory":"[GHSA redacted]","aliases":["BIT-virtualenv-2026-102925","BIT-virtualenv-2026-102930","BIT-virtualenv-2026-102937","BIT-virtualenv-2026-102938","BIT-virtualenv-2026-113714","BIT-virtualenv-2026-113715","BIT-virtualenv-2026-113716","BIT-virtualenv-2026-113717","BIT-virtualenv-2026-113718","BIT-virtualenv-2026-113719","BIT-virtualenv-2026-113720","BIT-virtualenv-2026-113721","BIT-virtualenv-2026-113722","BIT-virtualenv-2026-113723","BIT-virtualenv-2026-113724","BIT-virtualenv-2026-113725","BIT-virtualenv-2026-113726","BIT-virtualenv-2026-113732","BIT-virtualenv-2026-113776","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-4011","PYSEC-2026-4012","PYSEC-2026-4013","PYSEC-2026-4014"],"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":"26bb29034918d44f42409d3085d6021c7d6d90c23cb59462fd8a9f11dc8775c1"},"properties":{"dependency":{"package":"lodash","version":"4.17.21","advisory":"[CVE redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}},"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":"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":"eaaa712de1a8c659b5fce9ded7e8944838905c8b1e149323423693baf10ad491"},"properties":{"dependency":{"package":"lodash-es","version":"4.17.23","advisory":"[CVE redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}},"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":"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":"11bd2afa63089975c16198ec1eb8492e384660f6be77405bc6bf279af090416d"},"properties":{"dependency":{"package":"yaml","version":"1.10.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"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":"62dfe901f37ddada7ef28c107f61c00eb033e090c3a44edf3d2f26089c4064fd"},"properties":{"dependency":{"package":"minimatch","version":"10.2.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"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":"7987e5d8eaf1c414189e7cbad75166fb7b3e87a89562d90e2545810696eb6193"},"properties":{"dependency":{"package":"minimatch","version":"10.2.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"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":"dbf1db9c24667f5a57ef6073f50cbf6c54cdfef4df09184bc0c748cd5e11cfde"},"properties":{"dependency":{"package":"postcss-selector-parser","version":"6.0.10","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"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":"269b96b279b9bd67c9b317c594f6ebd871a8143c68ca798d0c228bd5798ce506"},"properties":{"dependency":{"package":"uuid","version":"11.1.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]"],"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":"0938c86259b3d2b0fdef312fa96f13b0722064b5a16fcf3830f324c3c2d8b2b2"},"properties":{"dependency":{"package":"baseline-browser-mapping","version":"2.9.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"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":"192d71e31f5b218b409fbc8278ed8879311fdc1a2ee38721d0d47695d04f91f5"},"properties":{"dependency":{"package":"diskcache","version":"5.6.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-2447"],"reachability":{"kind":"unknown"}}}},{"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":"a4c1c6cdc449165258340d785bf0717bb47ce7c0b28550828b8de1d6598a8e79"},"properties":{"dependency":{"package":"h2","version":"4.3.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3628"],"reachability":{"kind":"unknown"}}}},{"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":"e06703139f2ab9eacfcff8ea99afe1adbf1b8fb60adbffe77920d0af56c6882c"},"properties":{"dependency":{"package":"hpack","version":"4.1.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-4053"],"reachability":{"kind":"unknown"}}}},{"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":"5956987cd89eec5d6ecca6b9ef05c4d69b3daa86047083e94410ea3234b5513b"},"properties":{"dependency":{"package":"langchain","version":"1.3.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-2192","PYSEC-2026-2556"],"reachability":{"kind":"unknown"}}}},{"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":"4bc35738da21a20ecf22a332eac543345f686a5b4e603e3dcca84cdca742a2e5"},"properties":{"dependency":{"package":"langgraph-checkpoint","version":"4.1.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-2573"],"reachability":{"kind":"unknown"}}}},{"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":"d2f69292b7500f63f60d9273f140d50be816fe0dca2dfb24841c4450b5194153"},"properties":{"dependency":{"package":"multidict","version":"6.7.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-4244"],"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":"4422028c03a32871e5233403e0308e8f6b20d31e756da7763ac9c84f419ace4d"},"properties":{"dependency":{"package":"pydantic-settings","version":"2.14.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"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":"25487543c8545b7f53cd48e73bd2123a2289507e5567999e19895cc070b5135e"},"properties":{"dependency":{"package":"ragas","version":"0.4.3","advisory":"PYSEC-2026-3046","aliases":["[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"production","file":"lightrag/evaluation/eval_rag_quality.py","line":88}}}},{"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":"2ed24f263000e02761147a0e237ff674345cd1b31c011325fe82df9abcd33198"},"properties":{"dependency":{"package":"tinytag","version":"2.2.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"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":"14b1e4329f8074dd65d5fda79bb97960c4eacfd35075b8a7c528255ab3964de8"},"properties":{"dependency":{"package":"yaml","version":"1.10.2","advisory":"[CVE redacted]","reachability":{"kind":"not-imported"}}},"taxa":[{"id":"CWE-674","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"0a06f4d578486120065ac14c0fc4095737cd1409c11b5a7267ef2741a099b1f6"},"properties":{"dependency":{"package":"uuid","version":"11.1.0","advisory":"[CVE redacted]","reachability":{"kind":"not-imported"}}},"taxa":[{"id":"CWE-787","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-823","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"55aecc8c0216ada0876e95db59757117e5a31970d72a675515c2cdc4e6270657"},"properties":{"dependency":{"package":"@babel/core","version":"7.28.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"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":"971c346725bb3b67b577e6745556e724eca913de21d488e70c2c0d0615d7dcec"},"properties":{"dependency":{"package":"katex","version":"0.16.47","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D31","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":"be9c57e2fb625c43c271d051f76b97f27b6976f4ec358ef8fea1d9cb5205f460"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","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":"8083d17459f596a56eb0c2349d2852710d51417c42368e0a6fa7f6de88813660"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","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":"1f1df1df6724c7256e2c427874b161172bc2c97e629631fc70887f60b99eecac"}},{"ruleId":"D31","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":"d8596ff9297ae7e6517d1bac7fb5e2047d435d3916e2c8a755397ffbcb5d9c1c"},"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":"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":"68c5e3cb502756b24a689ad62f356130ce4d3bf67da1fb688cf321a55352bd4a"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-653","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","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":"d0830670313a6116fc0f3b036ce7107055f0ee47f8ba89a288259065789fd98a"},"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":"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":"ddb7625a1a581b3104f24ff52da1b798fd2aa4157bd57005079b4a4f2c6f581a"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-653","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06: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":"10c9606fe77e2701600237f493b5b4568fa1c6cc51e5474da909d09c60f350a8"},"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":"9ff1ee9dd5615e2d512c1b5a7eb9a731208830cdc6ec1c07d8913d2a5c081e3c"}},{"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":"396b4dc4479d1c81ae0b077d4b26c8d7e7730bdc02f631a82b57b188cbe18ae7"},"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":"6100b9505dd9c9a61d49808bd9ab529d9f7920446c54f90ad20d3011877151fa"},"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":"9b15183b821b0d8f2a8a9a4a501e7e6d43815f083fe597ec3f99fb39c4628148"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"0670d46b2174e02e22e0b6af40f3c93783ea21f4778e4510c2c1d6f07f2205c5"},"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":"03091d31f6bb99f4ad8d587f025c3af66728c65b2208b7d16c35f55b5e7d51d2"}},{"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":"3f5c296c142b4c687b075e12f0eec70ea10c4b58e9194267c7f66d01d9493efc"},"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":"506e7c3df9161573e9e449a26eda5b75f8458b0f7e207c23b064965dc4c31f32"},"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":"cfed6fb9f4d7e5a666c639c8ae3d503716975c0fe8c40fd5301bfd729db89f57"},"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":"0bab75361aa02179653348ad770715c4fdee5b5010924a40a5cd2d19ae71410c"}},{"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":"afe52652c09034d25dd0f9cb63b5070a1ea772a0c155e9d6d3cf5f87c91d47f0"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"60b136e8fd3c63b7fbaf401a2a78585c3003fe8de1d68b99f0caa9582b73a58a"},"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":"629c344cdd3bade6fa7ff57930b9929934b1d38fe8479f5f0a029e250cff92e7"},"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":"0107fd55dcba51215eb217dda53dd2b9254aee99f6881b52963c14cbc3378a91"},"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":"7fb835a5a0b92cb0f98e5fe9f36af8d5c771e318670725fab6ea58ac914b1d8d"},"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":"733f449b8798dba56832b043d201fdb03b4f14262aae9cc0b4aed3c415113b73"},"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":"596c8dad6604053218b5730b8e75cd9ca4e9e769f30f90a72ee03cf0092e05e4"},"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":"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":"1f51a163f26d94ce6b6f473117dde579d091c8cbf9e59810475c94d9fc921120"}},{"ruleId":"D31","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":"4e402632e36c9a95e56ef62957cdf6449c85bb579d8c4ae8f83022c763d55ecc"}},{"ruleId":"D31","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":"ede6d3895614af1779b051bc1e2eb607ff907e3e90c03eda94f6d5bb9f4a9811"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 7 of 237 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 237 of the 342 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: lightrag/evaluation/offline_retrieval_check.py, lightrag_webui/src/components/ui/Select.tsx, lightrag_webui/src/components/ui/Command.tsx, lightrag_webui/src/components/ui/AlertDialog.tsx, lightrag_webui/src/components/ui/Dialog.tsx, lightrag_webui/src/components/ui/Table.tsx, lightrag_webui/src/components/ui/Button.tsx. Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/evaluation/offline_retrieval_check.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a71e1759b020beb820684fb90c5a384e263eb8337df89015edf4df207dd6ca1"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/components/ui/Select.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0be5310159efbc69ed628b8138035480931d9c59f21ee3c080ed1417e0195047"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/components/ui/Command.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3b6f545cb3b62449ecb70b199fdaf6d6a2a9beae78d9926764562cb3d8dcc77"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/components/ui/AlertDialog.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3a49e8a76cba6a09459d62c77694f4f630dba8f324c7a5d276b8d685d89e036"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/components/ui/Dialog.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"013f34fa61a524b70af16da15b534733fc72ad360d555bd3c86f4eea5497e414"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/components/ui/Table.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f63ccf275489f9f908beef2e94c99caf741c447383d5c50c426c41be47662b22"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/components/ui/Button.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9eaf1acb4dda15f28e0e60c70fa1f826f8b5c6c16c1bcb00e7e81314f06db95"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: AppSettings.tsx \u2194 i18n.ts: \u0060lightrag_webui/src/components/AppSettings.tsx\u0060 and \u0060lightrag_webui/src/i18n.ts\u0060 change together 58% of the time (7 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u006096e74c44\u0060 feat(webui): add Indonesian localization; \u00603733f42e\u0060 fix(webui): five workspace interaction-contract fixes; \u00601bd3465d\u0060 Add Vietnamese language support and update language options \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/components/AppSettings.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9031d51f2b63dba8b494707ce51a74c553c0a2c6e6b77d9b16b94c1b0cefff3f"}},{"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":"56f8a6aa1c890daae2befbd4122d94d1d8f5c31a6c51785cc6e5b3ea141d097a"},"taxa":[{"id":"CICD-SEC-4","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":"abed4fea7817393aad5108e3159d239a4431d5aee332fd59f8439901037963c2"},"taxa":[{"id":"CICD-SEC-4","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":"d9dc9533a72753c852a75208506ab6d1d67eb8a94dd332039440dd3ee72cd98b"},"taxa":[{"id":"CICD-SEC-4","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":"888f2894269b90d8b82bb51df0469ae1a3976f0f954ee2658c1466835c7b996b"},"taxa":[{"id":"CICD-SEC-4","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":"4fc50f47bc5977d6571e15b6fb5974ce0c6d79e24149d8f6bb254276a6fd8d9e"},"taxa":[{"id":"CICD-SEC-4","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":"bc803af57ba85c7052c3f1ee932b3e9f15326a1d455b1f5e73e5ea053697f85c"},"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":"4f1e7684f8281bd255ddef97105c7055c2ebae06964c8745716b83e174debe83"}},{"ruleId":"D40","level":"note","message":{"text":"No network policy: No Kubernetes NetworkPolicy (or Cilium policy) found. Without one, every pod can talk to every other pod and reach out to the internet by default. Add a default-deny policy and open only the flows you need."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"295828650a2aaa1b03ae9b32ae6843a0c38011e5a70b1926442c4fa7187de5f0"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label htmlFor=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/components/AppSettings.tsx"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c02f127824a033c724e64e415fa56de0941ac8c7a19091653d08c0be3550fb9"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSelect\u003E field component without a label: This UI-library field component has no label / aria-label / aria-labelledby / id, and nothing written inside it here carries one either (a name prop is the form-submission key, not a label; an id alone, wherever it is set, names nothing until a label points at it). The text inside it does not stand in for one: these compound APIs render a trigger with role=\u0022combobox\u0022 (or role=\u0022button\u0022), and those roles take their name from the AUTHOR, not from their content \u2014 so the words on screen never reach the accessibility tree as a name. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/components/AppSettings.tsx"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"e71a1cfffeefd945fd7e0455f9a1cb0688835c6e4e2fb35e0052b83b8d01d8ae"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label htmlFor=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/components/AppSettings.tsx"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6f08c4e8a99f4536bfa29160c6262ff26756dd550b8f72efdfed4ac62da6a96"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSelect\u003E field component without a label: This UI-library field component has no label / aria-label / aria-labelledby / id, and nothing written inside it here carries one either (a name prop is the form-submission key, not a label; an id alone, wherever it is set, names nothing until a label points at it). The text inside it does not stand in for one: these compound APIs render a trigger with role=\u0022combobox\u0022 (or role=\u0022button\u0022), and those roles take their name from the AUTHOR, not from their content \u2014 so the words on screen never reach the accessibility tree as a name. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/components/AppSettings.tsx"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"5702b8fce65010c9e3aecf08df0905a302d3fc32212e80c125d91c9232c41219"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Ctextarea\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel htmlFor\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/components/graph/PropertyEditDialog.tsx"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"fab2ea79a39184f89e22de0c26103b0880981fd6f5c9bf084bc1645d74307da2"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Ctextarea\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel htmlFor\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/components/graph/PropertyEditDialog.tsx"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"68d0fdd2ea11d7c3e912ab0b86d3d5e6532ecd59f319a551db9e96ee0ff76536"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label htmlFor=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/components/graph/Settings.tsx"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8b7cc412bb619c39835fd5ab1fd86e709d6e2dc152a9e50ce4b9cb4e4ceede4"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSelect\u003E field component without a label: This UI-library field component has no label / aria-label / aria-labelledby / id, and nothing written inside it here carries one either (a name prop is the form-submission key, not a label; an id alone, wherever it is set, names nothing until a label points at it). The text inside it does not stand in for one: these compound APIs render a trigger with role=\u0022combobox\u0022 (or role=\u0022button\u0022), and those roles take their name from the AUTHOR, not from their content \u2014 so the words on screen never reach the accessibility tree as a name. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/components/ui/PaginationControls.tsx"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"abf4e56630dbece9523eb37fefa3342e1d38b2483a9e96393380dec27f147164"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSelect\u003E field component without a label: This UI-library field component has no label / aria-label / aria-labelledby / id, and nothing written inside it here carries one either (a name prop is the form-submission key, not a label; an id alone, wherever it is set, names nothing until a label points at it). The text inside it does not stand in for one: these compound APIs render a trigger with role=\u0022combobox\u0022 (or role=\u0022button\u0022), and those roles take their name from the AUTHOR, not from their content \u2014 so the words on screen never reach the accessibility tree as a name. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/components/ui/PaginationControls.tsx"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"65b166adac390976cda89e7ad78365898bef45abf6dabfdd0529602fae8ca02f"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label htmlFor=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/components/ui/Text.tsx"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcd3cfd25ab93ea13ee981abc1e497b0fdec18790fc1ad708317fc97f35de8d5"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label htmlFor=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/components/ui/Text.tsx"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"5436d5a96806cc031aefdbfcb67fd259cb8e6b0b52824dea35ab66e0fb9a9c28"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/components/ui/UserPromptInputWithHistory.tsx"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"19e3a9548daf36b1d96dea5ce7c0c670015a6268218167df997c210c21ff9e80"}},{"ruleId":"AC2","level":"error","message":{"text":"Link with no accessible name: A link with no text, aria-label or labelled child (e.g. an icon-only link) has no accessible name, so assistive tech can\u0027t say where it goes. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/features/SiteHeader.tsx"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"b59601e5be8c21c7da165ccbd6642c453a47032f03342bf0db377657e57e538c"}},{"ruleId":"AC2","level":"error","message":{"text":"Link with no accessible name: A link with no text, aria-label or labelled child (e.g. an icon-only link) has no accessible name, so assistive tech can\u0027t say where it goes. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/features/SiteHeader.tsx"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8cf8e5179a824f1524c459983519c1381021e4736fdb21b1a931b0197b375d7"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabIndex={0} \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/components/retrieval/ChatMessage.tsx"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"301bfc7a25f29309b7c9fd6b961aef46dfbff48ed66ad58cd7ae3de302143cb0"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabIndex={0} \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/components/status/StatusIndicator.tsx"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3d2c0bd13df49713e6c6e555f0f845d759ebc6f93b3d9dea00253cddacbfc4a"}},{"ruleId":"AC4","level":"error","message":{"text":"Hover-only interaction on \u003Cdiv\u003E: This \u003Cdiv\u003E binds mouse-enter and mouse-leave and nothing else \u2014 no click, no key handler, no focus handler, and no tabIndex={0}, so it cannot even take focus. A keyboard user cannot hover, so whatever the pair reveals or highlights is reachable with a mouse only. Bind the same state to focus/blur as well, and add tabIndex={0}=\u00220\u0022 so the element can receive that focus."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/components/ui/UserPromptInputWithHistory.tsx"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"1904aa6b27222671350966c5431c53f8b5bc6e2c58fc53551c536cde3945da5a"}},{"ruleId":"AX7","level":"warning","message":{"text":"Cross-slice coupling: workspace \u2192 retrieval: \u0060WorkspaceQueryView\u0060 (slice \u0027workspace\u0027) depends on \u0060useQuerySession\u0060 from slice \u0027retrieval\u0027."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/features/workspace/WorkspaceQueryView.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a1b7d625c0cf67abff7b793feb820d6a127f1f8812c76ab07a47a92f673b67"}},{"ruleId":"AX7","level":"warning","message":{"text":"Cross-slice coupling: workspace \u2192 retrieval: \u0060WorkspaceQueryView\u0060 (slice \u0027workspace\u0027) depends on \u0060prepareQueryInput\u0060 from slice \u0027retrieval\u0027."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/features/workspace/WorkspaceQueryView.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"70e096664ac6f9b330237dcc00009af9481416b631289e3653d766a806d92698"}},{"ruleId":"AX7","level":"warning","message":{"text":"Cross-slice coupling: workspace \u2192 retrieval: \u0060WorkspaceQueryView\u0060 (slice \u0027workspace\u0027) depends on \u0060SUPPORTED_QUERY_MODES\u0060 from slice \u0027retrieval\u0027."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/features/workspace/WorkspaceQueryView.tsx"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e97bb88dd8becc5de3ad868176f61bdbf45b7e34bd88afce2d5cb50017fe2bf"}},{"ruleId":"AX7","level":"warning","message":{"text":"Cross-slice coupling: workspace \u2192 retrieval: \u0060WorkspaceQueryView\u0060 (slice \u0027workspace\u0027) depends on \u0060MessageList\u0060 from slice \u0027retrieval\u0027."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/features/workspace/WorkspaceQueryView.tsx"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"59d9fc923d72839a70f4ca04cd6c0d0e508edadccf1afae395abb3bf1a55a513"}},{"ruleId":"AX7","level":"warning","message":{"text":"Cross-slice coupling: workspace \u2192 retrieval: \u0060WorkspaceQueryView\u0060 (slice \u0027workspace\u0027) depends on \u0060QueryComposer\u0060 from slice \u0027retrieval\u0027."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/features/workspace/WorkspaceQueryView.tsx"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"03fe708443ca812de5fc5fd391c208f611af6f3f33ffc189254a6afd692b6707"}},{"ruleId":"C2","level":"note","message":{"text":"No named authorization policies: Authorization IS enforced here (by route guards, auth middleware or checks that refuse a caller) \u2014 this is NOT a claim that endpoints are unprotected. What\u0027s missing is a NAMED rule set: who may do what is encoded inline where it is checked, so the rules can\u0027t be listed, reviewed or tested apart from the code that applies them. Recommendation, not a defect."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b048fdf3fa524ac68c7874fdfcdb4c49d5f010013f2cb22a0bd84cb12ceb951f"}},{"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":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add bandit, \u0060semgrep --config=p/python\u0060, or CodeQL\u0027s python pack as a CI step. What was searched, so you can tell an absence from a miss: the 12 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/copilot-setup-steps.yml"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060_send_request\u0060 is async and calls requests.post \u2014 a blocking call inside async code stalls the event loop \u2014 every other task on it waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/unofficial-sample/lightrag_cloudflare_demo.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c6479c6b4b68a1e80a4b97b1f41620c4fbbff7f884255fe421934a79f56f8e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (111 matched lines \u00D7 2 locations): lightrag_webui/src/components/documents/ClearDocumentsDialog.tsx:22 \u00B7 lightrag_webui/src/components/documents/DeleteDocumentsDialog.tsx:21 \u2014 the two spans are one implementation copied and then locally edited \u2014 607 tokens are still identical, in the same order in both files, 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":"lightrag_webui/src/components/documents/ClearDocumentsDialog.tsx"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f59bc9130830dd1bd5b3bf8ea3ab8fcaa935786265b134e104e757028187247"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (70 matched lines \u00D7 2 locations): lightrag_webui/src/components/ui/AsyncSearch.tsx:132 \u00B7 lightrag_webui/src/components/ui/AsyncSelect.tsx:103 \u2014 the two spans are one implementation copied and then locally edited \u2014 336 tokens are still identical, in the same order in both files, 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":"lightrag_webui/src/components/ui/AsyncSearch.tsx"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"8409dc070b0c3ff1bb2d2661b147c2bf59f8f2cfe138caaf8373ac6e153f98b7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (60 matched lines \u00D7 2 locations): lightrag_webui/src/components/ui/AsyncSearch.tsx:15 \u00B7 lightrag_webui/src/components/ui/AsyncSelect.tsx:17 \u2014 the two spans are one implementation copied and then locally edited \u2014 318 tokens are still identical, in the same order in both files, 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":"lightrag_webui/src/components/ui/AsyncSearch.tsx"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"33ffc4370dcb490e15adef620f2c8892ee62f1cd358ec92d02b842af555169fc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (43 matched lines \u00D7 2 locations): lightrag_webui/src/components/graph/PropertiesView.tsx:272 \u00B7 lightrag_webui/src/components/graph/PropertiesView.tsx:369 \u2014 the two spans are one implementation copied and then locally edited \u2014 260 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":"lightrag_webui/src/components/graph/PropertiesView.tsx"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"4282320c7fa4b2d288db27f40b5be36bd47de094df5761d1480e25fad8b6cc47"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (39 matched lines \u00D7 2 locations): lightrag_webui/src/AppRouter.tsx:20 \u00B7 lightrag_webui/src/WorkspaceAppRouter.tsx:32 \u2014 the two spans are one implementation copied and then locally edited \u2014 174 tokens are still identical, in the same order in both files, 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":"lightrag_webui/src/AppRouter.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"511ec5f4472512d80defd8793ded7feb5106130535131510d0930c586f685945"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (39 matched lines \u00D7 2 locations): lightrag_webui/src/components/ui/PaginationControls.tsx:140 \u00B7 lightrag_webui/src/components/ui/PaginationControls.tsx:219 \u2014 the two spans are one implementation copied and then locally edited \u2014 200 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":"lightrag_webui/src/components/ui/PaginationControls.tsx"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"f93d3f3b95486b5ad408089208ea0ef13667ebf1cb27f1703df1942d33cac951"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 5 locations): lightrag_webui/src/components/retrieval/QuerySettings.tsx:246 \u00B7 lightrag_webui/src/components/retrieval/QuerySettings.tsx:286 \u00B7 lightrag_webui/src/components/retrieval/QuerySettings.tsx:326 \u00B7 lightrag_webui/src/components/retrieval/QuerySettings.tsx:366 \u00B7 \u002B1 more site(s) not listed \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":"lightrag_webui/src/components/retrieval/QuerySettings.tsx"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"41b8d6515ea8a4e441deac52d3c1a8ecdfb32f729d06acfc6eb7cc376e293132"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2 locations): lightrag_webui/src/components/retrieval/QuerySettings.tsx:470 \u00B7 lightrag_webui/src/components/retrieval/QuerySettings.tsx:496 \u2014 both copies are in the same file, so extract the block 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":"lightrag_webui/src/components/retrieval/QuerySettings.tsx"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"9612e85b27b7dca8ab9a21e041ff022c91ac0efef67d8ade9b45e2130d629d93"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): lightrag_webui/src/features/RetrievalView.tsx:37 \u00B7 lightrag_webui/src/features/workspace/WorkspaceQueryView.tsx:46 \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":"lightrag_webui/src/features/RetrievalView.tsx"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"047f1eb9497625fd01c977e6b2875864a154565fe67cbddea8bc965846de5eb8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (19 matched lines \u00D7 2 locations): lightrag_webui/src/stores/state.ts:384 \u00B7 lightrag_webui/src/stores/state.ts:448 \u2014 the two spans are one implementation copied and then locally edited \u2014 94 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":"lightrag_webui/src/stores/state.ts"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"69a69c79e1e070555b2c6019adc358a183c1d977fd6306d63e54bf2bd1db44fb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): lightrag_webui/src/components/retrieval/ChatMessage.tsx:300 \u00B7 lightrag_webui/src/components/retrieval/ChatMessage.tsx:410 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/components/retrieval/ChatMessage.tsx"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc5edc4651239d43fa5451a65953b695dc63b6fc2972c91146b73144f3278517"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (17 matched lines \u00D7 2 locations): lightrag_webui/src/features/workspace/WorkspaceEmptyState.tsx:19 \u00B7 lightrag_webui/src/features/workspace/WorkspaceWelcome.tsx:130 \u2014 the two spans are one implementation copied and then locally edited \u2014 65 tokens are still identical, in the same order in both files, 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":"lightrag_webui/src/features/workspace/WorkspaceEmptyState.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"e89d953b2b303a00decf2116e0584487a0892fafae30812f6b30f7ce89398b30"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): lightrag_webui/src/components/graph/GraphLabels.tsx:93 \u00B7 lightrag_webui/src/components/graph/GraphLabels.tsx: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":"lightrag_webui/src/components/graph/GraphLabels.tsx"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"a23befec9c6cb487f9303aa30a07e94cc350daac27d3953c2144e2838b5a972f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5 locations): lightrag_webui/src/components/retrieval/QuerySettings.tsx:183 \u00B7 lightrag_webui/src/components/retrieval/QuerySettings.tsx:275 \u00B7 lightrag_webui/src/components/retrieval/QuerySettings.tsx:315 \u00B7 lightrag_webui/src/components/retrieval/QuerySettings.tsx:355 \u00B7 \u002B1 more site(s) not listed \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":"lightrag_webui/src/components/retrieval/QuerySettings.tsx"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"af919515a782655ec3ff81aeef33367b1e2fe92d6913ca2f321ad715c7c8c2dc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): lightrag_webui/src/components/documents/DeleteDocumentsDialog.tsx:145 \u00B7 lightrag_webui/src/components/documents/DeleteDocumentsDialog.tsx:159 \u2014 both copies are in the same file, so extract the block 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":"lightrag_webui/src/components/documents/DeleteDocumentsDialog.tsx"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"049c0383b82c8655ded70a6e2310b88da80b21c4f8448e9ca19240943216bb5f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): lightrag_webui/src/components/retrieval/QuerySettings.tsx:449 \u00B7 lightrag_webui/src/components/retrieval/QuerySettings.tsx:522 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/components/retrieval/QuerySettings.tsx"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"197a3d5346059aed083297b399a3336ef3eea7fd6dc73742bb6632c5596551f2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): lightrag_webui/src/components/ui/Select.tsx:33 \u00B7 lightrag_webui/src/components/ui/Select.tsx:47 \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":"lightrag_webui/src/components/ui/Select.tsx"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"9742a24549f38ad2bf528db178d63b76193679cc7aaabfff76b6208db59747a0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): lightrag_webui/src/features/DocumentManager.tsx:1735 \u00B7 lightrag_webui/src/features/DocumentManager.tsx:1748 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/features/DocumentManager.tsx"},"region":{"startLine":1735}}}],"partialFingerprints":{"codehealthFindingId/v1":"5faef8a2ab961d01bb7e129dcf5a85143287a0ef4c9968b88afca776988b16da"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (13 matched lines \u00D7 2 locations): lightrag_webui/src/features/retrieval/MessageList.tsx:314 \u00B7 lightrag_webui/src/features/retrieval/MessageList.tsx:342 \u2014 the two spans are one implementation copied and then locally edited \u2014 58 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":"lightrag_webui/src/features/retrieval/MessageList.tsx"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"b894e9740ced6fe19df1b678de93ce4ecd2da57271b5af0eeee61b4089687324"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 12 locations): lightrag_webui/src/components/retrieval/QuerySettings.tsx:133 \u00B7 lightrag_webui/src/components/retrieval/QuerySettings.tsx:160 \u00B7 lightrag_webui/src/components/retrieval/QuerySettings.tsx:190 \u00B7 lightrag_webui/src/components/retrieval/QuerySettings.tsx:242 \u00B7 \u002B8 more site(s) not listed \u2014 all 12 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":"lightrag_webui/src/components/retrieval/QuerySettings.tsx"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"522ad10edac843d499d8e935129a7d3c27a3732967ed16adf8dee3123e6b108b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5 locations): lightrag_webui/src/components/retrieval/QuerySettings.tsx:166 \u00B7 lightrag_webui/src/components/retrieval/QuerySettings.tsx:446 \u00B7 lightrag_webui/src/components/retrieval/QuerySettings.tsx:467 \u00B7 lightrag_webui/src/components/retrieval/QuerySettings.tsx:493 \u00B7 \u002B1 more site(s) not listed \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":"lightrag_webui/src/components/retrieval/QuerySettings.tsx"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"e40305534476908c62ad345883bf77bce47718526fd2629519bd74053131f65a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5 locations): lightrag_webui/src/features/DocumentManager.tsx:1578 \u00B7 lightrag_webui/src/features/DocumentManager.tsx:1590 \u00B7 lightrag_webui/src/features/DocumentManager.tsx:1602 \u00B7 lightrag_webui/src/features/DocumentManager.tsx:1614 \u00B7 \u002B1 more site(s) not listed \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":"lightrag_webui/src/features/DocumentManager.tsx"},"region":{"startLine":1578}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f2c1a4c76ce364f9fe37a0db29adbd463f29f2913a42101f5515052b6cae479"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): lightrag_webui/src/utils/clipboard.ts:66 \u00B7 lightrag_webui/src/utils/clipboard.ts:111 \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":"lightrag_webui/src/utils/clipboard.ts"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"d82cb4a902eb854314120846f8f2af8180d12794e3fc22ccbd8014f49019a405"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): lightrag_webui/src/components/graph/ZoomControl.tsx:74 \u00B7 lightrag_webui/src/components/graph/ZoomControl.tsx:90 \u2014 both copies are in the same file, so extract the block 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":"lightrag_webui/src/components/graph/ZoomControl.tsx"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cefb072fa93efa32cafb6d6b702e5623b366267b266f1d355e575d60e8cb43a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): lightrag_webui/src/components/graph/Settings.tsx:349 \u00B7 lightrag_webui/src/components/graph/Settings.tsx:365 \u2014 both copies are in the same file, so extract the block 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":"lightrag_webui/src/components/graph/Settings.tsx"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e6587fb79a81fc137da80927870798a70b2a95806fd91c61abe4867f702764e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): lightrag_webui/src/components/status/StatusCard.tsx:201 \u00B7 lightrag_webui/src/components/status/StatusCard.tsx:210 \u2014 both copies are in the same file, so extract the block 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":"lightrag_webui/src/components/status/StatusCard.tsx"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"091f8627819a3e4dc52712d93dc05894c2dc7a119f91597b676a1601cdb13850"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5 locations): lightrag_webui/src/components/ui/Alert.tsx:26 \u00B7 lightrag_webui/src/components/ui/Card.tsx:5 \u00B7 lightrag_webui/src/components/ui/Card.tsx:23 \u00B7 lightrag_webui/src/components/ui/Card.tsx:41 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 copies are spread across 3 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":"lightrag_webui/src/components/ui/Alert.tsx"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"693a353d690e8de7ae82472a7e2ff439eeed427b8910c559a5d97bc88ac9c650"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): lightrag_webui/src/features/retrieval/QueryComposer.tsx:110 \u00B7 lightrag_webui/src/features/retrieval/QueryComposer.tsx:130 \u2014 the two spans are one implementation copied and then locally edited \u2014 76 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":"lightrag_webui/src/features/retrieval/QueryComposer.tsx"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"42731e45c34aa3e41bfe28cdfb2897fda2aa3d57e5aa671a82e8e552233344b2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): lightrag_webui/src/components/graph/PropertiesView.tsx:191 \u00B7 lightrag_webui/src/components/graph/PropertyEditDialog.tsx:43 \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":"lightrag_webui/src/components/graph/PropertiesView.tsx"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d0cf56f2bb72cbe04c15ed17649e3e0eaf77a9ff34f0ad370ab1f8603490910"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4 locations): lightrag_webui/src/components/ui/Card.tsx:6 \u00B7 lightrag_webui/src/components/ui/Card.tsx:24 \u00B7 lightrag_webui/src/components/ui/Card.tsx:42 \u00B7 lightrag_webui/src/components/ui/Table.tsx:33 \u2014 the 4 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":"lightrag_webui/src/components/ui/Card.tsx"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"2891b22638d83e49b1385a7171eabc252f618607201757855fd864cdbc768f77"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6 locations): lightrag_webui/src/components/ui/ScrollArea.tsx:19 \u00B7 lightrag_webui/src/components/ui/Select.tsx:28 \u00B7 lightrag_webui/src/components/ui/Select.tsx:42 \u00B7 lightrag_webui/src/components/ui/Select.tsx:56 \u00B7 \u002B2 more site(s) not listed \u2014 the 6 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":"lightrag_webui/src/components/ui/ScrollArea.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"6724ff99658db265ed53d950dc934e8d1f560adc2e359f30781a4a53ecfce85e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): lightrag_webui/src/hooks/useLightragGraph.tsx:255 \u00B7 lightrag_webui/src/hooks/useLightragGraph.tsx:286 \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":"lightrag_webui/src/hooks/useLightragGraph.tsx"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"85578940bfd64491c0f5f446174af3192f8337cb72280ae89a296936847eef01"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): lightrag_webui/src/hooks/useLightragGraph.tsx:817 \u00B7 lightrag_webui/src/hooks/useLightragGraph.tsx:827 \u2014 both copies are in the same file, so extract the block 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":"lightrag_webui/src/hooks/useLightragGraph.tsx"},"region":{"startLine":817}}}],"partialFingerprints":{"codehealthFindingId/v1":"3236cc6dcf5aedac64136d8f40a1ed6adf3743d09aa6aeaa68615a2c74f3ecd7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): lightrag_webui/src/components/graph/GraphControl.tsx:332 \u00B7 lightrag_webui/src/hooks/useLightragGraph.tsx:776 \u2014 the two spans are one implementation copied and then locally edited \u2014 51 tokens are still identical, in the same order in both files, 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":"lightrag_webui/src/components/graph/GraphControl.tsx"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bc9c53508580af36545374ebab7f4caa2785c9a39668dbf5ee721d6899bbc48"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): lightrag_webui/src/components/graph/PropertiesView.tsx:389 \u00B7 lightrag_webui/src/components/graph/PropertiesView.tsx:396 \u2014 both copies are in the same file, so extract the block 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":"lightrag_webui/src/components/graph/PropertiesView.tsx"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a8781677eab2f7282d0cc9450c65282f9472047e9e4b31b1aa8ff0d1fb2b66"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4 locations): lightrag_webui/src/components/ui/Progress.tsx:6 \u00B7 lightrag_webui/src/components/ui/ScrollArea.tsx:6 \u00B7 lightrag_webui/src/components/ui/Select.tsx:13 \u00B7 lightrag_webui/src/components/ui/Select.tsx:105 \u2014 the 4 copies are spread across 3 files, 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":"lightrag_webui/src/components/ui/Progress.tsx"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"75a816076f3de931eced6f4415f59e265ff9e43a8879ae2b55e28c7cb28f06bc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 9 locations): lightrag_webui/src/components/graph/GraphControl.tsx:28 \u00B7 lightrag_webui/src/components/graph/GraphControl.tsx:34 \u00B7 lightrag_webui/src/components/graph/PropertiesView.tsx:15 \u00B7 lightrag_webui/src/components/graph/Settings.tsx:183 \u00B7 \u002B5 more site(s) not listed \u2014 the 6 copies are spread across 3 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/components/graph/GraphControl.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a7d20a3241b5d47aa930d8d189cfb17ae3a9a0dfdfd13cbd3b37640c25dabd7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): lightrag_webui/src/components/retrieval/ChatMessage.tsx:503 \u00B7 lightrag_webui/src/components/retrieval/ChatMessage.tsx:594 \u00B7 lightrag_webui/src/components/retrieval/ChatMessage.tsx:607 \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":"lightrag_webui/src/components/retrieval/ChatMessage.tsx"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7614e4043587b57411fb1eb8950e3ef60ea262a2994a09b62ee88f7c920b876"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): lightrag_webui/src/hooks/useLightragGraph.tsx:838 \u00B7 lightrag_webui/src/hooks/useLightragGraph.tsx:844 \u2014 both copies are in the same file, so extract the block 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":"lightrag_webui/src/hooks/useLightragGraph.tsx"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"df799bde454caa35330c3fc5befd02a040d26f8bb5f356f266b06a0996afc2fd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): lightrag_webui/src/components/ui/AlertDialog.tsx:83 \u00B7 lightrag_webui/src/components/ui/AlertDialog.tsx:91 \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":"lightrag_webui/src/components/ui/AlertDialog.tsx"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d7620146217f877f6b03c3f4b9774e3b7e9584fb8009acaaf241b90fabb3e5d"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: lightrag_webui/src/components/retrieval/ChatMessage.tsx:17 imports react-syntax-highlighter/dist/cjs/styles/prism, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/components/retrieval/ChatMessage.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a9ceca39dcee0cd2fa912e528f961f96d9f585d22a8ea4493b176cb5a4f897b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function DocumentManager (cyclomatic 54, cognitive 53): DocumentManager has cyclomatic complexity 54 and cognitive complexity 53; 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":"lightrag_webui/src/features/DocumentManager.tsx"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"e458c118d4a431986e52cb7cb7ca24febf803c57c84cc1605b1dd8dab62883f2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleNodeExpand (cyclomatic 52, cognitive 68): handleNodeExpand has cyclomatic complexity 52 and cognitive complexity 68; 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":"lightrag_webui/src/hooks/useLightragGraph.tsx"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"effdbf5afdaf6da0d30648938b494953d0f04b5eb9eba528f5ae469ba3cc4616"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ChatMessage (cyclomatic 44, cognitive 38): ChatMessage has cyclomatic complexity 44 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 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":"lightrag_webui/src/components/retrieval/ChatMessage.tsx"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb1ce45f8656eeb2a69688daaa06d1323664db82210f689bbbd5ac7362274050"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleSave (cyclomatic 38, cognitive 65): handleSave has cyclomatic complexity 38 and cognitive complexity 65; 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":"lightrag_webui/src/components/graph/EditablePropertyRow.tsx"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"034bfe7a00a67c33d103eeda5e6af295bfa130af009226e8a8cac6a3074d4c8a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 27, cognitive 42): (anonymous) has cyclomatic complexity 27 and cognitive complexity 42; 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":"lightrag_webui/src/features/retrieval/useQuerySession.ts"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2ec81dae1bedfd1f76b17f317bfcd762bed9bf53b4ed296c19bb4046c55284e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function migrateLegacySettingsState (cyclomatic 26, cognitive 29): migrateLegacySettingsState has cyclomatic complexity 26 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 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":"lightrag_webui/src/migrations/legacySettingsChain.ts"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aabd698851cd6049b6a1fb5bb7102e76f5c504882ea4a379d13f01bb71d6b2e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 24, cognitive 44): (anonymous) has cyclomatic complexity 24 and cognitive complexity 44; 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":"lightrag_webui/src/features/DocumentManager.tsx"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa9595fb8182d5ddf6191caa94d80311fee6ddc323d89644f35e8f04ca6f2f68"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 23, cognitive 39): (anonymous) has cyclomatic complexity 23 and cognitive complexity 39; 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":"lightrag_webui/src/components/documents/UploadDocumentsDialog.tsx"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"60df4bc730747e678ea3afeebed956b3dc863afded5cb56c6f132f2c427ce060"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 22, cognitive 21): (anonymous) has cyclomatic complexity 22 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 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":"lightrag_webui/src/components/retrieval/ChatMessage.tsx"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b4de6a121a9f8bb9565fa482302083db86c8b5a5fff0e5102d6a21171f25626"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function runSettingsStorageSplitMigration (cyclomatic 21, cognitive 33): runSettingsStorageSplitMigration has cyclomatic complexity 21 and cognitive complexity 33; 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":"lightrag_webui/src/migrations/splitSettingsStorage.ts"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"20cf1f0110b5eedb0c301312e1129594be88e3e3e506ca3206dd7a7439da5b13"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateAssistantMessage (cyclomatic 21, cognitive 19): updateAssistantMessage has cyclomatic complexity 21 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":"lightrag_webui/src/features/retrieval/useQuerySession.ts"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c37959ffdd4fe3529b247b36f659da5dfbe42887f6efb66a9b3820832f1f7a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function check (cyclomatic 20, cognitive 36): check has cyclomatic complexity 20 and cognitive complexity 36; 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":"lightrag_webui/src/stores/state.ts"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d46883f582651bb2fdae56848e4f244977ec26bd130917ff157a7e5075ce35a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 19, cognitive 24): (anonymous) has cyclomatic complexity 19 and cognitive complexity 24; 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":"lightrag_webui/src/features/DocumentManager.tsx"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"da926b0c2cc2fd6ea9f508ae5211e37a4f8cc1381519b20e2b6203bcfb4f8f61"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AsyncSelect (cyclomatic 18, cognitive 13): AsyncSelect has cyclomatic complexity 18 and cognitive complexity 13; 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":"lightrag_webui/src/components/ui/AsyncSelect.tsx"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc5af283c123b23c9fbf70a8a8be44d4876bebec736fb5849f3f502453546007"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 21): (anonymous) has cyclomatic complexity 17 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":"lightrag_webui/src/components/status/StatusCard.tsx"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"680ce9996f76a5397584647cab42f73283d9a68dc699130e5fcc94197a5b4b48"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function PipelineStatusDialog (cyclomatic 17, cognitive 16): PipelineStatusDialog has cyclomatic complexity 17 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":"lightrag_webui/src/components/documents/PipelineStatusDialog.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"d659425283b1b6b25ad0895dd195eb8bc63e29c754005ec79ff415bd8b91ca1a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 15): (anonymous) has cyclomatic complexity 17 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 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":"lightrag_webui/src/components/graph/GraphControl.tsx"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a4bd11be11ac2d18c3b085d6e26bf2a217603b009a65e0e5be5008e2043623e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _classifyStreamError (cyclomatic 17, cognitive 14): _classifyStreamError has cyclomatic complexity 17 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":"lightrag_webui/src/api/lightrag.ts"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"20fcb4d5938a9b832e125df4288020118394075d2625e5d7cb69ef7ec6d5802c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function generateBundle (cyclomatic 16, cognitive 28): generateBundle has cyclomatic complexity 16 and cognitive complexity 28; 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":"lightrag_webui/vite.config.ts"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bc202ec0214dbe03fdc404911d494abc195903901a48190089ba0ef1009a246"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 19): (anonymous) 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":"lightrag_webui/src/hooks/useLightragGraph.tsx"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"0002a7a162f7a18f7de5d0898c3a78d7c6eb025d93c8a71ae9a60becb7dfdb9d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function checkVersion (cyclomatic 16, cognitive 13): checkVersion has cyclomatic complexity 16 and cognitive complexity 13; 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":"lightrag_webui/src/App.tsx"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc649f1445007b25118ddf78180d7d1bd8b22c3c922e59e058a64da778ffa0d6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 23): (anonymous) has cyclomatic complexity 15 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":"lightrag_webui/src/components/retrieval/mermaidLoadFailure.test.tsx"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"725f61f5c99a690576c6ca91a108d7a5796fb5c96f944fba3480337a138725a4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 18): (anonymous) has cyclomatic complexity 15 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":"lightrag_webui/src/hooks/useLightragGraph.tsx"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3600ebbd60408a31496d8982713136b983d82369c17687e69b71142e22a1406"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function load (cyclomatic 14, cognitive 15): load has cyclomatic complexity 14 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":"lightrag_webui/src/stores/customization.ts"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6468ae310369838b61f972ab4eab059f97cdf65987e66ca41985930e723fa09"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function useCustomizedContent (cyclomatic 14, cognitive 14): useCustomizedContent 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":"lightrag_webui/src/components/customization/useCustomizedContent.ts"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"753c623fb2dbec88a4e1ede602461c236c7b72822541f2e24ea8f6639ba84c42"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchGraph (cyclomatic 13, cognitive 26): fetchGraph has cyclomatic complexity 13 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":"lightrag_webui/src/hooks/useLightragGraph.tsx"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"a490d6fd5a9df64b1c9a326f962866e8312722b70fe8bd2d9ea35961d1497320"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateNodeAndSelect (cyclomatic 13, cognitive 21): updateNodeAndSelect has cyclomatic complexity 13 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":"lightrag_webui/src/stores/graph.ts"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"276f9c2bfb308946ea042014d0d5f4bbd69539d32ef6765a9dbeb8b8b2ee67b6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function checkAuthConfig (cyclomatic 13, cognitive 14): checkAuthConfig has cyclomatic complexity 13 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":"lightrag_webui/src/features/LoginPage.tsx"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"44ecc5a48f45e723c6accb6cfff13f5e6f83b14cc3b2cd0f5df14e61ef3122ee"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function StatusCard (cyclomatic 13, cognitive 12): StatusCard has cyclomatic complexity 13 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":"lightrag_webui/src/components/status/StatusCard.tsx"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"7755ece06d2de33a1b1d1f5f05ee2bc7f979df8a5b725682e9cbbbb8086ab92b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function backendAdapter (cyclomatic 13, cognitive 12): backendAdapter has cyclomatic complexity 13 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":"lightrag_webui/src/features/DocumentManager.test.tsx"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"52be04537b4ddb9e6c924cde60e8974127e06523db8e50bb928acf470ae332bd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function PropertyRow (cyclomatic 13, cognitive 10): PropertyRow has cyclomatic complexity 13 and cognitive complexity 10; 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":"lightrag_webui/src/components/graph/PropertiesView.tsx"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"0069f2d3357deb3df493e92f74dc0bcd576c49e71a9751c4bb6f146490957ef4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function LoginPage (cyclomatic 13, cognitive 10): LoginPage has cyclomatic complexity 13 and cognitive complexity 10; 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":"lightrag_webui/src/features/LoginPage.tsx"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e3a0b8d32fafbf51396ca20d52ddd63c122f6f6812731ca16cf476f986624a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function activateSessionFromAuthStatus (cyclomatic 13, cognitive 10): activateSessionFromAuthStatus has cyclomatic complexity 13 and cognitive complexity 10; 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":"lightrag_webui/src/features/workspace/authBootstrap.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"da7dad6fb9dd9b6ec54df664abcdc8b6e384157d2f30bbfe02dad244fd14631f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AsyncSearch (cyclomatic 13, cognitive 9): AsyncSearch 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":"lightrag_webui/src/components/ui/AsyncSearch.tsx"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"286619a6c49f2fd53eacf6d15dab9dad00a7f9e081e1d8aa99eab322ab60ed53"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function queryTextStream (cyclomatic 12, cognitive 32): queryTextStream has cyclomatic complexity 12 and cognitive complexity 32; 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":"lightrag_webui/src/api/lightrag.ts"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b94979e3aa018ff016d54ac304a03a1bf36080616d4a4efe6773403df6633e7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 31): (anonymous) has cyclomatic complexity 12 and cognitive complexity 31; 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":"lightrag_webui/src/components/graph/PropertiesView.tsx"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"a509d7e4326094f302143c6bea066a1c6c0580a60348f96893fc3d9c3ec394d5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 15): (anonymous) has cyclomatic complexity 12 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":"lightrag_webui/src/features/retrieval/MessageList.tsx"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f7fae2b4a6efc6fe152e63a60cd9a98080e7e14b83d4d7bae4f6a0c8049088"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 13): (anonymous) has cyclomatic complexity 12 and cognitive complexity 13; 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":"lightrag_webui/src/components/ui/FileUploader.tsx"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae63e9abe812613def420c9b1618a54a6b669e1a6946d04f4d6b82985955f532"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleSubmit (cyclomatic 12, cognitive 12): handleSubmit 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":"lightrag_webui/src/features/LoginPage.tsx"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ba5ad4b8abdb8a3aa77a87b8b364849e927181b3e2bc3fc08ec16aa1db25347"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SiteHeader (cyclomatic 12, cognitive 11): SiteHeader 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":"lightrag_webui/src/features/SiteHeader.tsx"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"d32655189c8f2a14af2eb0ad3c9f0c684630e55c39340242d7201bea94156b58"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 10): (anonymous) has cyclomatic complexity 12 and cognitive complexity 10; 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":"lightrag_webui/src/utils/entityName.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c063f648143876af58f912a1ac39870d9376421565eadc8d2239bac4f60e660"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function GraphViewer (cyclomatic 12, cognitive 9): GraphViewer has cyclomatic complexity 12 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":"lightrag_webui/src/features/GraphViewer.tsx"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"8380705af620966438b31f646378f8878a712855684c822ab992027509bd1dea"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _readNdjsonStream (cyclomatic 11, cognitive 17): _readNdjsonStream has cyclomatic complexity 11 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 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":"lightrag_webui/src/api/lightrag.ts"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ea2e100b5cd2a4d337b4cb089c4c4326f661333e11e21e9046442b2ef9ef5d2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 16): (anonymous) has cyclomatic complexity 11 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":"lightrag_webui/src/hooks/useLightragGraph.tsx"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ce50812f199d530ceac125618e63ed8713d067fba0d1f6f9beb961f3fb9650"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 15): (anonymous) has cyclomatic complexity 11 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":"lightrag_webui/src/api/lightrag.ts"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"e725980b4b2660210a295949a6008f5c554b90310c8c90d48447374902b46419"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 15): (anonymous) has cyclomatic complexity 11 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":"lightrag_webui/src/components/ui/TooltipWidth.test.tsx"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bdf05431d6f8fa3bfb28cb405ab376d0c0e8bf92c0ddde47d0302e95f2cc638"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 13): (anonymous) has cyclomatic complexity 11 and cognitive complexity 13; 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":"lightrag_webui/src/components/ui/TooltipWidth.test.tsx"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a5a0b4a1d73541b7dfe0999c7f7ca993c8fe7712b809f78a407ff013755db99"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function reducedLegacyPayloads (cyclomatic 11, cognitive 13): reducedLegacyPayloads has cyclomatic complexity 11 and cognitive complexity 13; 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":"lightrag_webui/src/migrations/splitSettingsStorage.ts"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c06a1531fbdb319d4476ceb2795afc3f77f12ab4eddb795a519af8a9f92813d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseCOTContent (cyclomatic 11, cognitive 12): parseCOTContent 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":"lightrag_webui/src/features/retrieval/useQuerySession.ts"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"00f0289504d75f24592a8038973b288bfd030488730848cb1c4314a5ad485a44"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 11): (anonymous) 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":"lightrag_webui/src/components/documents/ClearDocumentsDialog.tsx"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b7e0721f53e8e5aee16748c90d16afa597198d57327e3ecc0774f1fe11fc658"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 11): (anonymous) 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":"lightrag_webui/src/components/retrieval/ChatMessage.tsx"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"8083e8a43da8ba95e63610929a7ac096e169019ab4ca02548cacee12554a1b8f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 11): (anonymous) 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":"lightrag_webui/src/features/documentRefreshErrors.ts"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"26de746e28fb66850b6d6de972bdeaa45765b19748de226c0274d12a65f8d1f3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function QuerySettings (cyclomatic 11, cognitive 10): QuerySettings has cyclomatic complexity 11 and cognitive complexity 10; 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":"lightrag_webui/src/components/retrieval/QuerySettings.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e8c7bfc99f938ff6e23687b1676a6d17307555c4da4726e9af5ea90cb507866"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 10): (anonymous) has cyclomatic complexity 11 and cognitive complexity 10; 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":"lightrag_webui/src/components/ui/UserPromptInputWithHistory.tsx"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"1954231f2f1cde4246b4e836793bbd004d01e0f7ef22d1579adccd2cc6389eac"}},{"ruleId":"R3","level":"warning","message":{"text":"lightrag_webui/src/features/DocumentManager.tsx: 1693 lines of code: lightrag_webui/src/features/DocumentManager.tsx has 1693 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":"lightrag_webui/src/features/DocumentManager.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7d69f1a8fc714518b4d69df8a0fa2f47f18d35b705458e2c1fda4d638d867f4"}},{"ruleId":"R3","level":"warning","message":{"text":"lightrag_webui/src/api/lightrag.ts: 1272 lines of code: lightrag_webui/src/api/lightrag.ts has 1272 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":"lightrag_webui/src/api/lightrag.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"56be632c8ac22563227f4c27dd93b3ad985e48bbdd9d0569a7540fabf3f5f6fa"}},{"ruleId":"R3","level":"warning","message":{"text":"lightrag_webui/src/hooks/useLightragGraph.tsx: 1040 lines of code: lightrag_webui/src/hooks/useLightragGraph.tsx has 1040 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":"lightrag_webui/src/hooks/useLightragGraph.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a89daa106fa30a6198db6368769bce223f8c441f903cbb8143f8bbbbdd92dcd"}},{"ruleId":"R3","level":"warning","message":{"text":"lightrag_webui/src/components/retrieval/ChatMessage.tsx: 656 lines of code: lightrag_webui/src/components/retrieval/ChatMessage.tsx has 656 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":"lightrag_webui/src/components/retrieval/ChatMessage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e73ec6123706f34ec09178fc048ce3b5be8d6190ec0edfa71caa6d1a76c6173"}},{"ruleId":"R3","level":"warning","message":{"text":"lightrag_webui/src/migrations/splitSettingsStorage.ts: 639 lines of code: lightrag_webui/src/migrations/splitSettingsStorage.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":"lightrag_webui/src/migrations/splitSettingsStorage.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b35362e860d67467166aa4eb4e1b37096a274d0b061c3449ce22c803f88586c0"}},{"ruleId":"R3","level":"warning","message":{"text":"lightrag_webui/src/features/retrieval/useQuerySession.ts: 613 lines of code: lightrag_webui/src/features/retrieval/useQuerySession.ts has 613 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":"lightrag_webui/src/features/retrieval/useQuerySession.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"97f44502a1d4632ad1bfb45a1cd2eeff1511f862d70b264cb195703d311dd87a"}},{"ruleId":"R3","level":"warning","message":{"text":"lightrag_webui/src/components/retrieval/QuerySettings.tsx: 521 lines of code: lightrag_webui/src/components/retrieval/QuerySettings.tsx has 521 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":"lightrag_webui/src/components/retrieval/QuerySettings.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e6fabd769f26a0d3d5eb6cdcdbe378a602b6a8113be6a525caffdae4d3c6516"}},{"ruleId":"R3","level":"warning","message":{"text":"lightrag_webui/src/components/graph/GraphControl.tsx: 461 lines of code: lightrag_webui/src/components/graph/GraphControl.tsx has 461 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":"lightrag_webui/src/components/graph/GraphControl.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9da9af4525b997310c295c21e0d38678dacb0f008357e7860a151a7d54b84d6"}},{"ruleId":"R3","level":"warning","message":{"text":"lightrag_webui/src/stores/state.ts: 456 lines of code: lightrag_webui/src/stores/state.ts has 456 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":"lightrag_webui/src/stores/state.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9620e1ea8d36a4143590e063072f6b86dfd3e9997b6573aa8dc6d7f74862ad76"}},{"ruleId":"R3","level":"warning","message":{"text":"lightrag_webui/src/components/ui/FileUploader.tsx: 427 lines of code: lightrag_webui/src/components/ui/FileUploader.tsx has 427 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":"lightrag_webui/src/components/ui/FileUploader.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e227ae81ebdce6bf45e4388d7d8674411c2a1652df9b7f639b5980818070c2e"}},{"ruleId":"R3","level":"warning","message":{"text":"lightrag_webui/src/components/graph/Settings.tsx: 410 lines of code: lightrag_webui/src/components/graph/Settings.tsx has 410 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":"lightrag_webui/src/components/graph/Settings.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0796f1d3247366b809c7e5a4701263f7613075acdbbd1bbc8f6ae3a4db13ad2f"}},{"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":"lightrag_webui/src/components/ui/NumberInput.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cee510ddbfff1768120c3d787fd3b9f543403a7f7aad582b05281ffb5b0752a6"}},{"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":"lightrag_webui/src/AppRouter.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e67bd47d537a6c3c1288c6c7e645f6f55fbf3647e0526c2c1c74fd37a58e234"}},{"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":"lightrag_webui/src/WorkspaceAppRouter.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"62bf9cab137b0fdaa8846b0e619acd85937dadcd36e5d0834be4e28922ec671f"}},{"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":"lightrag_webui/src/components/MigrationErrorScreen.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"856e4edefa72a4e6db55a3aae0406a6ec894d3333cb4dbe44adcfa946d3efa84"}},{"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":"lightrag_webui/src/components/LanguageToggle.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0c7b9fa0b97a6aa02227eb90aff9e5c53947933971f422f23a3fa59165b4f01"}},{"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":"lightrag_webui/src/components/ThemeToggle.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a6afbed850877d62aab681ef7f9381e6b8635b53723bebabd75cbdbf74d59fd"}},{"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":"lightrag_webui/src/bootstrap/webuiEntry.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"141e3c8c485339bc671122a98398dc49541ea908514d0625e3d6a7d8e3aa9a74"}},{"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":"lightrag_webui/src/components/ui/TabContent.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"90550d508d6e919382ccd5601d04e0e7283cea4095686bc7933eb6c9f0da6bef"}},{"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":"lightrag_webui/src/components/ui/Badge.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccd150227f43845d61ffe0da717613ce7e54e8de5bab6f120db9ca5c50b1a488"}},{"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":"lightrag_webui/src/components/ui/Progress.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"378dd5eaecb8cef7199da268826475aad1ed7186265e69d215b3af3aa2ba7e97"}},{"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":"lightrag_webui/src/main.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7286352cf1fbb4cc8cb9d148accc4dfa5e983294343164377010317554816b7"}},{"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":"lightrag_webui/src/workspace-main.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0c0978e7000c129b62ab19d738d1c151c56bf16fd27c05f726bff57d6f718c4"}},{"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":"lightrag_webui/src/contexts/useTabVisibility.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"54199b6f8bae8a927e16f6bbde8230fe48e253ac5f2cf630b3c1035d189bb063"}},{"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":"lightrag_webui/src/components/Root.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"491a47eac49609ce4858bac97d69c24ed59984a93631f9a6d12387fd29d6508f"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~133 LoC): no import path from any entry point (13 application, 6 tooling, 77 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":"lightrag_webui/src/components/ui/NumberInput.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbfd28e8236087be918634d7f8a3c7a303a94c16b7776937b8c779a549583867"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~49 LoC): no import path from any entry point (13 application, 6 tooling, 77 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":"lightrag_webui/src/components/LanguageToggle.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"261ad1ff865d241a702fd3df710433fbb07b55f9638637429a8114aacd00d0ac"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~41 LoC): no import path from any entry point (13 application, 6 tooling, 77 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":"lightrag_webui/src/components/ThemeToggle.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"52aa92b84ae011a7509dd99b57cf167130faad86b9d4988707c8b70b5e114eb1"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~37 LoC): no import path from any entry point (13 application, 6 tooling, 77 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":"lightrag_webui/src/components/ui/TabContent.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0220853e293da1c0133bd986691e6fd1923f5de30f1018042a432199bc2da35b"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~33 LoC): no import path from any entry point (13 application, 6 tooling, 77 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":"lightrag_webui/src/components/ui/Badge.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b13bd55b6fa5ff4a25f35db5d21057871bde96bae9b12678cb2689fa33f81c95"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~23 LoC): no import path from any entry point (13 application, 6 tooling, 77 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":"lightrag_webui/src/components/ui/Progress.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d03d07a506a66063968a3b1702c2f4b5ba85a44eb689604b9195f04b4a1409"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~17 LoC): no import path from any entry point (13 application, 6 tooling, 77 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (lightrag_webui/src/components/ui/TabContent.tsx) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/contexts/useTabVisibility.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8cfd41841acb12f39c3ca5b24601c376af5fa1f76952c94256f15c07300f6b9"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~9 LoC): no import path from any entry point (13 application, 6 tooling, 77 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":"lightrag_webui/src/components/Root.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"25099a42f101df9562475211754218de4cda09ed625ce26fcacc96c78724b041"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027isClipboardSupported\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/utils/clipboard.ts"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0f851fa78f2c4ca6ad63199316751727ce19a07a2e7349586cc932c27677c16"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027getBestClipboardMethod\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/utils/clipboard.ts"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6772b6638dddf714c6f09074090320d0e8abcc52b35da5112728e46c5f5ee08"}},{"ruleId":"R8","level":"error","message":{"text":"Unlisted import \u0027@react-sigma/layout-core\u0027: Imported but not declared in any reachable package.json \u2014 installs work only by hoisting accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/components/graph/LayoutsControl.tsx"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a2dd9acf1a1cfe1fda675519ddba25274c9aa21b3cb98e70b00364ed2bac77"}},{"ruleId":"R8","level":"warning","message":{"text":"Unlisted import \u0027mdast\u0027: Imported only as a TYPE and declared in no reachable package.json. The import is erased at compile time, so nothing is installed and no runtime resolution depends on it \u2014 but type-checking a clean clone will fail. Declare the typings it resolves through (or the package itself) in the owning package.json."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/utils/remarkFootnotes.ts"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"07fb4500d4f260af6e3fe7c982a820cf2118e762cc833328280de3a3f90aed92"}},{"ruleId":"R8","level":"warning","message":{"text":"Unlisted import \u0027unified\u0027: Imported only as a TYPE and declared in no reachable package.json. The import is erased at compile time, so nothing is installed and no runtime resolution depends on it \u2014 but type-checking a clean clone will fail. Declare the typings it resolves through (or the package itself) in the owning package.json."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/utils/remarkFootnotes.ts"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b24c6611c020f52c175a7b1cca2fb18192d839e5e2247e8fed8e21eb83f3508"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027@react-sigma/layout-force\u0027: Declared in lightrag_webui/package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"f6c37ca05b7357c31dd95776bfaa58362c18c3ef23c168a9c5169a8bd66c79af"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027@react-sigma/layout-forceatlas2\u0027: Declared in lightrag_webui/package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"88fc376cf271e3f3324bf9359dd2e9b354035f78a12873d07c5b7e572fb01798"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027@react-sigma/layout-noverlap\u0027: Declared in lightrag_webui/package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"96ad2d32630fc101b838d1bc5659d2e83e210f8a9eb88f33bfb484186671cb51"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027@react-sigma/minimap\u0027: Declared in lightrag_webui/package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"03433cdff4f672ac0dcbcd699174f0778e35650d1f3ee9c2f4d0eaaba5334b92"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027graphology-layout\u0027: Declared in lightrag_webui/package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"418245a9c16fbcb35f5b7429564cf50d14862c35dae5ce78900733d3a2b3da91"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027react-select\u0027: Declared in lightrag_webui/package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5d3e1effa4bdeb13d614ded4521c283db0f6635639092fa52044ef0e6ce8565c"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027tailwind-scrollbar\u0027: Declared in lightrag_webui/package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b9c65922dd7b531bd74996ef0aeeac22e2c5c1dc1c7b0934e8e75a16314858fc"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027typography\u0027: Declared in lightrag_webui/package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c25c3e0d2900651cc3c39ec1ca2386a0d3ca50e7ec3d319382703dbae018c597"}},{"ruleId":"R9","level":"error","message":{"text":"Import cycle (3 files): lightrag_webui/src/api/lightrag.ts \u2192 lightrag_webui/src/services/navigation.ts \u2192 lightrag_webui/src/stores/state.ts \u2192 lightrag_webui/src/api/lightrag.ts"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/api/lightrag.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"91788ef803ccbded4cfd0cbaf8f7260ec148035aaa9172687d7f283749e0597b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!status.auth_configured \u0026\u0026 status.access_token\u0060 appears character-identically in 4 files \u2014 lightrag_webui/src/App.tsx, lightrag_webui/src/features/LoginPage.tsx, lightrag_webui/src/features/workspace/WorkspaceWelcome.tsx, lightrag_webui/src/features/workspace/authBootstrap.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":"lightrag_webui/src/App.tsx"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1b918f6e6e19c216282d38f6e0f9b844aaffa1db7231a68196e43dc55255224"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060disabled \u0026\u0026 \u0027cursor-not-allowed opacity-50\u0027\u0060 appears character-identically in 2 files \u2014 lightrag_webui/src/components/ui/AsyncSearch.tsx, lightrag_webui/src/components/ui/AsyncSelect.tsx. 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":"lightrag_webui/src/components/ui/AsyncSearch.tsx"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"90c854372315414c4e3ef925b1c10832e8810e1e5e34beb1620b2e56ef614c20"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060loading \u0026\u0026 options.length === 0 \u0026\u0026 (loadingSkeleton || \u003CDefaultLoadingSkeleton /\u003E)\u0060 appears character-identically in 2 files \u2014 lightrag_webui/src/components/ui/AsyncSearch.tsx, lightrag_webui/src/components/ui/AsyncSelect.tsx. 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":"lightrag_webui/src/components/ui/AsyncSearch.tsx"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"373a477a668dc599bdecbc0b3dd2d8ca9c92c6f8b18f81d0b174ffb4f8e90958"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060message.includes(InvalidApiKeyError) || message.includes(RequireApiKeError)\u0060 appears character-identically in 2 files \u2014 lightrag_webui/src/components/ApiKeyAlert.tsx, lightrag_webui/src/features/workspace/credentialProbe.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":"lightrag_webui/src/components/ApiKeyAlert.tsx"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2567e68ac2c750450eae5689a3ff44dbff5d59ecc06ccb3ce027f04770d3a0a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060status.auth_mode === \u0027disabled\u0027 || useAuthStore.getState().isGuestMode\u0060 appears character-identically in 2 files \u2014 lightrag_webui/src/App.tsx, lightrag_webui/src/features/workspace/authBootstrap.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":"lightrag_webui/src/App.tsx"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"be4074e78f947c5b7dd500067a7eae01fb2062c0cf9945465c1b2cb8e81786d6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Path(document_name).stem or document_name\u0060 appears character-identically in 5 files \u2014 lightrag/parser/docx/ir_builder.py, lightrag/parser/external/docling/ir_builder.py, lightrag/parser/external/mineru/ir_builder.py, lightrag/parser/markdown/ir_builder.py. 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":"lightrag/parser/docx/ir_builder.py"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"e173d3cc8a1d3d2d2836819b1c985cdadcdc523012c23f704c5d38878bea9872"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cb_lines or cb_tables or cb_drawings or cb_equations\u0060 appears character-identically in 2 files \u2014 lightrag/parser/external/docling/ir_builder.py, lightrag/parser/external/mineru/ir_builder.py. 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":"lightrag/parser/external/docling/ir_builder.py"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2d68293ad50aea59c0861888c410f710f1b5994d7c835f2bc71ff8b3f9bc5d2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cb_tables or cb_drawings or cb_equations\u0060 appears character-identically in 2 files \u2014 lightrag/parser/external/docling/ir_builder.py, lightrag/parser/external/mineru/ir_builder.py. 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":"lightrag/parser/external/docling/ir_builder.py"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ec4234f3f8c35d7e4977ebd4d15393f01f894f1eede9fdf7f1d32b8e400691"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060config.has_option(\u0022mongodb\u0022, \u0022uri\u0022) and config.has_option( \u0022mongodb\u0022, \u0022database\u0022 )\u0060 appears character-identically in 2 files \u2014 lightrag/tools/clean_llm_query_cache.py, lightrag/tools/migrate_llm_cache.py. 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":"lightrag/tools/clean_llm_query_cache.py"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"f89c5e379c0f5668422a821a647de2d57993c58416999b9ac7405f832a991fd9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060config.has_option(\u0022postgres\u0022, \u0022user\u0022) and config.has_option(\u0022postgres\u0022, \u0022password\u0022) and config.has_option(\u0022postgres\u0022, \u0022database\u0022)\u0060 appears character-identically in 2 files \u2014 lightrag/tools/clean_llm_query_cache.py, lightrag/tools/migrate_llm_cache.py. 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":"lightrag/tools/clean_llm_query_cache.py"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bb6a343d0887b73b6c5a7b190a9383b2ac949eb7caea1b32aee8436fb614d50"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060context == \u0022document\u0022 and document_prefix\u0060 appears character-identically in 3 files \u2014 lightrag/llm/hf.py, lightrag/llm/ollama.py, lightrag/llm/openai.py. 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":"lightrag/llm/hf.py"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a657f3a795129103f76f484dfc93efb617b7f6722db12656441e878453fa13"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060count != expected_candidate_count or fingerprint != expected_candidate_fingerprint\u0060 appears character-identically in 5 files \u2014 lightrag/kg/json_doc_status_impl.py, lightrag/kg/mongo_impl.py, lightrag/kg/opensearch_impl.py, lightrag/kg/postgres_impl.py. 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":"lightrag/kg/json_doc_status_impl.py"},"region":{"startLine":1176}}}],"partialFingerprints":{"codehealthFindingId/v1":"b815f1a04b73c337226be748007c0247399523804cf265e64e205bcbfcf1c938"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060count_record and count_record[\u0022total\u0022] \u003E max_nodes\u0060 appears character-identically in 2 files \u2014 lightrag/kg/memgraph_impl.py, lightrag/kg/neo4j_impl.py. 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":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":1095}}}],"partialFingerprints":{"codehealthFindingId/v1":"228ace37d00a5a23ae3ab439a9818e9f1e1e5c8b4537a7cbe5a20d5a61c6ff37"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cur_endpoint and manifest.endpoint_signature and cur_endpoint != manifest.endpoint_signature\u0060 appears character-identically in 2 files \u2014 lightrag/parser/external/docling/cache.py, lightrag/parser/external/mineru/cache.py. 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":"lightrag/parser/external/docling/cache.py"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d7cbf007e0e7e50234a7b123425c335c0b8b20eb61829e4d4ca6a421aefe14"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cur_engine_version and manifest.engine_version and cur_engine_version != manifest.engine_version\u0060 appears character-identically in 2 files \u2014 lightrag/parser/external/docling/cache.py, lightrag/parser/external/mineru/cache.py. 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":"lightrag/parser/external/docling/cache.py"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"30877fbe84e693086061c9d0bc9bf519b352a5d215263cc24a5a50e5f2023594"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060edge.get(\u0022source\u0022) or edge.get(\u0022src_id\u0022) or edge.get(\u0022src\u0022)\u0060 appears character-identically in 2 files \u2014 lightrag/storage_migrations.py, lightrag/tools/chunk_tracking_repair.py. 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":"lightrag/storage_migrations.py"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aa61d7bb63b49a9f38042367f39974f9df170b5ecf98a7e0a0794d8cefd76c5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060edge.get(\u0022target\u0022) or edge.get(\u0022tgt_id\u0022) or edge.get(\u0022tgt\u0022)\u0060 appears character-identically in 2 files \u2014 lightrag/storage_migrations.py, lightrag/tools/chunk_tracking_repair.py. 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":"lightrag/storage_migrations.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c60c1f10b0956081f9655f5d06c7443a4c1940662a6a3b3d9b4c568e3da2177"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060entry.is_dir() and not entry.is_symlink()\u0060 appears character-identically in 2 files \u2014 lightrag/parser/external/_common.py, lightrag/parser/external/mineru/cache.py. 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":"lightrag/parser/external/_common.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fd0ebc3bea4c66e4474a945893e652f8b1dba69e20254d5e383084af274281c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060error_text.strip().startswith(\u0022\u003C!DOCTYPE html\u003E\u0022) or \u0022text/html\u0022 in content_type\u0060 appears character-identically in 2 files \u2014 lightrag/llm/jina.py, lightrag/rerank.py. 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":"lightrag/llm/jina.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a99cdfcf11e9d1b22afd0aba3d0eaff04159c22e8b1fc1f3a85c640f7f21057"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060getattr(args, \u0022max_request_body_bytes\u0022, 0) or 0\u0060 appears character-identically in 2 files \u2014 lightrag/api/body_limit_middleware.py, lightrag/api/utils_api.py. 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":"lightrag/api/body_limit_middleware.py"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5a8a777ebf1b07242fb68c062b95e00e54f3bbdb3b16b9362354a1e5be3a8ba"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060getattr(storage_inst, \u0022final_namespace\u0022, None) or getattr( storage_inst, \u0022namespace\u0022, \u0022\u0022 )\u0060 appears character-identically in 2 files \u2014 lightrag/lightrag.py, lightrag/operate.py. 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":"lightrag/lightrag.py"},"region":{"startLine":4256}}}],"partialFingerprints":{"codehealthFindingId/v1":"7efd90af489810a5d6b2c53975329da4d62b7eb548551e993c7a12d33701b767"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(max_upload_size, int) and max_upload_size \u003E 0\u0060 appears character-identically in 2 files \u2014 lightrag/api/body_limit_middleware.py, lightrag/api/utils_api.py. 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":"lightrag/api/body_limit_middleware.py"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"77b29f93fe318a36727ed6116a6f3574b2f88d6d925d9e833601c84e5926c9be"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(metadata, dict) and isinstance(metadata.get(CUSTOM_CHUNK_PATCH_METADATA_KEY), dict)\u0060 appears character-identically in 4 files \u2014 lightrag/kg/json_doc_status_impl.py, lightrag/kg/mongo_impl.py, lightrag/kg/opensearch_impl.py, lightrag/kg/redis_impl.py. 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":"lightrag/kg/json_doc_status_impl.py"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"8077beb01f91b3d66fafa9144d9aa751cb60319a635b4af8bc221c3078feea1b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(metadata, dict) and metadata.get(\u0022is_duplicate\u0022)\u0060 appears character-identically in 2 files \u2014 lightrag/kg/json_doc_status_impl.py, lightrag/kg/redis_impl.py. 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":"lightrag/kg/json_doc_status_impl.py"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"3567d11765ca995e987881f9e8ab04de1879309021e87aed1155cb815c91d9bf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(result, dict) and result.get(\u0022status\u0022) != \u0022success\u0022\u0060 appears character-identically in 2 files \u2014 lightrag/api/routers/document_routes.py, lightrag/lightrag.py. 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":"lightrag/api/routers/document_routes.py"},"region":{"startLine":6094}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bb8557f3c2d411eda0d36b36900add43ede6d48c2cd6b24ce88f18c64f9ea74"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060kwargs.pop(\u0022entity_extraction\u0022, False) or entity_extraction\u0060 appears character-identically in 2 files \u2014 lightrag/llm/hf.py, lightrag/llm/llama_index_impl.py. 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":"lightrag/llm/hf.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa46ce389d0d3989c95d1c1e2f8568927b31b895c0ccf976f09f6c79c2d0ca16"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060kwargs.pop(\u0022keyword_extraction\u0022, False) or keyword_extraction\u0060 appears character-identically in 2 files \u2014 lightrag/llm/hf.py, lightrag/llm/llama_index_impl.py. 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":"lightrag/llm/hf.py"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5f723e0d3b35f29c75111b133059ae25fc105b98b7989d438a0b68d7ad24936"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060len(current) \u003E= records_limit or next_bytes \u003E payload_limit\u0060 appears character-identically in 2 files \u2014 lightrag/kg/mongo_impl.py, lightrag/kg/postgres_impl.py. 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":"lightrag/kg/mongo_impl.py"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"3de8eae938a11d74e8b4a4068d45e0c9e98fb1589163782a863aa6c1d6549a54"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060len(raw) \u003E= 12 and raw[0:4] == _WEBP_RIFF and raw[8:12] == _WEBP_TAG\u0060 appears character-identically in 2 files \u2014 lightrag/llm/_vision_utils.py, lightrag/parser/markdown/parser.py. 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":"lightrag/llm/_vision_utils.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"b335afa3bab61e9c7d2a93dec544fcc4f27dabb90d2ede07a7781eaa0175fb2c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060len(records_batch) == 1 and self._max_upsert_payload_bytes \u003E 0 and estimated_bytes \u003E self._max_upsert_payload_bytes\u0060 appears character-identically in 2 files \u2014 lightrag/kg/milvus_impl.py, lightrag/kg/mongo_impl.py. 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":"lightrag/kg/milvus_impl.py"},"region":{"startLine":2999}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff54e65e67ca60154da7fe6ff6f88fb1cc3e5788cb85a388ccb21c81ee1270c9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not VERBOSE_DEBUG and logger.level == logging.DEBUG\u0060 appears character-identically in 3 files \u2014 lightrag/llm/anthropic.py, lightrag/llm/openai.py, lightrag/llm/openai_responses.py. 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":"lightrag/llm/anthropic.py"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b54fe955d19a3930ca2c2933e7ae40af3f86892c615fe865e7958c42f0e700a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not basename or basename == \u0022unknown_source\u0022\u0060 appears character-identically in 2 files \u2014 lightrag/kg/mongo_impl.py, lightrag/kg/redis_impl.py. 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":"lightrag/kg/mongo_impl.py"},"region":{"startLine":1188}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a470bb8c0deb7e57ac7994737bf74feba3dd153e929242b95c7d49e1719db6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not candidate_ids or len(accepted) \u003E= limit\u0060 appears character-identically in 2 files \u2014 lightrag/kg/mongo_impl.py, lightrag/kg/opensearch_impl.py. 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":"lightrag/kg/mongo_impl.py"},"region":{"startLine":3102}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce6e018ec8d6bd5ba6ae25b9cd99aacf14cb6752dc312593b6c416b22c1e9103"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not canonical_source_key or canonical_source_key == \u0022unknown_source\u0022\u0060 appears character-identically in 5 files \u2014 lightrag/kg/json_doc_status_impl.py, lightrag/kg/mongo_impl.py, lightrag/kg/opensearch_impl.py, lightrag/kg/postgres_impl.py. 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":"lightrag/kg/json_doc_status_impl.py"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"d813b42e5d8e4eda3e5529f87206bc4c700aa610a310c72a44ae99e06d3ec157"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not entity_name or not entity_name.strip()\u0060 appears character-identically in 2 files \u2014 lightrag/api/routers/graph_routes.py, lightrag/operate.py. 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":"lightrag/api/routers/graph_routes.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"8363f15f8de527b4187fb93602f72b352fb4b9e76e4ed55f3b4bda284aa26698"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not initial_content_seen and not cot_started\u0060 appears character-identically in 2 files \u2014 lightrag/llm/gemini.py, lightrag/llm/openai.py. 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":"lightrag/llm/gemini.py"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d8202ec724c5d839ad714e69a02934abc5945884f6e99c82e63455e91b4335d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(created_at, str) or not isinstance(updated_at, str)\u0060 appears character-identically in 4 files \u2014 lightrag/kg/json_doc_status_impl.py, lightrag/kg/mongo_impl.py, lightrag/kg/opensearch_impl.py, lightrag/kg/redis_impl.py. 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":"lightrag/kg/json_doc_status_impl.py"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bcf0a1b6491d11602502f68e2476ca54d63b11323451d99df655ea79524bf82"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(value, str) or not value.strip()\u0060 appears character-identically in 2 files \u2014 lightrag/api/ui_customization.py, lightrag/pipeline.py. 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":"lightrag/api/ui_customization.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"665300aed326aba3723f7b3bfd27c714281302688c7ccfc74983df7e6c9d4d04"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not node_entity_id or not connected_entity_id\u0060 appears character-identically in 2 files \u2014 lightrag/kg/memgraph_impl.py, lightrag/kg/neo4j_impl.py. 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":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"53b8a9ab8e23ee95a0bc4f95dd8ee93ad347f4918fd09379c8907a431a1ec4b2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not notified and not self._peer_commit_detected()\u0060 appears character-identically in 2 files \u2014 lightrag/kg/faiss_impl.py, lightrag/kg/nano_vector_db_impl.py. 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":"lightrag/kg/faiss_impl.py"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"2532c4d08df0b6f6be40a06c9be025024c23fab0c900cc794873174e3c2a3c14"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not self._pending_upserts and not self._pending_deletes and not self._unsaved_deletes and not self._unsaved_upserts\u0060 appears character-identically in 2 files \u2014 lightrag/kg/faiss_impl.py, lightrag/kg/nano_vector_db_impl.py. 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":"lightrag/kg/faiss_impl.py"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"68e2f3a27f8b7196c1db5f7ef136413716e4b645934b4393aad819ce2e632f5c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not self._pending_vector_docs and not self._pending_vector_deletes\u0060 appears character-identically in 5 files \u2014 lightrag/kg/milvus_impl.py, lightrag/kg/mongo_impl.py, lightrag/kg/opensearch_impl.py, lightrag/kg/postgres_impl.py. 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":"lightrag/kg/milvus_impl.py"},"region":{"startLine":2903}}}],"partialFingerprints":{"codehealthFindingId/v1":"9409b9a414ab0cb92fa643fe30e792cbf077a274a1a8149d72ce4d73858b179b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not stripped or stripped.lower() == \u0022none\u0022\u0060 appears character-identically in 2 files \u2014 lightrag/parser/routing.py, lightrag/utils.py. 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":"lightrag/parser/routing.py"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"240c4a51c65e11ba8580fc0fb6956c5a0d800f3bb9b69163e8303200a99cfc9d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not workspace or not str(workspace).strip()\u0060 appears character-identically in 2 files \u2014 lightrag/kg/memgraph_impl.py, lightrag/kg/neo4j_impl.py. 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":"lightrag/kg/memgraph_impl.py"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3ea0a59ea71c2b9d76f68005a47bb0f0b4da1007577358eeca8d78644c9ddfb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060os.getenv(\u0022DOCLING_OCR_ENGINE\u0022, \u0022auto\u0022).strip() or \u0022auto\u0022\u0060 appears character-identically in 3 files \u2014 lightrag/api/lightrag_server.py, lightrag/parser/external/docling/cache.py, lightrag/parser/external/docling/client.py. 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":"lightrag/api/lightrag_server.py"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"370a192f9f75ccd87284182c4196295a728770faae125e3eda1fefffa33d59ec"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060os.getenv(\u0022DOCLING_OCR_PRESET\u0022, \u0022auto\u0022).strip() or \u0022auto\u0022\u0060 appears character-identically in 2 files \u2014 lightrag/parser/external/docling/cache.py, lightrag/parser/external/docling/client.py. 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":"lightrag/parser/external/docling/cache.py"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc13fcba164c55c85835a36f5937ad19e061b08ea6ebb1985cae18dd6058898f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060payload.get(\u0022source_content_hash\u0022) or \u0022\u0022\u0060 appears character-identically in 2 files \u2014 lightrag/parser/external/_manifest.py, lightrag/parser/external/mineru/manifest.py. 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":"lightrag/parser/external/_manifest.py"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dd61b8280b412e7ec5d729b5f818b7d0d038be641916a889c0310c89e5c9074"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060payload.get(\u0022source_filename_at_parse\u0022) or \u0022\u0022\u0060 appears character-identically in 2 files \u2014 lightrag/parser/external/_manifest.py, lightrag/parser/external/mineru/manifest.py. 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":"lightrag/parser/external/_manifest.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"d584de2d933d20c5d85a86604796a14c61755b0d62294dddb662ee09352568aa"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060payload.get(\u0022version\u0022) or MANIFEST_VERSION\u0060 appears character-identically in 2 files \u2014 lightrag/parser/external/_manifest.py, lightrag/parser/external/mineru/manifest.py. 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":"lightrag/parser/external/_manifest.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"725b404356b3932f96f6dae7a6746b5fed0bf736cb5a825c3061dd992699ae38"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060pdoc.record.get(\u0022src_id\u0022) == entity_name or pdoc.record.get(\u0022tgt_id\u0022) == entity_name\u0060 appears character-identically in 2 files \u2014 lightrag/kg/faiss_impl.py, lightrag/kg/nano_vector_db_impl.py. 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":"lightrag/kg/faiss_impl.py"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"326c435dbe54a4278c4f20ed48a2ac871d8c7c00b60da7a6bee6d6c032a02107"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060pipeline_status is not None and pipeline_status_lock is not None\u0060 appears character-identically in 4 files \u2014 lightrag/api/routers/document_routes.py, lightrag/lightrag.py, lightrag/operate.py, lightrag/pipeline.py. 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":"lightrag/api/routers/document_routes.py"},"region":{"startLine":3784}}}],"partialFingerprints":{"codehealthFindingId/v1":"79b242d87f4f6972032d7bd5d336229a9e1f60cdc7d8f3ad62de93f0b3740837"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060rec.kind != \u0022para\u0022 or rec.outline_level is None\u0060 appears character-identically in 2 files \u2014 lightrag/parser/docx/smart_heading/guardrails.py, lightrag/parser/docx/smart_heading/heading_flow.py. 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":"lightrag/parser/docx/smart_heading/guardrails.py"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"27d1896ca389c6492147b8756af905073416393036a7e3f83bb88c5929bbd6fe"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060response_format is None or isinstance(response_format, dict)\u0060 appears character-identically in 2 files \u2014 lightrag/llm/gemini.py, lightrag/llm/openai.py. 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":"lightrag/llm/gemini.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"f25266a2292a418ade05113fbcc781629f1d84fe9adb17d44976fa5acd1ffbd9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self._pending_deletes or self._unsaved_deletes\u0060 appears character-identically in 2 files \u2014 lightrag/kg/faiss_impl.py, lightrag/kg/nano_vector_db_impl.py. 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":"lightrag/kg/faiss_impl.py"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"80802c2c1d65b646d885aec53d66a5ae48e378cde11ec72c05e3bbed3500aa58"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060source and source not in RELATION_NO_EVIDENCE_SOURCE_IDS\u0060 appears character-identically in 2 files \u2014 lightrag/operate.py, lightrag/utils_graph.py. 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":"lightrag/operate.py"},"region":{"startLine":3038}}}],"partialFingerprints":{"codehealthFindingId/v1":"70916bdf617a6767dabda7c8ddc7c82a0e6637b9c77ce3f066576b4b54f0adf0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060stored_model is not None and declared_model_name(self.embedding_func) is not None\u0060 appears character-identically in 2 files \u2014 lightrag/kg/faiss_impl.py, lightrag/kg/nano_vector_db_impl.py. 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":"lightrag/kg/faiss_impl.py"},"region":{"startLine":1479}}}],"partialFingerprints":{"codehealthFindingId/v1":"a863c6644dd028145d1cb547b00c55cacb70122902e3f66222ef022ac3d41e5c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060token_tracker and getattr(response, \u0022usage\u0022, None)\u0060 appears character-identically in 2 files \u2014 lightrag/llm/anthropic.py, lightrag/llm/zhipu.py. 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":"lightrag/llm/anthropic.py"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2026d8f42a784afe02062901fb00e8d48c07064b47fdce0e8c18de859386e3b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060v.source.get(\u0022src_id\u0022) == entity_name or v.source.get(\u0022tgt_id\u0022) == entity_name\u0060 appears character-identically in 4 files \u2014 lightrag/kg/milvus_impl.py, lightrag/kg/mongo_impl.py, lightrag/kg/opensearch_impl.py, lightrag/kg/qdrant_impl.py. 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":"lightrag/kg/milvus_impl.py"},"region":{"startLine":3118}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e2247f3c969630326fe2e8a3ab8a4a96427173db8810e39bc8996973f85db58"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060extract_content_list_from_payload\u0060 is public and takes \u0060payload: Any\u0060 from its caller, and it calls itself at line 1402 (\u0060extract_content_list_from_payload\u0060) with a piece of \u0060payload\u0060 (and at line 1406, line 1412) \u2014 and nowhere in \u0060extract_content_list_from_payload\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. Python\u0027s parsers accept far more nesting than its stack allows: \u0060json.loads\u0060 turns 3,000 bytes of brackets into 1,500 levels and \u0060xml.etree.ElementTree\u0060 parses tens of thousands, while a walk like this one raises \u0060RecursionError\u0060 once it passes the interpreter\u0027s default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any \u0060try\u0060 the worker or the program exits with it. Raising \u0060sys.setrecursionlimit\u0060 only moves the number the document has to beat. Thread a depth argument through \u0060extract_content_list_from_payload\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils_pipeline.py"},"region":{"startLine":1402}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9a3d151fe4b4181e7024378a4d2de8cea996317a93741011a97ba77a642cc11"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060payloads_equal\u0060 is public and takes \u0060a: Any\u0060 from its caller, and it calls itself at line 140 (\u0060payloads_equal\u0060) with a piece of \u0060a\u0060 (and at line 143) \u2014 and nowhere in \u0060payloads_equal\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. Python\u0027s parsers accept far more nesting than its stack allows: \u0060json.loads\u0060 turns 3,000 bytes of brackets into 1,500 levels and \u0060xml.etree.ElementTree\u0060 parses tens of thousands, while a walk like this one raises \u0060RecursionError\u0060 once it passes the interpreter\u0027s default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any \u0060try\u0060 the worker or the program exits with it. Raising \u0060sys.setrecursionlimit\u0060 only moves the number the document has to beat. Thread a depth argument through \u0060payloads_equal\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/tools/migrate_graph_storage.py"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ac3bcb440260200ed138cd62602b4af41c7e5fe8e582dd843da8747fc601308"}},{"ruleId":"X2","level":"note","message":{"text":"Not all async functions that make a request accept an AbortSignal: Only 5/27 async functions that make a cancellable request (fetch, axios, ky, ofetch, got, undici, node:http) accept an AbortSignal or pass one on, so a request keeps running after whatever wanted it has given up \u2014 a page navigated away from, an unmounted component, a timed-out job. Take a \u0060signal\u0060 (or an options object that carries one) and hand it to the request; where nothing could ever cancel the call, omitting it is a deliberate choice \u2014 judge against how the function is used."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bd89d014f84408f7063269aa5892ba3df7c9af3e981ecfb0752c5731bc62d406"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: silentRefreshGuestToken: \u0060silentRefreshGuestToken\u0060 awaits \u0060axios.get(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060axios.get(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/api/lightrag.ts"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd0e14276dc8f5af1c80e5e8387df121863f8a1d2e263a601d77f5ee04f66e1"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: queryGraphs: \u0060queryGraphs\u0060 awaits \u0060axiosInstance.get(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060axiosInstance.get(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/api/lightrag.ts"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"8acfaa6f0db0003c13eec310cdb6ac37857d497d06168be2568574dc18ba6908"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: getGraphLabels: \u0060getGraphLabels\u0060 awaits \u0060axiosInstance.get(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060axiosInstance.get(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/api/lightrag.ts"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e7e9c9fd0570726fb12e2ff15576ec745087554dbb0dd9fe2f7f8dc1c245858"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: getPopularLabels: \u0060getPopularLabels\u0060 awaits \u0060axiosInstance.get(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060axiosInstance.get(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/api/lightrag.ts"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ffbbf05a83edede972fd57b2f20290afd13b46b2fd55cf6a3b93d8af03107a6"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: searchLabels: \u0060searchLabels\u0060 awaits \u0060axiosInstance.get(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060axiosInstance.get(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/api/lightrag.ts"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c15aa9d459100f9be01046d7e5d2c878a898b25b6831a033d46cda394f560b9"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: checkHealth: \u0060checkHealth\u0060 awaits \u0060axiosInstance.get(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060axiosInstance.get(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/api/lightrag.ts"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a0d6ed99374948bae500dd5dccf69d7866a78778e1d9010033d98d37b0dbb69"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: verifyCredentials: \u0060verifyCredentials\u0060 awaits \u0060axiosInstance.get(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060axiosInstance.get(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/api/lightrag.ts"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"e98a512cc3ddbb2f95cae90d2170cf315247b532e70db6fd1aafbb7b9d86ea23"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: scanNewDocuments: \u0060scanNewDocuments\u0060 awaits \u0060axiosInstance.post(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060axiosInstance.post(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/api/lightrag.ts"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf34216df64ed998bac4416db3c60ee9b894f7ca56395aa2cec8fc957fb0432"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: reprocessFailedDocuments: \u0060reprocessFailedDocuments\u0060 awaits \u0060axiosInstance.post(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060axiosInstance.post(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/api/lightrag.ts"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf28c041f5801cbca7bc4cfbce0885ef9266697877523f5168b7b26f57b78a62"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: insertText: \u0060insertText\u0060 awaits \u0060axiosInstance.post(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060axiosInstance.post(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/api/lightrag.ts"},"region":{"startLine":993}}}],"partialFingerprints":{"codehealthFindingId/v1":"3030d646a9664f57ba970964859909285231f22029d3b2dabf3df91b2047f748"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: insertTexts: \u0060insertTexts\u0060 awaits \u0060axiosInstance.post(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060axiosInstance.post(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/api/lightrag.ts"},"region":{"startLine":998}}}],"partialFingerprints":{"codehealthFindingId/v1":"68429e399db62215ef7eae41624fe31165bfe0ddd695964983e493d1a660f6fd"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: uploadDocument: \u0060uploadDocument\u0060 awaits \u0060axiosInstance.post(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060axiosInstance.post(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/api/lightrag.ts"},"region":{"startLine":1003}}}],"partialFingerprints":{"codehealthFindingId/v1":"49af659ebab226e603207af2a447a4442d21276bacb84390d8ca4499762f32d9"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: clearDocuments: \u0060clearDocuments\u0060 awaits \u0060axiosInstance.delete(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060axiosInstance.delete(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/api/lightrag.ts"},"region":{"startLine":1048}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3c055cabe7269116a371b35c7a3f9b9dcc73cda386bcf07ce55c877a0ada2f1"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: deleteDocuments: \u0060deleteDocuments\u0060 awaits \u0060axiosInstance.delete(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060axiosInstance.delete(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/api/lightrag.ts"},"region":{"startLine":1057}}}],"partialFingerprints":{"codehealthFindingId/v1":"e299ebfbe41e2c642f962c5cda9ac8cd69cbd4c19c0a7eb22a85412bd0c08d2c"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: getAuthStatus: \u0060getAuthStatus\u0060 awaits \u0060axiosInstance.get(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060axiosInstance.get(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/api/lightrag.ts"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"dde69b0ab4168cc82c60558244938f9e60f353abe1d28fec456096d23602aa0a"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: getPipelineStatus: \u0060getPipelineStatus\u0060 awaits \u0060axiosInstance.get(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060axiosInstance.get(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/api/lightrag.ts"},"region":{"startLine":1132}}}],"partialFingerprints":{"codehealthFindingId/v1":"7edb37ad55be5b09f81eb11d7f2c9beccd37ccff30407233412811ee13a77f72"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: cancelPipeline: \u0060cancelPipeline\u0060 awaits \u0060axiosInstance.post(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060axiosInstance.post(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/api/lightrag.ts"},"region":{"startLine":1139}}}],"partialFingerprints":{"codehealthFindingId/v1":"efd9543fecbb85384864cbce658ea620f9194cc1d1d84b0a97335b65b7ab920e"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: loginToServer: \u0060loginToServer\u0060 awaits \u0060axiosInstance.post(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060axiosInstance.post(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/api/lightrag.ts"},"region":{"startLine":1147}}}],"partialFingerprints":{"codehealthFindingId/v1":"7727aca6ca72e0b3244d2608265ed2383dc0276badba9cc71ea8d5eb66134ac5"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: updateEntity: \u0060updateEntity\u0060 awaits \u0060axiosInstance.post(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060axiosInstance.post(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/api/lightrag.ts"},"region":{"startLine":1170}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e85be5a93ef7f724456bb29891a5583546872774de34f7ecabeb9c140b3a20d"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: updateRelation: \u0060updateRelation\u0060 awaits \u0060axiosInstance.post(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060axiosInstance.post(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/api/lightrag.ts"},"region":{"startLine":1192}}}],"partialFingerprints":{"codehealthFindingId/v1":"e56ab2959679363faa2f7cf53eeb5477b12a040098744789d6ae452fbad53e60"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: checkEntityNameExists: \u0060checkEntityNameExists\u0060 awaits \u0060axiosInstance.get(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060axiosInstance.get(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/api/lightrag.ts"},"region":{"startLine":1210}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed5ce951a090eaf5e865020fd97615a7b5737fbe9325f053e6eb674e7bb3057f"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: getTrackStatus: \u0060getTrackStatus\u0060 awaits \u0060axiosInstance.get(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060axiosInstance.get(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/api/lightrag.ts"},"region":{"startLine":1225}}}],"partialFingerprints":{"codehealthFindingId/v1":"df072d10d2bfb7c84047ef944d21a14bc7ad7fcf6782837faf8b2e5d570a0d16"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 5526 is called with an argument built by \u0060\u0022\u2026\u0022.join(text_purposes)\u0060 (line 5529), whose cost grows with the collection it walks. Python evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isEnabledFor(logging.DEBUG)\u0060 test, no debug flag, no \u0060lambda\u0060 the logger calls only when the level is on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":5526}}}],"partialFingerprints":{"codehealthFindingId/v1":"27b3e18a653ef9ce47a8f99f68893c5f758241ae6f3f300c130b8bab52e7eac1"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 450 is called with an argument built by \u0060sorted(item)\u0060 (line 457), whose cost grows with the collection it walks. Python evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isEnabledFor(logging.DEBUG)\u0060 test, no debug flag, no \u0060lambda\u0060 the logger calls only when the level is on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/parser/external/mineru/ir_builder.py"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2de947b615286066d181c4fa1eede6c151f2147e4d2d1b3ab872a562498e823"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 1219 is called with an argument built by \u0060index_config.to_dict()\u0060 (line 1220), whose cost grows with the collection it walks. Python evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isEnabledFor(logging.DEBUG)\u0060 test, no debug flag, no \u0060lambda\u0060 the logger calls only when the level is on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/milvus_impl.py"},"region":{"startLine":1219}}}],"partialFingerprints":{"codehealthFindingId/v1":"034c8c6a6581d9a9c9c6d361c470c193b7fd4ceb84cf4bda0e3f780e22badc19"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 361 is called with an argument built by \u0060list(first_ref.keys())\u0060 (line 361), whose cost grows with the collection it walks. Python evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isEnabledFor(logging.DEBUG)\u0060 test, no debug flag, no \u0060lambda\u0060 the logger calls only when the level is on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/evaluation/eval_rag_quality.py"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9e580f8fba6c731e6614ba9c28c6c8407d880ade63fbdd0d16a3fd45521f60e"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060svg\u0060 is text this program did not author, and it is written into the text of an element through \u0060innerHTML\u0060 with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/components/retrieval/ChatMessage.tsx"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e5484aba5e330f11d4cc8568a96c2aae13bd50d3ba6b6aab2adde5d85c4dd7"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060value\u0060 is text this program did not author, and it is written into the text of an element through \u0060innerHTML\u0060 with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/utils/entityName.ts"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d7d7e1df5fec15eaf51608ed59d95eb7ec906fa56052ec4f16421ea5c304c00"}},{"ruleId":"X25","level":"warning","message":{"text":"Setting lookup falls back to a different setting than its key: \u0060this module\u0060 looks up \u0060\u0022entity_name\u0022\u0060 and falls back to \u0060entity_to_change_into\u0060 when the caller supplies none \u2014 but line 511 of this same type looks up \u0060\u0022entity_name\u0022\u0060 and falls back to \u0060entity_name\u0060, which is the member that key names. The two cannot both be right: every caller who configures \u0060entity_name\u0060 and passes no \u0060\u0022entity_name\u0022\u0060 override silently gets \u0060entity_to_change_into\u0060 instead, and nothing reports that the value was ignored. Fall back to \u0060entity_name\u0060 here as line 511 does \u2014 or, if \u0060entity_to_change_into\u0060 genuinely is the intended source, look it up under its own key so the two sites stop disagreeing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/routers/graph_routes.py"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6d3cc6452638b5fe1493cfc4791f782a5ee94a00bbbe494877aaec705beb4a0"}},{"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":"lightrag_webui/src/utils/SearchHistoryManager.ts"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"c83ef1d2d0480b5f0d28fc08503bc3314317d7ba465847b3a82ea4cb4eea9627"}},{"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":"lightrag_webui/src/stores/graph.ts"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ed14284c3ed3ae35ec9bb75101f722167ddce9077f1d4ed3affbda13eff927f"}},{"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":"lightrag_webui/src/stores/graph.ts"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"1539b74ab47fdfe932b373befe22047eb9ded2046354753d28b839621c135989"}},{"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":"lightrag_webui/src/stores/retrievalHistory.ts"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"974568e4734fda08cc13fb9ec41225238991b061a8224ffa80c4e4c192ef55e0"}},{"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, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/migrations/splitSettingsStorage.ts"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"33670f257c7b0c0127587d13d9510d2fc83a3e9beea2d8c989b9fde8316f3e3e"}},{"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":"lightrag_webui/src/migrations/splitSettingsStorage.ts"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aa826e08c110e269416dbee3d380d3608bf07fe6f4982d0a2dadef17c0fd502"}},{"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, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag_webui/src/migrations/splitSettingsStorage.ts"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3435e46936ff77e3eb318119a347cac8e0b21178a19c3ac7c1bb12c1f4b38f4"}},{"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":"lightrag_webui/src/lib/loginIdentity.ts"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"91284697c3a225cadf00c19d3735d3405946031a656a87b6c5249caf6854d0a9"}},{"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":"lightrag_webui/src/components/graph/GraphControl.tsx"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"52852617a4078b75fca3dbb75c6184d90e846110efaf975e1bb0b849553676ac"}},{"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":"lightrag_webui/src/components/graph/GraphControl.tsx"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0ac0492f3014c872824317a59e353484ae8a472a0fc9f1104cb95da23ba2b91"}},{"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":"lightrag_webui/src/components/graph/LayoutsControl.tsx"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"395ad2bf6ba2d372806c5bc597454f28082d694dffbf18f15afbace038780f68"}},{"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":"lightrag_webui/src/components/graph/LayoutsControl.tsx"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"eff3c7f5e452e45c4d2053f9079883d8f38f8f2e2eee2274f9aaa112821e1af9"}},{"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":"lightrag_webui/src/api/lightrag.ts"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"105bf20303b3185fd33316e1363bf4f3dcd5623f5282f1a8ea2c3bff675bfa86"}},{"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":"lightrag_webui/src/api/lightrag.ts"},"region":{"startLine":871}}}],"partialFingerprints":{"codehealthFindingId/v1":"368f6eea8ba46b68a6e11ae60a426ed1b389646c12444388984198db5b279c8d"}},{"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":"lightrag/lightrag.py"},"region":{"startLine":8006}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce9518554f1a7e0efa2882e2a4ea8e33bd3d8c0929ca504d1c9cf6911c8a813c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"lightrag/pipeline.py"},"region":{"startLine":6887}}}],"partialFingerprints":{"codehealthFindingId/v1":"4840f3b0a0c9f42f09f46e6d3dd42ba0ad1fedbaafa4d546063314f954f406f5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"lightrag/pipeline.py"},"region":{"startLine":8182}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7bfd0c60b684c8948ac5cb763f160ee0160b97d76b60a591f9f146258b6a792"}},{"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":"lightrag/utils.py"},"region":{"startLine":2339}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d3075f908f6e5f01a9428dfed3ac96f69efa7363a757443403dfff3219bb4d7"}},{"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":"lightrag/utils.py"},"region":{"startLine":2346}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5e0855715b072f330d278f1c57bbe93ce962aeb55489c6a02210a740574cec9"}},{"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":"lightrag/utils.py"},"region":{"startLine":2351}}}],"partialFingerprints":{"codehealthFindingId/v1":"56a82c098104607a3b98179208e4a64ed49452880c607b461354063bcc8dda71"}},{"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":"lightrag/utils.py"},"region":{"startLine":3545}}}],"partialFingerprints":{"codehealthFindingId/v1":"de391d457e68e07f9a73cc07f60932f72b2d5e5059aae1012d07d7894edef3bb"}},{"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":"lightrag/utils.py"},"region":{"startLine":6871}}}],"partialFingerprints":{"codehealthFindingId/v1":"c43d9d69007fcc2d5dcfb484e8b93c6a67009ebbf45b9b428926563ef01dc427"}},{"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":"lightrag/utils.py"},"region":{"startLine":6888}}}],"partialFingerprints":{"codehealthFindingId/v1":"5877a8354cd3b18b20b230b389e3f9e193828c748244d1ffa0ce13db256e6009"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"lightrag/utils_pipeline.py"},"region":{"startLine":1434}}}],"partialFingerprints":{"codehealthFindingId/v1":"313ecc961e5aa1b65f0b34e3f604cf529efa1ef753ee9d10736344ab223277ea"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"lightrag/tools/clean_llm_query_cache.py"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"136e211809aaa5b82295a4193518e7454231f0204bd2b678657c2cb79e082665"}},{"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":"lightrag/tools/clean_llm_query_cache.py"},"region":{"startLine":1227}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a48c7f1552b0b9bdce6d13aa6a2f630b910d188a2f4294765259bb45239e235"}},{"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":"lightrag/tools/clean_llm_query_cache.py"},"region":{"startLine":1235}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a279e20fd244371a37b63fb28c80d9c33ce878f95da4dda518389d04d644bfa"}},{"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":"lightrag/tools/migrate_graph_storage.py"},"region":{"startLine":1105}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2ea3ad510bdfdce1847b37678af469d526f8eb25e3c5c8591ca1d053fa35932"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"lightrag/tools/migrate_llm_cache.py"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecbb5905c7567bc67bb2a814212d2671d10da4df14a23108f9372db364a31104"}},{"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":"lightrag/tools/migrate_llm_cache.py"},"region":{"startLine":1545}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa60bc027a55dd9f22af982d3e019a083795ded265bedd2da854db06e9bab796"}},{"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":"lightrag/tools/migrate_llm_cache.py"},"region":{"startLine":1550}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa6b9a8926b9056d8f0748caf50213fa053881586abbaeb2bcb16195e1f659c4"}},{"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":"lightrag/tools/migrate_llm_cache.py"},"region":{"startLine":1558}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d8ee6b5f7e797ef71789a2c9ccebc8d319dfbc8c05a43f731646362d38da641"}},{"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":"lightrag/tools/rebuild_vdb.py"},"region":{"startLine":1199}}}],"partialFingerprints":{"codehealthFindingId/v1":"af13e21e544e548529961fbd5553afbfaa0baa42b3381a8c1d06e7f5eece3959"}},{"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":"lightrag/tools/rebuild_vdb.py"},"region":{"startLine":1205}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f88e0b847806fc8e7c45741e28b7c1a06f02888f4c75e3764bac087c3cdaf13"}},{"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":"lightrag/parser/llm_bridge.py"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"88ec22e5a3b39e8c94d0254a367883e81fdfc7ee41b1026288fe8b7cb0cfc9c6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"lightrag/parser/external/_common.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f3f5fee3edc9fbcd335c9a3c578a2c04ee0ee9011a5ecb7f0e423224cda0cbf"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"lightrag/parser/external/_common.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2ae16ce13cb1fa1d3c6678a2f6dc22b8970e1207bcd61e99d525f0b79252655"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"lightrag/parser/docx/drawing_image_extractor.py"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"c48010af7133d82b34f9b0bfac8fdc5a784d580554c0c20f1a609739d964a191"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"lightrag/parser/docx/numbering_resolver.py"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"55e8d9f495f86d78d017450824e29962318d8291586d7c92bd1b9a8c98595d3a"}},{"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":"lightrag/llm/gemini.py"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccf7674bb2a52273263bd019a80d04142bdc13e60c83d3fe2576549624fdae24"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"lightrag/llm/ollama.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cae63cac11b2c8312887226affcf6c5837d45d68b16390357cc0a556428d23c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"lightrag/llm/ollama.py"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8debe42f58687d62f940a24f6a8ba8fcdc65205cbef465da09714522a9ff6da"}},{"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":"lightrag/kg/milvus_impl.py"},"region":{"startLine":1141}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b9c2be8cf1c0e45bf3fdabd40e5618eeaa5c55935c4a0506133a3b38f13acbe"}},{"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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0f145e4ca5b0cc3b3e45a0ed4927df9ba90f2aa00af26cf0d5e997d6b33e013"}},{"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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":1222}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaa13b153ba0a8b14c586ac70eb3f1321b6726230790b6d3aeb368db6364b11e"}},{"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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":2524}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b2fd48e31f2b4ce86f4a8f0b8a7465013f9805fcd6e828053ceab984124a921"}},{"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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":2639}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a7f6427f7a2cead354ec05d3ebc2b4b3ae44a3cc5074a97aa0d9cc4393e4399"}},{"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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":4452}}}],"partialFingerprints":{"codehealthFindingId/v1":"e42c9260f61890a4d1b497ee9d39d1299fbdc7611e9fde634f6ccfb6c9f43a2c"}},{"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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":4663}}}],"partialFingerprints":{"codehealthFindingId/v1":"abb3fe8b06c8657da2ffd7057501c730d6de9a453471b99848936fc442439578"}},{"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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":5129}}}],"partialFingerprints":{"codehealthFindingId/v1":"a96d6006b0f98e53cf1a94edb12a80324877fc2cc735a000849625160abc5430"}},{"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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":5174}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bbdad80f0289479e703789f6caf5789673d675cf54e8484c66025c63f7a0970"}},{"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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":5257}}}],"partialFingerprints":{"codehealthFindingId/v1":"92c70ad9f264457badab2f2b7d481896dc645cd38004ea7df9f55587e2dffd44"}},{"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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":5372}}}],"partialFingerprints":{"codehealthFindingId/v1":"594be2e9b5f39783d9efb98c2ca148fca4ba7945a201626417f24b66b662e780"}},{"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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":5893}}}],"partialFingerprints":{"codehealthFindingId/v1":"843560639e8319aeb7ca81113f130be13b06d87206ed9e8c72f988c9ebfec19b"}},{"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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":5942}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf8251614f5c1923f475ce6a1acd2cd3d1049ccf523adcea05d56f930c70e894"}},{"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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":5993}}}],"partialFingerprints":{"codehealthFindingId/v1":"87bf3943310407e933ff95333b2f9020208276b456883878c182515e2228e4a9"}},{"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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":6058}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d5fca9731e1bb2e2a38bb7e96d096e438f59c7ac71eff8dbb723431c8b6551b"}},{"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":"lightrag/kg/shared_storage.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"47bf3cff7ebcd4449409733b94a6214fe1739e9485882887b9ad469d4e60a83c"}},{"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":"lightrag/kg/shared_storage.py"},"region":{"startLine":1910}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc75b2550c8166de326f47ff00b15fea92c52f5bdcf754dc3183767f2566c541"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"lightrag/api/asgi_helpers.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c857f0d85737cc35c9539fdff5bbfd8c6a848dac62fdfea431112670395d87c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"lightrag/api/lightrag_server.py"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"2acfeaf4c12eb67418a05a2e8cc893893485abf01ccc054e293fc5733fa7e8ab"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"lightrag/api/utils_api.py"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1a49409dceeff9f1088998053e955f7de38a15a00a5a68df92e95ba57961886"}},{"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":"lightrag/api/routers/document_routes.py"},"region":{"startLine":2332}}}],"partialFingerprints":{"codehealthFindingId/v1":"06eae6fcaceb8187a49c0c1ddd52f1de4b7443522918888d2fcba8e9f9ad7b0b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"lightrag/api/routers/document_routes.py"},"region":{"startLine":2420}}}],"partialFingerprints":{"codehealthFindingId/v1":"564be4288cc58d14f5b5edc4086a751d6ebc5652c3d813fc0dff3f965e3923fc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"lightrag/api/routers/document_routes.py"},"region":{"startLine":2536}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1b0894b632c5345d9c57c7a3729a817351cdd96c2e3443d1cfaf3f4a9715aa1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 83 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/file_atomic.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8df19a5748e43e4fe103eaf5c544f235934130910ba8b01fe3d2056e5c92691"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 118 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/file_atomic.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8887744d516278f51aa2e34a9225f9f12fa3c5abca690912364e5ea75ebd85a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 122 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/file_atomic.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d3cfbae1acb406aea4ffbae8acccd0dfccb2e7393f5b4aac63876cf68fd7788"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 151 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/file_atomic.py"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"4593ef5506714ee180af7c6ddd4fa67dd6f2ea63c02955932b3f777ec89ea74b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 156 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/file_atomic.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa583497970b0e6f385755fe4b2d6831119b6315d32039ef394fdcb6027df5e6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 188 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/file_atomic.py"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c16632acbab63c5eba20b1e7b06bb59cdb58666c7f7c63bd911eb2f9fb04475"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 472 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d67e690971c8718ab2acadc5a934c6c4adba33716d6e1b138a402917b3afdbf"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 508 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"3701f3ce69b62984021171efc76d630b6f1e5e60a880aa142d15f56b66b0ad22"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 525 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"e77583c0f39e1e7f4d7afa6ea4cdd490f0bd2a010d95d1decf8d7d9ce5a4d885"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 645 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"f31a288e54d45d135d7caccf99fa8a5fe735597f00d45db5aebe44e3342061ec"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 667 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"32cea041b82017d9e47419f12ccedd9c35640a332fe190132a59879a9230cc65"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 701 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c3c800713352974e0a2982d73b25b8d8b59a824bbd6668779051865b572b04a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 710 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1f14ba5048757aa3a9cdcec2337315d3307e692c3d1c2de9bad262f87a19a7e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 715 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"45db8d50d1ae471b4e6f75cc27f12ad597bc0c47f8073f37bb9c603f8b301852"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 723 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d857e9f6e2013cf1e67df25f1f6d03048838fca9e348aa0575c0fe19bab2fe7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 739 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"60e1ddbc963465b57f8f6b8d3f0f2022b475a9cd14f1f54f587896d40f55e2b2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 752 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"36a0feb4fb0eeb16a28ba0a9185885e06f6b9b5c3ef53ae52251d0319fc357b0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 773 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"724ce987af44d18c7126e73da2eeaa02e21be82f48966669791b7bc0d343e63b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 788 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa2fd9ba2f28d7d21d633d96e66ac22645d74453c70f892b3c805a90f94211ec"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 793 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"bff73fdd5f7a99788e80820a728cf2461bf8bba10ac62ebba6361455a7cc96c4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 809 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"126c76c3972fa5aef527c64cfd9df188e020329415ea43f869baf3ff2f65e687"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 821 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"d46969163dc76f4ab097031aaeb5432ccca4ba487d32d00887460d1238d00d16"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 827 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa55b9c6eaa0134010ab5e45f46a293974001bc56bdd9e6f02fdfaf716538e4a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 833 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"77da5f85b428c035dc9d84ec0ee21069e462a4427d3b568c6f02787cb3d69f96"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 849 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a3b52a907b6930ca1eb62f67701678cf479035febdb1885d8f1939e75e713d6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 870 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"e44924287d323337ad91a7fd0d9d3fdda5d714d49f6504a823ec34f10a0be9f3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 875 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":875}}}],"partialFingerprints":{"codehealthFindingId/v1":"b665795b4185e34124ba48853d7e91ed638fb9f397b736e7bcde60e2f0aa4adb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 976 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"be7154ff234a733297bcc7eabbbd19b33594799e8bf8b1ad7b281c747d498638"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 992 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"364dc1a105bfe7c228f13fde04b5f70f6056e33464c25b65cca87dd1b401b535"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1006 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":1006}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dc6e4f8e306d375f9d8cca82716aa8eb23d082aa80ae2f4cf68e3d13faf2514"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1024 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":1024}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ac2d86c9de9e66b72db1dac39d9a88d53b5f05715013a351a19287af2ea17ec"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1046 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":1046}}}],"partialFingerprints":{"codehealthFindingId/v1":"c47cf5c59ab9aa5bd29175cc14b1f5a9837ce1a6152c325b6e4b649eb20c8a6d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1054 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":1054}}}],"partialFingerprints":{"codehealthFindingId/v1":"972a723c0e4e66c229ea375cbebf9d1d9d44b6fb2aed8ccbeeeee8e95906900a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1072 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":1072}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cb6ba1fad47d2c81a834beca8765eb64b8c0e3b9938f80caaecb6b7c858c899"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1077 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":1077}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9c97ef550dd4888de4e67a36d2469718fc8891d16801af805c44f91820d7498"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1082 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":1082}}}],"partialFingerprints":{"codehealthFindingId/v1":"45294fa7616b1d98ff4329f086b5ff9dd62c64c5343667da494a3f63a6bdd604"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1095 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":1095}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecbf65ed0dca1dc2a185c7d817688f7db71e213f50a4ac2b7efe687d32b609f8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1112 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":1112}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d1a57d7312c8e4acf55af119a6d6ea0fa8c6a2096730f235d97203ea766376d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1130 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":1130}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a224e6a56fa4ce37abf303af7bda6e76870f1233357b218cfa8ca08e0717239"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1488 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":1488}}}],"partialFingerprints":{"codehealthFindingId/v1":"c66f5b1564b7282a00119e3eb35c06bcd86b4af3d9fd9b05b5b862e6a8d9703a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1491 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":1491}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ca87d6cb0d0a0530fe665b8a88395d5987bd54a4c7d4003f91da7939dd38875"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1537 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":1537}}}],"partialFingerprints":{"codehealthFindingId/v1":"14b8bd986581060838dcdff81e7cd5e0af72f76cdf0b74d4768959cffec5f172"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1620 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":1620}}}],"partialFingerprints":{"codehealthFindingId/v1":"d713009e2b7a23c469f4a199ad2659edf9e14cb06b34aa19f427fe5fa4d6042d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1676 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":1676}}}],"partialFingerprints":{"codehealthFindingId/v1":"32899efe3e87976bc4fd6852c4ca595af4d1ad3373eaf9d5eac7b6c3e48e5c90"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1927 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":1927}}}],"partialFingerprints":{"codehealthFindingId/v1":"e20bd9ddc07364ad595b448f44760fdd164e752045af0a09947a489ffc5337bd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1934 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":1934}}}],"partialFingerprints":{"codehealthFindingId/v1":"e375feeef06590f823f6c37c75bfd66b1846ad5b461c969e0c06ae814d387896"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2013 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":2013}}}],"partialFingerprints":{"codehealthFindingId/v1":"af0b506813328b39a4e4a4a032d6ae09ec14aa2f1ff8ada0e791f811eb228a6e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 2147 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":2147}}}],"partialFingerprints":{"codehealthFindingId/v1":"137fb21eed11037e4014750d44f0e908778c5f4818be76823f122463d0c596df"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2205 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":2205}}}],"partialFingerprints":{"codehealthFindingId/v1":"349c1ff1a0c4e79a6210ddf676f136ba75c70c9d17a7b3ea148cff99a3ddb242"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 2388 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":2388}}}],"partialFingerprints":{"codehealthFindingId/v1":"985235842ab7ffee39d5f5c8f0985681bb426eae33d6f5e4aadff690df7f79c0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 2514 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":2514}}}],"partialFingerprints":{"codehealthFindingId/v1":"1735bbc0820ac0172cf0bb36a092aecd5b9acc7a645c67033b88760ec21473eb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2600 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":2600}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c2f9df792172aeabe0d85affbe10f01484779dd9083dc169134e4479de988df"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 2607 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":2607}}}],"partialFingerprints":{"codehealthFindingId/v1":"c545d4a6bcc3b324654f55f2b5169bb7411d4d647dfd3c71cc17a8133529e112"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 2650 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":2650}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa37503d9685498fffbc92f80073583c416fd46799b79ffffe9824d7d37e7740"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2726 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":2726}}}],"partialFingerprints":{"codehealthFindingId/v1":"a62722fbbc93831a670bf493b185db056b7160f75609cbb62f06df3bc1dbca68"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2980 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":2980}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bee903afe54dd20a78d7920442aad30be5c4f45cd6dfe6620cff0a6a3680b67"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 2987 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":2987}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9b4e7428c5b77eb3d44fd66526b7138048c489cd3927d15b6dbabf2db7d0467"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 3085 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":3085}}}],"partialFingerprints":{"codehealthFindingId/v1":"c09881a5bc245316fc7ed5755b4ae0992a15162207b2dbf8fdf503e11d3e71dd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 3157 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":3157}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3246d9fb4c659df278c1ea854cd2ae56f257a21288466b93d72b4ddc822fbae"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 3490 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":3490}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f6bd205e956d6f6520fbddea74dfdc56fbab3d7bc9344480a2b755408354cce"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 3793 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":3793}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7283543fe2b4f165fe9e081afbacf57c6dfed93ff3b15402b101d4b7ef8dbfe"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 3825 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":3825}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aa3c0705c5109e21de9079811df409b1a758f8dab6059de943c46d64c4631d7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 3921 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":3921}}}],"partialFingerprints":{"codehealthFindingId/v1":"a48ebcee7b5e3f1111b7261469cc4570fcb84ba833de6577e30fe32d5f511f64"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 4191 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":4191}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bdb308b030b6a88994d7920a9813cdbf63139716d36ce735e5e4940f7b60976"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 4215 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":4215}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb5664134288d09baa23428439a7be8281431cf748e49a0968200ac393ae7960"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 4334 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":4334}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd81f4dcdac2353b121607f052c909a52723146659192a03763a75b5519cb38"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 4747 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":4747}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d00f21638b908d6a594180f0b9f332ef1b45d710c9866b90d2c55e513942da1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 4814 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":4814}}}],"partialFingerprints":{"codehealthFindingId/v1":"f22934b5d9a3a558966012ca613adf82d0577cc40cd02d9524e2189eb5150721"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 4815 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":4815}}}],"partialFingerprints":{"codehealthFindingId/v1":"0427dfd2047bdf73bf174d1f96fe308b6b081e8f4541ddfacd3bc54791974251"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 4833 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":4833}}}],"partialFingerprints":{"codehealthFindingId/v1":"3609f2bbaa13087bbc45e3db1e780c8e43e7cc91b73dc575d7cad557c5a80891"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 4908 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":4908}}}],"partialFingerprints":{"codehealthFindingId/v1":"e890e21544c35b6ff9ebe97a08fdd8203faff590c311050ca54e453243a923c1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 5274 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":5274}}}],"partialFingerprints":{"codehealthFindingId/v1":"28e1bfc84287060c9e6112548258c304462c16b83252d38e01bf7cc0530a60c0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 5364 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":5364}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0e3e5157b79fb0fc50160673648d87d4ab73d7b7d0137017387c68e2fc21a9b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 5381 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":5381}}}],"partialFingerprints":{"codehealthFindingId/v1":"19c3c6387a31ab060fbdd06c0970f919d92e99699cc55d05593d15dc9675044e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 5532 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":5532}}}],"partialFingerprints":{"codehealthFindingId/v1":"f05be22a29be009eadcc19c89efcae035aab92cf39f90dc6a0aaf9803361f434"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 5578 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":5578}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc3baa98dd09f183de6fa9203d90ec186a53f45ef677cf51f3deb60b21ef84dd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 5636 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":5636}}}],"partialFingerprints":{"codehealthFindingId/v1":"136d7af583bf97701a838cd7a7c3db6ba77783942adb1fda6e20557538a642ce"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 5760 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":5760}}}],"partialFingerprints":{"codehealthFindingId/v1":"28f90bb8a8c7001caa8a69a5ddd7b0b07be1e586e74dcd61dd4ed48eba5c5296"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 5799 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":5799}}}],"partialFingerprints":{"codehealthFindingId/v1":"626973d5b5d95d12443b781d0afeb502676de47c8339336c03ecdd3eb29d35f2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 5832 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":5832}}}],"partialFingerprints":{"codehealthFindingId/v1":"37fe16c1f1db02dd5501498cfde71fa9f39228ad3cdd8414fe8244e40e5b4d1f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 5852 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":5852}}}],"partialFingerprints":{"codehealthFindingId/v1":"381f05261d9067bdbea5e4b06c20bfab5bd326af5295e6055bc8b73d563fe585"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 6008 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":6008}}}],"partialFingerprints":{"codehealthFindingId/v1":"40030513bab541af17b7780d9761527f6a26e3a96ffbe74ba9604e3b65cbbf4c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 6126 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":6126}}}],"partialFingerprints":{"codehealthFindingId/v1":"fab479504ecb89fe8cb4ae12b89781627a38b9c9e03cf3238e8a8030d8daad45"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 6159 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":6159}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cda91b9e47995fef0bcef305c923e1550893a405a0483ddc3ed11a2d376f88f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 6193 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":6193}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c3ea7e929a99b19b5fea74de213a8d47e1f48b2e0bb764e71fbd05d19f67a32"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 6203 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":6203}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b4d8d1ad386dbe89562de24e2814e9d1d8d86b3b022de1358049afd0c60ea58"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 6216 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":6216}}}],"partialFingerprints":{"codehealthFindingId/v1":"8829d665007ccfaf212779bb220c4bf54fb97c8c52a6bbbe7292c34f926c3020"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 6341 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":6341}}}],"partialFingerprints":{"codehealthFindingId/v1":"48b91039959628ba2044609aba290b6fd70efe570b54ee703107445da2fce587"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 6344 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":6344}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d1476bce01861e6f47b46402895ad6c0215dcbb8ab8b3691ec0b0da0c3dfc72"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 6358 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":6358}}}],"partialFingerprints":{"codehealthFindingId/v1":"7717d4a5b4bde2d00ac3b0f819e5553b493c439130c4c3ea632cbd0ffd39df12"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 6402 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":6402}}}],"partialFingerprints":{"codehealthFindingId/v1":"fef287d7fd7345e659d532246a007272f87da33330d1aeee678711a68268d9a5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 6448 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":6448}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ad43225961223d395bc1bf20ab557dd5b190287c941db39daed1e3058663d2a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 6518 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":6518}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d875bde5e50a80553a0d170a46605b47152f29ac382551b706aa42240ec2239"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 6580 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":6580}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cc97aaf71c256e8512d75d1c6877e6a5d9bdee129d71c2552c30e14e7df5399"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 6630 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":6630}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4ccf9706debae93dbf44a4e25b5c0424b7770cf6980caa9516a172788a69634"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 6635 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":6635}}}],"partialFingerprints":{"codehealthFindingId/v1":"3766f389c155bd053de21ef6092e140d795d07d183b840eab266d142d063b03d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 6647 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":6647}}}],"partialFingerprints":{"codehealthFindingId/v1":"208e90a77e6a3bd45374ba3cd4603d3948ac471ca1dfb8e8679b0dba78ab4976"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 6687 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":6687}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2f7f7b52279d82c6edd2daa791a8cdd24ac1bff6adf52977b0434b2641ad2e9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 6710 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":6710}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2e0161c7a2c8f20918e026487ac759822b6dc68f98afc5000936607f727b420"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 6732 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":6732}}}],"partialFingerprints":{"codehealthFindingId/v1":"8025b2c7d54f8a88be874afd12c4ec95cc5f2dca36cba87cab1dcf94fe40fe49"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 6763 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":6763}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aff0ac53b724755b3480fde53d101c241cc174657ccc7910a621afe9c04fb7d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 6789 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":6789}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2b18c279ad7b08eb6846a6793df5cab32ee67f5e175989c687ede91c3445a0a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 6873 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":6873}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f6db605d7f4d2c3e686f6022fc2093a5099a09c417a072ab7c7421d37fa6be2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 6889 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":6889}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e7c367cb78749f50ceca4fc28346e23e8db0df76bef18c36d3c69b99b462ec0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 6924 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":6924}}}],"partialFingerprints":{"codehealthFindingId/v1":"882d6e5cafba51d45dfd43f94497a093b87397d7b877acbec3299a7060fbf9d1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 6929 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":6929}}}],"partialFingerprints":{"codehealthFindingId/v1":"502455e9f797282778a21ee23677ef9cc1885dd68aa2de7284dd4c97fb16af51"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 6940 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":6940}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6cbcf39e45af564d256cab822c51ac66accae53c9e687a78ba5ceca929a0a3c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 6944 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":6944}}}],"partialFingerprints":{"codehealthFindingId/v1":"300d34de4ff9b6511a68643fc64c17d2d908c54127dc4778782179e6aac741b4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 7104 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":7104}}}],"partialFingerprints":{"codehealthFindingId/v1":"63050064f9de186e8b498ce4dec47228bed2c8843f8d7bef99ea6b835295f98a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 7130 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/operate.py"},"region":{"startLine":7130}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d40b413b3333e4a487d048180904612dabed9a7cd44810b65cd95352d58dd1d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 319 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cd34cec7f338c5b9ae9c218bcc2519fb20f4d7c1e7004884b0b5d43f8c2ff66"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 359 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"35f1eae59d9d28b88ed0152f08c1c3ce01451b47fd28db0e3113e839ebbbea74"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 364 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c7f1dd05d4912337bdb73c50c0121c13ed7f891b5da9b182a6e892b5a24ba11"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 607 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3e3baad101bd270d4f49ee11db5bd6b32ab7e19241e0cbbfdf4cb55b39b40d9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 736 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b8e273318b2e91e13fda798e200aa3853ecdd90299bcd6cf7002b73f3ba7231"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 787 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"b16e81110557d76ac14d49a2b6f16c5a31004534dcd19d7ae90ccabeb60c4099"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 840 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"b219307004d2898cc9e10e9676eb37b501c026cdefb39e5e1a44bd2ffc2c0820"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 856 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c3877fabfe63c5e13fd0312d1f128bbeee9bd0e6baa21667e25b3f9e182380"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 879 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"6667bfacb49e1d048ebd9f382327fe3855023964b3dc81b6d0cfd8f9e390a10f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1068 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aa7db4cc2ed342048636f560557242dabd05459d82b417070d737422befb373"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1410 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":1410}}}],"partialFingerprints":{"codehealthFindingId/v1":"102407bb61ca280c25143cb41b083a14bed6eb66e2273969efd918400d17051d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1431 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":1431}}}],"partialFingerprints":{"codehealthFindingId/v1":"4644159dd900fbaa3fdab3b1c0277cb95a057dc1f4f83c6890e57faf03ceccc9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1458 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":1458}}}],"partialFingerprints":{"codehealthFindingId/v1":"71fe6d9e07359b99a5ce232eb734da1ac01b8b3bb33d4308b8eb9f9863b75301"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1538 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":1538}}}],"partialFingerprints":{"codehealthFindingId/v1":"c86a3be6476d76d07765f0bdf94009eb198af4981f747cade23a50cbe1ecbadf"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1548 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":1548}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dfb9fe06b1616d5f9ebbb36096e5c90f1aae408c3c57ba439b542ed9bdc1d38"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1555 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":1555}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d284cb0e43101eee363c0c3ef8345212427a0781fa2a7716ea943ba0dc27996"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1559 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":1559}}}],"partialFingerprints":{"codehealthFindingId/v1":"3317430073bbf62d3a02e2cd01da9a2b75d33b183b85021db47d5fff565166db"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1699 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":1699}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f58e7e73d8a6cd5c60a0eef93e07d38883f006a55db7bb636b13a4dd99d68a6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1712 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":1712}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b6606e818c7d23e4ad91a5b0d19789810b3144a17ba59498b59e153f4bce9f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1717 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":1717}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fc3c6dff1bbbf4e888c8f999be1f686979d87336fbd7f56c956c817e1913217"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1730 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":1730}}}],"partialFingerprints":{"codehealthFindingId/v1":"68cfb6778db7f80b8884500530dbadc45211c2d9e16e753b09a10b7542c0bb88"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1735 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":1735}}}],"partialFingerprints":{"codehealthFindingId/v1":"33ed097d8bdfb883a767e42e8866781574b012494226942a0015505f3750c41c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1888 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":1888}}}],"partialFingerprints":{"codehealthFindingId/v1":"b74badd7446baf57496d9c53f60e44306162541ec0b51d7a67efe90cd9ac7d16"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1893 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":1893}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7a16cdc825384e5c007769d2107212a3fa4c5d1c77c0fa69d595e1ae9944282"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1939 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":1939}}}],"partialFingerprints":{"codehealthFindingId/v1":"a11ac6c2d9c56e516cd6bedf0e8236e006c68c89d189ee1af7d51e341ae2f1a2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1951 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":1951}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf4aa422f1af79b466458298ac8f40d4ce8736333a427fa068ebd6bd20245245"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1955 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":1955}}}],"partialFingerprints":{"codehealthFindingId/v1":"749d8d2f0a5d27d121db3867544febcccfc194f0079918b14867b2d79d2a8409"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1970 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":1970}}}],"partialFingerprints":{"codehealthFindingId/v1":"a889f27e8936f05ad153d660479aed074c0d1865f973fd543beb7f360777e6e0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1975 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":1975}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fd2b19333e366ef7e7eabe540021f25dcc05ce9eceeca69935489cb3561aaec"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 2013 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":2013}}}],"partialFingerprints":{"codehealthFindingId/v1":"49d171781d370d6057bd41c13fe7072d460f8b8cce1f254ae9cef798266dced0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2036 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":2036}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b36875c773abe4954a39da0cda1519d4ba823a42d57ec747bc8ce06ca1a390a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 2049 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":2049}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3d7dcd9c55ce41acd21d240da8c11536b93123202ec71b487e0dc54625bc3db"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 2059 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":2059}}}],"partialFingerprints":{"codehealthFindingId/v1":"ade701537c8cc1d7354ddacb5872e551ed1ffc9b24e77e7bc3e7532d1100b564"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 2061 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":2061}}}],"partialFingerprints":{"codehealthFindingId/v1":"63eadc962b085188613d42306bdd1f4fe0ad3f500bfb4d4bb1579a92f65e2591"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 2091 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":2091}}}],"partialFingerprints":{"codehealthFindingId/v1":"db8f517f15f86a07cdb8e42d97a079de9885daaf5ea4430559e09478005e57f4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 2104 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":2104}}}],"partialFingerprints":{"codehealthFindingId/v1":"65c52b2ec0a0ccf6e443258ce410334a97c48600b992536509b8e0a7101e029d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2136 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":2136}}}],"partialFingerprints":{"codehealthFindingId/v1":"edf66215f23442896481ebce619e95e87dcbcfb8610749ea8715c39e33f22228"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 2211 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":2211}}}],"partialFingerprints":{"codehealthFindingId/v1":"e346d01b8eb4cec6969001c3afe78dd7c40ff9ced588d71e3aa150ffe506d7e7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2227 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":2227}}}],"partialFingerprints":{"codehealthFindingId/v1":"42099456201c569b28666e0d6f9e437391b20bb76a24eaf6ac051835634bcc5a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 2253 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":2253}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d263d1f833cdf4a0f659687570be88317be4e473c024114a29310d160fbb8f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2354 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":2354}}}],"partialFingerprints":{"codehealthFindingId/v1":"35dd9468ce118ff3d308399557cde98e45950be1d6fa2d8ce3db7d6de49ff762"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 2938 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":2938}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc87242ca44947b7906706f7bd23c293cc21aa9b29ab8c0d07fe1c1ed86a32a7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2955 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":2955}}}],"partialFingerprints":{"codehealthFindingId/v1":"e127b0bc6d74c3da8bfe4f5619e6245d981f475e6cd8b207ee6cc6d8db71a16b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 3279 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":3279}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e45d505630ed6b9dde1137aa4b7ab06b51dded963094bc758ed4d549460ce03"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 4599 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":4599}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0c9a4145b7e9ba422c1419bdd621b26c51d7e5e939ecb2b8c80266388fd2128"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 4604 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":4604}}}],"partialFingerprints":{"codehealthFindingId/v1":"f19dbcdb7394f0450cb6b018b228b8284c406999043dd17feba0468567857f77"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 4645 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":4645}}}],"partialFingerprints":{"codehealthFindingId/v1":"0489f611a43c3be6b49b6fa8ae77af3e59d02b4f56ef534dbe2be48f9d1d5218"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 4661 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":4661}}}],"partialFingerprints":{"codehealthFindingId/v1":"600ef049e512e75db1f53da05d2cd51211179c2e3f9dd9e22178eb3e85133253"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 4776 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":4776}}}],"partialFingerprints":{"codehealthFindingId/v1":"16f7130a1bd27ec7ff605be8c8672fbe0aee96c09942b9fe267876e1ee249876"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 4790 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":4790}}}],"partialFingerprints":{"codehealthFindingId/v1":"be88a279b53e3f3a0a18178789afa03724b6a25c63341e72249b314173506260"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 4799 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":4799}}}],"partialFingerprints":{"codehealthFindingId/v1":"af23c38e9667dc888b83caacd2cae90e9782a3daca1a9a0e24c0a3c876a45ce5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 4994 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":4994}}}],"partialFingerprints":{"codehealthFindingId/v1":"775b0cf5e3e0f12accafda0a8100a41d71100258a9e4312890b3b0e68b002736"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 5022 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":5022}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d3129c2dc948ced8fb2cd3f82349a9d4b92a44e57faf78e0945537b6aee949d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 5321 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":5321}}}],"partialFingerprints":{"codehealthFindingId/v1":"d195cbcc39edf26348029c450104cbe0296f052e2885195da900113018854d81"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 5339 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":5339}}}],"partialFingerprints":{"codehealthFindingId/v1":"60b8ebb58831df09efb017f713861b20f4ee2d6c5d5196211ad338fbce0b8eb0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 5344 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":5344}}}],"partialFingerprints":{"codehealthFindingId/v1":"1273d3cdeaa79dc6d89067611ac23dca63bd86414330651f23157cff5870dd5b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 5807 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":5807}}}],"partialFingerprints":{"codehealthFindingId/v1":"c169a21ce5ca7cf64978f92f18f2954f679da34d2964b6a978d6fc293ce71a6a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 5864 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":5864}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3a6d22b76e754888dd5feadf3f75ed614a8ca397ed3f8383f032ea67052a0bb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 5875 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":5875}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1bafc840ad1a7332135819bf82d8c7dd59fe1a5a03ea698ad82e0bc80160512"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 7022 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":7022}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e3fdfe108f28ef9aeb5a8b235702faa681178f5aba0aaaad7d8b385d3f8912"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 7042 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":7042}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a3fa6e9e8a936990eba15e69f54a580eb5d1453217a42a4112853f9d815e586"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 7065 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":7065}}}],"partialFingerprints":{"codehealthFindingId/v1":"24328f2422426170e9bc12cb69afe6877153a923be9d7befb0a87d9a9b8d01d4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 7111 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":7111}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea63b1b247cd053939661e10bca0a80ff5a9c080b240a17a6fc1002c55c5a3cb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 7115 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":7115}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a2d86f5ea4522380cab4480b277938e5d7adfa0dd09c0731bad47498ecc58e7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 7123 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":7123}}}],"partialFingerprints":{"codehealthFindingId/v1":"15820ddb655f63314ded195b0c5553cdb59330e9c3037ba8e43e22ba04fed381"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 7130 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":7130}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f71f33cfc127e1b37373f5281858abd8e4ba8e9b89be9bb518082b5872133b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 7133 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":7133}}}],"partialFingerprints":{"codehealthFindingId/v1":"f50954ada84bc959ac251d8c007c8ea68511b44a218ec6cd97a6056c3f0e40ae"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 7278 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":7278}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5667c18d3ab5515af84df01f1ee4e669378af439f4d28c287f91951738d864d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 7284 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":7284}}}],"partialFingerprints":{"codehealthFindingId/v1":"d68f2c89fa77f74651a7ea66a5448049f6f65f72e63746ab4766856f90731a64"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 7291 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":7291}}}],"partialFingerprints":{"codehealthFindingId/v1":"d237c9a6dcad23ff554912ae20886c701d70a50f59e8c34b2c1b0b4147d35969"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 7387 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":7387}}}],"partialFingerprints":{"codehealthFindingId/v1":"39a00483e7631d850632cd1f7ecf950cd97deb6c42c6e523cf98b9b758c6fe1a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 7397 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":7397}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2faa8233d958347dde0fe9b79cf5589e8e43695a03c997b1712f316b94a1ba3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 7422 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":7422}}}],"partialFingerprints":{"codehealthFindingId/v1":"f302d4aa116ce3da12b6b166f9037307e9424b65acc19a88571f70b160de02c5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 7496 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":7496}}}],"partialFingerprints":{"codehealthFindingId/v1":"86465144a29dffa800329514690900b3bee97b0fb15b3a26388fe1163db04e5c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 7502 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":7502}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4ab5b034946df50b88742211209f4c980d54bdd40086ac400d13dde639daf89"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 7981 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/utils.py"},"region":{"startLine":7981}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee7620a4950e0f5d4163766ee9ebf7c910d4ad98da2571c9149f8b29b61ca361"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 154 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/anthropic.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"94f60cabc9aa702cd5c41693f5d0a5ff38b22fd9094d9b9c33cb9ed560c1c383"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 155 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/anthropic.py"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"323ee86a61e7b49e1773631290c6b181a6a36e99c3c08e9b8492bb08814b177a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 172 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/anthropic.py"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb92e670e8e425a01152bc9e55c94c1bd97d954c3bba9705ba56667b36209231"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 176 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/anthropic.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d5da63d93f5991b57be666955f1ee34d88ab0e549e31035a30518af3d13c3ff"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 179 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/anthropic.py"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aa7b4d3890d6e8a92bdb610b160bd33edb28c9e596683e350e082d127b1bffa"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 183 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/anthropic.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"eba80256037bf6407d6a2f3a151be2f9f5b61c3d9d69daeaafa75d9d03e09d97"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 186 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/anthropic.py"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"1225b7c0c0cf782674a99e1b83e81af4197e351013dd473b339cdf6db587e324"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 190 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/anthropic.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e55bbff4f8132f9698a4d39e724115177a9970afe36671d3ca2dd6b43667956"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 204 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/anthropic.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"e97c75010d5a6e9f977cd464d94aa502bab2e4951a28c94b3e2d44dec8930b23"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 210 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/anthropic.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"8604cdf3614ad40d41f0b5316effcd2fd71bc394105b52a774eb2e1d8cef3cc1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 220 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/anthropic.py"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea0f450baf590e8f5c07eb5e3d017c04b341fc99e93dcf7844cade9a9e1f76ed"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 256 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/anthropic.py"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"49e6552aa00bceb9caf4490f20f86432b823990e1e691c8f1f178576f95ed911"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 305 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/anthropic.py"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a64ef7dd127813666748f151de7695c4c55e87928332c2d3d91f133e809ba99"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 321 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/anthropic.py"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"727ef7a12c0ccf52c358748a9abc2c3ebf2e2b7492e97c7ec4600c9bcf492ff2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 326 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/anthropic.py"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c91b39640ce54ff95c008089081245f18f836e629f2bf412cec33cc3acbc0c0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 132 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/bedrock.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"599b04e27b3f4c49d355b895dc69e3ed5001ea786a6784d4017599c91ebb5f54"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 137 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/bedrock.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb719f87da64d7ce4f54f375c191cad29eec63833977b790f6e59ba3f9dcbdbe"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 142 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/bedrock.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae343ff3ade0d88972bf66a7ba4e842cf55e1b0df1d1acd75d814f76eddb22e6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 147 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/bedrock.py"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"960af944e53b86f2696484649e1ed23c64d34d1487a3785ac71e516ced7280e2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 152 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/bedrock.py"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"31c2f0febf2e4cc58d9ae822c9e52b3c06d0434c655729db4531c40c6108f0e8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 157 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/bedrock.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2cb8cedc1840307cd4a23709225bee4eb39623e9ed4a4df0882114cce4723c6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 174 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/bedrock.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f6d3994e04822925056039e7c360ae0d7f829ecb917af5f3cc10ac8b58b0e54"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 413 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/bedrock.py"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"873048014a244f977435f5e4b1d5d3f89a0562213739f79899928eab86e0ee4f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 516 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/bedrock.py"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4a6c522f378c75da14bda423225c03931ad23f1de5518b16b3ce6ed4201d160"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 175 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai.py"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5643965475140a129be211a90ac1a4dcf51c7a37cf02e8487588826babf1cd7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 490 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai.py"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdd079909336c23cf04dd858ed3b298c06a3e246cd8e0f6f47cb366427ed86e4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 491 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai.py"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2cb9932ff978abb233a275b817b7845448ae2be3e911ed0728869668a968628"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 492 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai.py"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9a2458e6ae387c944ed50fdc984d6d9610c8adcb2eea711f1ca594ed61269b0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 493 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai.py"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d05731fa289220e454ceef6dda4e44908baca47580ae87ca664c73e38af03d6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 524 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai.py"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d556496f3dc62d8eff31cc05087f15875964afe89be902b11a82927f751ccf7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 527 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai.py"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b75a27021df79b50d3f315cb1c8131803ad85ec1d8992ce4708ede9b79a47b3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 531 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai.py"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"d801a0a619d927a2406840303bfd07cce968de27efc7b14218b018209152e925"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 534 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai.py"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"18f5b72defec676092b934d6c21473ea3b4dbe3d5c7e174dd9d11b0f8d07b6fc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 538 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai.py"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"7227fe5b6b4de7d822feea11b992d05e0bc9777d992428c643fb2fac195d90c0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 542 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai.py"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d5f30a1d280a77f227c92a47d16b77bf3fd8ef285f6d4a86fb52bc7a6495462"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 544 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai.py"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc1685f9aeae0ef7371d8ec4c8bf4308cc33df9ec5d28d808172c47377db1738"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 548 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai.py"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee3ad01c8acd061bd9e738284c27b2c0060e6e49d60a163bad3ec6967cf74e25"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 560 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai.py"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"c18a209160769b5ef3ffdd0553ba0f098a67a8d7f43dfca6ca3c347deb9425e5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 567 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai.py"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c34295d99ef6338007f288d6145b943ced776a900443d109be2d97d73b541b2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 582 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai.py"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dca967029660e71f8e89deb982796bfab995d9d37e3cec7695a6dd4f31c50d6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 588 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai.py"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cf2c5d81550941e6447b5049008b5ea87931cfd9195fcabbf9c2499175b35e8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 613 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai.py"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"caf6c898f473d547ed97655a2d14804bd802ec736cb334e00d7852ff3a4f5aaf"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 620 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai.py"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bed58912ec2d3a4f1f58370dc0ca990e62ea714252c75a815ce84d604b14ec3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 698 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai.py"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf70edd7832b9f0c8bfb736d29c2dda25c730df59c809d9c8daa6a1b0762a99"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 734 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai.py"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f022a76df48939fe86279d1c597ad0ea89ee00563a989e1477cc22a5220ef58"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 738 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai.py"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fc4eaf27d1a79cf35b44b4e0000afee5459c94d501b891a62d717dbd03c0976"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 749 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai.py"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f669a91e7d60f72d4e5639e65da3a22251d5595a520bf3ab1b7722951fbddbc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 756 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai.py"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"59621359238a83e8477d7ed0cb18a6ca5dd919fc2078664304a8a788f9290997"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 768 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai.py"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"c809a9ce989ba8a422fc5d25b35227d73d0305dc919bac7ba77013bf9f647e20"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 783 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai.py"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"605d9b5705a44dc133af23557a70ff81f1f84ff74c019e69af9a5fe9f3e755ce"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 787 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai.py"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0e034f1a9bbe350d64dea79c3502304bb89cb3f44efd1cd76c941bd0786b235"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 798 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai.py"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8b82e254aa453afca027c14ced3c1f49e066aba5601e0f0575d73aa6f50f950"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 830 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai.py"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d2c2723795aa986ef7549f9876b5991c5eef35a48edff344d56c505ebb8a10e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 921 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai.py"},"region":{"startLine":921}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ffe2aa82ade649602b0b7f1c4900685ca4c2209db5f2edc1c34d299f543f6d7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 947 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai.py"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e710c5ff967b9b738372dcb8fa90542db184dd990e300ae0ab3bd39aa673937"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 953 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai.py"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"9687b3d5f39a004c9b9fc01dc0d9775398a8e753ed799e5881fcd15f3561fdda"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 962 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai.py"},"region":{"startLine":962}}}],"partialFingerprints":{"codehealthFindingId/v1":"f89b8e7814fa19a0bcbb0625e4bd000b2f794f2f78bf1fd2152f58252637b50b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1186 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai.py"},"region":{"startLine":1186}}}],"partialFingerprints":{"codehealthFindingId/v1":"8804cf99649ee230a53a010211e2155a28cd4846f597bfbfec209f5980645b92"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1193 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai.py"},"region":{"startLine":1193}}}],"partialFingerprints":{"codehealthFindingId/v1":"94e6ad3c9265e785581eac8219224d473f00806f4d6d87293d5951b86cfd3ec9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 227 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai_responses.py"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d3a9696220ee951f076dcbcfd625f170791f94d5ea10fc7dcade84f2aa97d5f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 377 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai_responses.py"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"c137d76dfa7405cd86c8ac25addc90727371a7935ab33f1e05e52b0e8fce19a5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 389 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai_responses.py"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"95698e366b265c37d8c79ded003cba6f3535557a5f746f49979374a6ec89b326"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 543 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai_responses.py"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"b75ac01326d344349d4c465bada8f57ab9df6228e0d86b35ba0c063463560ec7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 544 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai_responses.py"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac25006bfd8977196901c9d0c9c803aba4715961435de6489114123dc560f2ac"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 545 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai_responses.py"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc3e477d6c87fd64c6b254ec8c2f5efc50a29e0d0f30af711810ca935e725f64"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 560 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai_responses.py"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be0cc56a20ab284fc6a82653b6a9666a4f5582b0c86fc52cf1a94b991e59c74"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 569 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai_responses.py"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"45cb1e7bac0e459eeb3a2f6f857ef55daa3cc96359aca5485303f94973fd5ad5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 583 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai_responses.py"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d7cf311ba35657f3380c85f2bb85db71b8d51c3fb8828097ab5025296dd5e77"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 873 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai_responses.py"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"61c5baab63e2d7cd3f853c09367e9c411ec536acf35c2d564e44e7378b21116e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 874 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai_responses.py"},"region":{"startLine":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"00e4b04b2da19de684de20c11546054894c6751ee947c4e4b4545152435299f7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 881 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai_responses.py"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"8da1fea50c32e9197dffa2c9e64d6d3ed53249580a0f254656e219430c49171f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 887 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai_responses.py"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"a101404c48597e1b7bdc174f0cef01f1b5839923f5ab98212049f9c24bdb18a7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 998 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai_responses.py"},"region":{"startLine":998}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad00ee568a19a30e3c1b1e6313111f274094aace980f87e21da4d2882c79caa"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1004 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/llm/openai_responses.py"},"region":{"startLine":1004}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c1a496094d0eb63608ec5d76c4ba2d3eff461b9a6036440529050fe5817e9b4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 111 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1a17d78c35bc87d5b205351597b248ba0ed2bf222f719bf1d0ad729897bd69a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 259 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3ed17384b68a9103c0a0d3fb4488731cde5c736f20ca14862892810ccfcd801"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 270 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"44d1576523b55bb558beca21ff0305705ccb582def77653c13026352648d945c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 302 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5b87947727e05aa4587495a853b68d8edc211e9f4b0cf476e205618871058f8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 306 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7dde7050fddbe612c0e4f0651284cb0e07b2efbd1f795c390c4ed7b8ba0b841"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 319 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdf7e23570486c2377d92c06cee221fa664081cac338d75501e6ed1f28f0dce4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 323 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0aea87eee447839fde650e8437ad05d8e680fead6c52b1035864af35307e9c7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 360 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"22ecc0663aa64bbff9cd74907939dc7416af94e784388c49b84f351e68e2ee47"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 368 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"08627ac7d5a154ac8517a1374a091d7d5c9f4412e19c5b9020d71cedbb48baab"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 372 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"6725e84f9e0077ef08a3ed4785c4856e7d676108e7b213f3d34fc96da5037817"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 379 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"26863971411a09a9aa27ad8edbb963f78f01da4d3f4614cb566a615fdd413c6a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 384 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"0563106a4c89550425f8d3f033dcf139dc3c5bb5d254d3ad02200b4856b482c7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 389 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"87c43cfd6d5f2694b79908eb9bdc6dee01870741b547a130b64aa6f1e87c35c9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 393 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"d05a6be31febf8fa0f2dd5d8a0a3183c27015c457f86ffeb0670a1b5e7cd6473"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 411 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ba4d0ff768ac8a80d6c94057abda512e2cb16a364594992273f5a5e3842f289"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 415 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"0de10a6e5b3692985d59ccec15217c426d9e75bc74bc20d3ee29fe98b49c11da"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 420 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"405ca9c3807d1e8f1147920f52fd54a0253de78d19cb5d4ed3bdb66b6eb740d5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 437 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"2445815be0fb90b8263e25dd9418d348fef2c8cf32b260ce75732c4168d65270"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 442 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b91a5cd89183cec13b0b8d06264e2d5a6019373d75a43e82adfcf6d30fa3341"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 452 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fed25ccce8c02d6354b643500464c6d6880965cf2efdfd91acf02fa7a34a14f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 459 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"b603d22ee3fc2e2401f7a976702340757c5a5c1901c339e414971382432ab9cb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 465 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcd1111a77f1e6efed3d6e23df915eb4033a35d15c678b7dacd042e7621d0297"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 510 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"42631add406283edf386a67f34e6a90a9b9addf533b08987d95f6c5002fa39c2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 552 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a80d1e9333d03f55ba338cae973c1d1ce46ba9e8214ea1f7f43f2d861436cd6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 589 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"f00d013a7995a11d2fe0af67d4bb014c953bfbc5fb10cf8ec24ea320c1c3ad78"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 608 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e6fce939e5c86284227efc430508c324d26387dbb0d10697c486ad167a6d27"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 681 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"935db85f29d3ba6d9034f1733f9d946bf3eded0d6a6d55d99709aebb3a8381f9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 694 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e08022d053e3fa0be768d29663850ee1cdfff3a64d78bb3962cf6972243103e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 730 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8f55af82aacbaea2b8901af184d06203d0142039acdb62124290aaa060db430"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 820 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"627a02ddb7949f2eeb5223333a20d1588357a3799a708deb5a1525d0a39c97de"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 837 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"838041fc674eeb490e9c75f6c5465b014ad6ecb983682b96c54aaa8789018eeb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 847 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"b49229225a788ab1bc8166de4c2e08b955550fb243a8f43146b7c89edb6006ad"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 868 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"22767eb3e495b53017988c33f84cdaea8f826baa22cd6322c53bbaf343e0da52"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 984 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4e27739d698e82a8f362a82762a8d8d9ace1f68df9a2778a788228f52c0f371"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 993 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":993}}}],"partialFingerprints":{"codehealthFindingId/v1":"8043d5c10e0df36c22ccba38923198f131d8ab3c9909dc46a6fdb999fa1b4263"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1101 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":1101}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6adaa5a201331e9362ef4f0d1fd431c57e3497dc6258a9bb4ea2615e6c85b34"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1153 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":1153}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ba402d61fa21e4241cc6af07c3efded8e77b003865ea618e60b27e430a8c961"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1183 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":1183}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbb45159f6967318aa4bac683a0696370c10008f0bef541c0ced2efb7cc1c066"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1235 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":1235}}}],"partialFingerprints":{"codehealthFindingId/v1":"5438a1ddee95465b9c80621c09b9d64c6c4136614f4c53e1c4888f4c991c76b1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1296 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":1296}}}],"partialFingerprints":{"codehealthFindingId/v1":"53af0c6b41ff6ac586eb42951d3acab2e01fe9e14029c7008230ab23fe06680d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1345 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":1345}}}],"partialFingerprints":{"codehealthFindingId/v1":"304cdefad4f9c04c24e90c9135ffeb620868c1717a6e53edc2906deb668a6c99"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1421 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":1421}}}],"partialFingerprints":{"codehealthFindingId/v1":"a482fdf9ab855f0a4fbec73c088f8a97b0157561bbfc14e9dcfb9cbb27cd36ca"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1431 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":1431}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2682ebcdf59305bfde96c21641b5fbbcd46061df4c13702288e512f7b8d3263"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1438 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":1438}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f33f4f2ba86913235a5154aca5ff3a61f9b5228a30cf6fb6babcbcd5afa2f12"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1509 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":1509}}}],"partialFingerprints":{"codehealthFindingId/v1":"d281e580a0838c7a121e982a5ef1d2a33b19765123697ca26f435036c3f03bac"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1514 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":1514}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b12e07ed68363eb6ec67a090862fa2e4c76dddb8580ce3dc08e9ac83ee4f685"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1516 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":1516}}}],"partialFingerprints":{"codehealthFindingId/v1":"cefe43b007d52cc775da672c591d8b6bc61bdc92c28866b25de92132dfc4d039"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1521 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":1521}}}],"partialFingerprints":{"codehealthFindingId/v1":"f52ceb8a671e6f74e6903ac00f289287914874f44bac0be68be51341a0229c41"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1580 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":1580}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4ae4c67420ec48a056b15e1912d3c87b4a0ff4f62fb6fd9f31274412550750d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1593 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":1593}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffc8db308f79d86ef9f332f9620ffdf8b51e0db6064e71c591ad56c6ddac4404"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1673 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":1673}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a21c9c8e1e21ea8532cdd852191275086e9add1901e2353a914d7213d38a779"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1678 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":1678}}}],"partialFingerprints":{"codehealthFindingId/v1":"2916e2846b253d5b1c19493eb7429d82a428e5859fde9f1c0e070f33bed1b5ff"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1682 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":1682}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c4abd5a33f5d961906a0bccc555d901e43f6d0bfdc8386f3c49bc59903d1ba0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1686 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":1686}}}],"partialFingerprints":{"codehealthFindingId/v1":"1546bd3c0e77b93ccb8cf19deaa696f976b44c800dd2f4e416aa475e269893ab"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1778 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":1778}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa2326f426007311fbd8ab4b5452cd39e081c3d6a936bf9bcc6f445ff6e4b118"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1785 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":1785}}}],"partialFingerprints":{"codehealthFindingId/v1":"69ffa58c5d28a832ed9a7d8acd2432accdcf24d805fda6e458ff094aee89bc49"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1844 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":1844}}}],"partialFingerprints":{"codehealthFindingId/v1":"58c55d073ebb491d444b1d42ecb237ca468dbe58932a5a994bec42e20f1478de"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1853 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":1853}}}],"partialFingerprints":{"codehealthFindingId/v1":"962d78cc1ea1e38150e56ebf13f239cdf9a2a219078a62ab6a7433a13bddb6f2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1977 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":1977}}}],"partialFingerprints":{"codehealthFindingId/v1":"2735300f7fe5520bb48e5d45f6fb1498b8d86eea7643b536b03929e7c30d33be"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1982 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":1982}}}],"partialFingerprints":{"codehealthFindingId/v1":"8832ea2248ecd05b4ae0104548141f330410bebe0ba82d30b694a525223654e2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 2068 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":2068}}}],"partialFingerprints":{"codehealthFindingId/v1":"252254cb0e402a984c3adc3e731f927c1ba507c94b2d92e33c7ebe94e5fa10b4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 2075 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":2075}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ff9c608cca21fa7ca99b490887ef339488b72436f3d10f8d03df225bb93cb2a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 2127 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":2127}}}],"partialFingerprints":{"codehealthFindingId/v1":"efb6ee0d7b30dc6c5d1d0718583136ba6b618a6db6c2a941059df35ba551879d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 2158 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/neo4j_impl.py"},"region":{"startLine":2158}}}],"partialFingerprints":{"codehealthFindingId/v1":"6731bcb5637e7ecd48060546819a12a6b2a071bcbdcb72cbb198cf1652bf502f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 222 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"abe557004834ff6563ad12cd4d7fe0959a145e386d8a385ec52558bc0af345a5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 241 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"16015812dd8516287c9d2bc3bb6eded121dc14abbbf2dfd5f34cfbb5fc99b746"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 285 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"e86bcce97bab764230763d40ef947c06bf71f625efad14f65447c29cdebc7e33"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 289 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"685a6f8de0e8308ef312b97bd6cd41e6772cab21e06d4e5065141187e9283976"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 312 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc18e98c7d26723143807db24c8c3ecae76daab7a4e86624821e73f78b360e44"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 335 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a8c94315a8a8003bc6d1ba5c30a573bcc31badaaf95a09bcf1987c82300ab3c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 339 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"31d4caeca67ce75af36ec984bcc009146e856b184de951dde1817a96df559c5b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 351 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"f474266637a9ee866fd127c348be52538e71483df87f434f706be9b1c06a0e44"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 353 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"5de016f1efd24867857028f20aaafb7133dcf5a02308ce6c004322ed2284453c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 360 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0d6ce7123d98985578dce88534b7b1cf0b8d27427bc96398c2d86c1153927d9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 364 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7a2fa3e16d3fc4922321220952945da444f6f7bcd80aa0ee1f7b8885a23b837"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 402 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a5f7c1ec066cd5b220b505eca47368e75b337596f0893f3fb71e2fbb7a5b3e2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 409 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e00998b018e54e0d873383768c39578e7fd7296b40600a16760e5c06d291363"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 417 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad4748455b31ae26d94ab4ef854bcc125ab26722a2e2e9717b3eb102796a430c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 424 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"384551f7ca1ec538da363c29b87416d7cee16575db91add764f7722fd6669f73"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 437 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3f3cbf1ef9fe1f6e3650e9e3e3ecc26bb17b1d143ae47533fef422c6895102a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 446 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9cf677c7b78b7ea23168e31466221cba6c74f02a216b701d7a232871f9a52e3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 464 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7b959e90e65826d340dbb46d7e5d79f474690971e2f9a49a4ed53aa1f5ac465"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 469 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"6057402bb16d98ee98d9627b6e7a649fd85e43c3be5d933e383538ce8c943116"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 479 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cab74f837fafb57dc81171f9721e4eb9cf3576f1b7b26e02b38e88d716e9244"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 494 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b586fc12db7979ba9f644e8c0b21715ae880ea3ffe7478c8b9e448a88d8a04"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 499 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"42d177b0c0f95724664bfa7b0f245d2e7463b979b8dd699cb65b0da7887e2639"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 504 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"da01c7ceea3c8b4affdde51ccd72aef5393d16e7cd4e2b13d391c1ba1c199f92"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 529 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"80da7731ccd440320815796ebcf6624a722ad6edda9bcf6ef21e4f64a6c43749"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 535 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"01d5ae99ac5efc6faa880dbb1abe6dae53e9684a456f70f6c10c9604a6eb3be6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 541 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d693f91dbab026a8d93ab90be7174d873706ac06681d4d800a7bf9e08ab0233"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 580 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd5f2ef2ee5d4649f04a5a4e9cc25401ee7f4742af284a2af318b169a4d7ad22"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 611 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"30df7330c3fe31e13968d50a0b40a42e621806c8e6f42164a227c14cf298418d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 642 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"b353042aa595af42ad86272f8ad09fbbfc48227109062fddfca8cb2f2f6c2923"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 663 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5b9a33d3bbfa56a15c19b8578dd6cc409856f318500a65d2a86d16fdbc5d820"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 778 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"c86b1e29a94825aba7fa7783ca2dc22f6271af8752e49276c84f261347d0b48e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 799 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa7560f7eea66c40e63795ac4c94b97592806b1be60619570ba868cdbf256140"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 814 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"c83db9a4ad77f7d66fff83d00048c3a832702c7413b3632060d8fc477470d11a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 844 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbfd0eaf32104d98a5f1b755a0bea0bfbb50cedab3ba62210d613be3f099c23d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 853 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a582cb1194bbbb34e4818803e131372c601ff3230641e8a61fee9b5d0f1f70a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 904 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"e61bed999770ee809797137000f4667a93e00bd413a56da32cb0b809b68df16f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 931 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"684f22eaf8a718cb5f7b588dd8d7e03dd91ab87e9675703f9a8c666436f1e536"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1018 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":1018}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f4c9a21798e6047b245a982db054b61714c7048f91d73fbb74758142fadd174"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1025 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cc3b2c68000b36e1612329abd720cbc6b619d181fab0568e31c769393066ae5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1033 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0dcbbed7baf71af37393de09e4a036182e52d89ddc13242ce868051484dcf47"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1040 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":1040}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b2d7e8a4bed558fbf21300ff0523d5067f9a2a3c6da01a99c3db2169d489577"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1055 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"c97d611cde7bdc38f3b78bba54bd0921b411488dcf12157992d2452c653ebea8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1064 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":1064}}}],"partialFingerprints":{"codehealthFindingId/v1":"83c54c8aaca2530e66bb2d72bd4b74559c7032d4a37c264ef4e496094bf08334"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1081 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"370ef2359b88baab2cf328ea888157bab3ea835b0563fb0fe3e92c9f35df9c3c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1091 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":1091}}}],"partialFingerprints":{"codehealthFindingId/v1":"05bb6249976dcb7fa48b63aaea9a3c1dd68700d6422474c547d39498f0b6bc3b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1108 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":1108}}}],"partialFingerprints":{"codehealthFindingId/v1":"035836ed4b01fbed881381c9ddd6d10481f691fb2194eaf75095865e3a45ce93"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1113 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":1113}}}],"partialFingerprints":{"codehealthFindingId/v1":"2367fb3db0e5f61b35b702f63373023c24e3f347478b9bffa524da62cab231fe"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1118 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":1118}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5fd759c36e3a9fcbeb5014eed4b6c4c626fc25e7d5c9ede791cd7c33a0d7526"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1143 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"821a4fef17f3f66a0de38299af7fca20de2a55f20ee516199ecbabb4309c1670"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1149 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":1149}}}],"partialFingerprints":{"codehealthFindingId/v1":"68583d84d85ed0ca3cb9503b487e4dd1062f6812e9421606824bebc6311a89fb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1155 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"30ae4b771813308ff461fbc13ace25c703e7dabe97bb2b4044ea722187189739"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1206 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":1206}}}],"partialFingerprints":{"codehealthFindingId/v1":"a542cff587d17a9a9b1c8be1f39bd47216b9673b77d4419661525c2e28b5152d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1213 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":1213}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a479a35ea4b3f377d27001e02ed11232cd7faeced8d699a3bfa1ff0e78c0cf5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1249 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":1249}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fe2dc44e4c43024e6d28817c40ebe99ba473e309ae1029af265c7070b43399d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1326 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":1326}}}],"partialFingerprints":{"codehealthFindingId/v1":"01788ea5b44d5dce4427ec1629e5caa51815b06ed9cd0d7ad4b7b44e44430e42"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1336 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":1336}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e0bff03a079d1a0657db3426f39f973842a61b7dfca17edad06dd7a4025f55c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1386 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":1386}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5f7c343e4deca746781227b61b756f9379812c020221180a9805e17a0cf145a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1397 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":1397}}}],"partialFingerprints":{"codehealthFindingId/v1":"284572dfad3ababb457cd4356cf83bee5cfb4032bb377310bba6612f9a1a9c94"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1422 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":1422}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f57c1fc77b2d720297165a521f441e682131c350546f6154b1df3f9c0ab9020"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1609 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":1609}}}],"partialFingerprints":{"codehealthFindingId/v1":"a75c65e0c8e158ebd161bb0a8ac16f6dde962bae3b58b8a6ec546cb10d669b48"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1630 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":1630}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb663ad8ad1d233b88f6df20615fed01c8c57b28fe53f3eb14756fcce58a8f0d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1677 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":1677}}}],"partialFingerprints":{"codehealthFindingId/v1":"df78494dbc772c46848a44d5c840f800047196eaed2375bfaa69f6d959e42a83"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1781 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":1781}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b445e0c94ca11a22b6fd3b21bd65c6e614c7ecab61ea9c4be8ae95f7071a665"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1790 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":1790}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d4aa4b4edef598af9d7a9070835089310d3050a95e2f420ec1dfc8322b40863"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1856 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":1856}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7e3fb8a8bcd5d9ad3ed5acacadd069dd50613dd595212cacec9f5f44c919660"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1866 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":1866}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a39e9878443801bf0c6733cdc2e363c3c19626181e69f204c1f2d8df456c52f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1938 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":1938}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6752c46ec23ff3a529b0ad0cc14a2b1c8987c8ef73e9888fea23640dcfdcd0b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 2100 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":2100}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca828e50a80569044d5510c1ebb40d712dba6d2fe914a5e3d0260eff9da5e3aa"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 2275 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":2275}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2681fe7dedd41fbfe2c247417ea05e76e75ba27fa63190a10c2b376f606ba40"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 2323 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":2323}}}],"partialFingerprints":{"codehealthFindingId/v1":"33bdc553a9fe1251df14c6529dc4bcc9fc30f81f0d3b558bce9b6688fbd493df"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 2596 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":2596}}}],"partialFingerprints":{"codehealthFindingId/v1":"e039927b8375c6039cf20117829491ffcda26312ac5c424b98ed0e605fae4f82"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 2675 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":2675}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a43806fdcd4b8c2ccbcd62c7f9803df078980ca9ff0e84d63e2b7823d573f5f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2699 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":2699}}}],"partialFingerprints":{"codehealthFindingId/v1":"764821ce26c5e16108bb3ff4f4fe3d813933e64ae36c1ee0aec33beeb3bf76b7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2853 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":2853}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c8d600667e586b1c7d32898a4c18d27cf0f3aa025df1c5d3e154212a127303b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 2858 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":2858}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0c4f7817cb374909cb73022e7dc454fe77a687b80b5ed640f33f1ebb940e920"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 115 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/config.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e438a6b5a600cb535c251485f70c1dc80512e72d0e01c55f078f4dccc24d84a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 123 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/config.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fd365ab5dc1ba16776b5853c777fa9f7d9a82f511c7b25e0096a513f60b365d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 988 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/config.py"},"region":{"startLine":988}}}],"partialFingerprints":{"codehealthFindingId/v1":"5999ad9c9456f7edf96d61918ca05eb0d4126afbca0c35e1c3bacfabe6b35626"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1006 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/config.py"},"region":{"startLine":1006}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1c0a6a5e3225f78760447cfe23268bcdb76b275b43cbdffa849b8e4972ab312"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 603 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/lightrag_server.py"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e0f4cad76a993150a6dcc7f5e30a91542e6998668231c9cb1552b83ab5fce45"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 613 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/lightrag_server.py"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f2de118d8f44ad3c5aead61e88f08aa538787d61408296e424f94f8a27893d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 621 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/lightrag_server.py"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba33f6a55a657fedae4ebdafbf77f7c94f0f944dcfab5c9b21240ff3c5de34b1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 627 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/lightrag_server.py"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"a93cfdd4ab57a50b0927579a325752b612eb840fbd4fa76ef88e443fdadd9f92"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 635 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/lightrag_server.py"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2278b452516782edee6dc9f52ba7417995c4afb2ded1d482200a01c5c8284b5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 650 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/lightrag_server.py"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7590f8b8a3ff7e48505f0c1514b1c06c4f2b8848c49ceab5e3b2dc67ceb0543"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 667 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/lightrag_server.py"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"22220b1c57d8024da3e59e1ab3bcd953eee95e1b14f7ff42cbf28c39ae5beb1f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 764 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/lightrag_server.py"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c2cafff93a35c24d266633ed3b4bf3bb6a66201a22fe0393d19f34d8e460a71"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 771 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/lightrag_server.py"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdbc806ca8dd9b66599c522af20eae5c17bfd81783343233f30772760d09fe39"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1062 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/lightrag_server.py"},"region":{"startLine":1062}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b62787854128def7e30ba45245ccdb3fb725e361c82b6c80406ed68e0d291ed"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1123 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/lightrag_server.py"},"region":{"startLine":1123}}}],"partialFingerprints":{"codehealthFindingId/v1":"27a6bc1ff42660f765ef0937999d89755949955a22e8bddba5b13aaa9d83d3f8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1136 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/lightrag_server.py"},"region":{"startLine":1136}}}],"partialFingerprints":{"codehealthFindingId/v1":"0799106e682017b0daf6a06e4b76a084166a51c0b6094b7c629848ad3cfc9b8b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1159 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/lightrag_server.py"},"region":{"startLine":1159}}}],"partialFingerprints":{"codehealthFindingId/v1":"31530bec83cf7ad8464e1f3fa14121beccf14c87709ecbcb27af7a99f945739b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1308 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/lightrag_server.py"},"region":{"startLine":1308}}}],"partialFingerprints":{"codehealthFindingId/v1":"408aff0dda77849a845320cc5f6aee337cc30aaa51b5b8b4b4d4c5902b657d60"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1344 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/lightrag_server.py"},"region":{"startLine":1344}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeb0dc09e24e1d603136dc60892666826078e07e58bc3496dc9788f96925d0ee"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1706 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/lightrag_server.py"},"region":{"startLine":1706}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8945a4a419a685467fe18b93d019769bf77d578b1aec40add857de8ae915f45"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1811 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/lightrag_server.py"},"region":{"startLine":1811}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e5120724ac67137dcdd1ad19edc24ce19777e1fb8e1280876ac5b8babf92e53"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1930 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/lightrag_server.py"},"region":{"startLine":1930}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d8c5b8dc741966683780c1dfb2e686c79c0921d7d265bdc2e78fd54dc58dbaa"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 2526 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/lightrag_server.py"},"region":{"startLine":2526}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7937d6aa5f5bb5829881d2298e8bcef0aea968f4af4b296723412ec09c59fe2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 2572 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/lightrag_server.py"},"region":{"startLine":2572}}}],"partialFingerprints":{"codehealthFindingId/v1":"8252c439fb15c6c75892dfa359b9478bf716a0a71c4e30fa7a16c6a65d7c90b3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2600 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/lightrag_server.py"},"region":{"startLine":2600}}}],"partialFingerprints":{"codehealthFindingId/v1":"c575d17ac60773217a506aba5af3d46b33b919f6300fdcbab8538e8a9984f0ee"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 2698 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/lightrag_server.py"},"region":{"startLine":2698}}}],"partialFingerprints":{"codehealthFindingId/v1":"f811233f59ef448d6672ea8dc748652c7c0d13700cae2e8a1f7bd9e90a20bd4a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 3067 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/lightrag_server.py"},"region":{"startLine":3067}}}],"partialFingerprints":{"codehealthFindingId/v1":"5816ee7bb0605fa191cdf7bd11fdd4bf8aa47bc642541e781bf70b6cb555c3ec"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 3197 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/lightrag_server.py"},"region":{"startLine":3197}}}],"partialFingerprints":{"codehealthFindingId/v1":"43b66acce35aa88fbe1d15c97d91be3c485ee783de69ddaced5995570b93cf2b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 3372 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/lightrag_server.py"},"region":{"startLine":3372}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b06faea7f68bf8eca030734e921518b8be86ea9a2d09b98f6e2a1af2ab03a71"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 3402 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/lightrag_server.py"},"region":{"startLine":3402}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f163a79de2d043fb6b25ab44673dbdda39e4c8bc034fe3cc3aba2978e70de56"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 70 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/utils_api.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"a923d13c81d14d969da59487ab6c0d891e43fb1ccd899ed7d00c1134a4e0eb75"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 163 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/utils_api.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"8276e8e6df83cc9bcd4be16d651d592dc6fa3bba9fc69001419fc0602763f732"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 196 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/utils_api.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"798f5b64a7b54befae49bcfe61b11224666f1d8b79f3360b8e12970f57d6612d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 216 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/utils_api.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"29bc26e9178d663096679f5895d07835a64b61bca72c56e2a2f1bc21136814e7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 222 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/utils_api.py"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"0db7de53925c775455d8cc64b17a015a676999a7c096a677cfa1fc60d02ed864"}},{"ruleId":"X5","level":"note","message":{"text":"Null assertions (\u0060!\u0060) override strict null checking: ~0.3 \u0060!\u0060 null assertions per 1k TypeScript source lines \u2014 8 assertion(s) across the 24672 source line(s) of the 153 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: lightrag_webui/src/components/ui/NumberInput.tsx (2), lightrag_webui/src/hooks/useLightragGraph.tsx (2), lightrag_webui/src/api/lightrag.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 Python code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/table_markup.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"4513330148ef1c6feec55626974606fd28d4031db0932c65641d914b29ce1ce5"}},{"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 Python code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/table_markup.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"572f0e931ed4d2dff5f7109781c645e2736bde4acbe936e33564dd7051117038"}},{"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 Python code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/parser/markdown/extract.py"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"9916c8dff27a763fe874fd614460a93b4b4a76cd6dd1d16b42372f6ea2ebbdf1"}},{"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 Python code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/parser/markdown/extract.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cba8633e8c7a90fdc791122986c3a4137fcc921dfd0a2d8f499821c98c9eac3"}},{"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 Python code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/parser/markdown/extract.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"c95a46bc140539e18dde59ef743b32aa49e1560f0be089266624230a789d8fc4"}},{"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 Python code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/kg/redis_impl.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"80fa6d00f3fcb72c18c629a132fec31a834f93c408eb2a1411758b88d5138e98"}},{"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":"lightrag/api/static/swagger-ui/swagger-ui-bundle.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"2201271fd419d4e79db3ce19c1e6535278b3f7168f0b91526cd15913d9056645"}},{"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 Python code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lightrag/api/routers/ollama_api.py"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"db508eb07bb3b792c9a817776a3ed1f9c5ca56a7c2224381cae03117beb829a8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_load_table_headers\u0060 returns \u0060{}\u0060 when \u0060(OSError, UnicodeDecodeError, json.JSONDecodeError)\u0060 is raised, with no log or raise \u2014 a malformed value silently becomes that default. Log the input or fail validation. 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":"lightrag/chunker/paragraph_semantic.py"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"99e7a958b667b1e9dc5f5e42a6a3d6e602a054f2fae87bd3ebc5d34145393288"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_edge_depth\u0060 returns \u00600\u0060 when \u0060(TypeError, ValueError)\u0060 is raised, with no log or raise \u2014 a malformed value silently becomes that default. Log the input or fail validation. 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":"lightrag/kg/opensearch_impl.py"},"region":{"startLine":5268}}}],"partialFingerprints":{"codehealthFindingId/v1":"64610e55ed24f7e9c9987aa8e6aadff2db1e1e060699dd1acd435bcf0dc2989b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_cell_span\u0060 returns \u00601\u0060 when \u0060ValueError\u0060 is raised, with no log or raise \u2014 a malformed value silently becomes that default. Log the input or fail validation. 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":"lightrag/parser/_html_table.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a7a0bbde2725a8f601ba5a827d27db09367c0d11bb1d3a858bef08727eec259"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060get_label\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":"lightrag/parser/docx/numbering_resolver.py"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"e52bcbddcce0fb892094085499eb8db2de39e3098305ab894007fd7916f93f80"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_format_label\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":"lightrag/parser/docx/numbering_resolver.py"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"c11bb067ff0597c77dee1f6f7f7718d0ee43cc2085c978fc369e9958fafaefd6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_docx_grid_skip\u0060 returns \u00600\u0060 when \u0060ValueError\u0060 is raised, with no log or raise \u2014 a malformed value silently becomes that default. Log the input or fail validation. 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":"lightrag/parser/legacy/extractors.py"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d956bb615ba3b9fc8fdfad0c1178d2176be2ab0a821ffba0f4b0a088b8162dc"}}],"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-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1104","guid":"4c918cb5-b2a6-6c55-9963-a44ee464305e","name":"Use of Unmaintained Third Party Components","shortDescription":{"text":"Use of Unmaintained Third Party Components"},"helpUri":"https://cwe.mitre.org/data/definitions/1104.html"},{"id":"CWE-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-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-250","guid":"52ee12e8-390a-7351-b1e6-388afa694e54","name":"CWE-250","shortDescription":{"text":"CWE-250"},"helpUri":"https://cwe.mitre.org/data/definitions/250.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-327","guid":"e51910ff-67b5-3c51-aa3d-92837d9eab90","name":"Use of a Broken or Risky Cryptographic Algorithm","shortDescription":{"text":"Use of a Broken or Risky Cryptographic Algorithm"},"helpUri":"https://cwe.mitre.org/data/definitions/327.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"Insufficiently Protected Credentials","shortDescription":{"text":"Insufficiently Protected Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-532","guid":"1cd8877a-76e8-ce54-b40b-779af23364a0","name":"Insertion of Sensitive Information into Log File","shortDescription":{"text":"Insertion of Sensitive Information into Log File"},"helpUri":"https://cwe.mitre.org/data/definitions/532.html"},{"id":"CWE-540","guid":"1a9db5db-e5bb-ae5d-935a-d1b4e9ee080b","name":"Inclusion of Sensitive Information in Source Code","shortDescription":{"text":"Inclusion of Sensitive Information in Source Code"},"helpUri":"https://cwe.mitre.org/data/definitions/540.html"},{"id":"CWE-611","guid":"1afbae66-ea29-2d59-aaa2-134e3ae2e85a","name":"Improper Restriction of XML External Entity Reference","shortDescription":{"text":"Improper Restriction of XML External Entity Reference"},"helpUri":"https://cwe.mitre.org/data/definitions/611.html"},{"id":"CWE-653","guid":"aa3e371b-590e-225d-a56c-cd490a1dca63","name":"Insufficient Compartmentalization","shortDescription":{"text":"Insufficient Compartmentalization"},"helpUri":"https://cwe.mitre.org/data/definitions/653.html"},{"id":"CWE-674","guid":"c0f18e9e-e0d3-e550-b8ec-7c84214125c9","name":"CWE-674","shortDescription":{"text":"CWE-674"},"helpUri":"https://cwe.mitre.org/data/definitions/674.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-787","guid":"8db42c17-be38-9957-afe3-9de34680c2b5","name":"CWE-787","shortDescription":{"text":"CWE-787"},"helpUri":"https://cwe.mitre.org/data/definitions/787.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-823","guid":"971daa90-fe83-3956-970a-053292798b9e","name":"CWE-823","shortDescription":{"text":"CWE-823"},"helpUri":"https://cwe.mitre.org/data/definitions/823.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"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/"},{"id":"A09:2025","guid":"78892bc9-3c98-495d-881c-8af1390d643c","name":"Security Logging \u0026 Alerting Failures","shortDescription":{"text":"Security Logging \u0026 Alerting Failures"},"helpUri":"https://top10.owasp.org/2025/A09_2025-Security_Logging_and_Alerting_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-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-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":177,"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."]}]}