{"$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":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"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":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"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":"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":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"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":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"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":"GD1","name":"Unfinished \u0026 placeholder code","shortDescription":{"text":"Unfinished \u0026 placeholder code"},"helpUri":"https://codehealth.canine.dev/dimensions/GD1"},{"id":"IC1","name":"Incompleteness \u0026 stubs","shortDescription":{"text":"Incompleteness \u0026 stubs"},"helpUri":"https://codehealth.canine.dev/dimensions/IC1"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P8","name":"Schema migrations","shortDescription":{"text":"Schema migrations"},"helpUri":"https://codehealth.canine.dev/dimensions/P8"},{"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":"R5","name":"Dependency Freshness","shortDescription":{"text":"Dependency Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/R5"},{"id":"R6","name":"Tooling","shortDescription":{"text":"Tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/R6"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R8","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/R8"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"S1","name":"Web-Security Posture","shortDescription":{"text":"Web-Security Posture"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"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":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"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":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"community.CommunityPage (cyclomatic 105): community.CommunityPage has cyclomatic complexity 105 (threshold 15). Of this number, 42 points are the body\u0027s own statements and 63 belong to 18 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":"src/community.jsx"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"75dcd0b5ab0ee1b7b689267225e4f8ba6283a7368de55e154bfb64256ed12f48"}},{"ruleId":"D1","level":"warning","message":{"text":"main.PreviewDialog (cyclomatic 86): main.PreviewDialog has cyclomatic complexity 86 (threshold 15). To reduce it, separate the cases: extract each independent 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: 2 other methods here (main.PreviewDialog::pollPendingGeneration, main.PreviewDialog::handleGenerate) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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":"src/main.jsx"},"region":{"startLine":3014}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a8b5e7d0d4d6966516c02d4c8ed4055159d2e4016b9e1196ec30120b8477eff"}},{"ruleId":"D1","level":"warning","message":{"text":"community.CommunityAdminSection (cyclomatic 72): community.CommunityAdminSection has cyclomatic complexity 72 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 51 belong to 7 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":"src/community.jsx"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"77e6d5a987daa4a16dea22f10ef6db2ee635090d3b6684a349af4440b6b22841"}},{"ruleId":"D1","level":"warning","message":{"text":"main.BillingPanel (cyclomatic 63): main.BillingPanel has cyclomatic complexity 63 (threshold 15). Most of this is not in the body itself: 15 of the 63 points are its own statements and the rest belongs to 8 function items inside it that branch (loadBilling, handleCheckout, a function literal at line 2732, \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":"src/main.jsx"},"region":{"startLine":2480}}}],"partialFingerprints":{"codehealthFindingId/v1":"65b3082c158f9b5b96cbec2159af97a8de39de1389939ef03946f2ab513f3e6a"}},{"ruleId":"D1","level":"warning","message":{"text":"main.AdminPanel (cyclomatic 61): main.AdminPanel has cyclomatic complexity 61 (threshold 15). Of this number, 33 points are the body\u0027s own statements and 28 belong to 8 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.jsx"},"region":{"startLine":2086}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fe9aaec14c45c68ba2bd545cd66478c6d8f2c103f057e01a5ea74f06d1e3086"}},{"ruleId":"D1","level":"warning","message":{"text":"App.App (cyclomatic 42): App.App has cyclomatic complexity 42 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 20 belong to 8 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":"src/image25/App.jsx"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1290a97f904487610130a6fcd59014680cfcd2ee2985261fbdec804d1763b76"}},{"ruleId":"D1","level":"warning","message":{"text":"refund-query.handler (cyclomatic 35): refund-query.handler has cyclomatic complexity 35 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/admin/community/refund-query.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9a3f75d7d21de415cb8488acca5cc45db6fa25ab56f46e861e82b49dac82309"}},{"ruleId":"D1","level":"warning","message":{"text":"main.AccountPanel (cyclomatic 35): main.AccountPanel has cyclomatic complexity 35 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 14 belong to 5 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":"src/main.jsx"},"region":{"startLine":1680}}}],"partialFingerprints":{"codehealthFindingId/v1":"30dbf71c7de90c5789b7a983989fd288d1c6db620dab79845ca9ece89b429d94"}},{"ruleId":"D1","level":"warning","message":{"text":"normalizeTraffic (cyclomatic 32): normalizeTraffic has cyclomatic complexity 32 (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":"api/admin/metrics.js"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d0ba3df3f5d343ce857c7a067e6b114008b479e8c87187211fcaf5592456576"}},{"ruleId":"D1","level":"warning","message":{"text":"checkout.handler (cyclomatic 30): checkout.handler 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":"api/community/alipay/checkout.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"80257f2027886552d42f53e87bab326f2f621d953ce27db00ce5dcc247d569b3"}},{"ruleId":"D1","level":"warning","message":{"text":"notify.handler (cyclomatic 30): notify.handler 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":"api/community/alipay/notify.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"95e01b7a0ad0d2e0dac653fad3b98c20055b4da56de6e2c3d52f0c2a3c8d62da"}},{"ruleId":"D1","level":"warning","message":{"text":"notify.handler (cyclomatic 29): notify.handler has cyclomatic complexity 29 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/billing/alipay/notify.js"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb09656dba2de1ec9d26ed0207f082ea47a5e7d1aa9a7079059cd65d40c6060f"}},{"ruleId":"D1","level":"warning","message":{"text":"main.ApiKeyModal (cyclomatic 28): main.ApiKeyModal has cyclomatic complexity 28 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 13 belong to 5 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":"src/main.jsx"},"region":{"startLine":1407}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1a272c6f8a70ece7e3549ffb8d8d767f2b084c755f6116b4b0559535edbcf98"}},{"ruleId":"D1","level":"warning","message":{"text":"generate-image.handler (cyclomatic 25): generate-image.handler has cyclomatic complexity 25 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/generate-image.js"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1a57060d643b1e99b4def7db81b3fbfea52d434ee9f4b0e474de7c4f754d6ce"}},{"ruleId":"D1","level":"warning","message":{"text":"orders.handler (cyclomatic 24): orders.handler has cyclomatic complexity 24 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 7 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/admin/community/orders.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"35ba2d5e7a03594a144d25b9bc42caae38fbbce3a5843140db8199fa23e77cb7"}},{"ruleId":"D1","level":"warning","message":{"text":"query.handler (cyclomatic 24): query.handler has cyclomatic complexity 24 (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":"api/billing/alipay/query.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"0737c96358d17cfdaf903f3bfb6bbeaa6aa5e1481ca689dbae6cb5cb9443ec45"}},{"ruleId":"D1","level":"warning","message":{"text":"refund-query.handler (cyclomatic 24): refund-query.handler has cyclomatic complexity 24 (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":"api/billing/alipay/refund-query.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"31fb50d66a6f19c4588bcfbe5c9af142e657e68a8375ff910a94216ae8412758"}},{"ruleId":"D1","level":"warning","message":{"text":"refund.handler (cyclomatic 23): refund.handler 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":"api/admin/community/refund.js"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"f40a45225f0c7f9984511118e32aca6bf5642a4a71b583f1d42efdff60194050"}},{"ruleId":"D1","level":"warning","message":{"text":"main.generationErrorMessage (cyclomatic 23): main.generationErrorMessage 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":"src/main.jsx"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"caf996b4f460bd324b25760505e69bb89126daf0beeaf08b7bdf7a6a4357aa71"}},{"ruleId":"D1","level":"warning","message":{"text":"checkout.handler (cyclomatic 22): checkout.handler 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":"api/billing/alipay/checkout.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"67aa4c5514c80529308910892372de89f10da68689343b18463e037d23bf48e1"}},{"ruleId":"D1","level":"warning","message":{"text":"refund.handler (cyclomatic 22): refund.handler 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":"api/billing/alipay/refund.js"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"005c74a5bf9a0886a73b550b4145054786b287796e4a8bddd4907d20d5577e35"}},{"ruleId":"D1","level":"warning","message":{"text":"qr.handler (cyclomatic 21): qr.handler 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":"api/admin/community/qr.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"36c920bd20dc1813bf6ab442864c85bb4baf3cad75f49ce196039b8813fcb50e"}},{"ruleId":"D1","level":"warning","message":{"text":"main.PreviewDialog::handleGenerate (cyclomatic 21): main.PreviewDialog::handleGenerate has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 2 other methods here (main.PreviewDialog, main.PreviewDialog::pollPendingGeneration) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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":"src/main.jsx"},"region":{"startLine":3285}}}],"partialFingerprints":{"codehealthFindingId/v1":"a49d18f555ec681deb5f169ec1c0a756db846da450c5deed201b76ef4637863f"}},{"ruleId":"D1","level":"warning","message":{"text":"close.handler (cyclomatic 20): close.handler has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/billing/alipay/close.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"6be1b738381adc852aa3d9d82b797b487cf0368707a707b66155758e52a595d9"}},{"ruleId":"D1","level":"warning","message":{"text":"favorites.handler (cyclomatic 20): favorites.handler 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":"api/favorites.js"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cf0847ba8ce31a384dd720c167f604d71af5f17fc8e8cedbdd8c450b1cbdfd0"}},{"ruleId":"D1","level":"warning","message":{"text":"apimart.normalizeApimartTask (cyclomatic 18): apimart.normalizeApimartTask 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":"shared/apimart.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ea10260e99e493ae5b2e485681be43001da0dc25709332ef03af1c8d4cba0e7"}},{"ruleId":"D1","level":"warning","message":{"text":"metrics.normalizeBusinessMetrics (cyclomatic 18): metrics.normalizeBusinessMetrics 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":"api/admin/metrics.js"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ab1e9ffb67a377617e602cc5ce24224d14fe46506d5afe43f84984443e47379"}},{"ruleId":"D1","level":"warning","message":{"text":"metrics.handler (cyclomatic 18): metrics.handler has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/admin/metrics.js"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"97ffce7e12496baf3477c1500f9ce504c14b78cebdeb177ab87ebe3c0ac9b19c"}},{"ruleId":"D1","level":"warning","message":{"text":"close.handler (cyclomatic 18): close.handler has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/community/alipay/close.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"648161e84534e58e88d35812965bcc75b48b7ef9a0489e3baf819ab02a6407a9"}},{"ruleId":"D1","level":"warning","message":{"text":"query.handler (cyclomatic 18): query.handler has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/community/alipay/query.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"826376cdccc1469421380075a46d66b3e9ea2c7ebf6f5368b69d2c96ff539663"}},{"ruleId":"D1","level":"warning","message":{"text":"main.App::handleToggleFavorite (cyclomatic 18): main.App::handleToggleFavorite has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.jsx"},"region":{"startLine":3950}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb35d2bf9f3d88f1f67988625ed2eb17c94803d193ddf9a6ecd84c1243622723"}},{"ruleId":"D1","level":"warning","message":{"text":"revoke.handler (cyclomatic 17): revoke.handler 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":"api/admin/community/revoke.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"644b80ed870bdf2fc0604feb8b7303d7beb5021ddc8ba1ab8d26096a71949b14"}},{"ruleId":"D1","level":"warning","message":{"text":"checkout.handler (cyclomatic 17): checkout.handler 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":"api/billing/checkout.js"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f256e9ea23ec15374463b29c226c2b6b9a06032285ae5cdf153e9a7f66cdb6d"}},{"ruleId":"D1","level":"warning","message":{"text":"status.handler (cyclomatic 17): status.handler 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":"api/generation/status.js"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"a97a4bb6211f2d7b1b7c3326a3789a2696a32ca0220d423e0f95f9f46f6fbd21"}},{"ruleId":"D1","level":"warning","message":{"text":"main.UserMenu (cyclomatic 17): main.UserMenu 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":"src/main.jsx"},"region":{"startLine":1548}}}],"partialFingerprints":{"codehealthFindingId/v1":"e164d034aa0fb539669805270eb398eeaf54d3392edc6775b435acb7605538c7"}},{"ruleId":"D1","level":"warning","message":{"text":"main.PreviewDialog::pollPendingGeneration (cyclomatic 17): main.PreviewDialog::pollPendingGeneration 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. This shape REPEATS in the file: 2 other methods here (main.PreviewDialog, main.PreviewDialog::handleGenerate) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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":"src/main.jsx"},"region":{"startLine":3132}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb4e652e630cc8b53af1873fe777722ed7071ff9f711694c058a4be40a85f885"}},{"ruleId":"D1","level":"warning","message":{"text":"supabase.profilePayloadFromUser (cyclomatic 16): supabase.profilePayloadFromUser 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":"api/_lib/supabase.js"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"c54105941e3344e7707a56cc09fde9533e73c40d3aef0b6b27bbbcd8773794c6"}},{"ruleId":"D1","level":"warning","message":{"text":"adjust.handler (cyclomatic 16): adjust.handler has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/admin/credits/adjust.js"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"d60bfa2711329983d49eeb93cdd8d2177f7738ae878e630ad50769aed6e957ee"}},{"ruleId":"D1","level":"warning","message":{"text":"users.formatAdminUser (cyclomatic 16): users.formatAdminUser 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":"api/admin/users.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"08ee62374cf9bb708c09c16512ef60527c600bfb65046b75009afba2fac02be4"}},{"ruleId":"D1","level":"warning","message":{"text":"main.AuthModal (cyclomatic 16): main.AuthModal has cyclomatic complexity 16 (threshold 15). Of this number, 8 points are the body\u0027s own statements and 8 belong to 4 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":"src/main.jsx"},"region":{"startLine":1314}}}],"partialFingerprints":{"codehealthFindingId/v1":"398fb89a7beefdd2f2df86ee7c1946bf6ece7b29d1d9563de698b925a53efc80"}},{"ruleId":"D2","level":"warning","message":{"text":"main.PreviewDialog (cognitive 106): main.PreviewDialog has cognitive complexity 106 (threshold 15). Drivers by points: ternaries 58 (86 pts), boolean chains 56, if/else 26 (32 pts), error handling 2 (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 2 other methods here (main.PreviewDialog::pollPendingGeneration, main.PreviewDialog::handleGenerate) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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":"src/main.jsx"},"region":{"startLine":3014}}}],"partialFingerprints":{"codehealthFindingId/v1":"494b062c2303ede3ef9f3c1cd089fbee5b238a248ad335bbbccdfe75a08f1920"}},{"ruleId":"D2","level":"warning","message":{"text":"community.CommunityPage (cognitive 105): community.CommunityPage has cognitive complexity 105 (threshold 15). Drivers by points: if/else 36 (40 pts), boolean chains 34, ternaries 22 (24 pts), error handling 6, loops 1 (nesting depth added 6). Of this number, 40 points are the body\u0027s own statements and 65 belong to 18 function items inside it that branch. 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":"src/community.jsx"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"4872aa7d23419cad16230fda35625bd9c8054d8de36f9ffd4f42dc14635e1cfe"}},{"ruleId":"D2","level":"warning","message":{"text":"community.CommunityAdminSection (cognitive 84): community.CommunityAdminSection has cognitive complexity 84 (threshold 15). Drivers by points: ternaries 33 (42 pts), boolean chains 21, if/else 14 (18 pts), error handling 3 (nesting depth added 13). Of this number, 25 points are the body\u0027s own statements and 59 belong to 7 function items inside it that branch. 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":"src/community.jsx"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d1944cf0ee49406c3ba1128307abd93e82f64ba810d3e1452736798f626af0d"}},{"ruleId":"D2","level":"warning","message":{"text":"main.AdminPanel (cognitive 77): main.AdminPanel has cognitive complexity 77 (threshold 15). Drivers by points: ternaries 26 (42 pts), boolean chains 20, if/else 11 (13 pts), error handling 2 (nesting depth added 18). Of this number, 37 points are the body\u0027s own statements and 40 belong to 8 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.jsx"},"region":{"startLine":2086}}}],"partialFingerprints":{"codehealthFindingId/v1":"45e956185a27a54044518bf9ad50db076cd7c1e18d3f599ad4f96d86586280d8"}},{"ruleId":"D2","level":"warning","message":{"text":"App.App (cognitive 48): App.App has cognitive complexity 48 (threshold 15). Drivers by points: ternaries 28 (35 pts), if/else 7, boolean chains 5, error handling 1 (nesting depth added 7). Of this number, 23 points are the body\u0027s own statements and 25 belong to 8 function items inside it that branch. 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":"src/image25/App.jsx"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"219d20483da37964518b61048ad615ccc8e1c056151eaca05a65ef886e35b98b"}},{"ruleId":"D2","level":"warning","message":{"text":"refund-query.handler (cognitive 33): refund-query.handler has cognitive complexity 33 (threshold 15). Drivers by points: if/else 17 (20 pts), boolean chains 11, 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":"api/admin/community/refund-query.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"c79d5ba9db8d19b0a1b0ae65a06fa4fea69965b7f6f842ef7d5980d6c7cbc384"}},{"ruleId":"D2","level":"warning","message":{"text":"main.AccountPanel (cognitive 33): main.AccountPanel has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 13, ternaries 9 (12 pts), if/else 7, error handling 1 (nesting depth added 3). Of this number, 17 points are the body\u0027s own statements and 16 belong to 5 function items inside it that branch. 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":"src/main.jsx"},"region":{"startLine":1680}}}],"partialFingerprints":{"codehealthFindingId/v1":"77f159ce7ecce35c067606db35716495e7b7381bbd9fe4163cecb3985f5f5679"}},{"ruleId":"D2","level":"warning","message":{"text":"notify.handler (cognitive 32): notify.handler has cognitive complexity 32 (threshold 15). Drivers by points: if/else 17 (20 pts), boolean chains 11, error handling 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/billing/alipay/notify.js"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"4098522566a72d35bc4c4c371b5d0222d72adfedee05dc92f6ac2f6d4e3e11a0"}},{"ruleId":"D2","level":"warning","message":{"text":"handler (cognitive 32): handler has cognitive complexity 32 (threshold 15). Drivers by points: if/else 18 (20 pts), boolean chains 8, error handling 2, ternaries 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/community/alipay/checkout.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"737e5defe29aca84d559cfef074477339679380dd48971f867984d500efcd1b3"}},{"ruleId":"D2","level":"warning","message":{"text":"notify.handler (cognitive 30): notify.handler has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (16 pts), boolean chains 13, error handling 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/community/alipay/notify.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"13056817d6714a7f43a9242847ad7024560a6a07cbea134a1a3039f2ddbc0da5"}},{"ruleId":"D2","level":"warning","message":{"text":"main.ApiKeyModal (cognitive 26): main.ApiKeyModal has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 10, boolean chains 8, if/else 7, error handling 1. Of this number, 14 points are the body\u0027s own statements and 12 belong to 5 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":"src/main.jsx"},"region":{"startLine":1407}}}],"partialFingerprints":{"codehealthFindingId/v1":"82fe2e628c09c3488e87f7db90fadaa25d83409f36d8f537332c7a831738422c"}},{"ruleId":"D2","level":"warning","message":{"text":"main.PreviewDialog::handleGenerate (cognitive 25): main.PreviewDialog::handleGenerate has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 5, ternaries 3, error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 2 other methods here (main.PreviewDialog, main.PreviewDialog::pollPendingGeneration) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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":"src/main.jsx"},"region":{"startLine":3285}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd7169dc20213ad95ae49c310445c16d0c365019b673fdd7e5fa4dcb1f4bb3b1"}},{"ruleId":"D2","level":"warning","message":{"text":"handler (cognitive 25): handler has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (13 pts), ternaries 3 (5 pts), boolean chains 4, error handling 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/admin/community/qr.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"7858814810a5b7ab9808810fa75f28e924f14026e21a34f6b46408e6ff91bb1a"}},{"ruleId":"D2","level":"warning","message":{"text":"orders.handler (cognitive 24): orders.handler has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 14, if/else 8 (9 pts), error handling 1 (nesting depth added 1). Of this number, 17 points are the body\u0027s own statements and 7 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/admin/community/orders.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"0168278a51154da7693fa7824977df1f22c0dc45c95459d82604a5f95e7c88b2"}},{"ruleId":"D2","level":"warning","message":{"text":"favorites.handler (cognitive 23): favorites.handler has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 9, 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":"api/favorites.js"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9a50124dec63fd2896aeb3b7a4698ad7b08dd05ba8494dd80b854263d8d18d2"}},{"ruleId":"D2","level":"warning","message":{"text":"generate-image.handler (cognitive 23): generate-image.handler has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 10, if/else 8 (9 pts), error handling 3, ternaries 1 (nesting depth added 1). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/generate-image.js"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab457b3195921a0bd672f9140d32fe3d258a3b6cbf728995bc11f109c3c8f472"}},{"ruleId":"D2","level":"warning","message":{"text":"refund.handler (cognitive 22): refund.handler has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12, boolean chains 6, error handling 2, ternaries 1 (2 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/admin/community/refund.js"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"dedf33d54530b9a5cb46be75dc701ad1d4ebead3d774aa440b59e739c0425abe"}},{"ruleId":"D2","level":"warning","message":{"text":"query.handler (cognitive 22): query.handler has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 8, ternaries 2, error handling 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/billing/alipay/query.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"4beb7e6bc61d1c07e298b1dde92d85bca2e8b66e78d98e34d36249ed85ef6ad6"}},{"ruleId":"D2","level":"warning","message":{"text":"checkout.handler (cognitive 21): checkout.handler has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10, boolean chains 8, error handling 2, ternaries 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/billing/alipay/checkout.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f6a5ca2af69e7cb1990057af148ffdcc300af1921a6b45977453637bd23c16f"}},{"ruleId":"D2","level":"warning","message":{"text":"refund-query.handler (cognitive 21): refund-query.handler has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10, boolean chains 9, error handling 1, ternaries 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/billing/alipay/refund-query.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"252b21e3829209d9180b7dcfc15b1496414ff939d33bb91dc8aee0767ed39ada"}},{"ruleId":"D2","level":"warning","message":{"text":"refund.handler (cognitive 21): refund.handler has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 7, ternaries 4, error handling 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/billing/alipay/refund.js"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"6abb7228668d5e6b175a3f46c86a7190f31dd85dc92cad139b4d0b05fb5b8d87"}},{"ruleId":"D2","level":"warning","message":{"text":"metrics.parseRange (cognitive 20): metrics.parseRange has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 3 (9 pts), if/else 6 (8 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":"api/admin/metrics.js"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"d42a03572cdb297ce961aa0ee7bdd462f1a883cc8328831ad71ba42ad9096cc5"}},{"ruleId":"D2","level":"warning","message":{"text":"main.generationErrorMessage (cognitive 20): main.generationErrorMessage has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, boolean chains 3. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.jsx"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"30e1efc7bb791957008bcbf5bd90221b78432e25f83f97190c917bde954be0b0"}},{"ruleId":"D2","level":"warning","message":{"text":"main.App::handleToggleFavorite (cognitive 20): main.App::handleToggleFavorite has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (10 pts), ternaries 5, boolean chains 4, error handling 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"src/main.jsx"},"region":{"startLine":3950}}}],"partialFingerprints":{"codehealthFindingId/v1":"887f9a38b54b387bb1c5f6d0aaffa747b37220eaa98e89f548cae3dfcbaff188"}},{"ruleId":"D2","level":"warning","message":{"text":"normalizeTraffic (cognitive 19): normalizeTraffic has cognitive complexity 19 (threshold 15). Drivers by points: other 12, boolean chains 5, loops 1, ternaries 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/admin/metrics.js"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"b52d3fc69a7b3677c80d31badaa6ca758d1efbe4785eb20a89e0286b6e1ad5c9"}},{"ruleId":"D2","level":"warning","message":{"text":"webhook.handleCheckoutCompleted (cognitive 18): webhook.handleCheckoutCompleted has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), ternaries 3 (5 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/billing/webhook.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"a958046f629a53d36f93faee67ca8b0a0e5a6ee554ec3ea67a8cc373ac3d3e5a"}},{"ruleId":"D2","level":"warning","message":{"text":"close.handler (cognitive 18): close.handler has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, boolean chains 3, ternaries 2 (3 pts), error handling 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/community/alipay/close.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"1902ba4fed1452172476205f50e9e34d4625b41490fa902285dcce46d50e350d"}},{"ruleId":"D2","level":"warning","message":{"text":"revoke.handler (cognitive 17): revoke.handler has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 5, error handling 2, ternaries 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/admin/community/revoke.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3b1091361690e1c57f9ae8c8d29c9ea89b31da8158b259c235cda68838e22bd"}},{"ruleId":"D2","level":"warning","message":{"text":"metrics.normalizeBusinessMetrics (cognitive 17): metrics.normalizeBusinessMetrics has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 17. 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":"api/admin/metrics.js"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2429542ea455576941af84a21f97c3abac59cb27b4a7e89dedbd1cb8fd58e06"}},{"ruleId":"D2","level":"warning","message":{"text":"metrics.handler (cognitive 17): metrics.handler has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 7, if/else 5, ternaries 4, error handling 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/admin/metrics.js"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7c01ae6418efb58655444a1b756704d3ed2f1636f22be54485d632e646b7927"}},{"ruleId":"D2","level":"warning","message":{"text":"close.handler (cognitive 17): close.handler has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, boolean chains 5, error handling 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":"api/billing/alipay/close.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e8cbe40b07cc0a3ad20783cefac91a2c2c28e692169deba0fabc4c4a8c20586"}},{"ruleId":"D2","level":"warning","message":{"text":"me.handler (cognitive 17): me.handler has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 4, error handling 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":"api/me.js"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"882211a85cb516bf47258918bbd310b301ce0e72248f3236887cc06a0325fbb4"}},{"ruleId":"D2","level":"warning","message":{"text":"apimart.normalizeApimartTask (cognitive 16): apimart.normalizeApimartTask has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, ternaries 7 (8 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/apimart.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d1c01311378fdf97bcb9c0589386170973e6308295aa94ca03e6e3ecbce036a"}},{"ruleId":"D2","level":"warning","message":{"text":"checkout.handler (cognitive 16): checkout.handler has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, boolean chains 5, error handling 2, ternaries 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/billing/checkout.js"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"42f2459bce578ab5d49698ac57996aa933405c7c4f739668a1b326af8ff1fa9d"}},{"ruleId":"D2","level":"warning","message":{"text":"query.handler (cognitive 16): query.handler has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, boolean chains 5, error handling 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/community/alipay/query.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"176ea4d2d5a73120e4befa5a4957480c726772382b5e91addb895e8a09563517"}},{"ruleId":"D2","level":"warning","message":{"text":"status.handler (cognitive 16): status.handler has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 5, error handling 1, ternaries 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/generation/status.js"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"e90b6d790ccd29a3d766a47276c0541cd4d61f854e993c4803c5be1be5f97212"}},{"ruleId":"D2","level":"warning","message":{"text":"main.BillingPanel::handleCheckout (cognitive 16): main.BillingPanel::handleCheckout has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 4, error handling 1, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.jsx"},"region":{"startLine":2553}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf8aa8a69e2f20ba2676aaa35661926e9035225e37a22f7ddd5760e1e2f01a71"}},{"ruleId":"D2","level":"warning","message":{"text":"main.PreviewDialog::pollPendingGeneration (cognitive 16): main.PreviewDialog::pollPendingGeneration has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 5 (6 pts), error handling 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. This shape REPEATS in the file: 2 other methods here (main.PreviewDialog, main.PreviewDialog::handleGenerate) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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":"src/main.jsx"},"region":{"startLine":3132}}}],"partialFingerprints":{"codehealthFindingId/v1":"527512dc1eb9ee0d8360407040efaa91e939521c9f5a1b11670e8abe0b6e73cc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/main.jsx: FileTooLong \u2014 3684 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 3184 over it, 7.37\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":"src/main.jsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e51da4b3476eca2cccafc0d5061f9dc3a3d53bef3e10b9053d35c16a7cbf21c8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: main.App: FunctionTooLong \u2014 App runs 584 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 484 over it, 5.84\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":"src/main.jsx"},"region":{"startLine":3581}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eba1f369c99f448dd4056d8de5e2a855597e0b16c0ac2c0969f39a42d837e98"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: main.PreviewDialog: FunctionTooLong \u2014 PreviewDialog runs 493 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 393 over it, 4.93\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":"src/main.jsx"},"region":{"startLine":3014}}}],"partialFingerprints":{"codehealthFindingId/v1":"13061226ee76341141c5e34ff640487b4f24df43db7e47e73e5bc4b0169ff32d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: main.AdminPanel: FunctionTooLong \u2014 AdminPanel runs 353 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 253 over it, 3.53\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":"src/main.jsx"},"region":{"startLine":2086}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a81a3e59cf07351affce1b8a80dac21b1e20b199256d8ec9c99e2b88b737ba3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: community.CommunityPage: FunctionTooLong \u2014 CommunityPage runs 316 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 216 over it, 3.16\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":"src/community.jsx"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"3309751a4f26ac360ba6fcedbc094f2eb0378a69de286c9a0f5dbbb414805576"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: main.BillingPanel: FunctionTooLong \u2014 BillingPanel runs 259 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 159 over it, 2.59\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.jsx"},"region":{"startLine":2480}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a22a56ddc3310a20ed37ccceb3ebf818bc25653b359d26dc39ef9af301c0ea1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: main.AccountPanel: FunctionTooLong \u2014 AccountPanel 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":"src/main.jsx"},"region":{"startLine":1680}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8c154d16c3d3b55e9daefd5a96ccd7da6aeee2042f007c4d8359a9f1fff33b3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: community.CommunityAdminSection: FunctionTooLong \u2014 CommunityAdminSection runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/community.jsx"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"e31f86422ecd2c4a71adc5d66fced78bafd4b89482aa4754ca4f091fb87c856f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: main.ApiKeyModal: FunctionTooLong \u2014 ApiKeyModal runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.jsx"},"region":{"startLine":1407}}}],"partialFingerprints":{"codehealthFindingId/v1":"30ffc2a380fe3fee1e8edbd89f6dcf406179c89f517f7348f1432bf09dc21a9f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: App.App: FunctionTooLong \u2014 App runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/image25/App.jsx"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d1a10c0105f877a383bffe240bb39165e171a09c55a1d8e1925cc1ed05a0603"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: main.UserMenu: FunctionTooLong \u2014 UserMenu runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.jsx"},"region":{"startLine":1548}}}],"partialFingerprints":{"codehealthFindingId/v1":"9870194ff21b7cec45821f1fa8e0c303a59226bd14016870ac3c75ee380a1238"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/community.jsx: FileTooLong \u2014 585 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 85 over it, 1.17\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/community.jsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e4d6d36b44f4d0f150dee5b79715fb0fb57ce1bf0d004f12d16d084ecb81992"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: main.AdminTrendChart: FunctionTooLong \u2014 AdminTrendChart runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.jsx"},"region":{"startLine":1925}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4f1e2dbbfc66b7fc551636528ea7c7140df719a3059d92c7d90013946fbfca3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: checkout.handler: FunctionTooLong \u2014 handler runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/community/alipay/checkout.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaa807fa3e662bac5503f25229bae94b2fadb20266f5b7ed07c41a65a9372014"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: api/_lib/account.js: 10.9% line coverage (5/46)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/_lib/account.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a7ad78ba2037ac9db0ef065206550bdec757edc4a7c162ab907a27c304e3045"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: api/_lib/billing.js: 11.9% line coverage (45/379)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/_lib/billing.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a910b54a182f116fb851793fc025d06a7496166d7b7ff3493c1d865a30703d5"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: api/_lib/community-alipay.js: 46.9% line coverage (30/64)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/_lib/community-alipay.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"db4822ee09acfa7741f936e3e70a35443232dfef4d59d96081e8739944ecdf23"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: api/_lib/ga4.js: 7.7% line coverage (20/259)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/_lib/ga4.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fc98cb298701838cc0570e5746012da86241de7406b5fbf0d20d6a952e1ccdf"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: api/_lib/supabase.js: 13.7% line coverage (25/182)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/_lib/supabase.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9293cfb6b3af9820fa197e754c1f00802e022a54239178c78aa202e2b8e14e32"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: api/_lib/watcha.js: 21.3% line coverage (47/221)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/_lib/watcha.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d24fcb4fe8df634b0510abfcd4d4b0b28ba9cb46060fe78c3d3adc2cb7e6604d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: api/admin/community/orders.js: 15.9% line coverage (11/69)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/admin/community/orders.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ab75ad1e5173b5d19717b33fd200f689737234f836781029cbf1d97ec729a25"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: api/admin/community/qr.js: 18.9% line coverage (20/106)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/admin/community/qr.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"09cee56571312d70ae9bca83e73432b6947f839781a3a8f7c06f057c0e3957e7"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: api/admin/community/refund-query.js: 10.2% line coverage (12/118)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/admin/community/refund-query.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"859109bb984a3a1073acdd7e966c32b0ef6500c96f1d481128643ebc92e5c4fc"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: api/admin/community/refund.js: 14.7% line coverage (21/143)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/admin/community/refund.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"56d0d76230987e5df52e6b18e2358cbdcaed0544bc7b0bf861e7c3d824bc323e"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: api/admin/community/revoke.js: 20.6% line coverage (13/63)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/admin/community/revoke.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1edc65042c631481f0a6b0a62bf6ac0ef7ba5a574fd458a72c1dff011101316"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: api/admin/credits/adjust.js: 7.5% line coverage (5/67)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/admin/credits/adjust.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e212f8ea8e4b2988eab70c5931d50695b2c33fb151441b34d2588db66cb1da02"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: api/admin/metrics.js: 6.5% line coverage (16/248)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/admin/metrics.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e98ca7e6d98e963f5035876b9a3eba6f203cc98f2c1bbe82837c9bf07ffb437"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: api/admin/users.js: 6.9% line coverage (5/72)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/admin/users.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b13478831b4aa23be5ffe10f462d58b1b153c0140b0d69898341db26cb97f93d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: api/apimart/pricing.js: 18.2% line coverage (4/22)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/apimart/pricing.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2381a3acb0a28b8484c89ca73400bb50faaabf6e5cb48cc8d241aded8e0c6440"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: api/auth/watcha/callback.js: 11.9% line coverage (21/176)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/auth/watcha/callback.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fbcbd0f4687b16872d674223b95f7735938994ac3c1ba3a8e86ecb7cbb14dd0"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: api/auth/watcha/start.js: 28.3% line coverage (13/46)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/auth/watcha/start.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"43fcb19b96e98219fcb46d6f4c0cdad3307963db2a91aae568f962ef974668e7"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: api/billing/alipay/checkout.js: 13.2% line coverage (17/129)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/billing/alipay/checkout.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc7b37c67023348b17fea00db111ea38f85d1938d8c8a92ba41ebd3eb1ae98a9"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: api/billing/alipay/close.js: 8.9% line coverage (7/79)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/billing/alipay/close.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b54ee4360bfbccb62f4c0b2fd48bff452194418408491908d274a5c331e5c55"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: api/billing/alipay/notify.js: 17.4% line coverage (19/109)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/billing/alipay/notify.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"613edb0c2e2ef02ef5d88e059b25fa8b0277a5364cc7e3cc93744f0fa77808a2"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: api/billing/alipay/query.js: 12.2% line coverage (12/98)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/billing/alipay/query.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"532de9b38b4c68000065c022ed511485391951363f6368b964795a45da99d7c0"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: api/billing/alipay/refund-query.js: 11.2% line coverage (10/89)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/billing/alipay/refund-query.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"25499ad2170a91bef12a85a249df2ca8b70fe1f7bbdfbc3c32dbb49527f29d8f"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: api/billing/alipay/refund.js: 12.4% line coverage (12/97)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/billing/alipay/refund.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f9bef62027257950ddf0fd5908ae5f970c3b3f6b5757b3d8a6a58b19be38846"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: api/billing/checkout.js: 13.3% line coverage (16/120)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/billing/checkout.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3261c9e396efdab44315d5262a2bfcb75289cd324abaf1f9769a0d5e334c44ec"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: api/billing/history.js: 8.9% line coverage (5/56)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/billing/history.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7618427a2a05dd30ebb4527993e4e8f873ec8b38bf7d6af66be526e160865c45"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: api/billing/plans.js: 13.0% line coverage (6/46)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/billing/plans.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0602664205ec8c4e222c5322ac2fb4a54e11451e76549564dffd7fbd66dd3369"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: api/billing/portal.js: 9.4% line coverage (5/53)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/billing/portal.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6571e889c1d21821dc059abe8e50a780f7148f927388ab5cf378e84c624a0bf0"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: api/billing/webhook.js: 13.6% line coverage (21/154)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/billing/webhook.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6d2691401f983b4e9f5eca49669321d531227131901ec3553f3066e56b758b5"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: api/community/alipay/checkout.js: 16.5% line coverage (28/170)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/community/alipay/checkout.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca336f63e38414ca12bbc2441852a5d463b568dc235f31d3821039c6f306c67f"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: api/community/alipay/close.js: 17.6% line coverage (15/85)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/community/alipay/close.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9faaad936058320ebc3b3a38ed2fa585a3e9e77dd44a748261cf4455e469edda"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: api/community/alipay/notify.js: 21.4% line coverage (21/98)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/community/alipay/notify.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7adb55fa23e6f90a50f85dfb4d71f555c0e5c2bbd3ad14ddf3beddc62f0b36c"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: api/community/alipay/query.js: 18.0% line coverage (16/89)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/community/alipay/query.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"28fdf13ea610da2cae5a6860621d4d7bab901d5f935f07ffc674cc7ecb9d83b2"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: api/community/config.js: 25.0% line coverage (5/20)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/community/config.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c29813433ae5bfdd7759fdbe90392c36a6e3eeb3c16aa624b3a6a8be897f7f2f"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: api/community/qr.js: 19.6% line coverage (10/51)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/community/qr.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6024325fe97168671be067ece2065b274e36ae1452940a2ffbda71dfe0936f2e"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: api/community/status.js: 19.7% line coverage (12/61)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/community/status.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5422048db9e9d6ef2db5330d3049e2434f2293484b1284c649e3e90b646d24a2"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: api/favorites.js: 9.5% line coverage (13/137)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/favorites.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"629eb8ae50dd09097378ced26eef4f0e8a10ef326e8d413bd732cada2f00e23e"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: api/generate-image.js: 27.1% line coverage (48/177)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/generate-image.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4ec97c9bf43eede8d186be144aebea0fb9fb3392f11775aecf81218321de805"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: api/generation/callback.js: 33.3% line coverage (26/78)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/generation/callback.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f45c45f47e0cb8295e3e2be8f2226cb159c2fb800149db85a47550ea923ed6d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: api/generation/status.js: 22.7% line coverage (20/88)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/generation/status.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ad76c0bc35b5f45aec09da175522243ffca3ad88ae848d39c323f64072fb380"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: api/me.js: 10.9% line coverage (13/119)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/me.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba8c4bc29d734b1f3173cdac0cc41eb7c710123d1708bcdc22838313015b755"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: glob: glob 10.5.0 is resolved in package-lock.json and is marked deprecated by its publisher: \u0022Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [e-mail redacted]\u0022. This repository does not declare it \u2014 a direct dependency pulls it in, so the move is to upgrade or replace that dependency."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package-lock.json"},"region":{"startLine":2211}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a6a21a0f511e79bf1641d8781e0ca2d1a227ed4ef5f1fd822135ca3108ada0d"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: node-domexception: node-domexception 1.0.0 is resolved in package-lock.json and is marked deprecated by its publisher: \u0022Use your platform\u0027s native DOMException instead\u0022. This repository does not declare it \u2014 a direct dependency pulls it in, so the move is to upgrade or replace that dependency."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package-lock.json"},"region":{"startLine":2622}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f90cb44a46f78a179b41bf633e2af262cd81305d0f767fb2454e30ff0529ef9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/main.jsx: src/main.jsx changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 108 in main.App at line 3581. 1 of those changes was a fix/bug commit, and the other 3 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 16:41:44 \u002B08:00\u0027 --until=\u00272026-11-10 16:41:44 \u002B08:00\u0027 --full-history --no-merges -- src/main.jsx\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":"src/main.jsx"},"region":{"startLine":3581}}}],"partialFingerprints":{"codehealthFindingId/v1":"38a011b26037d95999e93067e6d5be769c39385d1ab5d7197d2c901e60c6e0b7"}},{"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 \u0060package.json\u0060 makes this repository a deployable product (line 14)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0f571cc2c2542badcf90ae46e31e24c43d9ca80090c40fca9fd1434a5c34546"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 2 project(s) overshoot their size bounds, lowering Project Cohesion to 0.6/10. The most over is \u0060(repository root)\u0060 (11058 LoC, 57 module-visible types across 17 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"94fe20ce0b9d30203b3a6944f9ef0aae35ed8667e7f8666101ea24bd9f26217b"},"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":"ea7c72bf55bbd758e8c6b9539b6e1bc00563ecc3c1b0880e681e121fe3a1e865"},"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":"d3cf39bb472e90e1d65d2c2d634684396ff859a2b47bf4a50e73f128c3d9aed6"},"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":"fab33bfff3b8550c2de642a9a77630cbe4a64a706aff36e0c31db8d64de9e355"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"72d9b62e422956b02c5964d3b36614de426da4d4f4d265d53c8eb91df161f3cf"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9554012b0dd19ba095b62d99706c1bfaf49f1f9805ddb52b8935976f3ef962f7"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9d50079e8466e2a7de1f626b948a420a040091d350de4be8b40161339ccf0fed"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"15c3d8446be4d7196810a3367bbc9e2fc787a1acc520d4cea95c0235089b4b6e"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"25ef970306fce72fe8e1f031380c6f756dda4c44139cb3d7217b803254f6a8ae"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6982347b117ef56a4a75a50f09e36ecc87c49ddc32ab036f01c814ee8f48ce71"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"81829e1fba6283d88a49f762265ed7b0b5e109c9a1e7a76662ab401086122b44"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8d85d75a412a63fb5d0f9f36a1867ac2af1927348e9f459264cde06c5ad14782"},"taxa":[{"id":"CWE-79","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":"af424b73bee4b88feab78ce3159faffc377acc09d77108eed102e0f7ac960362"},"properties":{"dependency":{"package":"@grpc/grpc-js","version":"1.14.4","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":"5663b5d3983a9f6f7744b9af8d10ede9d273d65b8a859266b06bf516fc0e4e27"},"properties":{"dependency":{"package":"brace-expansion","version":"2.1.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"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":"384a0892f51a77ce6e1097a5154e203805ee2ad75d30693634ca5b796c0008c6"},"properties":{"dependency":{"package":"browserslist","version":"4.28.6","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":"a2e781aeeb54d3ae845ae518d9f9b4fabc9ce4afb31ec2d5eceab2c30473e850"},"properties":{"dependency":{"package":"nanoid","version":"3.3.12","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":"a123c7a8538ef5659aefc6b6b9bf5ef92557f2acc40c94c7874d873c9193a516"},"properties":{"dependency":{"package":"postcss","version":"8.5.13","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":"a143e49def50f6267786be10dea52190e0d09245364207bf6c8be5fcae3b49ff"},"properties":{"dependency":{"package":"source-map-js","version":"1.2.1","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":"6532f69593dd3d2ea46577ad478f1657ba969b6919f855a6261cf5feb9c06e85"},"properties":{"dependency":{"package":"undici","version":"7.28.0","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]","[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]"],"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":"c1cb96934bb534f29c0cc78a262c9e7e686890a959fe5a9d8d4c376f58bc30f5"},"properties":{"dependency":{"package":"urllib","version":"4.9.0","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":"b694dace86fb7d15873b2ddd65002632093db12bc6146d23cde087273cc549f5"},"properties":{"dependency":{"package":"vite","version":"7.3.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"test-or-tooling","file":"vite.config.js","line":1}}}},{"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":"43427bab5dea8e4a9974d0d31081f6cee7984ed96dc960bd2c33af06bc12237b"},"properties":{"dependency":{"package":"baseline-browser-mapping","version":"2.10.44","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":"254e159535de5a467ea5671a4a81fbc3bf399623b11dcd1fc4071f2230ac5cd0"},"properties":{"dependency":{"package":"glob","version":"10.5.0","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":"b57bd94a9054ab1a78280337953ab23bcb5d2500ea7f4b4abe8dc82a1ef1d633"},"properties":{"dependency":{"package":"minimatch","version":"9.0.9","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":"98645b36f3d8a19e1462b10ae8d23a6853b810993981c4fc4065e762fff2771b"},"properties":{"dependency":{"package":"qs","version":"6.15.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"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":"src/main.jsx"},"region":{"startLine":3472}}}],"partialFingerprints":{"codehealthFindingId/v1":"bab7b10ddaa4c8813819fa3f6bb39451fadf0e5e634ad73b8f696779ac43ee27"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel htmlFor\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.jsx"},"region":{"startLine":4145}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb081d02575d14bc684573d890a3dce4fcc07050e66d71c1b375ca330ae7dc85"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Csection role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.jsx"},"region":{"startLine":1378}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e3c537c73446d0c93421da2a202ebd0f8c681402f695180b50d45b3c7b3b35"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Csection role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.jsx"},"region":{"startLine":1478}}}],"partialFingerprints":{"codehealthFindingId/v1":"c50a076ca1faca34c82b7d0c500c92fac592cf6d258b75221df30cb3e2e18b96"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Csection role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.jsx"},"region":{"startLine":1773}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f99d7ba4bdbffcae60cf0c2d2a24259423cef081ab9b10e1f42497cabfc87b6"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Csection role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.jsx"},"region":{"startLine":2220}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b7ef167bd0eadc27a8e0a884884fec4a970b8801050de2c40e1faa869447443"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Csection role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.jsx"},"region":{"startLine":2638}}}],"partialFingerprints":{"codehealthFindingId/v1":"475df9385464d1d983be67c79b9e96a57bf6156e2b00bd154217b76f17edd3c4"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Csection role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.jsx"},"region":{"startLine":3380}}}],"partialFingerprints":{"codehealthFindingId/v1":"1db53287a601d5170a52310613fe38548107a6d027a9436c4168b5d77d18464a"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.searchBox input\u0060 sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/styles.css"},"region":{"startLine":1159}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae4d1431d699f8ecc47cb9776f28989c2b02687c3ed7fe6d3a2a5546efd7c24b"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.adminAdjustForm input\u0060 sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/styles.css"},"region":{"startLine":2835}}}],"partialFingerprints":{"codehealthFindingId/v1":"317e01ef9292a0d0ca0c4d042df615c861da38ce565ecfdbe157b87728aa88e7"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.loadingScreen svg\u0060 moves (\u0060animation: cardDrift 2.2s ease-in-out infinite\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/styles.css"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"051cfc1cc6b206cc368074b6c89513019fa95a18b902073c5763195ff92c96cf"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.heroGlow\u0060 moves (\u0060animation: floatGlow 8s ease-in-out infinite\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/styles.css"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"67d50afe733e03a0be695a13b59f4ff6a3d82c762b79cff4ce0d33a4906861d3"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.heroCard\u0060 moves (\u0060animation: cardDrift 7s ease-in-out infinite\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/styles.css"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"03cae511b1233cad1f84c53e40ec94ab383baa30cf7dbcabfdcedf3927e68984"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.spinIcon\u0060 moves (\u0060animation: spin 0.9s linear infinite\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/styles.css"},"region":{"startLine":1649}}}],"partialFingerprints":{"codehealthFindingId/v1":"5caf07794a6b6a44416c8280df7912efc5b5991594df59469ba66b5e340e6e2e"}},{"ruleId":"IC1","level":"warning","message":{"text":"Fake-async \u2014 async method never awaits: \u0060handler\u0060 is declared \u0060async\u0060 but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop \u0060async\u0060 or do the real async work."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/auth/watcha/start.js"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cd2bf98d246439f873159a57a7da0b358f4b9c9c1a29c829fb167f01e97bd3c"}},{"ruleId":"IC1","level":"warning","message":{"text":"Both branches are identical \u2014 the condition decides nothing: Both arms of this conditional expression are the same, so no input can make the condition matter. Implement the distinction that was intended, or drop the condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.jsx"},"region":{"startLine":4190}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cc5ae390605e3fe46aa5394c5cd75ac9c80cc6543aa3015be9af20d939e861b"}},{"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":"P1","level":"note","message":{"text":"CI build step not evidenced: A CI pipeline exists but no build step was matched \u2014 changes may merge without the build ever running. A build step may be invoked directly as a command, or declared as a task that a runner named in the pipeline resolves."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"251015acef1a259fcc13b7c60660cc8917ccb3ae8056cb5165ae03312dd586e8"}},{"ruleId":"P2","level":"warning","message":{"text":"No structured logging: No logging call was found in the 56 JavaScript/TypeScript production file(s) this check read across 2 module(s). Each was searched for its ecosystem\u0027s logging libraries (JavaScript/TypeScript: pino, winston, bunyan, log4js, loglevel, consola, the NestJS Logger) and for a call on a receiver named \u0060log\u0060/\u0060logger\u0060 (or ending in \u0060Logger\u0060/\u0060_logger\u0060) with a level verb. It cannot see logging through a repo-local wrapper named otherwise, or in source it did not read \u2014 this is \u0027no logging found by this walk\u0027, not a verdict that nothing here logs. If it is right, production issues will be hard to diagnose."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9f10d71351c6778ebe84e761f82a90d4f9ed6c64f5e01975ede8fda7e4e2ebc5"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add CodeQL\u0027s javascript-typescript pack, \u0060semgrep --config=p/typescript\u0060, or eslint-plugin-security as a CI step. What was searched, so you can tell an absence from a miss: the 1 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060package.json\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b237f7efe841e3a95b381b232502a3a473094adeb069a11eaca8ca533fb1c34"}},{"ruleId":"P4","level":"note","message":{"text":"No release approval gate: The release is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY\u0027S PIPELINE FILES. What was read: every file under \u0060.github/workflows/\u0060, \u0060.forgejo/workflows/\u0060, \u0060.gitea/workflows/\u0060, \u0060.azuredevops/\u0060 and \u0060.azure-pipelines/\u0060, plus \u0060.gitlab-ci*\u0060 and \u0060azure-pipelines*\u0060 \u2014 with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab\u0027s \u0060when: manual\u0060, CircleCI\u0027s \u0060type: approval\u0060, an Azure \u0060ManualValidation@\u0060 task or an \u0060approvals:\u0060 block, a Jenkins \u0060input\u0060 step, a \u0060uses:\u0060 step naming an approval action, an \u0060environment:\u0060 paired with \u0060reviewers\u0060 / \u0060required_reviewers\u0060 / \u0060protection\u0060 / \u0060wait-timer\u0060 / \u0060deployment_branch_policy\u0060, a draft-release step, a \u0060workflow_dispatch\u0060 promotion, or a release-event gate. \u2605 What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy \u2014 all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"ruleId":"R1","level":"warning","message":{"text":"Type Safety: 1 typed \u00B7 67 plain JS \u2014 the untyped files are api/_lib/account.js, api/_lib/alipay.js, api/_lib/alipay.test.js, api/_lib/api-imports.test.js, api/_lib/apimart.js, api/_lib/apimart.test.js (\u002B61 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d00ee7953f55325a823d27e5db9657c80ca9b9861c0c0abf8fe487cd3fa586d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 7 sibling directories (20 clone groups): 20 duplicated blocks under api/ have copies in at least two of the sibling directories _lib, admin, apimart, auth, billing, community (\u002B1 more sibling(s) not listed) \u2014 17 of them are reported below, and 3 are counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 20 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 20 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 20 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/billing/alipay/notify.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3222f2f11171e04539e334fa5d39d9ee281755e222270d208d037b097eb2e01"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 4 sibling directories (5 clone groups): 5 duplicated blocks under the repository root have copies in at least two of the sibling directories agents, api, scripts, src \u2014 4 of them are reported below, and 1 is counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 5 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 5 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 5 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/_lib/apimart.js"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ee8ca3a19a9a696be86e04ddc9a3c2f7c49d4811bbde5c7940d07974dd0678"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (55 matched lines \u00D7 2 locations): api/billing/alipay/notify.js:22 \u00B7 api/community/alipay/notify.js:24 \u2014 the two spans are one implementation copied and then locally edited \u2014 483 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":"api/billing/alipay/notify.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a99200b024fbe774b492abc1fcd43010e258de2c16679b61124dbb1bb6048c6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (44 matched lines \u00D7 2 locations): api/community/alipay/close.js:38 \u00B7 api/community/alipay/query.js:36 \u2014 the two spans are one implementation copied and then locally edited \u2014 359 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":"api/community/alipay/close.js"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"91032d1c6821faca8fb2fd88eb1b527de6a4ca0613b1ac8353d55885f6474be6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (31 matched lines \u00D7 2 locations): api/_lib/apimart.js:48 \u00B7 src/apimartClient.js:111 \u2014 the two spans are one implementation copied and then locally edited \u2014 224 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":"api/_lib/apimart.js"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"882a7b6c4dfa9805a1e28fe7c4a290ec63c9fe3c00efd16cf9075fe9ca589dbc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2 locations): api/billing/alipay/checkout.js:17 \u00B7 api/billing/checkout.js:21 \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":"api/billing/alipay/checkout.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7e628b9b1c44b52ee8ecda717dbfa7e5432ddf1816d543fdfc5577ad104733d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2 locations): src/main.jsx:1884 \u00B7 src/main.jsx:2768 \u2014 both copies are in the same file, so extract the block 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":"src/main.jsx"},"region":{"startLine":1884}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7fbe87826b17a7b1eaecddb0849484a5c59e95c7d8571753e2f6e5825e680f2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2 locations): api/admin/community/refund.js:45 \u00B7 api/admin/community/revoke.js:13 \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":"api/admin/community/refund.js"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a3ea05c69b8ff543250d866afc32c330c47bb360be8f69ca9042718a6c70b57"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2 locations): api/billing/alipay/close.js:8 \u00B7 api/billing/alipay/refund.js:15 \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":"api/billing/alipay/close.js"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc7f73503eacdfd269cae3ffa5d2438b8c707e7920bef1440006f166c55a7004"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2 locations): agents/skills/gpt-image-2-style-library/bin/install.mjs:33 \u00B7 scripts/install-style-skill.mjs:8 \u2014 the 2 copies are spread across 2 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":"agents/skills/gpt-image-2-style-library/bin/install.mjs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"346900e8ed7da5ba94c39b8a1e85e18de29cc62956bb6a0aa4110f4a6592c1f7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2 locations): api/admin/community/revoke.js:13 \u00B7 api/community/alipay/close.js:15 \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":"api/admin/community/revoke.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"828c16c9ae5ab8205a59ef662b19159d75992439378f4689d798d5ed2853fad5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (23 matched lines \u00D7 2 locations): api/billing/alipay/query.js:9 \u00B7 api/billing/alipay/refund-query.js:8 \u2014 the two spans are one implementation copied and then locally edited \u2014 210 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":"api/billing/alipay/query.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"9843af50556ca1965f1612cea424cc1a3778a9f97067c7c37403e3a7d7fa5f13"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): api/_lib/account.js:14 \u00B7 api/me.js:29 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/_lib/account.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a4575c6cfe280a427d95e84f66ffda47f4317d47e99bca1f958b09a217bb682"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): api/_lib/alipay.js:185 \u00B7 api/_lib/community.js:166 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/_lib/alipay.js"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"5be75bac50bf57c4cbba6fd1940fc774241f120103d52a2c024f481c1ee81c89"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): api/_lib/alipay.js:98 \u00B7 api/_lib/alipay.js:118 \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":"api/_lib/alipay.js"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"875844d2fb651e86889c726c897b5861c0f01d778affe1b46fa59cc700f499ce"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): src/main.jsx:4033 \u00B7 src/main.jsx:4250 \u2014 both copies are in the same file, so extract the block 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":"src/main.jsx"},"region":{"startLine":4033}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a2b0d53e8fa275729050d5a5afaa0dbfa8d3e25f3bb9b9d461525a90a4779df"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): api/admin/credits/adjust.js:5 \u00B7 api/admin/metrics.js:166 \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":"api/admin/credits/adjust.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3c3992da94e6fd7856686d93629d9c39b1145f10272cb8992ba1b7bc47a9046"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): api/billing/alipay/checkout.js:85 \u00B7 api/community/alipay/checkout.js:126 \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":"api/billing/alipay/checkout.js"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"5732a83efde8ed65c1319b2f84c40e98bab0a0e9402abdd8083b48dfddc1a499"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): api/community/alipay/query.js:16 \u00B7 api/community/qr.js:10 \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":"api/community/alipay/query.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7f072a32aeda0d872eca8ad1a4ae5eef8af21cb2663507609afbefc7436f255"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): src/community.jsx:348 \u00B7 src/community.jsx:368 \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":"src/community.jsx"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"80c8b712f5caf2361b34ab321fe95a62cf1112013cf6a6e86b1c374ec296a499"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): api/_lib/billing.js:67 \u00B7 api/_lib/billing.js:89 \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":"api/_lib/billing.js"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"039577fb32e6b887abb0e858eb9af07459c10ac38854d6655f7a28806c40b08f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): api/generate-image.js:77 \u00B7 api/me.js:60 \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":"api/generate-image.js"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc84570dc65ccbf045b4c0c94a71bdf4607a3c141ec8e7fe695e434f8a3aadf6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5 locations): src/main.jsx:1370 \u00B7 src/main.jsx:1765 \u00B7 src/main.jsx:2212 \u00B7 src/main.jsx:2630 \u00B7 \u002B1 more site(s) not listed \u2014 all 5 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":"src/main.jsx"},"region":{"startLine":1370}}}],"partialFingerprints":{"codehealthFindingId/v1":"11c35d27883ba728aa29727530ce7786dcb0abdb4f4c1c01e253abcab0ed0b9b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): api/admin/users.js:25 \u00B7 api/billing/history.js:15 \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":"api/admin/users.js"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cf6371644ad98c6d09a42120281816537fa072b80b3e50f7343306aa7343ade"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): api/billing/history.js:7 \u00B7 api/me.js:12 \u2014 the 2 copies are spread across 2 files, 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":"api/billing/history.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e256fbcab4d69b16f27a6e7357040f81ef096bd9fe59f8a9eaeeb57557ec73"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): api/community/alipay/checkout.js:42 \u00B7 api/community/alipay/query.js:23 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/community/alipay/checkout.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"f51274087428491bb2e5a527431f7ee7e1baae65c2cb31362dba8c4d62c1bb6b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): src/community.jsx:318 \u00B7 src/community.jsx:378 \u00B7 src/main.jsx:2152 \u2014 the 3 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/community.jsx"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"2915c28d31f5cc446c324a07a1fadf0880528094013096f8a40873525aa2ad7a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): src/main.jsx:4153 \u00B7 src/main.jsx:4164 \u00B7 src/main.jsx:4175 \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":"src/main.jsx"},"region":{"startLine":4153}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7a615f6923105159827a246613dd5b48362d4f7b9f6a386cb1a76f9b56ada7c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): api/_lib/supabase.js:97 \u00B7 api/admin/users.js:8 \u2014 the two spans are one implementation copied and then locally edited \u2014 74 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":"api/_lib/supabase.js"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad4bc280f96da738e342025ed99ba50e666120f11ee4a29abe8ca4da06a8ad9f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): api/admin/community/refund-query.js:51 \u00B7 api/billing/alipay/refund-query.js:40 \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":"api/admin/community/refund-query.js"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"55d21b3cca5041edc469953b2d007f4a29ac53e368c986ce1e07983ec9489e04"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6 locations): api/admin/credits/adjust.js:5 \u00B7 api/admin/metrics.js:166 \u00B7 api/admin/users.js:27 \u00B7 api/billing/alipay/query.js:12 \u00B7 \u002B2 more site(s) not listed \u2014 the 6 copies are spread across 6 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/admin/credits/adjust.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"9531d4d5bb95ae34078785095476c5589e451a8c41cc233a146d1f2dadf0e9be"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): api/auth/watcha/callback.js:117 \u00B7 api/auth/watcha/start.js:15 \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":"api/auth/watcha/callback.js"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6e90c218b5c7063fb06e64c05b715b5ef62a6dbf7384c97d2a64796c983a880"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): api/billing/alipay/close.js:46 \u00B7 api/billing/alipay/query.js:45 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/billing/alipay/close.js"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd5ee12448fa28c4342f58bf698b298076521ade9c27ed1290f44df6e31120a0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): api/favorites.js:102 \u00B7 api/favorites.js:125 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/favorites.js"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8bb46d9bec89e14b16dd3e788128e734bb9dd4cc21d6107d3bdc0e95231cc3b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): api/generate-image.js:105 \u00B7 api/me.js:79 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/generate-image.js"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"30381be680d284b81134d578b69cdb9f343d688497438782a9448dc235b7a452"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/apimartClient.js:90 \u00B7 src/apimartClient.js:179 \u2014 both copies are in the same file, so extract the block 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":"src/apimartClient.js"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7283d9193f82840ff5ecb2a6e4e4ae0176c0378f32d4ef8be3e2dc1794d6eba"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/main.jsx:2982 \u00B7 src/main.jsx:3428 \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":"src/main.jsx"},"region":{"startLine":2982}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a4cf6230388f27f7ebba66d91144120d37175c23f761f1785cdb8e11c9f4ebe"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/main.jsx:3536 \u00B7 src/main.jsx:3546 \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":"src/main.jsx"},"region":{"startLine":3536}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ed4b3afc905ca464962de0ce0d8b683dff2de648de35b9f22c2aeeef9e3a4bf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): api/_lib/alipay.js:229 \u00B7 api/_lib/community.js:304 \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":"api/_lib/alipay.js"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"e76c0dc83f9ac342e8f2cd707f52d56f3f835525d909a53503a3a8623e54515a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): api/_lib/community-alipay.js:17 \u00B7 api/_lib/community-alipay.js:49 \u2014 the two spans are one implementation copied and then locally edited \u2014 67 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":"api/_lib/community-alipay.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"b134239d45115bd063ff7b1aab366f4cda80b3ebec1210a4fabeac54fdfdde87"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): api/admin/community/qr.js:53 \u00B7 api/community/qr.js:41 \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":"api/admin/community/qr.js"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6fe915639176c2d903540d9072906654081aa14c2e50f8f118d7deedf43b7dd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4 locations): api/billing/alipay/checkout.js:121 \u00B7 api/billing/checkout.js:112 \u00B7 api/billing/history.js:48 \u00B7 api/billing/portal.js:45 \u2014 the 4 copies are spread across 4 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":"api/billing/alipay/checkout.js"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"089e45558543d388981c11ea3c751397c27a793395b3128fe64a53538bd9d70b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): api/billing/alipay/close.js:71 \u00B7 api/billing/alipay/refund-query.js:80 \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":"api/billing/alipay/close.js"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"4957e70336c484ef72f9c2b7d16ecb48257c888f6c20c38c75d263eea606c256"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): api/billing/portal.js:22 \u00B7 api/favorites.js:50 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/billing/portal.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"d686a5e63957863aafc447ebbd289bbc67d9d5e15f8b2e2ec6c8950812ed4c9b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): api/favorites.js:50 \u00B7 api/generate-image.js:89 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/favorites.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"d470de93f5b5410c54e411a898f53ca7faec5fb039cbe030bc6e1b12339ab2f9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): api/favorites.js:64 \u00B7 api/me.js:98 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/favorites.js"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"da4b7c6ebb047728c80f3c30335e4220aaa457af19200278e46f0ff660874ef0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): api/generate-image.js:15 \u00B7 api/generation/callback.js:11 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/generate-image.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ef13f5157e7aba0df94561cdba8325bf5b7f04013418bbf9b5df73429580d3a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/apimartClient.js:122 \u00B7 src/apimartClient.js:169 \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":"src/apimartClient.js"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb821785cd7c76d201a561e5c7cf54cd9efc8cfc7604808c6ac25f3f46c329ae"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/community.jsx:366 \u00B7 src/community.jsx:390 \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":"src/community.jsx"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d2b191323b50bd7da273bbbbf9d197419de97822ce91d0627cb4ab305ebfeb0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): src/main.jsx:1781 \u00B7 src/main.jsx:2225 \u00B7 src/main.jsx:2642 \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":"src/main.jsx"},"region":{"startLine":1781}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b523fa09c246b513be24ce52cc54b808065cf3934c86f72d9cefaf0851f78e1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/main.jsx:2900 \u00B7 src/main.jsx:2957 \u2014 both copies are in the same file, so extract the block 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":"src/main.jsx"},"region":{"startLine":2900}}}],"partialFingerprints":{"codehealthFindingId/v1":"209bc4e8c9749ee5f932e805abc5b8f717b43f411c25e30170622e691d208a92"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): api/admin/community/orders.js:11 \u00B7 api/admin/community/refund-query.js:12 \u00B7 api/community/alipay/query.js:16 \u2014 the 3 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":"api/admin/community/orders.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c9e141508caafe11f08189d05f960fcee7feec28124a9fd55f4fd349536f04"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5 locations): api/admin/community/refund-query.js:109 \u00B7 api/admin/community/refund.js:129 \u00B7 api/admin/community/revoke.js:54 \u00B7 api/community/alipay/close.js:76 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 copies are spread across 5 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":"api/admin/community/refund-query.js"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"b437c80798ec2e781bb7b85906b1f5567ff5ed1acf418202f0e4c07dbb52a2a4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): api/admin/metrics.js:141 \u00B7 api/admin/metrics.js:156 \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":"api/admin/metrics.js"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9b82f154ec08f00277187adb94a7331f813d45131390e718cc40d458e475442"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): api/admin/metrics.js:241 \u00B7 api/billing/plans.js:39 \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":"api/admin/metrics.js"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"482a1edfe18a71b2a69ccdadbbe4e6227f94e8465098e2ac4058372784dbcf0d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): api/apimart/pricing.js:3 \u00B7 api/billing/alipay/checkout.js:16 \u00B7 api/billing/portal.js:4 \u2014 the 3 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. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/apimart/pricing.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea9607c4a02404ee3bba8b26410e43cce432050600163a8570be1061b9f5c735"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): api/favorites.js:83 \u00B7 api/me.js:83 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/favorites.js"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"4da3b3480bc19c2a00394d7cc9a47e5278b2a5665405bf31cd731e596e012b84"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/community.jsx:283 \u00B7 src/community.jsx:360 \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":"src/community.jsx"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"5163cb996e6151658644129e71b0cf1289de7294024129b18c663484ed7734d8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/community.jsx:466 \u00B7 src/community.jsx:499 \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":"src/community.jsx"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e287a2a3856d2f282aaae3fd890f5a07d86d424e9c4d66c04c3609ef18a261d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/community.jsx:482 \u00B7 src/community.jsx:499 \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":"src/community.jsx"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1abd4384cb7b7bed2533ef4f469cbdacca4e635802b2b59b4fb0a63de3adce4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/main.jsx:1116 \u00B7 src/main.jsx: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.jsx"},"region":{"startLine":1116}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b82a2275c18e32a6ccd48eb0bcd94c235ed69dbbf781954844fa0bda4497982"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/main.jsx:2298 \u00B7 src/main.jsx:2341 \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":"src/main.jsx"},"region":{"startLine":2298}}}],"partialFingerprints":{"codehealthFindingId/v1":"063f4c53c8369fae8b0ba2b6af961b8737415b1b1ed041c5f8ab83bc2a3c7e78"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/main.jsx:3671 \u00B7 src/main.jsx:3825 \u2014 both copies are in the same file, so extract the block 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":"src/main.jsx"},"region":{"startLine":3671}}}],"partialFingerprints":{"codehealthFindingId/v1":"cffe95538433077ed8878428625147e84a3ea0e8c760682c4fbe7bec682fdcf5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): agents/skills/gpt-image-2-style-library/bin/install.mjs:64 \u00B7 scripts/install-style-skill.mjs:37 \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":"agents/skills/gpt-image-2-style-library/bin/install.mjs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f9157ddd3cbb0f40e88452e10d97d79fb3f48e90dbaa6dfe29d6db97b2c5c42"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): api/_lib/supabase.js:56 \u00B7 api/admin/users.js:61 \u2014 the 2 copies are spread across 2 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":"api/_lib/supabase.js"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b36cb935bab8ad7ef0447dd378e5b6ac47615c76853e5708b27680cef7f7bf1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5 locations): api/admin/community/orders.js:61 \u00B7 api/admin/community/qr.js:55 \u00B7 api/admin/community/qr.js:98 \u00B7 api/community/alipay/checkout.js:162 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 copies are spread across 4 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":"api/admin/community/orders.js"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"d276c3c69b3aceaac16cb23c184283cd874e45143838da8c44d3aef66b04198d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5 locations): api/admin/community/orders.js:11 \u00B7 api/admin/community/refund-query.js:12 \u00B7 api/community/alipay/query.js:16 \u00B7 api/community/config.js:5 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 copies are spread across 5 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":"api/admin/community/orders.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f1c346cb1be141413962dbd9c751a91ef3bd939089b08e17961cb21faa9f275"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): api/apimart/pricing.js:14 \u00B7 api/generation/callback.js:67 \u2014 the two spans are one implementation copied and then locally edited \u2014 57 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":"api/apimart/pricing.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c511df4eb844cc0688e6b20545f91be05350cd2dc2f3850f17290b4aa1241d2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5 locations): api/billing/alipay/checkout.js:18 \u00B7 api/billing/checkout.js:22 \u00B7 api/billing/plans.js:7 \u00B7 api/billing/portal.js:6 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 copies are spread across 5 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":"api/billing/alipay/checkout.js"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ef77bd853111adea4b0c0a9eab55fe202cbcc56b726cdd286a99e716712fca0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): api/billing/plans.js:11 \u00B7 api/generate-image.js:82 \u00B7 api/me.js:65 \u2014 the 3 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":"api/billing/plans.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2cade3223ffb9f3eff532241bd01c2791ddbf2a28a184c3e57004adfd21914d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): api/community/alipay/checkout.js:28 \u00B7 api/community/status.js:12 \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":"api/community/alipay/checkout.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ff2d8c1ea67d2f7ef3548fb989bb496836bef334d03994f65c6119f70f81d04"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): api/admin/metrics.js:75 \u00B7 api/admin/metrics.js:86 \u00B7 api/admin/metrics.js:92 \u2014 all 3 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":"api/admin/metrics.js"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"f07aebcf0f4135142db15f480f6f5d374c4066d8a4448d35da10ddf0fb0b54f3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): scripts/generate-style-skill.mjs:142 \u00B7 scripts/generate-style-skill.mjs:149 \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":"scripts/generate-style-skill.mjs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a63d52ef45485dc198da88ead3504e8ba8b4c2765a9e68b66c7a07928886b03"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/community.jsx:228 \u00B7 src/community.jsx:362 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/community.jsx"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"799cab7fa521dba890279b200e30a38496b765ea6ac699b9b631908d584a99a9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/community.jsx:609 \u00B7 src/community.jsx:634 \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":"src/community.jsx"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd82ccfa5272ce757da28a218b9c8debfdd65eea9b4ce6bbdbf75db6d9a2a1f0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/main.jsx:2915 \u00B7 src/main.jsx:2977 \u2014 both copies are in the same file, so extract the block 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":"src/main.jsx"},"region":{"startLine":2915}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc5c625fd2bf3e2989566edb02a3d281e67a2dd813fef7316ad9625989cbb847"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): api/_lib/billing.js:30 \u00B7 api/generate-image.js:16 \u00B7 api/generation/callback.js:12 \u2014 the 3 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. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/_lib/billing.js"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffc757d988349ad44b65d718ee557d12546a4605f21ce0041a3def8d728def56"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): api/_lib/community-alipay.js:18 \u00B7 scripts/alipay-webpay-sandbox-server.mjs:121 \u2014 the two spans are one implementation copied and then locally edited \u2014 54 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":"api/_lib/community-alipay.js"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dc66d59bc5453cf8d395a4f6a22a42c3f9ef04f4dfade793445566926e8ae6b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): api/admin/community/refund-query.js:20 \u00B7 api/admin/community/refund.js:56 \u00B7 api/admin/community/revoke.js:24 \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/admin/community/refund-query.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1c041e5e44869a2bef6619f89fe2974e827c2365bd16298a5f55b4e48cc2a7a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): api/admin/users.js:51 \u00B7 api/favorites.js:108 \u00B7 api/favorites.js:131 \u2014 the 3 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/admin/users.js"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"a020250dd518ddafdc76282326489d3afa066df1ab57ef77783f18a72782eeed"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/main.jsx:2745 \u00B7 src/main.jsx:2754 \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":"src/main.jsx"},"region":{"startLine":2745}}}],"partialFingerprints":{"codehealthFindingId/v1":"2adc0bb0eb8241ddc4cfb4899ab6772597aad55ca7b9f1c4041df164b2d47c46"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: src/main.jsx:64 reaches into another package with a relative path (../agents/skills/gpt-image-2-style-library/assets/city-life-system-map.png) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.jsx"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"379e8c977e719d184a434073a0db70d8a8cea1ca2741fdea3a431ff7dcc2ea3e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function PreviewDialog (cyclomatic 86, cognitive 83): PreviewDialog has cyclomatic complexity 86 and cognitive complexity 83; 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":"src/main.jsx"},"region":{"startLine":3014}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ba1520811ff6ebe9f330989b0a3b97c8031d7cb43f246132b90162d5d013d7a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function CommunityPage (cyclomatic 43, cognitive 40): CommunityPage has cyclomatic complexity 43 and cognitive complexity 40; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"src/community.jsx"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a3da4bebcb3294fc9f9ab528da24d4edff187d3abda34d893398449f8f873ec"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handler (cyclomatic 35, cognitive 33): handler has cyclomatic complexity 35 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 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":"api/admin/community/refund-query.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"da6823b0023b77265024b4fa8d073064ab3b2904c60e140302a982ebb3fa4804"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AdminPanel (cyclomatic 33, cognitive 31): AdminPanel has cyclomatic complexity 33 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 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":"src/main.jsx"},"region":{"startLine":2086}}}],"partialFingerprints":{"codehealthFindingId/v1":"bee4d602d0bfd83a4d6d953b8833ab1bed44e092cc7ad26510340f945b30d844"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeTraffic (cyclomatic 32, cognitive 19): normalizeTraffic has cyclomatic complexity 32 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":"api/admin/metrics.js"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"589bf09f40c82afda1e003330e380babc5db52bdb7861b4833ff4e3fe19b4185"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handler (cyclomatic 30, cognitive 32): handler has cyclomatic complexity 30 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":"api/community/alipay/checkout.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fd8b7176011c10dbeed22ca04e97b465ade29e0da7656a13bb1144717b739f3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handler (cyclomatic 30, cognitive 30): handler has cyclomatic complexity 30 and cognitive complexity 30; 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":"api/community/alipay/notify.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"99cfc1b550a274daa4afac06d33a09211777228b9a9796b6bb885e0182e0caeb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handler (cyclomatic 29, cognitive 30): handler has cyclomatic complexity 29 and cognitive complexity 30; 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":"api/billing/alipay/notify.js"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed4dd8c0f0c21ae5c4f9d39017e6d3ddd60e6d5939ce19ea79405ed8165b0514"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handler (cyclomatic 25, cognitive 23): handler has cyclomatic complexity 25 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/generate-image.js"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d1008e648ad122cf72532e0e36636287cbd2901eaa694c2eaf093a96da5400"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handler (cyclomatic 24, cognitive 22): handler has cyclomatic complexity 24 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"api/billing/alipay/query.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"10fc69a39bbc4a7df4c4261a97e853971ed7e762c2a817766aa2771018fa04af"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handler (cyclomatic 24, cognitive 21): handler has cyclomatic complexity 24 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":"api/billing/alipay/refund-query.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"104d4ca68d3b9be6f8f0557b98aacbd332b9db42867e6e3f12083fdab54bf27a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handler (cyclomatic 23, cognitive 22): handler has cyclomatic complexity 23 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"api/admin/community/refund.js"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"428b2d9319985e5c8c704fac8e49cbe642a38c94ce969e9624c2eeaa02dff05c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function generationErrorMessage (cyclomatic 23, cognitive 20): generationErrorMessage has cyclomatic complexity 23 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.jsx"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f57b5cf82f67cb7fe6d73e6ae606b011143a73ed12eff4357583f33ff60edf7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handler (cyclomatic 22, cognitive 21): handler 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":"api/billing/alipay/checkout.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"4330834f1e02f00dbc683d8cca59f884eef5371185fdf7c1c913ee52a2f1e771"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handler (cyclomatic 22, cognitive 21): handler 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":"api/billing/alipay/refund.js"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"f96c39bfdd46c4d63073155f9e73a42edbf78c26cec4b89b1ee8e3d705624e95"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function App (cyclomatic 22, cognitive 21): App 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":"src/image25/App.jsx"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"570eb33fdd31fa49e27bc77c1e5b880622dd4c5deb67ab2058b8718fa6dae400"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handler (cyclomatic 21, cognitive 25): handler has cyclomatic complexity 21 and cognitive complexity 25; 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":"api/admin/community/qr.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6f867183cedb041aa74dcd1777be2b89ea201a516e1a6b13980bc979fab9a5a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleGenerate (cyclomatic 21, cognitive 25): handleGenerate has cyclomatic complexity 21 and cognitive complexity 25; 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":"src/main.jsx"},"region":{"startLine":3285}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc58bdd54ef23410f5d5e6133eb7538ba83ee3af03590db489bfd0d7c21ac79f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 21, cognitive 24): (anonymous) has cyclomatic complexity 21 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":"scripts/alipay-webpay-sandbox-server.mjs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6d81beae87f43951f6681cfcf01771ff66d9dd6e580f1b2b022feec7ef8da44"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function CommunityAdminSection (cyclomatic 21, cognitive 20): CommunityAdminSection has cyclomatic complexity 21 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/community.jsx"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"52236e30c3fd2a08d8b90f581d0139a5609f4efec1605c87560c4e41f43e2dd9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AccountPanel (cyclomatic 21, cognitive 17): AccountPanel has cyclomatic complexity 21 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.jsx"},"region":{"startLine":1680}}}],"partialFingerprints":{"codehealthFindingId/v1":"38c17a062396dfd678666d9c3f27064086ece8bb318344bc85c4d8d8d0c6ea26"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handler (cyclomatic 20, cognitive 23): handler has cyclomatic complexity 20 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":"api/favorites.js"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"768f1aee471cddb76bde96cc3bbfaa9fb02e772df25d6efccb7d8c33599f3212"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handler (cyclomatic 20, cognitive 17): handler has cyclomatic complexity 20 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/billing/alipay/close.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"31176cd2ff9595d3a40d3b646f13bae325e681b8d5de87983c85421a0a50b40c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleToggleFavorite (cyclomatic 19, cognitive 21): handleToggleFavorite has cyclomatic complexity 19 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":"src/main.jsx"},"region":{"startLine":3950}}}],"partialFingerprints":{"codehealthFindingId/v1":"3db5936309340983cb1b07b7d971756bb32cb18ec384d697f7d74fb63dbaa86e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function pollPendingGeneration (cyclomatic 19, cognitive 18): pollPendingGeneration has cyclomatic complexity 19 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 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":"src/main.jsx"},"region":{"startLine":3132}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4edd7e8c59f35182ed8da36fdcd7ef947a96c383ca7f0674a94a2f171999be5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handler (cyclomatic 18, cognitive 18): handler has cyclomatic complexity 18 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":"api/community/alipay/close.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fe2d390a5581aac6c11d12434f83d19f7f25dd683c0927d39ff42bf84ec2b40"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeBusinessMetrics (cyclomatic 18, cognitive 17): normalizeBusinessMetrics has cyclomatic complexity 18 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/admin/metrics.js"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"22728c520f519752e3bcbf1683ff4fb61b0b022b2277d0025bdf71fdeac3c922"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handler (cyclomatic 18, cognitive 17): handler has cyclomatic complexity 18 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/admin/metrics.js"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"9be557c1df5f7012b5e44a7a3a717fa4d8fbad988b62c94388775b3ffcdae300"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handler (cyclomatic 18, cognitive 16): handler has cyclomatic complexity 18 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/community/alipay/query.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"91b245a37036b8a0eb2cc21c682106ffa824f096f0d67f2d96d1148c056a6de1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeApimartTask (cyclomatic 18, cognitive 15): normalizeApimartTask has cyclomatic complexity 18 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":"shared/apimart.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecbce06cdf1840b04b597f884478c521b075d013e11b1ba3960075575a01ab71"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 20): (anonymous) has cyclomatic complexity 17 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/community.jsx"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"10ad84c0c28eef21962c9b4d2b5d76c972a5fbd9ce3bd23cdde9fbeec0a2bf0d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handler (cyclomatic 17, cognitive 17): handler has cyclomatic complexity 17 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":"api/admin/community/orders.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"a53af687baf48ec1b4ee8b6c856386bde39e8b177b02b381693ddaedeee2b202"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handler (cyclomatic 17, cognitive 17): handler has cyclomatic complexity 17 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":"api/admin/community/revoke.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"43d39dfa1b7d047c36dcae16a98c36d5dd7fa85353dd4108b6999428a34f1831"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handler (cyclomatic 17, cognitive 16): handler 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":"api/billing/checkout.js"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"df7491d289836424c3a997416c1e3fb52dec0aacfbadf3b27e6a706424dd33f8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handler (cyclomatic 17, cognitive 16): handler 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":"api/generation/status.js"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a243ba18afdab94e169a1eb431da6d36609e8a9527055e0b8a9f408389fb718"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 13): (anonymous) has cyclomatic complexity 17 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":"src/main.jsx"},"region":{"startLine":3065}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c12d17bf1f4af10ca566dbdc904c670ee4ea3fd9c5653144701381a7ccf02e6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function UserMenu (cyclomatic 17, cognitive 12): UserMenu has cyclomatic complexity 17 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":"src/main.jsx"},"region":{"startLine":1548}}}],"partialFingerprints":{"codehealthFindingId/v1":"78a1958bafa35207c47da15787c924d6c826984377ef7bf2a1f5828105e6b4f6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadBilling (cyclomatic 16, cognitive 18): loadBilling has cyclomatic complexity 16 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.jsx"},"region":{"startLine":2503}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9b6e130ad5e94254a2603b83bca45465e1875bbd6057aa9949625084ef1e92c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function orderAction (cyclomatic 16, cognitive 16): orderAction has cyclomatic complexity 16 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/community.jsx"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"621d0d83415271be13f48edd09f1dc04281b017047de25f60a5f37cf375f906c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handler (cyclomatic 16, cognitive 15): handler has cyclomatic complexity 16 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":"api/admin/credits/adjust.js"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b6e5700f886a2f71e81c5f3e7d225e0ad32b1e9ef699af4e7da1f95eb53095e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function formatAdminUser (cyclomatic 16, cognitive 14): formatAdminUser has cyclomatic complexity 16 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":"api/admin/users.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9259f78e20dff6c145019dc06b9ad549527fda42d8801b01e541768fe15fcd8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function profilePayloadFromUser (cyclomatic 16, cognitive 11): profilePayloadFromUser has cyclomatic complexity 16 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":"api/_lib/supabase.js"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"5591e63828684967e7741a68ea29ba054893bd7df0546cfdfab6bc49c45a9cf5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleCheckout (cyclomatic 15, cognitive 17): handleCheckout has cyclomatic complexity 15 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":"src/main.jsx"},"region":{"startLine":2553}}}],"partialFingerprints":{"codehealthFindingId/v1":"da3125be2ac0ad935beb84813fb149c782b8873de0edfba730aa8291b87b9c94"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadAdminData (cyclomatic 15, cognitive 16): loadAdminData has cyclomatic complexity 15 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":"src/main.jsx"},"region":{"startLine":2099}}}],"partialFingerprints":{"codehealthFindingId/v1":"4043dd3517c13cf4031c2d8c91c0f9533ccb4b635dbb7b514479eb51dc07e5ba"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ApiKeyModal (cyclomatic 15, cognitive 14): ApiKeyModal has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.jsx"},"region":{"startLine":1407}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdda6308700e373782b03774f660a31522097f535bc03abd8850490d18de9028"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function BillingPanel (cyclomatic 15, cognitive 14): BillingPanel has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.jsx"},"region":{"startLine":2480}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a7eeaf33b763b1c09e63b202a34c56418384176af7f375926248c14683d8c1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function App (cyclomatic 15, cognitive 14): App has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.jsx"},"region":{"startLine":3581}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fad93817b73c4c198f66ed27da6ee171b40c8ed5f62a74938af9dbf64c89f5c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleCheckoutCompleted (cyclomatic 14, cognitive 18): handleCheckoutCompleted has cyclomatic complexity 14 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/billing/webhook.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef7d452c44c2c5cd3e8ed86e1ed2484345b9f773acac9c1e2efb15836dd489e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handler (cyclomatic 14, cognitive 17): handler has cyclomatic complexity 14 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":"api/me.js"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"34f51e23c9dc820d825e041504e29a33ee94fd2c28b32428fbaa988b77877d43"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handler (cyclomatic 14, cognitive 10): handler has cyclomatic complexity 14 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":"api/auth/watcha/callback.js"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f7d0c0f0ad28bfa29ab14ee74530bc6ef30fbb5b4011d29f842b3dc75dcf5d0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateCommunityTradeResult (cyclomatic 13, cognitive 12): validateCommunityTradeResult 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":"api/_lib/community.js"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdda08b46e2505f2d403fc78b1ed0fd05657d84abf8b6b99a03cbd589a168d40"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handler (cyclomatic 13, cognitive 11): handler has cyclomatic complexity 13 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/generation/callback.js"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e33182f3e8b41e587adb5adc754bbc5d279f82aa6ab2d9242af405a0c5339bb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseRange (cyclomatic 12, cognitive 17): parseRange has cyclomatic complexity 12 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":"api/admin/metrics.js"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b5d2565d7bd5f3aec9db922202ed696813ca8d30d0c7996ca8ec9bf943ca88e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateLibrary (cyclomatic 12, cognitive 16): validateLibrary has cyclomatic complexity 12 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":"scripts/generate-style-skill.mjs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9ec3c1ca6e64694d2916ce3cd8346b3b8457211b0942233bfc0a7cdc82ff848"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function confirmAndPoll (cyclomatic 12, cognitive 12): confirmAndPoll 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":"src/community.jsx"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"7665621ace1c2a9e7e73050064a7d3da4fc01a8492db9faef35dada770fd3d8a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function uploadQr (cyclomatic 12, cognitive 12): uploadQr 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":"src/community.jsx"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"e147b208cfc4e9af24cb84d723ff333a840092e8857e8e2383a874091df788f6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function formatStoredGeneration (cyclomatic 12, cognitive 11): formatStoredGeneration 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":"api/_lib/generation.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d0ebe18fd74001d34ce574a74dba79983db9dc25d8ce6338a3ae5e468ece414"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 11): (anonymous) 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":"src/community.jsx"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b08124b345272c501177f2ba1d24815510d4c47d1707b9aa4aca1e62d4baed"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function upsertMembershipFromSubscription (cyclomatic 12, cognitive 10): upsertMembershipFromSubscription 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":"api/_lib/billing.js"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ce8f5a0ef7c0d169d177a4cbd5d1c1af96d0cac1f2d0fca7f3f2aa5a8d59b3e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function detectCommunityQrMediaType (cyclomatic 12, cognitive 9): detectCommunityQrMediaType 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":"api/_lib/community.js"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"2827b3ac44c3678a4c144f6407ebb1403f8767d7ab4e154d7ea0f31331e2140a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function middleware (cyclomatic 12, cognitive 9): middleware 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":"middleware.ts"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"53386928e0d19219a0f3740f22d1b01e8427ceb45831dd1cd60688031df75c8e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateSameOrigin (cyclomatic 11, cognitive 10): validateSameOrigin 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":"api/_lib/community.js"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"4441a1d3a05dd82d2f2853f6bad5942a426f1df8ae53b0dd32f52c013d151ca6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeProfile (cyclomatic 11, cognitive 10): normalizeProfile 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":"api/_lib/supabase.js"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"faaaa45b200ec9cf911a6831915046e28d689162552cae5b460d463bfc08a145"}},{"ruleId":"R3","level":"warning","message":{"text":"src/main.jsx: 4063 lines of code: src/main.jsx has 4063 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":"src/main.jsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a7683b895111797b59a0e633fbd94566a5e804af50216ee62b7ce146c08dcc0"}},{"ruleId":"R3","level":"warning","message":{"text":"src/community.jsx: 651 lines of code: src/community.jsx has 651 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":"src/community.jsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5515b67984e00cd9e82f3cfa291ad5a4c7e66c11bfedc3df5b2681d6e9800f5a"}},{"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":"src/main.jsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"351e4099fd34323b0e957a742a8656dd69cd351a3d0ff66eb6564875818632cf"}},{"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":"src/community.jsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"504506ab65426ec2ad8e96e88269804cf873f77de83f60d6ba7f457b8a967cf4"}},{"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":"api/_lib/ga4.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2bc6dda3692589b964db5e0da768b272796e14ebc81e0c86b2bda61e8898478"}},{"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":"api/admin/metrics.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c26035221f113dfdd8c6747712257a170cb711d48b8bd0ab503984405fa6931a"}},{"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":"api/_lib/watcha.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7fab479e4dd469f0f80ec2022a54e5118cbca87aeb1da7f85790b6bc2b43bc0"}},{"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":"src/image25/App.jsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"be8549f84cc44d521c0119e0164ac84f6542d49cb6ac20977292f434b7c50c8c"}},{"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":"api/auth/watcha/callback.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3059559e451dcfc51437477e94645f1681f4e8411cbf8ebdcb9b99a861bd1593"}},{"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":"api/community/alipay/checkout.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ff5bbf75b84e4ffa07211a2457626bd33ff0e609407f8ea1253cc24c65df811"}},{"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":"api/billing/webhook.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a4f37cb7ca510b59d2c79164768ea1b5e6376295456054ab0639a11f3ba9d89"}},{"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":"api/admin/community/refund.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6adcc926c4ee06ae92b5432611f0b369b46733c56acf1abc45ed078fd4cb3c1b"}},{"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":"api/favorites.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"962f0c64737863a476aef1241aa8a5047d6fb58bb07fec5b51e4e929593f5e89"}},{"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":"api/billing/alipay/checkout.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"92fe7d5ad2daf576859d76fb8b194f8acee8ac3888204165434f344a707ddb39"}},{"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":"api/billing/checkout.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"29d2a7debef66f36e15dbb7917411a82286502af0bac25e409067dcf34a5aedd"}},{"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":"api/me.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a62fcc473ea42fc858360374080d2a91ec3ae5c7275829d7133c86d3cd585fc"}},{"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":"api/admin/community/refund-query.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c9109154c2873bf6a86860fff7e8d050e030c538e7ca23a92c22a50bb7412c3"}},{"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":"api/admin/community/qr.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"128cbf73058ee5de5f4916803f77e2d55c21f589a8a196d0e7e2145d07028060"}},{"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":"api/billing/alipay/query.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"290a4c8e227c110eb1f666e4e80b4d1762839d5194982170749b451d88b10f9e"}},{"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":"api/community/alipay/notify.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a5435a0f3c0d27c7f7f749303d7693e5546f162600eb6ef22a1ee48939caa75"}},{"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":"api/billing/alipay/refund.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cb7e111a2bcb2d32591aa506f1cd7fa3fad77e65d03cc12ada7347da984e481"}},{"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":"agents/skills/gpt-image-2-style-library/bin/install.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc1d856a117aa674eadb375a0f6649b9d329f06b5a1d30bb454d6953c1700088"}},{"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":"api/billing/alipay/refund-query.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8596da4e202fd99d3544cc73be1343c00730d46fc4998dfbaffe51fdfca75588"}},{"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":"api/community/alipay/query.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"76f146ac10906992807be689fd637e1b5ff1c792792a1e55c14eb499ab5cc2fe"}},{"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":"src/image25/additionalCases.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"73abea286bbf0f2fdba95668c3877e1864d9d68cc4fb581ca95bd9d2b071e860"}},{"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":"api/community/alipay/close.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"87a5b68ba2199ec90d462b636409352ba65245ceed8565eefab550b1a57d53b5"}},{"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":"api/billing/alipay/close.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1798437f4d0dffc5a79b8f280fd44c1f4de8b406cb4c236753d46e1200aa0211"}},{"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":"middleware.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc9045253b9994bbfc4885441e5b4f832c9f4c761130b71c51b04b64cee3f3a"}},{"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":"api/admin/users.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"92dd4330a0cd7f8b37a5cfd54d6c85ab0ff1c79dec3bddd3210c1da4d5fa762a"}},{"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":"api/admin/community/orders.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"17a33111627360ed0c486c2d8efd7090c5e4c6d1dd78c0a7a6ba4e18900bc180"}},{"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":"api/admin/credits/adjust.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"22cd57f69fbd9c81183f3b6c38f08120683dbc860c0da1a9173c3330fdaab7be"}},{"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":"api/admin/community/revoke.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d69caecc61d25325c2e71deb01ed47838f252f50628974dc2785a506b282b61b"}},{"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":"api/community/status.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"045711cc5d64e0396697c1ab09213489027bc51bf5daa2b8a1c91d2bcc619910"}},{"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":"api/billing/history.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d18eb85e1734a1e34bbcf52d53e33950825d2d1aa722cb5fa80398f46b4cd660"}},{"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":"api/billing/portal.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"558571fc2a79fa5ffa652f3b39bb62cfc06fb399de3a2b4a81cf6675c44a8f27"}},{"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":"api/community/qr.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e111efe6aa9e5cc40bacd9cbaa7e51560b75dc7007c660e1b925cd0ce1a5cc11"}},{"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":"api/auth/watcha/start.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d2533db75a1998884cd210e411dc3e3df7d6b40794c0dedacc07b48c5909b9"}},{"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":"api/billing/plans.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ab13f964182c01cb1fadb579c1a7c435a7b926944c11b4cc356d621bf4967ec"}},{"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":"api/apimart/pricing.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc9e695349c4ae27a358ddaf793657595d6f8862d386d165a4db40dc124125b"}},{"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":"api/community/config.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c0acb267b5a886a59c813ae9f013b7ed25fb1939d710b8c214f6c2e8a7fc075"}},{"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":"src/supabaseClient.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3a567cf7faa51020b4885b4322ad029f1a0863ef68ec46d14261e8c2aa4213a"}},{"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":"src/image25/main.jsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef1a24cbb82a97add5c83376b31b3636d2570a7c6b64ea0e36cd9739d8406f3d"}},{"ruleId":"R6","level":"warning","message":{"text":"No lint or typecheck script: test \u2713 \u00B7 lint \u2717 \u00B7 typecheck \u2717 \u2014 read from this repository\u0027s package.json scripts and corroborated against its CI workflows. A script counts when its name or command matches the step: \u0060test\u0060 for the suite, \u0060lint\u0060 or \u0060prettier\u0060 for linting, \u0060typecheck\u0060/\u0060type-check\u0060/\u0060tsc\u0060 for type checking. \u2717 therefore means no script or CI step under those names was found, NOT that the step is absent from your pipeline \u2014 a task invoked by a runner this check does not read, or named something else entirely, is not seen and is worth confirming before acting on a cross. A \u2713 means the wiring is DECLARED \u2014 a script or CI step under those names exists. It is not a statement that the step passes, or that it runs at all: nothing here installs a dependency or executes a suite."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"658a995477a4f3b704a1d0c61d78cffb4c5cc1944c2f896c1bb70ee901a201cf"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~259 LoC): no import path from any entry point (34 application, 2 tooling, 7 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (api/admin/metrics.js) \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":"api/_lib/ga4.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0809f8df27f80c970b2e64209274827220dcc66344e62ceff73cd87a3084dc58"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~248 LoC): no import path from any entry point (34 application, 2 tooling, 7 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":"api/admin/metrics.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cba5c02b8907030d337577a96a733a824f5047d2594664c4559563b50220bba8"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~221 LoC): no import path from any entry point (34 application, 2 tooling, 7 test roots considered), but 2 in-repo import(s) from 2 other file(s) do name it (api/auth/watcha/callback.js, api/auth/watcha/start.js) \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":"api/_lib/watcha.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce2f2d137cd96117151d59e4b05183ad96a0e645ba53b83a848c2120b1f49810"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~194 LoC): no import path from any entry point (34 application, 2 tooling, 7 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (src/image25/main.jsx) \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":"src/image25/App.jsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4624d92c34f76a34b87a028e2695b2e67c504738b3deb196f53e7382a1461889"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~176 LoC): no import path from any entry point (34 application, 2 tooling, 7 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":"api/auth/watcha/callback.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb928e126f47c5160a98fa7aa5128255a4d79bbcfa75e4d4f1aa02a6ee553c05"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~154 LoC): no import path from any entry point (34 application, 2 tooling, 7 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":"api/billing/webhook.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0d5635eaeb5b16cf9d695e99f086c93c71369acff557a569a628811f390a5b8"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~126 LoC): no import path from any entry point (34 application, 2 tooling, 7 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (src/image25/cases.js) \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":"src/image25/realCases.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dfe97f2fabfa2d0843bd630f01a539c25eda65d7db3be62f93794535df4ef8f"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~98 LoC): no import path from any entry point (34 application, 2 tooling, 7 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":"api/billing/alipay/query.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c646bcace46ecda7812f925f42acaf5153a0910dc16eb2df7500cfedf5b772eb"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~97 LoC): no import path from any entry point (34 application, 2 tooling, 7 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":"api/billing/alipay/refund.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"03bac8ee59105d8014a31dc92759f73a11b169610ae425f2c091846541323fa4"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~89 LoC): no import path from any entry point (34 application, 2 tooling, 7 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":"api/billing/alipay/refund-query.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"db50f726ec4bbf97f49fdf489bfa490713626eac02e684d34d4dbc7298bb54c4"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~88 LoC): no import path from any entry point (34 application, 2 tooling, 7 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (src/image25/realCases.js) \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":"src/image25/additionalCases.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a53278c3aaef5f5d30c51405e3ef57da830d4ead1e72875f9b18e3bda0d172b5"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~79 LoC): no import path from any entry point (34 application, 2 tooling, 7 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":"api/billing/alipay/close.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd22dfff7443b051fbdc04571935c7644fda28871893a89e4a119bf589da85be"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~76 LoC): no import path from any entry point (34 application, 2 tooling, 7 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":"middleware.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"809ababf60aaa380f330a8d9107bb2ad2f481721a562b1b4bea461916d3be665"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~70 LoC): no import path from any entry point (34 application, 2 tooling, 7 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (src/image25/App.jsx) \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":"src/image25/cases.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"29a61bf20a72317f8ca31949dd3e62f093795556dad7c2539ecb31429d9de361"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~46 LoC): no import path from any entry point (34 application, 2 tooling, 7 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":"api/auth/watcha/start.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"891fdbdc015a3b701ab3c73367ce54c1df7b6f54de30e908416fa4608b7a244e"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~6 LoC): no import path from any entry point (34 application, 2 tooling, 7 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":"src/image25/main.jsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"591456f0fac60935ac6f7d37bb6a23d89ce2a085a2a0f79ed69ac00a80e2f7c8"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027COMMUNITY_QR_MAX_BYTES\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/_lib/community.js"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa04b89adc86f90bbd3c076100fcbf4061ebdfc8330ddbb86e9fc7a8c407b60d"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027COMMUNITY_ORDER_STATUSES\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/_lib/community.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cf7cab4b256dd66a1416d0409d8f7fd4584201ce7bf40541326673581e019ac"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027percentOf\u0027: This top-level declaration is not exported and its name occurs nowhere else in its module \u2014 not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.jsx"},"region":{"startLine":807}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c824b75b7526ed8dce9ecf6fa09b3c2cadfe7ef5831454b315b84aba84ebf6e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!rawBody.length || rawBody.length \u003E 128 * 1024\u0060 appears character-identically in 2 files \u2014 api/billing/alipay/notify.js, api/community/alipay/notify.js. 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":"api/billing/alipay/notify.js"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eef377b3ac210eb014e6ab66509e8399b55ba797fd7fb870cf4d2fa3017eadb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060error?.code === \u0027APIMART_API_KEY_INVALID\u0027 || error?.code === \u0027APIMART_BALANCE_REQUIRED\u0027\u0060 appears character-identically in 2 files \u2014 api/generate-image.js, api/generation/status.js. 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":"api/generate-image.js"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea834007d948ba916ef229c32ac2bc91be530c787532e801e4dbb282660d63fc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060error?.upstreamMessage || error?.message || \u0027unknown\u0027\u0060 appears character-identically in 3 files \u2014 api/generate-image.js, api/generation/callback.js, api/generation/status.js. 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":"api/generate-image.js"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f33d8a2481e0e2f5238831516ed68a1a4984ce9f3b3107d318dc86870b0a931"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060params.app_id !== appId || params.seller_id !== sellerId\u0060 appears character-identically in 2 files \u2014 api/billing/alipay/notify.js, api/community/alipay/notify.js. 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":"api/billing/alipay/notify.js"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"c146ba0ec3712c992852503af32a7be4f8cbf7319b4f5a8261d88d2b84dffa2a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060params[key] != null \u0026\u0026 params[key] !== \u0027\u0027\u0060 appears character-identically in 2 files \u2014 api/_lib/alipay.js, api/_lib/community.js. 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":"api/_lib/alipay.js"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"079e72de38f102818ce995ad7793375d1e40b95a270326d02fc751dc9425b27f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060req.body \u0026\u0026 typeof req.body === \u0027object\u0027\u0060 appears character-identically in 3 files \u2014 api/_lib/billing.js, api/generate-image.js, api/generation/callback.js. 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":"api/_lib/billing.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"b15483f07069f9809b01cfdd6b2c829b10302840031c3b42b7c75d7472cdc241"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060req.query?.orderId || req.query?.order_id || \u0027\u0027\u0060 appears character-identically in 3 files \u2014 api/billing/alipay/query.js, api/billing/alipay/refund-query.js, api/community/alipay/query.js. 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":"api/billing/alipay/query.js"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"547e67e15975f7820e7e38bc822b7f0c3fc900cf1c1772a2efd0d0f1340c415b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060req?.headers?.[\u0027x-forwarded-host\u0027] || req?.headers?.host\u0060 appears character-identically in 2 files \u2014 api/_lib/billing.js, api/_lib/community.js. 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":"api/_lib/billing.js"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"750d0495854db59ef6693e042a3b452195621097d6effb8aab21aad7918e474c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060req?.headers?.[\u0027x-forwarded-proto\u0027] || \u0027https\u0027\u0060 appears character-identically in 2 files \u2014 api/_lib/billing.js, api/_lib/community.js. 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":"api/_lib/billing.js"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"05a18e54e8f794d7c577aa366a4e7c0499bfa47bc00d542ed472728d71a9a5fd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060status === \u0027TRADE_SUCCESS\u0027 || status === \u0027TRADE_FINISHED\u0027\u0060 appears character-identically in 2 files \u2014 api/_lib/alipay.js, api/_lib/community.js. 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":"api/_lib/alipay.js"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1989c7b77430c2c33ffca7f83eb9782750c316622b6f894d6c61089b95b34df"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof paymentHtml !== \u0027string\u0027 || !paymentHtml.includes(\u0027\u003Cform\u0027)\u0060 appears character-identically in 3 files \u2014 api/billing/alipay/checkout.js, api/community/alipay/checkout.js, scripts/alipay-webpay-sandbox-server.mjs. 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":"api/billing/alipay/checkout.js"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd05ffc1b066edab2151a7fb52be082551213e64776c050d0ca0851686e40e91"}},{"ruleId":"X2","level":"note","message":{"text":"Not all async functions that make a request accept an AbortSignal: Only 1/6 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: confirmAndPoll: \u0060confirmAndPoll\u0060 awaits \u0060fetch(\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: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/community.jsx"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"00a63a303cee9f09e05e4e6815826be7e00e9195b8f2de0fd3ca4f40def60ffb"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: loadBilling: \u0060loadBilling\u0060 awaits \u0060fetch(\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: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.jsx"},"region":{"startLine":2503}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c35d0493990caf1ec657093755537e7bc4c2898856cbedaf30c0369f151586"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: loadFavorites: \u0060loadFavorites\u0060 awaits \u0060fetch(\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: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.jsx"},"region":{"startLine":3735}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddf7733506c28ed4b1a818bfc498dd4dee4b0007751334c4edad3bbed26caadc"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: exchangeCodeForToken: \u0060exchangeCodeForToken\u0060 awaits \u0060fetch(\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: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/_lib/watcha.js"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"a84c1a4e9406c59377456a51f1e79e55702275c88cebd59250f7ff9c6f582255"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: fetchWatchaUserInfo: \u0060fetchWatchaUserInfo\u0060 awaits \u0060fetch(\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: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/_lib/watcha.js"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"003b303b21a3899eb398b09a97cca3c625dae3a2b0f30c76b2fc102a732cd8bb"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060paymentHtml\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":"src/community.jsx"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"40b7eab9e112d758bcb1c82a04aa6940a3cf6e30330c001e68b3dc99c811531c"}},{"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":"src/apimartClient.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"e64a6bc0c654262d3d99510c69e00b8f4de7731629988d9433e9f0c34822f4d0"}},{"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":"src/main.jsx"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bbd393d8b35986cd6dc1f72f78c90118e7986a2f8653c6eaad5ff8415bef6f9"}},{"ruleId":"X5","level":"note","message":{"text":"Strict null checking is not enabled everywhere the repository type-checks: This repository commits no tsconfig, so whatever type-checks it uses tsc\u0027s own defaults, in which \u0060strict\u0060 and \u0060strictNullChecks\u0060 are OFF: \u0060string\u0060 admits \u0060null\u0060 and \u0060undefined\u0060, and a value that is null is compiled through to the property access that throws. If the build passes \u0060--strict\u0060 on a command line instead, put it in a committed tsconfig \u2014 this check reads configuration, and configuration is all it can read."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8870f9ff7b17c2e14c5ba3bc13137b94673aad0b9498438c572dabb049852943"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readObject\u0060 swallows every exception into \u0060return {}\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/apimartClient.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1ed82759ea8000b1fcc40916573769100a34774833e3301b06a0bd0a15c8664"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getStoredApimartKey\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":"src/apimartClient.js"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"122f2268346875f2cf8335cb0242dbd1134ab22e265233ea212d10c7d5ca12e8"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-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-319","guid":"7af97476-9f0d-4458-9163-3d2043918a1a","name":"Cleartext Transmission of Sensitive Information","shortDescription":{"text":"Cleartext Transmission of Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/319.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-457","guid":"b62874fe-6222-8b5b-8ade-9527ad1cbb4a","name":"CWE-457","shortDescription":{"text":"CWE-457"},"helpUri":"https://cwe.mitre.org/data/definitions/457.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-532","guid":"1cd8877a-76e8-ce54-b40b-779af23364a0","name":"Insertion of Sensitive Information into Log File","shortDescription":{"text":"Insertion of Sensitive Information into Log File"},"helpUri":"https://cwe.mitre.org/data/definitions/532.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"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":"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-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":30,"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."]}]}