{"$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":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D24","name":"Comment Value","shortDescription":{"text":"Comment Value"},"helpUri":"https://codehealth.canine.dev/dimensions/D24"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AC1","name":"Text alternatives","shortDescription":{"text":"Text alternatives"},"helpUri":"https://codehealth.canine.dev/dimensions/AC1"},{"id":"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":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"GD1","name":"Unfinished \u0026 placeholder code","shortDescription":{"text":"Unfinished \u0026 placeholder code"},"helpUri":"https://codehealth.canine.dev/dimensions/GD1"},{"id":"IC1","name":"Incompleteness \u0026 stubs","shortDescription":{"text":"Incompleteness \u0026 stubs"},"helpUri":"https://codehealth.canine.dev/dimensions/IC1"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R6","name":"Tooling","shortDescription":{"text":"Tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/R6"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R8","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/R8"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"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":"createOrder (cyclomatic 99): createOrder has cyclomatic complexity 99 (threshold 15). Of this number, 88 points are the body\u0027s own statements and 11 belong to 17 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/to-pay-order/index.js"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"46842a2158d2edf304b316af286a1aa96ebbc552e66cc3a5bd3c5d52d48c733b"}},{"ruleId":"D1","level":"warning","message":{"text":"address_parse.smatrAddress (cyclomatic 44): address_parse.smatrAddress has cyclomatic complexity 44 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 23 belong to 15 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/address_parse.js"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dabc9ec458035cf6fb4f42de3c2f8a61ab2f81b402d5fd7605d9f4c01e280b0"}},{"ruleId":"D1","level":"warning","message":{"text":"bindSave (cyclomatic 23): bindSave 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":"pages/address-add/index.js"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"03e677bfee2df031452bd95e99b089d26ed9cba6a817813a92a7a88a063429ec"}},{"ruleId":"D1","level":"warning","message":{"text":"getGoodsDetailAndKanjieInfo (cyclomatic 23): getGoodsDetailAndKanjieInfo has cyclomatic complexity 23 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/goods-details/index.js"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf8d688a2a1801414fb693cec3978d998b015149c077a9a8940a3745da720f58"}},{"ruleId":"D1","level":"warning","message":{"text":"loadPageData (cyclomatic 20): loadPageData 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":"marketing/listing/detail.js"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"f12376a794b09ee7c5f09e7d4ed1498b589c7a1cf5236aa7ee4806e38eb9e669"}},{"ruleId":"D1","level":"warning","message":{"text":"submit (cyclomatic 19): submit has cyclomatic complexity 19 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"marketing/listing/edit.js"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"a579a413816a1f380838ac7ae17542a0c96ce385cfa2e4fa0e234f1119c9f5c1"}},{"ruleId":"D1","level":"warning","message":{"text":"orderDetail (cyclomatic 19): orderDetail has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/wuliu/index.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"65447ee989da0b0c95d97ce9da738ab8caa47982d5a4714d7ff398ed72ee9f1f"}},{"ruleId":"D1","level":"warning","message":{"text":"transition.transition (cyclomatic 17): transition.transition has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 11 function literals inside it that branch (lines 130, 44, 67, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"miniprogram_npm/@vant/weapp/mixins/transition.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0d709dad9ba24cc4999150cac7ba3f7e650162eb563839f195d2ca8c037552a"}},{"ruleId":"D1","level":"warning","message":{"text":"onShow (cyclomatic 16): onShow has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 5 of the 16 points are its own statements and the rest belongs to 9 function items inside it that branch (a function literal at line 124, a function literal at line 141, success::success, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app.js"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cf166ad33049480860c80eda13bc990794aeac8b321ce5f5140039398f1168f"}},{"ruleId":"D1","level":"warning","message":{"text":"orderList (cyclomatic 16): orderList has cyclomatic complexity 16 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/order-list/index.js"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bdf39b467f727ba8769079f566790939313f04edac6a94b3298432506ccd058"}},{"ruleId":"D1","level":"warning","message":{"text":"rebuildDisplay (cyclomatic 16): rebuildDisplay has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 4 of the 16 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 238, 232, 246). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/qingdan/index.js"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d06fa53ea9e8798df6c01001622c3f34a8c8d8a0a71f15205e57fbb716c9b38"}},{"ruleId":"D2","level":"warning","message":{"text":"createOrder (cognitive 231): createOrder has cognitive complexity 231 (threshold 15). Drivers by points: if/else 68 (171 pts), ternaries 5 (31 pts), boolean chains 27, loops 1 (2 pts) (nesting depth added 130). Of this number, 174 points are the body\u0027s own statements and 57 belong to 17 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function. This file is where this pass\u0027s cognitive complexity CONCENTRATES: pages/to-pay-order/index.js holds 3 of the 31 methods over the threshold \u2014 including the worst \u2014 and 230 of the 482 points over it (48%), 4.1\u00D7 the next-largest file (utils/address_parse.js at 56). 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":"pages/to-pay-order/index.js"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"878851e3b753bcd8f22eb5aa1af0a607d19d6f090160592f9a73cbf54dff4edc"}},{"ruleId":"D2","level":"warning","message":{"text":"address_parse.smatrAddress (cognitive 71): address_parse.smatrAddress has cognitive complexity 71 (threshold 15). Drivers by points: if/else 33 (58 pts), ternaries 4 (8 pts), loops 4, boolean chains 1 (nesting depth added 29). Of this number, 23 points are the body\u0027s own statements and 48 belong to 15 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/address_parse.js"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"69eb553ba9b68f25f3e103e7bb28abc5f0464c6856c70879371392331d987bbe"}},{"ruleId":"D2","level":"warning","message":{"text":"getGoodsDetailAndKanjieInfo (cognitive 46): getGoodsDetailAndKanjieInfo has cognitive complexity 46 (threshold 15). Drivers by points: if/else 15 (32 pts), ternaries 4 (9 pts), error handling 1 (3 pts), boolean chains 2 (nesting depth added 24). Of this number, 43 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/goods-details/index.js"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec0ccc0c74c3885222d8a440a5466c3d458f938d797a43e793b64ffbae6e0ef5"}},{"ruleId":"D2","level":"warning","message":{"text":"onShow (cognitive 41): onShow has cognitive complexity 41 (threshold 15). Drivers by points: if/else 16 (36 pts), error handling 1 (4 pts), boolean chains 1 (nesting depth added 23). Most of this is not in the body itself: 4 of the 41 points are its own statements and the rest belongs to 9 function items inside it that branch (a function literal at line 124, a function literal at line 141, success::success, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app.js"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0e777d19ed9591a50274e700b9f7f1ffd22cb209cb4179b275d9c92c01afefd"}},{"ruleId":"D2","level":"warning","message":{"text":"_drawSingleText (cognitive 37): _drawSingleText has cognitive complexity 37 (threshold 15). Drivers by points: if/else 11 (31 pts), match/switch 1 (3 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 23). Of this number, 36 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"miniprogram_npm/wxa-plugin-canvas/index/index.js"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"cec7f8c15fb99068f934b744c00909a744c38c15fc94f44e37b8685f83c9addd"}},{"ruleId":"D2","level":"warning","message":{"text":"orderList (cognitive 30): orderList has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (25 pts), boolean chains 5 (nesting depth added 12). Of this number, 17 points are the body\u0027s own statements and 13 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/order-list/index.js"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"d82ed3757351acd3cbad70fc6ce22ccd4e283388ceb022823168c0436aa0220b"}},{"ruleId":"D2","level":"warning","message":{"text":"orderDetail (cognitive 26): orderDetail has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 8, ternaries 1 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/wuliu/index.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"8da912fea4dc2b47375c5d1692ce036e6cde731150a01dc37ddccb4e03d29e51"}},{"ruleId":"D2","level":"warning","message":{"text":"submit (cognitive 25): submit has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 7, ternaries 1 (2 pts) (nesting depth added 4). Of this number, 17 points are the body\u0027s own statements and 8 belong to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"marketing/listing/edit.js"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f0e32f953aad7c40645c41f012059b1c0f65f335a8aa67c4d3bcd43c85a79bb"}},{"ruleId":"D2","level":"warning","message":{"text":"bindSave (cognitive 25): bindSave has cognitive complexity 25 (threshold 15). Drivers by points: if/else 20 (21 pts), boolean chains 2, ternaries 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":"pages/address-add/index.js"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5b7bad948f73cce0d5c6b6da99ef6062ac4e6c8ce77e473b8c9e68d85f5d025"}},{"ruleId":"D2","level":"warning","message":{"text":"loadPageData (cognitive 24): loadPageData has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 11, if/else 6 (10 pts), ternaries 2, 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":"marketing/listing/detail.js"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"8678bbd6003ecfec230b29e66a5ce4b54f54da23aa3d51883c2568514d3df313"}},{"ruleId":"D2","level":"warning","message":{"text":"buyNow (cognitive 23): buyNow has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 1 (nesting depth added 9). Of this number, 12 points are the body\u0027s own statements and 11 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/goods-details/index.js"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c686121d3efb70c0cc67cc0a4b43248ebbd453f07b0e121eade4094babc1445"}},{"ruleId":"D2","level":"warning","message":{"text":"processAfterCreateOrder (cognitive 23): processAfterCreateOrder has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 2 (nesting depth added 8). Most of this is not in the body itself: 11 of the 23 points are its own statements and the rest belongs to 4 function items inside it that branch (success, success, a function literal at line 772, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This file is where this pass\u0027s cognitive complexity CONCENTRATES: pages/to-pay-order/index.js holds 3 of the 31 methods over the threshold \u2014 including the worst \u2014 and 230 of the 482 points over it (48%), 4.1\u00D7 the next-largest file (utils/address_parse.js at 56). 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":"pages/to-pay-order/index.js"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"29d31ce5a35b53d7ae900bddf7ece8673c7de9b80301e04345251212035d3126"}},{"ruleId":"D2","level":"warning","message":{"text":"onClickDay (cognitive 23): onClickDay has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 2 (nesting depth added 8). Of this number, 16 points are the body\u0027s own statements and 7 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"miniprogram_npm/@vant/weapp/calendar/index.js"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5c01dd37355e57eec69f9a6524d1d663d450902c21c0f7e54f5ad8dd6e69fc3"}},{"ruleId":"D2","level":"warning","message":{"text":"calculateGoodsPrice (cognitive 21): calculateGoodsPrice has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (16 pts), ternaries 3 (4 pts), boolean chains 1 (nesting depth added 7). Of this number, 12 points are the body\u0027s own statements and 9 belong to 6 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/goods-pop/index.js"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e6a3ba8f330dce9993e000b6218bad9f7e1cf73518b952930833a07e0ed6500"}},{"ruleId":"D2","level":"warning","message":{"text":"doneShow (cognitive 21): doneShow has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 1 (nesting depth added 8). Of this number, 13 points are the body\u0027s own statements and 8 belong to 7 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: pages/to-pay-order/index.js holds 3 of the 31 methods over the threshold \u2014 including the worst \u2014 and 230 of the 482 points over it (48%), 4.1\u00D7 the next-largest file (utils/address_parse.js at 56). 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":"pages/to-pay-order/index.js"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"23bbeb6d4be44f575964190e2993c2602e2e3d50c7df2a1df3105115de272182"}},{"ruleId":"D2","level":"warning","message":{"text":"getCommisionLog (cognitive 20): getCommisionLog has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (11 pts), ternaries 4 (8 pts), boolean chains 1 (nesting depth added 10). Most of this is not in the body itself: 3 of the 20 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 25, 34, 30, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packageFx/pages/commisionLog/index.js"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"e682dc2844fc57c719d47e020800fd20599d430f43eaa54bde82d5f1b5e39f05"}},{"ruleId":"D2","level":"warning","message":{"text":"fxMembers (cognitive 20): fxMembers has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (19 pts), ternaries 1 (nesting depth added 8). Most of this is not in the body itself: 9 of the 20 points are its own statements and the rest belongs to one function literal inside it that branches (line 52). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packageFx/pages/myusers/index.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"5051495eb1f6968b3d0adffe39a98a862d8222517922e0e4027a0187da2f1d1e"}},{"ruleId":"D2","level":"warning","message":{"text":"drawBlock (cognitive 19): drawBlock has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (15 pts), ternaries 2 (4 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"miniprogram_npm/wxa-plugin-canvas/index/index.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"0545e2b9089472de6cc705759c7709443a20ec1ab6cc36ed2717d9d6678ac1d6"}},{"ruleId":"D2","level":"warning","message":{"text":"auth.login (cognitive 18): auth.login has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (18 pts) (nesting depth added 8). None of this is in the body itself: all 18 points belong to 3 function literals inside it that branch (lines 75, 99, 70). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/auth.js"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6ca26c0174ac3b403950dc8446713c7b4be10b5eb407306373c077c74899a24"}},{"ruleId":"D2","level":"warning","message":{"text":"addShopCar (cognitive 18): addShopCar has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 1 (nesting depth added 6). Of this number, 11 points are the body\u0027s own statements and 7 belong to 4 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/goods-details/index.js"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc76fe67dda9824c66f0791b493ffad3e05b0acc13c66cf326cb34b72dc1129d"}},{"ruleId":"D2","level":"warning","message":{"text":"submitReputation (cognitive 18): submitReputation has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 7). Of this number, 17 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/order-details/index.js"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"8074531b14d4c5d8d8aeb0fc8554ce8651ca9975489e829c737ba2558d995114"}},{"ruleId":"D2","level":"warning","message":{"text":"rebuyOrder (cognitive 18): rebuyOrder has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (11 pts), error handling 2 (4 pts), boolean chains 2, loops 1 (nesting depth added 7). Of this number, 14 points are the body\u0027s own statements and 4 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/order-list/index.js"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3e32080b47225673372e70dfdac6b35fac913381cd3ff7865cfde0c4b0776c3"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.chooseFile (cognitive 17): utils.chooseFile has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 5 (12 pts), if/else 2 (3 pts), boolean chains 1, match/switch 1 (nesting depth added 8). None of this is in the body itself: all 17 points belong to one function literal inside it that branches (line 59). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"miniprogram_npm/@vant/weapp/uploader/utils.js"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"15fdfd19552511c7edb7ed471f8c893ba5ab35631c8922bb6bfe415d175fca97"}},{"ruleId":"D2","level":"warning","message":{"text":"shouldUseFingerprintEmoji (cognitive 17): shouldUseFingerprintEmoji has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (7 pts), boolean chains 6, ternaries 2 (3 pts), error handling 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/live/index.js"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7da5c8a23d606b51c57e1d33436a01091f97b5f624d38b6af7c86c238130fa9"}},{"ruleId":"D2","level":"warning","message":{"text":"toPayTap (cognitive 17): toPayTap has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (17 pts) (nesting depth added 7). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 3 function items inside it that branch (a function literal at line 89, (anonymous)::success, a function literal at line 81). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/order-list/index.js"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"f28f4ac81421857166c31fb985084bc3a4d4690d2ac0a200184b12fa6bb96672"}},{"ruleId":"D2","level":"warning","message":{"text":"shouldUseFingerprintEmoji (cognitive 17): shouldUseFingerprintEmoji has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (7 pts), boolean chains 6, ternaries 2 (3 pts), error handling 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/sign/index.js"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1502a6d9cc84752cdf3e6bdda7302f22ff0d2415d20929185934cabe39be15a"}},{"ruleId":"D2","level":"warning","message":{"text":"getInitialDate (cognitive 17): getInitialDate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 4, ternaries 2 (4 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":"miniprogram_npm/@vant/weapp/calendar/index.js"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"e85cba235a12dde5038571072c9b7d1542d8dc0fb56dc0163a6077fa06bc02b8"}},{"ruleId":"D2","level":"warning","message":{"text":"transition.transition (cognitive 16): transition.transition has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, ternaries 3, boolean chains 1. None of this is in the body itself: all 16 points belong to 11 function literals inside it that branch (lines 130, 44, 67, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"miniprogram_npm/@vant/weapp/mixins/transition.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"64ed46d21951f52945bc6157e4d63b8ccc07fa264ee9de24882b46d30a95a894"}},{"ruleId":"D2","level":"warning","message":{"text":"orderDetail (cognitive 16): orderDetail has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 3 (nesting depth added 3). Of this number, 9 points are the body\u0027s own statements and 7 belong to 3 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/order-details/index.js"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fadcdf2feb083fbf4b21811f276d5ca80a8b5e7572f279dc9879f746c731bc9"}},{"ruleId":"D2","level":"warning","message":{"text":"getUserApiInfo (cognitive 16): getUserApiInfo has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 4 (nesting depth added 5). None of this is in the body itself: all 16 points belong to one function literal inside it that branches (line 175). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packageFx/pages/hehuorenfenxiao/index.js"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"36c48e28451e93dbbf6666025ee246d08388e1b862c0988b5d499376e59e25a4"}},{"ruleId":"D2","level":"warning","message":{"text":"_initEventEmitter (cognitive 16): _initEventEmitter has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 4 (nesting depth added 1). None of this is in the body itself: all 16 points belong to 27 function literals inside it that branch (lines 68, 137, 255, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packageStreamMedia/components/TRTCCalling/TRTCCalling.js"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad6e9b998f5dfc39d060d516a7817916d9de6403ebb7498734eeb18af0152c31"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: to-pay-order/index.js: FileTooLong \u2014 987 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 487 over it, 1.97\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/to-pay-order/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8c9799d0b053db6ae4a316169af9f33e61d510b092f82939c5ec8e9c71f2a1a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: address_parse.smatrAddress: FunctionTooLong \u2014 smatrAddress runs 176 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 76 over it, 1.76\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/address_parse.js"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e922c05f1013bdf9cdceeeb8767a94032225ff7bdcc01ef79f089b4107b7528"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no build, run or usage example: the repository is a published package (\u0060package.json\u0060 without \u0060\u0022private\u0022: true\u0060) and neither \u0060README.md\u0060 nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c33a5992d4bd6ac1ea4b853ae69753fcd7e0410099c58731c86be53325ba8c96"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022audio-volume-type = media\u0022 repeats the code it sits on: 4 of its 4 words (audio, volume, type, media) are already in \u0060console.log(\u0027use media audio volume type\u0027)\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packageStreamMedia/components/TRTCCalling/utils/environment.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e8b03f276c9b8f68149b558784eacca8b44cf84273227719fea45ab6ced96f8"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: config.js \u2192 index.js, index.js, list.js, apply.js: \u0060config.js\u0060 changes together with 4 other files \u2014 \u0060pages/asset/index.js\u0060, \u0060pages/coupons/index.js\u0060, \u0060pages/goods/list.js\u0060, \u0060pages/invoice/apply.js\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 4 separate couplings, not 4 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 4."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"config.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cccef95a82fc3d72beb393bbf9e7f465d5e833ed72a1af987668874dec00b36c"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/huodong/index.vue"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"c38eb52349e05c749fe31d60f5f085d5b2bc91deafd2e3ab66d62b84bbc07d18"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/huodong/index.vue"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b1376f29a0b9ceb2a26d07c1436b7a1bf4b7c5e8ab897ec8872afe202c4f4ae"}},{"ruleId":"IC1","level":"note","message":{"text":"Blanket warning suppression: A bare \u0060eslint-disable\u0060 or \u0060@ts-nocheck\u0060 with no rule list switches every lint rule or the whole type checker off for the rest of the file \u2014 hidden debt. Disable the specific rule on the specific line, with a justification, instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"miniprogram_npm/@vant/weapp/mixins/touch.js"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"a16eecf5017e45d690e9b336b04a49ab4a6bd11f57e01a433c82727bb28418e7"}},{"ruleId":"IC1","level":"note","message":{"text":"Blanket warning suppression: A bare \u0060eslint-disable\u0060 or \u0060@ts-nocheck\u0060 with no rule list switches every lint rule or the whole type checker off for the rest of the file \u2014 hidden debt. Disable the specific rule on the specific line, with a justification, instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"miniprogram_npm/@vant/weapp/mixins/transition.js"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b4bd6c85143f98ba90b9d1a95f07523fd68547e27ef720daec09a3fe5cb5607"}},{"ruleId":"IC1","level":"note","message":{"text":"Empty method body: \u0060onClick\u0060 has an empty body \u2014 confirm it\u0027s an intentional no-op and not an unfinished method."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"miniprogram_npm/@vant/weapp/notify/notify.js"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ee134cc7227432f09ae27e7ac6aefa10b071872f5c22e599d3b9731affb09d3"}},{"ruleId":"IC1","level":"note","message":{"text":"Empty method body: \u0060onOpened\u0060 has an empty body \u2014 confirm it\u0027s an intentional no-op and not an unfinished method."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"miniprogram_npm/@vant/weapp/notify/notify.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca60d6a6b6dea6b527ca0cc7e0eda315aa45fc829fde7a5eacdf2e70c40213c"}},{"ruleId":"IC1","level":"note","message":{"text":"Empty method body: \u0060onClose\u0060 has an empty body \u2014 confirm it\u0027s an intentional no-op and not an unfinished method."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"miniprogram_npm/@vant/weapp/notify/notify.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"f50509e4061c52c572c1694a3349f7da230bee10c163709c7faaf502462c5e06"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"M3","level":"note","message":{"text":"No src/ separation: Most of the production code is in directories of its own, but 2 application file(s) sit at the repository root beside the build and tooling files (\u0060app.js\u0060, \u0060config.js\u0060)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"fdf7f5b24e313364d10170a5c2542959902fe0d26ed70edef3eaa10ec5bcdb1d"}},{"ruleId":"P1","level":"warning","message":{"text":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"ruleId":"P2","level":"warning","message":{"text":"No structured logging: No logging call was found in the 228 JavaScript/TypeScript production file(s) this check read across 1 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 \u2014 this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060package.json\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b237f7efe841e3a95b381b232502a3a473094adeb069a11eaca8ca533fb1c34"}},{"ruleId":"P4","level":"note","message":{"text":"No release approval gate: The release is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY\u0027S PIPELINE FILES. What was read: every file under \u0060.github/workflows/\u0060, \u0060.forgejo/workflows/\u0060, \u0060.gitea/workflows/\u0060, \u0060.azuredevops/\u0060 and \u0060.azure-pipelines/\u0060, plus \u0060.gitlab-ci*\u0060 and \u0060azure-pipelines*\u0060 \u2014 with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab\u0027s \u0060when: manual\u0060, CircleCI\u0027s \u0060type: approval\u0060, an Azure \u0060ManualValidation@\u0060 task or an \u0060approvals:\u0060 block, a Jenkins \u0060input\u0060 step, a \u0060uses:\u0060 step naming an approval action, an \u0060environment:\u0060 paired with \u0060reviewers\u0060 / \u0060required_reviewers\u0060 / \u0060protection\u0060 / \u0060wait-timer\u0060 / \u0060deployment_branch_policy\u0060, a draft-release step, a \u0060workflow_dispatch\u0060 promotion, or a release-event gate. \u2605 What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy \u2014 all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"R1","level":"warning","message":{"text":"Type Safety: 0 typed \u00B7 223 plain JS \u2014 the untyped files are app.js, components/bind-mobile/index.js, components/date-time-selecter/index.js, components/fuwuxieyi/index.js, components/goods-pop/index.js, components/login/index.js (\u002B217 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d00ee7953f55325a823d27e5db9657c80ca9b9861c0c0abf8fe487cd3fa586d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 33 sibling directories (45 clone groups): 45 duplicated blocks under pages/ have copies in at least two of the sibling directories about, address-add, asset, card, category, cms (\u002B27 more sibling(s) not listed) \u2014 37 of them are reported below, and 8 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 45 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 45 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 45 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":"pages/order-details/index.js"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"405db24e6ab7b5b3d1db5da7f7c61996d0adb31394699c92af245b9da7240aaf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 7 sibling directories (29 clone groups): 29 duplicated blocks under the repository root have copies in at least two of the sibling directories components, marketing, miniprogram_npm, packageCps, packageFx, packageStreamMedia (\u002B1 more sibling(s) not listed) \u2014 27 of them are reported below, and 2 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 29 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 29 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 29 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":"packageCps/pages/goods-details/cps-jd.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"411013b69337d58b0665969c32fa5e1a2cfcf916966f36dd62a5d598c84f1ec6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 43 sibling directories (27 clone groups): 27 duplicated blocks under miniprogram_npm/@vant/weapp/ have copies in at least two of the sibling directories action-sheet, area, calendar, cascader, cell-group, checkbox (\u002B37 more sibling(s) not listed) \u2014 20 of them are reported below, and 7 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 27 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 27 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 27 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":"miniprogram_npm/@vant/weapp/toast/toast.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a1d75c28d074cf04944e53923abc4fee5f33167165ca93ab7296c8cdc20136f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 5 sibling directories (7 clone groups): 7 of the duplicated blocks reported below have copies in at least two of the sibling directories apply, hehuorenfenxiao, index, myusers, report under packageFx/pages/. That concentration is one structural fact, not 7 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 7 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":"packageFx/pages/hehuorenfenxiao/index.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"3403eb2586e08b36ebe29e6b577178c401a48f24536d6968e9bb74c74365467a"}},{"ruleId":"R10","level":"warning","message":{"text":"Wholesale file copy (415 identical lines \u00D7 3 files): packageCps/pages/goods-details/cps-jd.js:1 \u00B7 packageCps/pages/goods-details/cps-pdd.js:1 \u00B7 packageCps/pages/goods-details/cps-taobao.js:1 \u2014 these 3 files are line-for-line copies of one another \u2014 415 lines are identical, in the same order, in every one of them \u2014 so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) \u2014 the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packageCps/pages/goods-details/cps-jd.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0dbc458a060084dd1c15c4196969f75f91714828d35cbc3968aa14982869041"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (187 matched lines \u00D7 2 locations): packageFx/pages/hehuorenfenxiao/index.js:5 \u00B7 packageFx/pages/index/index.js:4 \u2014 the two spans are one implementation copied and then locally edited \u2014 1122 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":"packageFx/pages/hehuorenfenxiao/index.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"29264e33cceba14ed299711649bd042d1165a7f0851ae4fa356166e03d0f9eb5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (126 matched lines \u00D7 2 locations): packageStreamMedia/pages/live-anchor/index.js:352 \u00B7 packageStreamMedia/pages/live-client/client.js:249 \u2014 the two spans are one implementation copied and then locally edited \u2014 685 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":"packageStreamMedia/pages/live-anchor/index.js"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5056d5a8cbede6cf179a452888c8f1b2bdf10100584716bbf6c9ffb576754ae"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (121 matched lines \u00D7 2 locations): packageStreamMedia/pages/live-anchor/index.js:32 \u00B7 packageStreamMedia/pages/live-client/client.js:67 \u2014 the two spans are one implementation copied and then locally edited \u2014 613 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":"packageStreamMedia/pages/live-anchor/index.js"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0e7fc8a318786e9fba732e9116cf1a72847e85022b6a2a43645c1ed67988d65"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (95 lines \u00D7 2 locations): pages/goods-details/index.js:455 \u00B7 pages/goods-details/vop.js:347 \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":"pages/goods-details/index.js"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"5968c67d187961df3af1ca1622fb36a99b0c0a6263029da4aa2b878f522e4d3f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (89 matched lines \u00D7 2 locations): pages/goods/fav.js:50 \u00B7 pages/goods/his.js:58 \u2014 the two spans are one implementation copied and then locally edited \u2014 552 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":"pages/goods/fav.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1fb20a910042a3bfbdd18136ed27329a2eb9dbbdb31f2cd6d15f837637494ea"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (52 lines \u00D7 2 locations): packageCps/pages/goods-details/cps-jd.js:6 \u00B7 pages/goods-details/vop.js:7 \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":"packageCps/pages/goods-details/cps-jd.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"04d1ddc80d6db49580b1c03c487b8e845232072a7634f76ff155b196995e0f10"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (50 lines \u00D7 2 locations): pages/pwd-pay/modify.js:3 \u00B7 pages/pwd-pay/set.js:3 \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":"pages/pwd-pay/modify.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"64fbf92e45e70907c5dcc81cdd4716f0b64dcee027dcf5aebb4f3fd0dfe20760"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (46 lines \u00D7 2 locations): pages/recycle/index.js:66 \u00B7 pages/recycle/index.js:112 \u2014 both copies are in the same file, so extract the block 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":"pages/recycle/index.js"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed894d67ff225945f7c65172723d0d9d7625f6c7775766681eb920d0131116a2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 2 locations): packageFx/pages/report/city.js:14 \u00B7 packageFx/pages/report/team.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":"packageFx/pages/report/city.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"12b1e0e1413440f71473bc9d7733a282ee31c0e8dc3ac9f9b94b38b18be3d275"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 2 locations): pages/goods-details/index.js:317 \u00B7 pages/goods-details/vop.js:254 \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":"pages/goods-details/index.js"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"d521d638234e9cc6fdf17960b128ebe0223fd02e75a6ac097e5d24d3858600a9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (44 matched lines \u00D7 2 locations): pages/order-details/index.js:121 \u00B7 pages/peisong/detail.js:78 \u2014 the two spans are one implementation copied and then locally edited \u2014 278 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":"pages/order-details/index.js"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aaf20b8ef67dbf0b207751d517e1efc53419956f2dccc994f46bd87105a502c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (39 matched lines \u00D7 2 locations): pages/huodong/index.js:50 \u00B7 pages/huodong/index.vue:180 \u2014 the two spans are one implementation copied and then locally edited \u2014 311 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":"pages/huodong/index.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a15cccaa57ce14eaca15ed17200c5d26b2e50a97f24ef97521be3ae4bc01a4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (39 matched lines \u00D7 2 locations): pages/maidan/index.js:66 \u00B7 pages/recharge/index.js:42 \u2014 the two spans are one implementation copied and then locally edited \u2014 181 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":"pages/maidan/index.js"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"0977cf35ac2da2e18f697e5cfabb3a8d42f7ab996ec5b665ea599e45a87f4b94"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (37 matched lines \u00D7 2 locations): components/login/index.js:41 \u00B7 pages/my/index.js:195 \u2014 the two spans are one implementation copied and then locally edited \u2014 170 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":"components/login/index.js"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"002bdb87e2b7541e679fafb4bb497e8b8b580bbebdf785117cb6450a3f08c4b5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2 locations): packageFx/pages/hehuorenfenxiao/index.js:472 \u00B7 packageFx/pages/index/index.js:245 \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":"packageFx/pages/hehuorenfenxiao/index.js"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c55b3df3f3e3197d144ce50ac314f8b88731d64a14107a5154c849a472ed439"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2 locations): components/bind-mobile/index.js:42 \u00B7 pages/login/index.js:77 \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":"components/bind-mobile/index.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"452dc87779a2737c68d1dde6dc86e7a59a9fdaa61902cc61526f0da6d763d52e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2 locations): pages/goods-details/day.js:43 \u00B7 pages/goods-details/times02.js:33 \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":"pages/goods-details/day.js"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"21fcbc7b7fa10323ff3b8b5b43fb7448cbb8c62e0e101eb41992f5e773df6fdc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (31 matched lines \u00D7 2 locations): pages/address-add/index.js:155 \u00B7 pages/invoice/apply.js:88 \u2014 the two spans are one implementation copied and then locally edited \u2014 81 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":"pages/address-add/index.js"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c0e5dec58441bed97117ba179bb20d35ad1da536d54c08bb7dc2fea87d49823"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2 locations): pages/goods/his.js:195 \u00B7 pages/goods/list.js:136 \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":"pages/goods/his.js"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"32ce5592ad4cb1f59ddbc7a40e3179d49b6988eaba3505873083109422f087e3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 6 locations): components/goods-pop/index.js:181 \u00B7 packageCps/pages/goods-details/cps-jd.js:359 \u00B7 packageCps/pages/goods-details/cps-pdd.js:320 \u00B7 packageCps/pages/goods-details/cps-taobao.js:276 \u00B7 \u002B2 more site(s) not listed \u2014 the 6 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 6 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/goods-pop/index.js"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8d378514e2a6ad6f0006c17c44c3f05d9298400727151a592871616f062ddb5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2 locations): pages/asset/index.js:121 \u00B7 pages/asset/index.js:149 \u2014 both copies are in the same file, so extract the block 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":"pages/asset/index.js"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdf1ab136a6d21560477c4bb1bc8f2a821da00a929b8c75de1dd5f0ac10f55fb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2 locations): pages/peisong/detail.js:276 \u00B7 pages/peisong/detail.js:303 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/peisong/detail.js"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8a2e1ccc12ccdbdeecd41e8e4785993b3bee4c3a29a646b0dc0a990c740e05b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2 locations): pages/goods-details/index.js:1203 \u00B7 pages/goods-details/vop.js:828 \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":"pages/goods-details/index.js"},"region":{"startLine":1203}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dd4e7417bff301c242e7a40fdbb4c1997964ce3abf5aa949024e60effce146a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (25 matched lines \u00D7 2 locations): pages/goods-details/index.js:573 \u00B7 pages/goods-details/index.js:664 \u2014 the two spans are one implementation copied and then locally edited \u2014 113 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":"pages/goods-details/index.js"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"f04547d07e4bd1fcd236f1af2004fc559b7a3514e083684e8d8a4373f575ab49"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (24 matched lines \u00D7 2 locations): miniprogram_npm/@vant/weapp/mixins/transition.js:67 \u00B7 miniprogram_npm/@vant/weapp/mixins/transition.js:98 \u2014 the two spans are one implementation copied and then locally edited \u2014 139 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":"miniprogram_npm/@vant/weapp/mixins/transition.js"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c955813a81ece59a9d84ede7d79580c443a8951fe2fb6158bbe5bdc7a7f203b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2 locations): packageFx/pages/hehuorenfenxiao/fxmember.js:59 \u00B7 packageFx/pages/hehuorenfenxiao/index.js:172 \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":"packageFx/pages/hehuorenfenxiao/fxmember.js"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"3954117d847bc1ec30f274db3d0c5367e76db11a2f5cf4b601653b47ff8adefa"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2 locations): pages/recycle/orders.js:35 \u00B7 pages/recycle/orders.js:61 \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":"pages/recycle/orders.js"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"3791a303222a1121a3f9e23c845e89e285bb4d09c726a4f4d59ae7164fe94f68"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2 locations): pages/card/logs.js:26 \u00B7 pages/goods/list-vop.js:67 \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":"pages/card/logs.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"40e91901841c84e96f5cb5309b5dde10086a8d68322801b2ca9c350fe7c77700"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): packageFx/pages/hehuorenfenxiao/index.js:253 \u00B7 pages/score/index.js:54 \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":"packageFx/pages/hehuorenfenxiao/index.js"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"f25881eec46c6b4f2878c2ac657e0fe876c01b56408554795fa88089ef4b62e3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): packageFx/pages/hehuorenfenxiao/index.js:433 \u00B7 packageFx/pages/index/index.js:204 \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":"packageFx/pages/hehuorenfenxiao/index.js"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"d03f19c26d371c4c849a01503f2479149238bea117378ac9b708ff9ff4ba315a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): packageStreamMedia/components/TRTCCalling/TRTCCalling.js:238 \u00B7 packageStreamMedia/components/TRTCCalling/TRTCCalling.js:265 \u2014 both copies are in the same file, so extract the block 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":"packageStreamMedia/components/TRTCCalling/TRTCCalling.js"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf21052afde260718cc0a94b0839a7159d6b2399c827b93d0321722dee0222c0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (22 matched lines \u00D7 2 locations): pages/live/index.js:82 \u00B7 pages/sign/index.js:75 \u2014 the two spans are one implementation copied and then locally edited \u2014 188 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":"pages/live/index.js"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"19c7d5b2c2d71edb9710f9c7c90055ee1550454d6dbe4e0949c0e5ece018e5c9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): pages/peisong/detail.js:149 \u00B7 pages/peisong/detail.js:177 \u2014 both copies are in the same file, so extract the block 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":"pages/peisong/detail.js"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e8624308258c4e1e1741b350e051d75d932727022b30ae726a0af29fb10e9a5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): pages/to-pay-order/index.js:530 \u00B7 pages/to-pay-order/index.js:647 \u2014 both copies are in the same file, so extract the block 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":"pages/to-pay-order/index.js"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdca5888021512fd019bda8a78929f6cc4eec303885abba84d96f6e12e6693b1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): utils/auth.js:75 \u00B7 utils/auth.js:99 \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":"utils/auth.js"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"a92b6d5cffed6e764a337f2fc656c464eace36c340b0f7b0253830ed8f7ab2fc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): components/goods-pop/index.js:102 \u00B7 pages/goods/list-vop.js:208 \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":"components/goods-pop/index.js"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"da328ec915cc0610fda547a5fdf04b936c48ee15d0d158a49e78f5056de55b77"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3 locations): packageStreamMedia/pages/live-anchor/list.js:22 \u00B7 pages/recycle/orders.js:37 \u00B7 pages/recycle/orders.js:63 \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":"packageStreamMedia/pages/live-anchor/list.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e7bac61d16d83f22577e391dffd67f7a609e643fff0cc827b54e332a37a4aea"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): pages/coupons/index.js:304 \u00B7 pages/to-pay-order/index.js:1326 \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":"pages/coupons/index.js"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"a08b9df2e13d56c28256e1f1ff39930eac2526d3e2b28a689a186c1b2bdf20d0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3 locations): pages/idCheck/index.js:2 \u00B7 pages/pwd-pay/modify.js:3 \u00B7 pages/pwd-pay/set.js:3 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/idCheck/index.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ecc35012b9ef3508fe9be092a74a9eb4cbdbf7a8d180972cb467409c9f8c6a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3 locations): packageFx/pages/hehuorenfenxiao/index.js:522 \u00B7 packageFx/pages/hehuorenfenxiao/index.js:615 \u00B7 packageFx/pages/index/index.js:294 \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":"packageFx/pages/hehuorenfenxiao/index.js"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7687219b32911c2757089f58c47ecd641e374046e0dfd0aa963d2e483b68792"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): pages/about/index.js:20 \u00B7 pages/help/detail.js:18 \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":"pages/about/index.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"15e76bf2193d6377853dd7a2b0007b22bfd1b003bf7ed91c8082ace0e3a92b68"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): pages/category/category.js:279 \u00B7 pages/goods/list.js:111 \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":"pages/category/category.js"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e53ed7799f2d723be766944e1f22b7680254624ad4c9f36b6fd6e561584a92c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): pages/coupons/index.js:181 \u00B7 pages/coupons/index.js:215 \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":"pages/coupons/index.js"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"f912352e0e548ab772a6fe11c28e34b333052c35a867edb1c3f34ea93a681ee5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): pages/goods-details/day.js:7 \u00B7 pages/goods-details/times01.js:6 \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":"pages/goods-details/day.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9997db433552fbfbb60f07e8da7012aefa9df8a0bdf455e3d18792c05491743"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): pages/invoice/apply.js:58 \u00B7 pages/my/feedback.js:33 \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":"pages/invoice/apply.js"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaa98fe4d1367cd8fd97eda7c306a4cb80f42b552dcc3ecd8bd839c451798e1a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): pages/my/info-menu.js:13 \u00B7 pages/my/setting.js:16 \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":"pages/my/info-menu.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6195aa7175f456b7b0a7d3f103dc67f0a565bf364abb34b188d459fec10f38c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): packageFx/pages/hehuorenfenxiao/fxmember.js:85 \u00B7 packageFx/pages/hehuorenfenxiao/index.js:280 \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":"packageFx/pages/hehuorenfenxiao/fxmember.js"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc4419425bcf15fc1fb13c70275d3e1a560099d76820659395d63a27c06aec6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): pages/my/feedback.js:121 \u00B7 pages/order/refundApply.js:150 \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":"pages/my/feedback.js"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"43d80331c6130307820cdec7bd1004abca0eae4e675ee6ba6072801605114ac3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (18 matched lines \u00D7 2 locations): pages/order-list/index.js:306 \u00B7 pages/to-pay-order/index.js:1097 \u2014 the two spans are one implementation copied and then locally edited \u2014 59 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":"pages/order-list/index.js"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad7451b4f5508ac26585674713d492d3b77411fe0555effd9a2330ea4e1da898"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): pages/score-excharge/growth.js:11 \u00B7 pages/score/index.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":"pages/score-excharge/growth.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8289faaac7cc9915faea15f03aca8bf753120aa66704b47130aabc1e3aee160"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): pages/category/category.js:143 \u00B7 pages/category/category.js:167 \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":"pages/category/category.js"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcb435f066f05d4f3f0d88f045fe1594c0fce2834dec9ba1a5a3e006bb269fcb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (17 matched lines \u00D7 2 locations): pages/my/info.js:15 \u00B7 pages/to-pay-order/index.js:1023 \u2014 the two spans are one implementation copied and then locally edited \u2014 59 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":"pages/my/info.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3a76a7e3927e03232f4fd55251f5f96f16fcef78f3e02cae5a56668dc1055fb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): pages/qingdan/index.js:395 \u00B7 pages/qingdan/index.js:414 \u2014 both copies are in the same file, so extract the block 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":"pages/qingdan/index.js"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"7627c5276f36bac7b204b93cc6a7c3c4c4373c5c57cd6836b6f99a775a379736"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (17 matched lines \u00D7 2 locations): pages/recycle/index.js:167 \u00B7 pages/to-pay-order/index.js:987 \u2014 the two spans are one implementation copied and then locally edited \u2014 70 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":"pages/recycle/index.js"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"6da90badc9882223d5230eef87c2d1654e2767c009bea7d42da535f7e7fc07e6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): utils/auth.js:146 \u00B7 utils/auth.js:163 \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":"utils/auth.js"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"db4fad83abce4f2eefb20c369094024ac26cb976e623c1e557c940660742d72d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 6 locations): components/goods-pop/index.js:259 \u00B7 packageCps/pages/goods-details/cps-jd.js:333 \u00B7 packageCps/pages/goods-details/cps-pdd.js:294 \u00B7 packageCps/pages/goods-details/cps-taobao.js:250 \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":"components/goods-pop/index.js"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f4cac54693d1752e2b374ba52f67e5005a9bedd1a1b6fad9440a4f8ee630aeb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (16 matched lines \u00D7 2 locations): miniprogram_npm/@vant/weapp/common/version.js:12 \u00B7 packageStreamMedia/components/TRTCCalling/utils/compare-version.js:1 \u2014 the two spans are one implementation copied and then locally edited \u2014 117 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":"miniprogram_npm/@vant/weapp/common/version.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f8c46828f91c42be6a1cf4177c94087bc772bb9c5bc542c10a502c4dc2e4af3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packageFx/pages/apply/index.js:29 \u00B7 packageFx/pages/index/index.js:185 \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":"packageFx/pages/apply/index.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"c700d98c994885713aa311fc134f4431ea37be4aae9f7f99fcd35d8c48eea35b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): pages/about/index.js:11 \u00B7 pages/cms/list.js:9 \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":"pages/about/index.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"81d04ab31d7424913ccba2b204aa5e53c5991441bfd3915f6916b165adc8057a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3 locations): pages/address-add/index.js:17 \u00B7 pages/address-add/index.js:54 \u00B7 pages/address-add/index.js:89 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/address-add/index.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"436e09cd075c72528f13b312a63071a42ac679c95a7822eff4e76c875ce6e22b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3 locations): pages/coupons/index.js:354 \u00B7 pages/deposit/pay.js:66 \u00B7 pages/maidan/index.js:154 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/coupons/index.js"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c8df061e159740bbb5b03c5b7f0774305afb1d01fcd0e5beede8ba2b811d1fb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): pages/goods-details/index.js:627 \u00B7 pages/goods-details/vop.js:467 \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":"pages/goods-details/index.js"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"8397d96df25ca8221f6f44fc5a738bf4f5569d453288e2fbf138a8f3cbbe827f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): pages/to-pay-order/index.js:495 \u00B7 pages/to-pay-order/index.js:610 \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":"pages/to-pay-order/index.js"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"37cf826767e4143c773e0e435dfd31c3f545079c4059e29f8aeb4b0115d5d277"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): pages/to-pay-order/index.js:555 \u00B7 pages/to-pay-order/index.js:673 \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":"pages/to-pay-order/index.js"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"07a621e79f97b5807d904ff9ea5b0799d01df7b52c67e3a886030447eedf004d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): utils/address_parse.js:112 \u00B7 utils/address_parse.js:205 \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":"utils/address_parse.js"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"a92abe74eb3608cad5a5ed6b2b023c872c56961f2a037872c2311d20518380fc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3 locations): marketing/listing/detail.js:310 \u00B7 marketing/listing/detail.js:332 \u00B7 marketing/listing/detail.js:353 \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":"marketing/listing/detail.js"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e96b7aafa9b9ad7b6b07187f41b304784ad23bc8d3aea921e6ef9ce5deec534"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): marketing/listing/detail.js:338 \u00B7 marketing/listing/detail.js:359 \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":"marketing/listing/detail.js"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"487aa6ecd0daf9f6f1166bec58e03e83d6c841651c007542c9c03f84fbcea0bb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3 locations): pages/address-add/index.js:46 \u00B7 pages/address-add/index.js:81 \u00B7 pages/address-add/index.js:121 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/address-add/index.js"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2188e895c1310eb8d5d71c5a8caa48144ada47c5fa3482d67f9d044e3995197"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): pages/asset/index.js:165 \u00B7 pages/score/growth.js:61 \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":"pages/asset/index.js"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"f34c9fc5ec49ed8fd99a6729bd37098510fa0e5a3ecc6f9a5d9af16db953daa9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): pages/category/category.js:248 \u00B7 pages/goods/list-vop.js:148 \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":"pages/category/category.js"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"8852724d63847552efafff875fb1b08fa88a0cec53e46c487701e1a8639f77a9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): pages/idCheck/index.js:35 \u00B7 pages/recycle/order-detail.js:112 \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":"pages/idCheck/index.js"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"c663025fb13a54426d1155705a3f79b6ca0d5d83e5da47ab089da6c1091323bb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3 locations): pages/invoice/list.js:11 \u00B7 pages/score-excharge/growth.js:14 \u00B7 pages/score/index.js:16 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/invoice/list.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b90ed4b0d354ba25c4c8c7cf23385c05ccfe21ae1c8ad8927465b0b9a575186"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): pages/order-details/index.js:23 \u00B7 pages/order-details/scan-result.js:74 \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":"pages/order-details/index.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"250aff8c579e7b162758bc664a377725e8c7595e96b13e235a2b04b9a48be61a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4 locations): utils/address_parse.js:72 \u00B7 utils/address_parse.js:119 \u00B7 utils/address_parse.js:212 \u00B7 utils/address_parse.js:275 \u2014 all 4 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/address_parse.js"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"30fe7a33f950ac2a8d1be1a4a9bc73578212bbb449e802bf5f5d286ff0e5e499"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (14 matched lines \u00D7 2 locations): miniprogram_npm/@vant/weapp/toast/toast.js:1 \u00B7 miniprogram_npm/@vant/weapp/uploader/utils.js:1 \u2014 the two spans are one implementation copied and then locally edited \u2014 131 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":"miniprogram_npm/@vant/weapp/toast/toast.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c8b8c2e26ecfa9626a719a227be6d6abcba13b8a1e6369ea02c27754d25223e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4 locations): packageCps/pages/order-list/cps.js:25 \u00B7 packageCps/pages/order-list/cps.js:39 \u00B7 pages/invoice/list.js:28 \u00B7 pages/recycle/orders.js:12 \u2014 the 4 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packageCps/pages/order-list/cps.js"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5bc90d42e91870dfad5a962fab6a5efd5e3ebf2ead4084eb1e43b37bc7a4d96"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (14 matched lines \u00D7 2 locations): packageFx/pages/apply/index.js:12 \u00B7 pages/asset/index.js:39 \u2014 the two spans are one implementation copied and then locally edited \u2014 57 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packageFx/pages/apply/index.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b254733a2f373cd3147727e14fbb2420197467a13fac53a57c790fce549f759"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3 locations): packageFx/pages/myusers/index.js:36 \u00B7 packageFx/pages/report/city.js:26 \u00B7 packageFx/pages/report/team.js:24 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packageFx/pages/myusers/index.js"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfce1911674c8a6c4e3651f100c40d832f5ae4d173e43b7e07aed5c73c976210"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): pages/address-add/index.js:78 \u00B7 pages/address-add/index.js:118 \u2014 both copies are in the same file, so extract the block 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":"pages/address-add/index.js"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8d225d8c6d8d2c3643b539ccd764531370f40f9030a93463823b49eb5fcc693"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): pages/goods-details/index.js:685 \u00B7 pages/goods-details/vop.js:488 \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":"pages/goods-details/index.js"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eb37406739a38edf5d3958876fedba66bcc77ef9d0903d3e2d37e2fce286e7e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): pages/goods/list-vop.js:129 \u00B7 pages/goods/list.js:81 \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":"pages/goods/list-vop.js"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cd5a99bbd0c5f8edf44254e1a971a4352cdf6fcbf6dff7a2ab947c738f8b4cd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): pages/my/index.js:252 \u00B7 pages/order/refundApply.js:285 \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":"pages/my/index.js"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"21122801eca37e2003967ab72031b2af00ab51f7f8beab51389de931eea70b87"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 11 locations): miniprogram_npm/@vant/weapp/area/index.js:2 \u00B7 miniprogram_npm/@vant/weapp/dialog/dialog.js:2 \u00B7 miniprogram_npm/@vant/weapp/field/index.js:2 \u00B7 miniprogram_npm/@vant/weapp/notify/notify.js:2 \u00B7 \u002B7 more site(s) not listed \u2014 the 11 copies are spread across 11 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 11 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"miniprogram_npm/@vant/weapp/area/index.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a65bee0b4733ce22ef51c232344104212058293f892cdd80981ccd2f9ae14bc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (13 matched lines \u00D7 2 locations): packageFx/pages/apply/form.js:64 \u00B7 pages/peisong/detail.js:229 \u2014 the two spans are one implementation copied and then locally edited \u2014 50 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":"packageFx/pages/apply/form.js"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"34ec096cb450100be4ad2600dc7521e0d1aaaf5ba3956e50f93db002d52ca679"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (13 matched lines \u00D7 2 locations): packageStreamMedia/pages/live-anchor/list.js:1 \u00B7 pages/about/index.js:1 \u2014 the two spans are one implementation copied and then locally edited \u2014 59 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":"packageStreamMedia/pages/live-anchor/list.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbab15565bf42aa0e28e4cfb1b73d5b32f6f87f610cb7e2124e73422d0ede9e0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (13 matched lines \u00D7 2 locations): packageStreamMedia/pages/live-anchor/list.js:1 \u00B7 pages/coupons/merge.js:2 \u2014 the two spans are one implementation copied and then locally edited \u2014 53 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":"packageStreamMedia/pages/live-anchor/list.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dc67beca3f875f1f3390e6e458ea45ee339c47ca7f5570e10b2c0a558caca48"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): pages/asset/index.js:203 \u00B7 pages/asset/index.js:249 \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":"pages/asset/index.js"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"f56c4ea9b20ecb2b9c280273e961f6ca2ef6dc69c53d9b956ba66e4e89c79fa7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): pages/coupons/index.js:336 \u00B7 pages/idCheck/index.js:32 \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":"pages/coupons/index.js"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"256da5c0ee1145ade7997e11fc096690f8179e4e9de975681ec661c3098e17f9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (13 matched lines \u00D7 2 locations): pages/coupons/merge.js:2 \u00B7 pages/help/detail.js:1 \u2014 the two spans are one implementation copied and then locally edited \u2014 53 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":"pages/coupons/merge.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c2d252199a2384221540bde059a336e7c28ca08ae07174c24a4a91ddd93b45d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4 locations): pages/goods/fav.js:14 \u00B7 pages/invoice/list.js:11 \u00B7 pages/score-excharge/growth.js:14 \u00B7 pages/score/index.js:16 \u2014 the 4 copies are spread across 4 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/goods/fav.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"89798d69d9190914f053b297b6231b0cb943ff5f7815894f8ffc584811468abb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (13 matched lines \u00D7 2 locations): pages/shop-cart/index.js:144 \u00B7 pages/shop-cart/index.js:157 \u2014 the two spans are one implementation copied and then locally edited \u2014 106 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":"pages/shop-cart/index.js"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b1e064873e39539fe3a9e50facdaca1f003fcf1e02d2fc38b9293feaf23f5b6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): components/goods-pop/index.js:68 \u00B7 pages/goods/list-vop.js:174 \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":"components/goods-pop/index.js"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"f67ecf11a523e6eabc82e4ed7ae25cb26e4652ef396697c996e5184c58418b3a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): marketing/listing/index.js:13 \u00B7 pages/qingdan/index.js:119 \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":"marketing/listing/index.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"142fe51284a0130dcdb71056e6e08f5022bb873398473ae7b8c7f279537b44a4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): miniprogram_npm/@vant/weapp/calendar/index.js:247 \u00B7 miniprogram_npm/@vant/weapp/dropdown-item/index.js:67 \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":"miniprogram_npm/@vant/weapp/calendar/index.js"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"40c90896e63c883edd9b24d4c7613683ce299f8974bdab6d7e33d80b70c1b890"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): miniprogram_npm/@vant/weapp/common/utils.js:51 \u00B7 miniprogram_npm/@vant/weapp/common/utils.js:64 \u2014 both copies are in the same file, so extract the block 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":"miniprogram_npm/@vant/weapp/common/utils.js"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"6adc79bb838d3784b5f5ad2b75af7e4ab082d145c918df10942e0cbbbd2a3280"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): miniprogram_npm/@vant/weapp/index-bar/index.js:90 \u00B7 miniprogram_npm/@vant/weapp/index-bar/index.js:102 \u2014 both copies are in the same file, so extract the block 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":"miniprogram_npm/@vant/weapp/index-bar/index.js"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"76d8e4c5290751c040195120777d82a37f6ebb3efcf3214e49db646fdeed7594"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): miniprogram_npm/@vant/weapp/uploader/utils.js:17 \u00B7 miniprogram_npm/@vant/weapp/uploader/utils.js:30 \u2014 both copies are in the same file, so extract the block 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":"miniprogram_npm/@vant/weapp/uploader/utils.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c6d257c546cfe4e4df27359ae658033eb82e048b73687f02c072eac65035d7b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (12 matched lines \u00D7 2 locations): packageFx/pages/apply/index.js:11 \u00B7 pages/goods-details/vop.js:83 \u2014 the two spans are one implementation copied and then locally edited \u2014 52 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":"packageFx/pages/apply/index.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d45b1a9d3a59b4d242946833ebc42b01cf89e41815d0581e0701510c9e570df"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (12 matched lines \u00D7 2 locations): packageFx/pages/apply/index.js:12 \u00B7 pages/score/growth.js:18 \u2014 the two spans are one implementation copied and then locally edited \u2014 52 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":"packageFx/pages/apply/index.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"72841ede24ff431536c4b4ce362f5e0f7a87e7a91807ba8d0d4178728c401fc8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packageFx/pages/hehuorenfenxiao/index.js:296 \u00B7 packageFx/pages/hehuorenfenxiao/index.js:321 \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":"packageFx/pages/hehuorenfenxiao/index.js"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"7586826ceb4ee452caf033b45974f21f043f01686c46d1597c6b09c00a1c5183"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packageFx/pages/myusers/index.js:15 \u00B7 pages/my/user-code.js:12 \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":"packageFx/pages/myusers/index.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d0f0dfb1ad5981fd7ad54373e04963e5a39e55cb619298f02cccd58c4b0f68"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3 locations): packageFx/pages/myusers/index.js:73 \u00B7 packageFx/pages/report/city.js:40 \u00B7 packageFx/pages/report/team.js:38 \u2014 the 3 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packageFx/pages/myusers/index.js"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"41ee608c364a9b17c7a0a90fe0bd006dc0d3cdd2249ad06335a1e9623c7081a1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packageStreamMedia/components/TRTCCalling/controller/user-controller.js:161 \u00B7 packageStreamMedia/components/TRTCCalling/controller/user-controller.js:219 \u2014 both copies are in the same file, so extract the block 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":"packageStreamMedia/components/TRTCCalling/controller/user-controller.js"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"42bd4b6c323d98cf9d27a964ee2ae1fa8f4b2213d80f267f81e755774f040120"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (12 matched lines \u00D7 2 locations): pages/about/index.js:1 \u00B7 pages/coupons/merge.js:2 \u2014 the two spans are one implementation copied and then locally edited \u2014 51 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/about/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d7d4098e0a86c1034dfe1aa100eb555982edde5ec53be0c72d393eb374ffa4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (12 matched lines \u00D7 2 locations): pages/goods-details/vop.js:97 \u00B7 pages/to-pay-order/index.js:830 \u2014 the two spans are one implementation copied and then locally edited \u2014 60 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":"pages/goods-details/vop.js"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"2841c54d8c3fd693fb7717df14effcf063d544f2287ac89c748863e7da658556"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3 locations): pages/index/index.js:498 \u00B7 pages/order-details/index.js:314 \u00B7 pages/order-list/index.js:330 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/index/index.js"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce59dbc529aaf3171825408e653aa6bf3de1d37fe85d92bb9afac2a7168df8fe"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3 locations): pages/my/index.js:80 \u00B7 pages/my/info-menu.js:21 \u00B7 pages/my/setting.js:24 \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/my/index.js"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb19c904b2dccee859d1094863939250e68868370d5d2d833089b54bafa6ea4c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (12 matched lines \u00D7 2 locations): pages/peisong/orders.js:47 \u00B7 pages/peisong/statistics.js:34 \u2014 the two spans are one implementation copied and then locally edited \u2014 58 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":"pages/peisong/orders.js"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"01e51fa54bebd5cc556d17b95eb1cb6d06011ed3cb63aab774bde55880e7e132"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): pages/raffle/index.js:68 \u00B7 pages/raffle/index.js:134 \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":"pages/raffle/index.js"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"564b6e24ef0e41ce08c631302bb3c70239d26b0d9c9cf11d0b35e09b5d67d3c7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): marketing/listing/edit.js:82 \u00B7 marketing/listing/edit.js:102 \u00B7 marketing/listing/edit.js:122 \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":"marketing/listing/edit.js"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ebdacf5ede49c5ee8fef8bb8f8d386b96ab7c3695def94e98745c6a0626664b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5 locations): miniprogram_npm/@vant/weapp/area/index.js:2 \u00B7 miniprogram_npm/@vant/weapp/picker/index.js:2 \u00B7 miniprogram_npm/@vant/weapp/stepper/index.js:2 \u00B7 miniprogram_npm/@vant/weapp/tabs/index.js:2 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 copies are spread across 5 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 5 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"miniprogram_npm/@vant/weapp/area/index.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1b2da9cd53098df8ea3d0690557bdf8ab2adb091af8f576bc96187c6b9e0b98"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): miniprogram_npm/@vant/weapp/field/index.js:2 \u00B7 miniprogram_npm/@vant/weapp/rate/index.js:2 \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":"miniprogram_npm/@vant/weapp/field/index.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"719003ee8ef08cc88afa382da202656a4b07f00bd6d23d40878fa7a7af1685d7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (11 matched lines \u00D7 2 locations): miniprogram_npm/@vant/weapp/slider/index.js:67 \u00B7 miniprogram_npm/@vant/weapp/slider/index.js:103 \u2014 the two spans are one implementation copied and then locally edited \u2014 87 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":"miniprogram_npm/@vant/weapp/slider/index.js"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"79831bc31a1264e42a1421af7a73a88f10d56fec2b3e1b49f1e764cfdc511f19"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): miniprogram_npm/@vant/weapp/uploader/index.js:139 \u00B7 miniprogram_npm/@vant/weapp/uploader/index.js:163 \u2014 both copies are in the same file, so extract the block 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":"miniprogram_npm/@vant/weapp/uploader/index.js"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"73426f9c4b9ead81172e111d87001502ecb1b7d9cb348540569bd56116a6b37d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): miniprogram_npm/wxa-plugin-canvas/index/index.js:35 \u00B7 miniprogram_npm/wxa-plugin-canvas/index/index.js:50 \u2014 both copies are in the same file, so extract the block 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":"miniprogram_npm/wxa-plugin-canvas/index/index.js"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"330a6213657be51f23282425e6043674955922d5db5f1ae5ce32622c164950bb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (11 matched lines \u00D7 2 locations): packageFx/pages/myusers/myusers-detail.js:16 \u00B7 pages/wuliu/index.js:10 \u2014 the two spans are one implementation copied and then locally edited \u2014 56 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":"packageFx/pages/myusers/myusers-detail.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"210f684f5cff1473fdd3f0fa264364cddc48e98e2093fb818e9fd9a439292889"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (11 matched lines \u00D7 2 locations): packageStreamMedia/pages/live-anchor/list.js:5 \u00B7 pages/sign/index.js:12 \u2014 the two spans are one implementation copied and then locally edited \u2014 54 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packageStreamMedia/pages/live-anchor/list.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"d888fd78acddb5e59303e34232d29edf7645d00cb73790d4b64912813d9d5151"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (11 matched lines \u00D7 2 locations): packageStreamMedia/pages/videoCall/videoCall.js:137 \u00B7 pages/sign/index.js:16 \u2014 the two spans are one implementation copied and then locally edited \u2014 56 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":"packageStreamMedia/pages/videoCall/videoCall.js"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"a98d4f13962321224fb23c37613e09b51955ab515ac46e0be4224b89c44f662a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): components/goods-pop/index.js:296 \u00B7 pages/goods/list-vop.js:255 \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":"components/goods-pop/index.js"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"64f63ebd5b4028e56bb1522e5b0e8fa412bf85dcfd6d1c361ce470b711306938"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): components/payment/index.js:103 \u00B7 pages/order-list/index.js:148 \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":"components/payment/index.js"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd22c2629825cf7eeed13baaf37b0806340519550fc7186a6279f96b2fb4bf55"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): miniprogram_npm/@vant/weapp/checkbox-group/index.js:1 \u00B7 miniprogram_npm/@vant/weapp/dropdown-item/index.js:1 \u2014 the two spans are one implementation copied and then locally edited \u2014 61 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":"miniprogram_npm/@vant/weapp/checkbox-group/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2390c5d15ddfbc3d07cab35f1855f7b2328da2f93f74085acf41622a678e426"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): miniprogram_npm/@vant/weapp/checkbox-group/index.js:1 \u00B7 miniprogram_npm/@vant/weapp/dropdown-menu/index.js:1 \u2014 the two spans are one implementation copied and then locally edited \u2014 58 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":"miniprogram_npm/@vant/weapp/checkbox-group/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0173a051f38cfe8aa7fc529f24e932472e896276277836e431bc6a98e2e78359"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): pages/address-add/index.js:36 \u00B7 pages/address-add/index.js:73 \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":"pages/address-add/index.js"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"e588636f6e5e80070562a60e0f66a6c6a37796fe784bba2a6fb19713e70faaba"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): pages/category/category.js:219 \u00B7 pages/index/index.js:334 \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":"pages/category/category.js"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2707d688684ae8e37cbd67586a4ebd6e6ca2f9da894130a73392fcb30348172"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): pages/maidan/index.js:38 \u00B7 pages/vip/index.js:34 \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":"pages/maidan/index.js"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"786cd7e8f1898eeb9064cd806f947f7232216b4fef74737db720632e4eac7a34"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): pages/my/feedback.js:73 \u00B7 pages/order/refundApply.js:185 \u2014 the two spans are one implementation copied and then locally edited \u2014 90 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":"pages/my/feedback.js"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ee17e7874fb49443b535e2bd5f738c25ae7c1dd9d83f86fff63453e02605982"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3 locations): pages/my/index.js:69 \u00B7 pages/my/info-menu.js:11 \u00B7 pages/my/setting.js:14 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/my/index.js"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f75aacf999186c4d5728b190d980933d153d4658bf836e7f5bfddc7561d999"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): pages/pwd-pay/reset.js:12 \u00B7 pages/pwd-pay/reset.js:24 \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":"pages/pwd-pay/reset.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7b5830a9397ef91d6512e33e8c2acb4a8682f06ac3a2fd651de7b5285361fa5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): pages/recycle/index.js:54 \u00B7 pages/shop/select.js:46 \u2014 the two spans are one implementation copied and then locally edited \u2014 54 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/recycle/index.js"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ca090fbc52045e4799b349689f02568f9fa7530e4df6f6caf7840b7d0f2179f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): pages/to-pay-order/index.js:1156 \u00B7 pages/to-pay-order/index.js:1252 \u2014 both copies are in the same file, so extract the block 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":"pages/to-pay-order/index.js"},"region":{"startLine":1156}}}],"partialFingerprints":{"codehealthFindingId/v1":"69f02790fb43b12d223baf8122e21ca2277194a4b2612b0155c596f99fee4bcf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): utils/auth.js:207 \u00B7 utils/auth.js:230 \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":"utils/auth.js"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1330f0882e9e3d3c4602deb32dbdbb2517d118c43623fb28d5f174bfc8c8680"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5 locations): components/goods-pop/index.js:223 \u00B7 packageCps/pages/goods-details/cps-jd.js:279 \u00B7 packageCps/pages/goods-details/cps-pdd.js:240 \u00B7 packageCps/pages/goods-details/cps-taobao.js:196 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 5 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/goods-pop/index.js"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"70659fc5ce7d024e67c488f1b6a5fbf81f340555838bc7a30cff03ffe62196b9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): marketing/listing/edit.js:99 \u00B7 marketing/listing/edit.js:119 \u2014 both copies are in the same file, so extract the block 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":"marketing/listing/edit.js"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eb640be5d60e0d6f6aa2361f74121bc66b4c6f2550d9a7244bf7bd04711c802"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): miniprogram_npm/@vant/weapp/calendar/components/header/index.js:2 \u00B7 miniprogram_npm/@vant/weapp/cascader/index.js:2 \u00B7 miniprogram_npm/@vant/weapp/datetime-picker/index.js:13 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"miniprogram_npm/@vant/weapp/calendar/components/header/index.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"037ff291364a25b03ee65083915ab45f780d3da0c5cf661eeca8278187727a8c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): miniprogram_npm/@vant/weapp/nav-bar/index.js:52 \u00B7 miniprogram_npm/@vant/weapp/tabbar/index.js:54 \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":"miniprogram_npm/@vant/weapp/nav-bar/index.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"32225160d324e67aa28cbad7e9d514cdada822447bd254481e26673b6718e52f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): miniprogram_npm/@vant/weapp/popup/index.js:2 \u00B7 miniprogram_npm/@vant/weapp/transition/index.js:2 \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":"miniprogram_npm/@vant/weapp/popup/index.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"658e9431f13b3bc0633e61b014459e48d827524451fa26788cfa9fad9591da99"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packageStreamMedia/pages/live-anchor/index.js:217 \u00B7 pages/order-details/index.js:64 \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":"packageStreamMedia/pages/live-anchor/index.js"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffdce6da68765c0da17486552e388d477bf6055a1502ae50adc7f41179f75f1a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): pages/asset/index.js:290 \u00B7 pages/select-address/index.js:73 \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":"pages/asset/index.js"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba7324e70d017a63cce247c46d508f2cd23d91e11dcb61b7c255affd0021cedc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): pages/shop-cart/index.js:46 \u00B7 pages/to-pay-order/index.js:142 \u2014 the two spans are one implementation copied and then locally edited \u2014 73 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":"pages/shop-cart/index.js"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f6e57e47c24c15654c15c72d8c5df47fdcf07eb0dbaf848391f0185aa42b28d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): game/numberBomb/index.js:162 \u00B7 game/numberBomb/index.js:172 \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":"game/numberBomb/index.js"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7e4692dc1113bfd2e1e9fee2baefd8de44fab759d8154f3f323802c5b8884d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): miniprogram_npm/@vant/weapp/checkbox/index.js:1 \u00B7 miniprogram_npm/@vant/weapp/radio/index.js:1 \u2014 the two spans are one implementation copied and then locally edited \u2014 61 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":"miniprogram_npm/@vant/weapp/checkbox/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c4a5296dac408602f6edef1aa436e17064aaa2195ba426bc2f96e6744570258"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): pages/help/detail.js:25 \u00B7 pages/help/detail.js:33 \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":"pages/help/detail.js"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a5705589ced9b6571deaa63354860f929fe6bcbc861b6328de672709af93fce"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4 locations): miniprogram_npm/@vant/weapp/col/index.js:2 \u00B7 miniprogram_npm/@vant/weapp/collapse/index.js:2 \u00B7 miniprogram_npm/@vant/weapp/grid/index.js:2 \u00B7 miniprogram_npm/@vant/weapp/tab/index.js:2 \u2014 the 4 copies are spread across 4 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"miniprogram_npm/@vant/weapp/col/index.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f8c754e73522684f9cbc07a11983276ab73d795d655caad84ec75a4c3c0a381"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): miniprogram_npm/@vant/weapp/dialog/index.js:2 \u00B7 miniprogram_npm/@vant/weapp/goods-action-button/index.js:2 \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":"miniprogram_npm/@vant/weapp/dialog/index.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"1729575cd12a3d5cc1427d0a1f988b99afbf54bd3a81e97c34938da57daa6f06"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): miniprogram_npm/@vant/weapp/grid-item/index.js:1 \u00B7 miniprogram_npm/@vant/weapp/index-anchor/index.js:1 \u2014 the two spans are one implementation copied and then locally edited \u2014 52 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":"miniprogram_npm/@vant/weapp/grid-item/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cc2011387118f2bdf0e6cda68dfdb314318b0d8c13827ae94161ff2dadac225"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): miniprogram_npm/@vant/weapp/grid-item/index.js:1 \u00B7 miniprogram_npm/@vant/weapp/radio/index.js:1 \u2014 the two spans are one implementation copied and then locally edited \u2014 52 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":"miniprogram_npm/@vant/weapp/grid-item/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5babbe4074cd8f3f3375abad092c25300e13dfe54b2887c657e9031a36c9e20e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): miniprogram_npm/@vant/weapp/radio-group/index.js:1 \u00B7 miniprogram_npm/@vant/weapp/radio/index.js:1 \u2014 the two spans are one implementation copied and then locally edited \u2014 53 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":"miniprogram_npm/@vant/weapp/radio-group/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"06b88eb226943ba1ec07b68cb58755beada9673e46e13c94817bfbe2d57a0161"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4 locations): pages/address-add/index.js:326 \u00B7 pages/order-details/index.js:126 \u00B7 pages/order-list/index.js:46 \u00B7 pages/peisong/detail.js:83 \u2014 the 4 copies are spread across 4 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/address-add/index.js"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3eae0dc649832321ec4dad13886ce4340e550acce6475f16a7986a60eed3686"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): pages/category/category.js:270 \u00B7 pages/goods/list.js:104 \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":"pages/category/category.js"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"79616d320d24a6298ac8e098349fdf0392a78c57abede9135bbca53360eade2d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): components/goods-pop/index.js:146 \u00B7 pages/goods-details/index.js:440 \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":"components/goods-pop/index.js"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"e73c1c902281a2dfe66cee57a450518c630e61db4e6819d204aa3ab09d02ce04"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): marketing/listing/detail.js:285 \u00B7 marketing/listing/detail.js:308 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"marketing/listing/detail.js"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"33620e8ed49804735467a3f380e4f5c4028e5dbe07add14028a2e6cfa81f80a6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): miniprogram_npm/@vant/weapp/goods-action/index.js:2 \u00B7 miniprogram_npm/@vant/weapp/sidebar/index.js:2 \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":"miniprogram_npm/@vant/weapp/goods-action/index.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d6a3c0d4d7cadc008138e0fe33d7f499227268bc9de1b323c7fcc9f23ed7098"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): miniprogram_npm/@vant/weapp/notify/notify.js:40 \u00B7 miniprogram_npm/@vant/weapp/notify/notify.js:54 \u2014 the two spans are one implementation copied and then locally edited \u2014 51 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":"miniprogram_npm/@vant/weapp/notify/notify.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"b639bf6ea26be683dcd4c0731e3516b3489ee58201d6af7e2c895bda7114c681"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): miniprogram_npm/@vant/weapp/progress/index.js:41 \u00B7 miniprogram_npm/@vant/weapp/tabs/index.js:211 \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":"miniprogram_npm/@vant/weapp/progress/index.js"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9ce3db44917274d453e22cec8ac28906f32e061da4f56a47473f3455339db81"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): miniprogram_npm/@vant/weapp/radio-group/index.js:1 \u00B7 miniprogram_npm/@vant/weapp/row/index.js:1 \u2014 the two spans are one implementation copied and then locally edited \u2014 52 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":"miniprogram_npm/@vant/weapp/radio-group/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2699091aa4123fa256609b08c1eb1af775f03203bc05fb1e0f16125c8ed01d9a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): pages/address-add/index.js:239 \u00B7 pages/address-add/index.js:246 \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":"pages/address-add/index.js"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"8df5d088f2936ed2891443858faed687afb196feaa918cde084c0cdd41a4a25e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): pages/my/index.js:104 \u00B7 pages/score/index.js:37 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/my/index.js"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d0adf0c19857954aee4e8db71602436086ee00e6ac5ad05c9a0c1f81f9823ff"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): pages/shop-cart/index.js:87 \u00B7 pages/shop-cart/index.js:109 \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":"pages/shop-cart/index.js"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc4a79f942ce92b2389719ef099cde7ce7eb05d0666553201c2edae897a08d1a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): pages/to-pay-order/index.js:347 \u00B7 pages/to-pay-order/index.js:353 \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":"pages/to-pay-order/index.js"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a43c2e8a1ac8e663799938a6257dd7eb78e7f293f7fc7a694f531775ea2c4fd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): pages/to-pay-order/index.js:360 \u00B7 pages/to-pay-order/index.js:379 \u2014 both copies are in the same file, so extract the block 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":"pages/to-pay-order/index.js"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcebf8714df901b008ce0eee84520b1a9cb24af2bcc144a9a15d14d91b4680a5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): marketing/listing/detail.js:185 \u00B7 marketing/listing/detail.js:270 \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":"marketing/listing/detail.js"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"f12a0a237af43a7e3ace90193bc2e0bd2ba46497bf19202646b0a6788bf1a303"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): miniprogram_npm/@vant/weapp/notify/index.js:2 \u00B7 miniprogram_npm/@vant/weapp/progress/index.js:2 \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":"miniprogram_npm/@vant/weapp/notify/index.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3e6458486be503fd2bf4ff42cb535f26298a76a24b54c7a6dd380ee05b89844"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): utils/address_parse.js:172 \u00B7 utils/address_parse.js:227 \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":"utils/address_parse.js"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c9e9d77ea9460499799fb35d23259a52844ce992abdbc20966019d1b8bc7d87"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createOrder (cyclomatic 88, cognitive 174): createOrder has cyclomatic complexity 88 and cognitive complexity 174; 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":"pages/to-pay-order/index.js"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b9cde3590f393f2a5300d3bee01fe85f55a7f1a986517476b84d26c61614cc2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function bindSave (cyclomatic 23, cognitive 25): bindSave has cyclomatic complexity 23 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":"pages/address-add/index.js"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f39d7f94ba141805edd6c93da7de48a1eeff9df78c17f80454e1f3e97804711"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getGoodsDetailAndKanjieInfo (cyclomatic 22, cognitive 43): getGoodsDetailAndKanjieInfo has cyclomatic complexity 22 and cognitive complexity 43; 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":"pages/goods-details/index.js"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"023326ba8f66dc06d49b5939bc3f837862fc5de66101e4bd167229f87b544195"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function smatrAddress (cyclomatic 21, cognitive 23): smatrAddress has cyclomatic complexity 21 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/address_parse.js"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"9044d6c7228744cbcf4c978c88dd5c1388562eb9700aa3311dc5c7b4f1848416"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadPageData (cyclomatic 20, cognitive 24): loadPageData has cyclomatic complexity 20 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":"marketing/listing/detail.js"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"f04acbb6463542ef7ad91344fb44f4aff87abddb7c4388f83c083cbd11debe7c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function orderDetail (cyclomatic 19, cognitive 26): orderDetail has cyclomatic complexity 19 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/wuliu/index.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"096fe75e3bddca737394aa2c9b7866e3388c10d88568f00581ce3a6c331d7e1e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function submit (cyclomatic 16, cognitive 17): submit has cyclomatic complexity 16 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"marketing/listing/edit.js"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"506fee1597a2b3694ff085536cb5e8f5664b3553a3e582503769a8550c421d41"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function shouldUseFingerprintEmoji (cyclomatic 15, cognitive 17): shouldUseFingerprintEmoji has cyclomatic complexity 15 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/live/index.js"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7753e9299a30f8bf510ccdd656099a38b6b91a3ae6e3aa739f93f8582e63836"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function shouldUseFingerprintEmoji (cyclomatic 15, cognitive 17): shouldUseFingerprintEmoji has cyclomatic complexity 15 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/sign/index.js"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc13d4a12c1d36ad2cf52ee286ec8fb8874f41773271f350ddc00ec3c2641b52"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function onCellTap (cyclomatic 15, cognitive 14): onCellTap has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"game/numberBomb/index.js"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"73e11280f1c5cb6584ec126925c0e897a529969c246038551c6abb1e0be3e0f8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _drawSingleText (cyclomatic 14, cognitive 36): _drawSingleText has cyclomatic complexity 14 and cognitive complexity 36; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"miniprogram_npm/wxa-plugin-canvas/index/index.js"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d0c311f230c41cb02201a4d499c9c94dfa3ab348b47c6dcc1796221fa767eec"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getInitialDate (cyclomatic 14, cognitive 17): getInitialDate has cyclomatic complexity 14 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"miniprogram_npm/@vant/weapp/calendar/index.js"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed9a89de83b3ee958252dcaeeadd34b0757cc1976eaa3afdb7122b37fea4fcf2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateValue (cyclomatic 14, cognitive 14): updateValue has cyclomatic complexity 14 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"miniprogram_npm/@vant/weapp/slider/index.js"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"f656d438e0b521950d17094b9cdcd4c2ebb37d0a6aac7abaef1aa92c0fd1801a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function addShopCar (cyclomatic 13, cognitive 13): addShopCar has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/goods/fav.js"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"d56816d964123bb5a5894838e265f106c0fa14747ace64f5164026f6e9ebd4b0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function submitForm (cyclomatic 13, cognitive 12): submitForm has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/qingdan/index.js"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ec5e838eb2a3be64f3cd1a73b08ae067dfdd4e753f85f0c345f91e79c0d1b8c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function orderList (cyclomatic 12, cognitive 17): orderList has cyclomatic complexity 12 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/order-list/index.js"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f0b8640c31126c074bc9c3fdbdc0816f61e9bb7fc4a03b19fd3391fe89ba9d7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function processYunfei (cyclomatic 12, cognitive 14): processYunfei has cyclomatic complexity 12 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/to-pay-order/index.js"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"13aecef25eda8983a86ea29fa1eb8d9d7a79a33ebdb295c66f9dc21b5eaa9ce0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function addShopCar (cyclomatic 12, cognitive 12): addShopCar has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/goods/his.js"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0e5cd629cb63628af296a2b54d659861e3162fb251cf364ef30aa62954d999e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getRangeDayType (cyclomatic 12, cognitive 11): getRangeDayType has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"miniprogram_npm/@vant/weapp/calendar/components/month/index.js"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"54d271256ccb059e45269a0c49ee0640a1c27896ef7e3f1db4884fffad2a78e5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function drawBlock (cyclomatic 11, cognitive 19): drawBlock has cyclomatic complexity 11 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"miniprogram_npm/wxa-plugin-canvas/index/index.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8a80b42db94857f5eb6e2768058fa8b22e01d5118a6cb3e4c52453104535087"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 17): (anonymous) has cyclomatic complexity 11 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"miniprogram_npm/@vant/weapp/uploader/utils.js"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c775ad0d69e8e0e0cdebb182a152b939579e78378133f1767d9f2d6e0b78e1d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 16): (anonymous) has cyclomatic complexity 11 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packageFx/pages/hehuorenfenxiao/index.js"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd63537b8d832535c793996e8cfeb9a37d59d59494a7296a3f2d73f63d23ef31"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function bindSave (cyclomatic 11, cognitive 13): bindSave has cyclomatic complexity 11 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/withdraw/index.js"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"9322c0260f475cd59276353dcbc97c36621e6b46d91baaf5887c3cc6396fa01e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function calculateGoodsPrice (cyclomatic 11, cognitive 12): calculateGoodsPrice has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/goods-pop/index.js"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"706f0042a0f74ace88251579f260da9b77c3fc8e355501aff8fd202e5ca1e462"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function onLoad (cyclomatic 11, cognitive 12): onLoad has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/goods-details/vop.js"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"f27a4e74e277ed655a562e0597fbd5434c6e38966bbfaa1546a853686caacc3d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadDetail (cyclomatic 11, cognitive 11): loadDetail has cyclomatic complexity 11 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"marketing/listing/edit.js"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"e983dcb80f39c814f2f4de8732504287694a5596570259bc32098ec3fea34abe"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function orderDetail (cyclomatic 11, cognitive 9): orderDetail has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/order-details/index.js"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce5e04967342443bc951495b20b2dac9e2880718d212d8278db760946d6d03bc"}},{"ruleId":"R3","level":"warning","message":{"text":"pages/to-pay-order/index.js: 1346 lines of code: pages/to-pay-order/index.js has 1346 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/to-pay-order/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ba2353fb62101a66a268a1ba2a7e4434aec2082fc7d65e4db083cbba0583d2"}},{"ruleId":"R3","level":"warning","message":{"text":"pages/goods-details/index.js: 1217 lines of code: pages/goods-details/index.js has 1217 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/goods-details/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8078c2eb4d22f79d357ee9f84588239b95306bf4868f9190c885d4f97fdcc93"}},{"ruleId":"R3","level":"warning","message":{"text":"pages/goods-details/vop.js: 851 lines of code: pages/goods-details/vop.js has 851 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/goods-details/vop.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"80935ef88af195154ef5deb6b9993a71bc02031bc73b44be8e1fd3996c1f1657"}},{"ruleId":"R3","level":"warning","message":{"text":"packageStreamMedia/components/TRTCCalling/TRTCCalling.js: 829 lines of code: packageStreamMedia/components/TRTCCalling/TRTCCalling.js has 829 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packageStreamMedia/components/TRTCCalling/TRTCCalling.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b089057a20ce5e3f09e5d8266af94d24cc996119cbbb7f337e5b5d3de982ad5a"}},{"ruleId":"R3","level":"warning","message":{"text":"packageCps/pages/goods-details/cps-jd.js: 727 lines of code: packageCps/pages/goods-details/cps-jd.js has 727 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packageCps/pages/goods-details/cps-jd.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7036b65fb90bee785b3a9d32388da5af3e73ea48b89d4dc3e198702cf5da9ec4"}},{"ruleId":"R3","level":"warning","message":{"text":"packageCps/pages/goods-details/cps-pdd.js: 683 lines of code: packageCps/pages/goods-details/cps-pdd.js has 683 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packageCps/pages/goods-details/cps-pdd.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"54f5ee9405176c8977494965c30943bec10153096b50e636a031372fa2b21df9"}},{"ruleId":"R3","level":"warning","message":{"text":"pages/huodong/index.vue: 680 lines of code: pages/huodong/index.vue has 680 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/huodong/index.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"25d9a8843853fec4c6d253e06d8799f824cbc09b2832524d8219da294b9376fa"}},{"ruleId":"R3","level":"warning","message":{"text":"packageCps/pages/goods-details/cps-taobao.js: 675 lines of code: packageCps/pages/goods-details/cps-taobao.js has 675 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packageCps/pages/goods-details/cps-taobao.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"24c5312482bc2134a6289aeeeb84dec8d4263903800e41c4228b314e0ed1d95a"}},{"ruleId":"R3","level":"warning","message":{"text":"packageFx/pages/hehuorenfenxiao/index.js: 625 lines of code: packageFx/pages/hehuorenfenxiao/index.js has 625 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packageFx/pages/hehuorenfenxiao/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d938c6803897ba110b4770250b86ecdf9872f5e92533323d33331025bb12b40"}},{"ruleId":"R3","level":"warning","message":{"text":"pages/index/index.js: 508 lines of code: pages/index/index.js has 508 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/index/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b3ad1dc5b349e02fe80970814fe4e2f78dc99e29aafc8fa7b1dd0b2c7516d96"}},{"ruleId":"R3","level":"warning","message":{"text":"marketing/listing/detail.js: 505 lines of code: marketing/listing/detail.js has 505 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"marketing/listing/detail.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fc23730a221ffd3a779c904cc97123761d4314b8dd4d752b4f0feed7389db2c"}},{"ruleId":"R3","level":"warning","message":{"text":"miniprogram_npm/wxa-plugin-canvas/index/index.js: 503 lines of code: miniprogram_npm/wxa-plugin-canvas/index/index.js has 503 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"miniprogram_npm/wxa-plugin-canvas/index/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfc32ff08cb76385883e61bdb1ef6a471468da8fa34452ed6f2cec0ca4938602"}},{"ruleId":"R3","level":"warning","message":{"text":"packageStreamMedia/pages/live-client/client.js: 479 lines of code: packageStreamMedia/pages/live-client/client.js has 479 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packageStreamMedia/pages/live-client/client.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eadeb027e224c5eaa4f04354315376099bcf635ea28148c7e6548894411886f9"}},{"ruleId":"R3","level":"warning","message":{"text":"packageStreamMedia/pages/live-anchor/index.js: 469 lines of code: packageStreamMedia/pages/live-anchor/index.js has 469 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packageStreamMedia/pages/live-anchor/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"318d016785382af04cf715126e5e02521963c67dace3403d55610e8e9a8ebc97"}},{"ruleId":"R3","level":"warning","message":{"text":"pages/qingdan/index.js: 450 lines of code: pages/qingdan/index.js has 450 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/qingdan/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"83dd4e435e396b13ad55e689bec15463db75e2a60ac054e7e0e8a5a32c79a405"}},{"ruleId":"R3","level":"warning","message":{"text":"pages/address-add/index.js: 439 lines of code: pages/address-add/index.js has 439 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/address-add/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb5bdae827d530d07c995275f80ac729f8267b2ea9c2baead4679b6d29317b7"}},{"ruleId":"R3","level":"warning","message":{"text":"pages/order-list/index.js: 406 lines of code: pages/order-list/index.js has 406 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/order-list/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"938580ad5187e05312278e703dc782ea7b7fcc54c80f87464de9f30d543724a6"}},{"ruleId":"R6","level":"warning","message":{"text":"No test, lint or typecheck script: test \u2717 \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":"a9372ffc30204d52cc3368af49ceaa995574db973935e30b3946f83785dea15b"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~255 LoC): no import path from any entry point (180 application, 99 tooling, 1 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":"pages/huodong/index.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4a7664a6cab17b4014dfee56f839b7951f07fcab5ebc7aa115512562cd6d2ba"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~92 LoC): no import path from any entry point (180 application, 99 tooling, 1 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":"miniprogram_npm/@vant/weapp/dialog/dialog.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aabffae58450d26fd168c0b98b0133628abe3d0e75e43bd31bcd45cecce67163"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~67 LoC): no import path from any entry point (180 application, 99 tooling, 1 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":"miniprogram_npm/@vant/weapp/notify/notify.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0ce0af0b91531c8720cf716e7aa9de552e1e21dc40f49f6f699c9e08e1a0350"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~29 LoC): no import path from any entry point (180 application, 99 tooling, 1 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":"miniprogram_npm/wxa-plugin-canvas/poster/poster.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f4f113959e29f17e47216b21036358e39174eed060a1bd9b596e0af41327e81"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~2 LoC): no import path from any entry point (180 application, 99 tooling, 1 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":"miniprogram_npm/@vant/weapp/definitions/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1fccaa5d31bbce8efb45ddd614169a2419b37ac90469b34e2223111a3bf78e8"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~2 LoC): no import path from any entry point (180 application, 99 tooling, 1 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":"miniprogram_npm/@vant/weapp/dropdown-item/shared.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b90d7aa35a841473a7e31075e752ff05879bc12886d1c8d01693f011d257dfd8"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~2 LoC): no import path from any entry point (180 application, 99 tooling, 1 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":"miniprogram_npm/@vant/weapp/field/types.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6609d9ff12f19cabc98a9efdd4dda017c8ffafb2690d2ad94d95ef358aa5d876"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~0 LoC): no import path from any entry point (180 application, 99 tooling, 1 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":"pages/template-cart/template-cart.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2ff76ebffbb7498a9ad76538a63cca2803cd17c542199286a8fe5208acce3a9"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027sliderWidth\u0027: This top-level declaration is not exported and its name occurs nowhere else in its module \u2014 not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packageFx/pages/index/index.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"d12c49ff4823954a499647ec550038f1eb67f51a4d72ea6790c352aae26988b3"}},{"ruleId":"R8","level":"error","message":{"text":"Unlisted import \u0027config.js\u0027: Imported but not declared in any reachable package.json \u2014 installs work only by hoisting accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fadd2acbb4b838ecd95472bf11624832e69aede868631252ac84bd52382d5c3"}},{"ruleId":"R8","level":"error","message":{"text":"Unlisted import \u0027definitions\u0027: Imported but not declared in any reachable package.json \u2014 installs work only by hoisting accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"miniprogram_npm/@vant/weapp/common/component.d.ts"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"3db02e1b5b1b92247434734eef76148253f25fc370a78f5ab6aa14b974dd22ac"}},{"ruleId":"R8","level":"error","message":{"text":"Unlisted import \u0027libs\u0027: Imported but not declared in any reachable package.json \u2014 installs work only by hoisting accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packageStreamMedia/components/TRTCCalling/TRTCCalling.js"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2fd30abba9a3944328b4caf4ccd707f084ca178b6dfdedab58e7f63a974ab75"}},{"ruleId":"R8","level":"error","message":{"text":"Unlisted import \u0027utils\u0027: Imported but not declared in any reachable package.json \u2014 installs work only by hoisting accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"1857e9ff9be74b509e619194de42904723d45f29899ac148963b1381724c6837"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027@vant/weapp\u0027: Declared in the root package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7a1168e2f991e917a3f2fed9e39c73a88756f97a89491f2b1e3f9e9a6d8eaf7c"}},{"ruleId":"SC1","level":"warning","message":{"text":"JavaScript dependencies are not locked: package.json declares dependencies that no committed lockfile resolves \u2014 there is no package-lock.json / yarn.lock / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it \u2014 so its installs aren\u0027t reproducible (SSDF PW.4.4). Commit its package manager\u0027s lockfile (or add it to the locked workspace) and install from it (\u0060npm ci\u0060, \u0060yarn --immutable\u0060, \u0060pnpm i --frozen-lockfile\u0060 or \u0060bun i --frozen-lockfile\u0060). Advisory \u2014 never scored."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcd699919aa591b262d8f4a07a70eed2e90d52ddb856cc6e42aa98540126b06b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!curGood.propertyIds \u0026\u0026 !curGood.hasAddition\u0060 appears character-identically in 2 files \u2014 pages/category/category.js, pages/goods/list.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/category/category.js"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fdb09e6cd268a0272d7a7bd2d2e3c4301fdc615316326eb27a96f70a84c82cd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!e.detail.errMsg || e.detail.errMsg != \u0022getPhoneNumber:ok\u0022\u0060 appears character-identically in 2 files \u2014 components/bind-mobile/index.js, pages/login/index.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/bind-mobile/index.js"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"77f508a7031592a274dd8fc09d4c5f70b29b60b278d9e4f03010f73491fdf0c9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!this.data.fixed || !this.data.placeholder\u0060 appears character-identically in 2 files \u2014 miniprogram_npm/@vant/weapp/nav-bar/index.js, miniprogram_npm/@vant/weapp/tabbar/index.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"miniprogram_npm/@vant/weapp/nav-bar/index.js"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"9241c72b79becfa8ad432d03b964df24503259325ec8621c9fc32c7f4afcef83"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(_a = _this.parent) === null || _a === void 0\u0060 appears character-identically in 2 files \u2014 miniprogram_npm/@vant/weapp/common/relation.js, miniprogram_npm/@vant/weapp/dropdown-item/index.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"miniprogram_npm/@vant/weapp/common/relation.js"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"e02d675277b9f153177d0e6ef53cbd617e60d5d428f8319adb9ce3ccf81eff8b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060adminUserIds \u0026\u0026 adminUserIds.indexOf(res.data.base.id) != -1\u0060 appears character-identically in 2 files \u2014 packageFx/pages/hehuorenfenxiao/fxmember.js, packageFx/pages/hehuorenfenxiao/index.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packageFx/pages/hehuorenfenxiao/fxmember.js"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"d25f09756766e427af0dbb30ff0a297a9b10e4610357c2eb31182f70059840c3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cartRes.code != 0 || !cartRes.data || !cartRes.data.items\u0060 appears character-identically in 3 files \u2014 pages/goods/fav.js, pages/goods/his.js, pages/goods/list.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/goods/fav.js"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f3617be6d553ff1a3b1f84f21eb0be8d72335cf541ac23e0414130c5beb345"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060detail.properties \u0026\u0026 detail.properties.length \u003E 0\u0060 appears character-identically in 2 files \u2014 pages/goods/fav.js, pages/goods/his.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/goods/fav.js"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"d318c6f4060c28db4297e89b765c0e8ed480cbd4e9f38215c34041e4237614a4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060major \u003E 18 || (major === 18 \u0026\u0026 minor \u003E= 4)\u0060 appears character-identically in 2 files \u2014 pages/live/index.js, pages/sign/index.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/live/index.js"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bd9087e950eba20731544f52a16ba22504fa39d0d6abc8df1c0ef9f92516ee9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060res.code == 0 \u0026\u0026 res.data \u0026\u0026 res.data.info\u0060 appears character-identically in 2 files \u2014 marketing/listing/edit.js, pages/huodong/index.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"marketing/listing/edit.js"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"477f0b80946f0980c1c065dc70d323a808406248773d16cdece5577b01fd0b41"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060res.code == 0 \u0026\u0026 res.data \u0026\u0026 res.data.result\u0060 appears character-identically in 2 files \u2014 marketing/listing/detail.js, pages/huodong/index.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"marketing/listing/detail.js"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"829e971ff72654c63ef257c6b61fde24603fafd263117e5665f1c1cb5dfb21e1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060res.code == 1004 \u0026\u0026 res.reason == \u0027kickOut\u0027\u0060 appears character-identically in 2 files \u2014 packageStreamMedia/pages/live-anchor/index.js, packageStreamMedia/pages/live-client/client.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packageStreamMedia/pages/live-anchor/index.js"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"aec2bd757bd2e01360929d90dd8f4c434ca9dcb6fbf5ff030786b2fbf4bc5c60"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060res.data.peisongMember \u0026\u0026 res.data.peisongMember.status == 1\u0060 appears character-identically in 5 files \u2014 packageFx/pages/hehuorenfenxiao/fxmember.js, packageFx/pages/hehuorenfenxiao/index.js, pages/my/index.js, pages/my/info-menu.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packageFx/pages/hehuorenfenxiao/fxmember.js"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"dba4a5435c402d55f9eed31325ef2319d29dc9cc67cd015930804af7264c36ab"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060resUserDetail.code == 0 \u0026\u0026 !resUserDetail.data.base.mobile\u0060 appears character-identically in 2 files \u2014 pages/maidan/index.js, pages/recharge/index.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/maidan/index.js"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd3aaf276c3140ed5459d91f3ad909524cc303833b68757dba71962b6d4b29f5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060that.data.order_hx_uids \u0026\u0026 that.data.order_hx_uids.indexOf(res.data.base.id) != -1\u0060 appears character-identically in 2 files \u2014 packageFx/pages/hehuorenfenxiao/fxmember.js, packageFx/pages/hehuorenfenxiao/index.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packageFx/pages/hehuorenfenxiao/fxmember.js"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"204145ec92eed08134247cd2e0f15135dc130c8a6e0822670d963b849ff2d7ae"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.data.balance_pay_pwd == \u00271\u0027 \u0026\u0026 !this.data.pwd\u0060 appears character-identically in 2 files \u2014 pages/maidan/index.js, pages/withdraw/index.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/maidan/index.js"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"94634e0864ee6f281e255a0b12d13cd4e2f167a940b3134958634c726d370a0c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.data.goodsDetail.subPics \u0026\u0026 this.data.goodsDetail.subPics.length \u003E 0\u0060 appears character-identically in 5 files \u2014 packageCps/pages/goods-details/cps-jd.js, packageCps/pages/goods-details/cps-pdd.js, packageCps/pages/goods-details/cps-taobao.js, pages/goods-details/index.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packageCps/pages/goods-details/cps-jd.js"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e7c87d3b43598ee0ad1fac63f4cd0ec5a1bda22409fb4ead94eaa1caf2eb468"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.data.order_hx_uids \u0026\u0026 this.data.order_hx_uids.indexOf(res.data.base.id) != -1\u0060 appears character-identically in 3 files \u2014 pages/my/index.js, pages/my/info-menu.js, pages/my/setting.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/my/index.js"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7926cdebd2cc5ee95503b6bee945e7a423c89142c76a2a3703fcad82363d824"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.data.tabs[0].topHeight-tabsHeight\u003C=0 \u0026\u0026 0 \u003C this.data.tabs[1].topHeight-tabsHeight\u0060 appears character-identically in 3 files \u2014 packageCps/pages/goods-details/cps-jd.js, pages/goods-details/index.js, pages/goods-details/vop.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packageCps/pages/goods-details/cps-jd.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"471b00287b0a2774aacc3adef19398b965746ab01503c50f8a4de9aecb6dfc45"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/sign/index.js"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ffe1a1ec97e568e90e8b51ccddd3a341d92c3637cb103f6c4c95ab85f953dbe"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pages/live/index.js"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2b2f9f8463905a69dd743cf47af73e77494471ddbcc7df7bf30b5dc26a4df3d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(function(){})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"miniprogram_npm/@vant/weapp/sticky/index.js"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9a44860bd6dd07a82946cecf629fb70c4580ece2f8a9db313b85bc7d1d7dfda"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(function(){})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"miniprogram_npm/@vant/weapp/picker/index.js"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe627b0282e716a89168932f4d2eb5f319ec19ee11c91385a7b86a8d0cede6f8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(function(){})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"miniprogram_npm/@vant/weapp/area/index.js"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c8a4f1dcdec579ec3cb25fd785c1fbc47dab96f7763c560e13ef3d6287f9a43"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(function(){})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"miniprogram_npm/@vant/weapp/area/index.js"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc74e4390e90bd74844dd4c2b3cf8b2c7fd405cf9a537e6a5745d96d81988873"}}],"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-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-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]}],"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":0,"secretScannerRunsExcluded":0}}}]}