{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"id":"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"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}},{"id":"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"]}],"properties":{"cwe":["CWE-506"]}},{"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":"AC7","name":"A11y enforcement","shortDescription":{"text":"A11y enforcement"},"helpUri":"https://codehealth.canine.dev/dimensions/AC7"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"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":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"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":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"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":"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":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"main.PreviewDialog (cyclomatic 153): main.PreviewDialog has cyclomatic complexity 153 (threshold 15). Of this number, 124 points are the body\u0027s own statements and 29 belong to 12 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: src/main.jsx holds 9 of the 39 methods over the threshold \u2014 including the worst \u2014 and 369 of the 729 points over it (51%), 2.5\u00D7 the next-largest file (src/community.jsx at 147). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.jsx"},"region":{"startLine":3014}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a8b5e7d0d4d6966516c02d4c8ed4055159d2e4016b9e1196ec30120b8477eff"}},{"ruleId":"D1","level":"warning","message":{"text":"main.App (cyclomatic 108): main.App has cyclomatic complexity 108 (threshold 15). Of this number, 42 points are the body\u0027s own statements and 66 belong to 32 function literals 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: src/main.jsx holds 9 of the 39 methods over the threshold \u2014 including the worst \u2014 and 369 of the 729 points over it (51%), 2.5\u00D7 the next-largest file (src/community.jsx at 147). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.jsx"},"region":{"startLine":3581}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c972f99cf61a64c38549b88a22de5e50b2416646e847e6ade8f29c3fa0f2c93"}},{"ruleId":"D1","level":"warning","message":{"text":"community.CommunityPage (cyclomatic 105): community.CommunityPage has cyclomatic complexity 105 (threshold 15). Of this number, 64 points are the body\u0027s own statements and 41 belong to 13 function literals 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":"community.CommunityAdminSection (cyclomatic 72): community.CommunityAdminSection has cyclomatic complexity 72 (threshold 15). Of this number, 45 points are the body\u0027s own statements and 27 belong to 5 function literals 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). Of this number, 47 points are the body\u0027s own statements and 16 belong to 5 function literals 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: src/main.jsx holds 9 of the 39 methods over the threshold \u2014 including the worst \u2014 and 369 of the 729 points over it (51%), 2.5\u00D7 the next-largest file (src/community.jsx at 147). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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, 51 points are the body\u0027s own statements and 10 belong to 5 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: src/main.jsx holds 9 of the 39 methods over the threshold \u2014 including the worst \u2014 and 369 of the 729 points over it (51%), 2.5\u00D7 the next-largest file (src/community.jsx at 147). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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, 33 points are the body\u0027s own statements and 9 belong to 5 function literals 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, 27 points are the body\u0027s own statements and 8 belong to 4 function literals 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: src/main.jsx holds 9 of the 39 methods over the threshold \u2014 including the worst \u2014 and 369 of the 729 points over it (51%), 2.5\u00D7 the next-largest file (src/community.jsx at 147). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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, 21 points are the body\u0027s own statements and 7 belong to 3 function literals 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: src/main.jsx holds 9 of the 39 methods over the threshold \u2014 including the worst \u2014 and 369 of the 729 points over it (51%), 2.5\u00D7 the next-largest file (src/community.jsx at 147). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: src/main.jsx holds 9 of the 39 methods over the threshold \u2014 including the worst \u2014 and 369 of the 729 points over it (51%), 2.5\u00D7 the next-largest file (src/community.jsx at 147). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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":"alipay-webpay-sandbox-server.server (cyclomatic 21): alipay-webpay-sandbox-server.server has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/alipay-webpay-sandbox-server.mjs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee7d596737dadab057fc861bf35601539cdf9a72bc1da69ed2f546460d325a74"}},{"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":"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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: src/main.jsx holds 9 of the 39 methods over the threshold \u2014 including the worst \u2014 and 369 of the 729 points over it (51%), 2.5\u00D7 the next-largest file (src/community.jsx at 147). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.jsx"},"region":{"startLine":1548}}}],"partialFingerprints":{"codehealthFindingId/v1":"e164d034aa0fb539669805270eb398eeaf54d3392edc6775b435acb7605538c7"}},{"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, 13 points are the body\u0027s own statements and 3 belong to 2 function literals 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: src/main.jsx holds 9 of the 39 methods over the threshold \u2014 including the worst \u2014 and 369 of the 729 points over it (51%), 2.5\u00D7 the next-largest file (src/community.jsx at 147). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.jsx"},"region":{"startLine":1314}}}],"partialFingerprints":{"codehealthFindingId/v1":"398fb89a7beefdd2f2df86ee7c1946bf6ece7b29d1d9563de698b925a53efc80"}},{"ruleId":"D2","level":"warning","message":{"text":"main.PreviewDialog (cognitive 176): main.PreviewDialog has cognitive complexity 176 (threshold 15). Drivers by points: ternaries 58 (86 pts), boolean chains 56, if/else 26 (32 pts), error handling 2 (nesting depth added 34). Of this number, 149 points are the body\u0027s own statements and 27 belong to 12 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass\u0027s cognitive complexity CONCENTRATES: src/main.jsx holds 7 of the 38 methods over the threshold \u2014 including the worst \u2014 and 400 of the 765 points over it (52%), 2.5\u00D7 the next-largest file (src/community.jsx at 159). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.jsx"},"region":{"startLine":3014}}}],"partialFingerprints":{"codehealthFindingId/v1":"494b062c2303ede3ef9f3c1cd089fbee5b238a248ad335bbbccdfe75a08f1920"}},{"ruleId":"D2","level":"warning","message":{"text":"main.App (cognitive 108): main.App has cognitive complexity 108 (threshold 15). Drivers by points: if/else 49 (53 pts), boolean chains 36, ternaries 17, error handling 2 (nesting depth added 4). Of this number, 45 points are the body\u0027s own statements and 63 belong to 32 function literals 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: src/main.jsx holds 7 of the 38 methods over the threshold \u2014 including the worst \u2014 and 400 of the 765 points over it (52%), 2.5\u00D7 the next-largest file (src/community.jsx at 159). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.jsx"},"region":{"startLine":3581}}}],"partialFingerprints":{"codehealthFindingId/v1":"590f754871dffbd7f49aa5c8b1ec739534c3041e7ed93dee5d7a957fec3a6f22"}},{"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, 62 points are the body\u0027s own statements and 43 belong to 13 function literals 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, 49 points are the body\u0027s own statements and 35 belong to 5 function literals 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, 58 points are the body\u0027s own statements and 19 belong to 5 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass\u0027s cognitive complexity CONCENTRATES: src/main.jsx holds 7 of the 38 methods over the threshold \u2014 including the worst \u2014 and 400 of the 765 points over it (52%), 2.5\u00D7 the next-largest file (src/community.jsx at 159). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.jsx"},"region":{"startLine":2086}}}],"partialFingerprints":{"codehealthFindingId/v1":"45e956185a27a54044518bf9ad50db076cd7c1e18d3f599ad4f96d86586280d8"}},{"ruleId":"D2","level":"warning","message":{"text":"main.BillingPanel (cognitive 65): main.BillingPanel has cognitive complexity 65 (threshold 15). Drivers by points: boolean chains 22, if/else 19 (22 pts), ternaries 17 (18 pts), error handling 3 (nesting depth added 4). Of this number, 51 points are the body\u0027s own statements and 14 belong to 5 function literals 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: src/main.jsx holds 7 of the 38 methods over the threshold \u2014 including the worst \u2014 and 400 of the 765 points over it (52%), 2.5\u00D7 the next-largest file (src/community.jsx at 159). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.jsx"},"region":{"startLine":2480}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dffb795f7d660be05dbaa6bdf7cb0b9f326b75cb7807ae6582428941b5da47b"}},{"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, 37 points are the body\u0027s own statements and 11 belong to 5 function literals 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, 23 points are the body\u0027s own statements and 10 belong to 4 function literals 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: src/main.jsx holds 7 of the 38 methods over the threshold \u2014 including the worst \u2014 and 400 of the 765 points over it (52%), 2.5\u00D7 the next-largest file (src/community.jsx at 159). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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, 19 points are the body\u0027s own statements and 7 belong to 3 function literals 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: src/main.jsx holds 7 of the 38 methods over the threshold \u2014 including the worst \u2014 and 400 of the 765 points over it (52%), 2.5\u00D7 the next-largest file (src/community.jsx at 159). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.jsx"},"region":{"startLine":1407}}}],"partialFingerprints":{"codehealthFindingId/v1":"82fe2e628c09c3488e87f7db90fadaa25d83409f36d8f537332c7a831738422c"}},{"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":"alipay-webpay-sandbox-server.server (cognitive 24): alipay-webpay-sandbox-server.server has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 10, error handling 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/alipay-webpay-sandbox-server.mjs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"06685863c48ae694503e4a23c15dd0ffeb878cf426189861b0881f8d45f46d81"}},{"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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: src/main.jsx holds 7 of the 38 methods over the threshold \u2014 including the worst \u2014 and 400 of the 765 points over it (52%), 2.5\u00D7 the next-largest file (src/community.jsx at 159). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.jsx"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"30e1efc7bb791957008bcbf5bd90221b78432e25f83f97190c917bde954be0b0"}},{"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":"generate-style-skill.validateLibrary (cognitive 16): generate-style-skill.validateLibrary has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 3, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/generate-style-skill.mjs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2e59029ff85011678f981f32b80e5cf68f0140f07d25e5cb2f8a06fe14aa3ba"}},{"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":"D15","level":"warning","message":{"text":"Hotspot: src/main.jsx: src/main.jsx changed 5 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 4 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-06-26..2026-09-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-26 15:56:38 \u002B08:00\u0027 --until=\u00272026-09-24 15:56:38 \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."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d2bea044ff79d7d275f5a91a6e2f548586178eaf480274c33960ad020c854631"}},{"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 (11012 LoC, 56 public types across 16 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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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":"aea179ab0c68cc9e97b24a42df4953f60a168b52ce1ce992dfa9d65c712f31e1"},"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]","[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":"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":"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":"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":"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":"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]","[GHSA 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":"43427bab5dea8e4a9974d0d31081f6cee7984ed96dc960bd2c33af06bc12237b"},"properties":{"dependency":{"package":"baseline-browser-mapping","version":"2.10.44","advisory":"[GHSA redacted]","aliases":["[CVE 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"}},{"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"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"}},{"ruleId":"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":"AC7","level":"warning","message":{"text":"Accessibility enforcement below the top rung: No accessibility enforcement found \u2014 no a11y linter (eslint-plugin-jsx-a11y) and no axe/pa11y/Lighthouse in tests or CI. Start with the linter to catch issues at author time. What was searched, so you can tell an absence from a miss: the 6 markup file(s) this pass actually assessed, the linter configuration checked in beside them, and this repository\u0027s test and CI files \u2014 matched by name against the accessibility checkers this dimension carries. An audit run outside the repository, a hosted scanner, or a check whose name is not one of those, is not seen here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d46019b86eff5ddad9db289e6802ac158899e980df54c34f67722442787ead62"}},{"ruleId":"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/javascript\u0060, or eslint-plugin-security as a CI step. What was searched, so you can tell an absence from a miss: the 894 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P4","level":"note","message":{"text":"No release approval gate: The release is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY\u0027S PIPELINE FILES. What was read: every file under \u0060.github/workflows/\u0060, \u0060.forgejo/workflows/\u0060, \u0060.gitea/workflows/\u0060, \u0060.azuredevops/\u0060 and \u0060.azure-pipelines/\u0060, plus \u0060.gitlab-ci*\u0060 and \u0060azure-pipelines*\u0060 \u2014 with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab\u0027s \u0060when: manual\u0060, CircleCI\u0027s \u0060type: approval\u0060, an Azure \u0060ManualValidation@\u0060 task or an \u0060approvals:\u0060 block, a Jenkins \u0060input\u0060 step, a \u0060uses:\u0060 step naming an approval action, an \u0060environment:\u0060 paired with \u0060reviewers\u0060 / \u0060required_reviewers\u0060 / \u0060protection\u0060 / \u0060wait-timer\u0060 / \u0060deployment_branch_policy\u0060, a draft-release step, a \u0060workflow_dispatch\u0060 promotion, or a release-event gate. \u2605 What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy \u2014 all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"ruleId":"R1","level":"warning","message":{"text":"Type Safety: 0 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":"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":"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":"scripts/alipay-webpay-sandbox-server.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"97a8b025cc078bcebd7d04a8525e1ac4275cfe911a04317eaede0233a37760ca"}},{"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":"scripts/generate-site-data.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"29787267ceedafed2ea2422406487898b2cae9829bfb4f5512c8404fb9119f6d"}},{"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":"scripts/generate-style-skill.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9170cb3a275620e673993d5e4f9e6329c949a5fd36638621b18fa38942476298"}},{"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":"scripts/vite-local-api.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3349354828e4a60457aaa91732000813da46619324edbd6ff30de796228704b3"}},{"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":"scripts/google-analytics-oauth.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"94154261d0155949202f4ab0880ce20a78dda2d08253805fb6c0b8bf8a2d3ff8"}},{"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":"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":"scripts/install-style-skill.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbf8a7940d4c0a1f110777e52d12db7bcddbf8d990824f4c7dfb174154100801"}},{"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":"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 (~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":"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":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/generate-style-skill.mjs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"248c5c9123828a5bc305c884902a74245ae51a97c4415e1aaecb57ca4c2b91ab"}},{"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-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"CWE-353","shortDescription":{"text":"CWE-353"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-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":"CWE-506","shortDescription":{"text":"CWE-506"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-532","guid":"1cd8877a-76e8-ce54-b40b-779af23364a0","name":"CWE-532","shortDescription":{"text":"CWE-532"},"helpUri":"https://cwe.mitre.org/data/definitions/532.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-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":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":25,"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."]}]}